Fix kontrola, zda orgové vyplnili problém u hodnocení
This commit is contained in:
		
							parent
							
								
									33ce4a5db5
								
							
						
					
					
						commit
						c0f5f68b8a
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		|  | @ -134,6 +134,15 @@ $(document).ready(function(){ | ||||||
|                 return false; |                 return false; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  | 
 | ||||||
|  |         function problem_is_empty(elem, index, array) {return elem.firstElementChild.children.length !== 1 && elem.firstElementChild.children[1].textContent === "";} | ||||||
|  | 
 | ||||||
|  |         if ($('.hodnoceni').toArray().some(problem_is_empty)) { | ||||||
|  |             alert("Neuloženo! Nezadal jsi problém, ke kterému posíláš hodnocení. Pokud je toto hodnocení navíc, smaž ho prosím křížkem a znovu odešli.") | ||||||
|  |             event.preventDefault() | ||||||
|  |             return false; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         return true; |         return true; | ||||||
|     } |     } | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue