Commit dabda6485d970162de4247b9695a0c19206ceb12
1 parent
407aeec3
Exists in
master
and in
1 other branch
Fixed bug with form validation (thanks Krishnamurti).
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/web/templates/layout.html
| @@ -33,8 +33,8 @@ function validateForm() | @@ -33,8 +33,8 @@ function validateForm() | ||
| 33 | var t = $$("#pkgs_list"); | 33 | var t = $$("#pkgs_list"); |
| 34 | var i = $$("input[name=pkgs_file]"); | 34 | var i = $$("input[name=pkgs_file]"); |
| 35 | if (!i.val() && ( !t.val() || t.val() == "Write your list App here or send a file list this icon:")) { | 35 | if (!i.val() && ( !t.val() || t.val() == "Write your list App here or send a file list this icon:")) { |
| 36 | - alert("Choose your list app or create a list!"); | ||
| 37 | - return true; | 36 | + alert("Please select a local file containing the list of installed packages."); |
| 37 | + return false; | ||
| 38 | } else { | 38 | } else { |
| 39 | if (i.val()) t.val(""); | 39 | if (i.val()) t.val(""); |
| 40 | return true; | 40 | return true; |