Message ID | 20130628115317.30508.63897.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== 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); + } } }