diff mbox

[Branch,~linaro-validation/lava-scheduler/trunk] Rev 249: Remove empty field validation from 'Submit Job' page.

Message ID 20130628115317.30508.63897.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Stevan Radakovic June 28, 2013, 11:53 a.m. UTC
Merge authors:
  Stevan Radaković (stevanr)
Related merge proposals:
  https://code.launchpad.net/~stevanr/lava-scheduler/remove-empty-field-validation/+merge/172009
  proposed by: Stevan Radaković (stevanr)
  review: Approve - Stevan Radaković (stevanr)
------------------------------------------------------------
revno: 249 [merge]
committer: Stevan Radakovic <stevan.radakovic@linaro.org>
branch nick: trunk
timestamp: Fri 2013-06-28 13:52:54 +0200
message:
  Remove empty field validation from 'Submit Job' page.
modified:
  lava_scheduler_app/static/lava_scheduler_app/js/job-submit.js


--
lp:lava-scheduler
https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk

You are subscribed to branch lp:lava-scheduler.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_scheduler_app/static/lava_scheduler_app/js/job-submit.js'
--- lava_scheduler_app/static/lava_scheduler_app/js/job-submit.js	2013-06-27 11:51:21 +0000
+++ lava_scheduler_app/static/lava_scheduler_app/js/job-submit.js	2013-06-28 11:44:54 +0000
@@ -19,10 +19,12 @@ 
 
 validate_input = function(json_input) {
 
-    if ($("#json-input").val().split("\n").length == 1) {
-        load_url();
-    } else {
-        validate_job_data(json_input);
+    if ($("#json-input").val() != "") {
+        if ($("#json-input").val().split("\n").length == 1) {
+            load_url();
+        } else {
+            validate_job_data(json_input);
+        }
     }
 }