diff options
author | Sebastin Santy <sebastinssanty@gmail.com> | 2017-07-21 21:34:55 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-07-21 21:34:55 +0200 |
commit | cc1372e99236ffc5987e46fc09b5454b2425d9f7 (patch) | |
tree | a5ec88378d12b9d764efecfb038389a290bcdffd /extensions/BugModal/web/new_bug.js | |
parent | 87fed0b46b4b7868f0c15a9f6fb7a4291b4bbc1f (diff) | |
download | bugzilla-cc1372e99236ffc5987e46fc09b5454b2425d9f7.tar.gz bugzilla-cc1372e99236ffc5987e46fc09b5454b2425d9f7.tar.xz |
Bug 1381752 - Re-organize the layout
Diffstat (limited to 'extensions/BugModal/web/new_bug.js')
-rw-r--r-- | extensions/BugModal/web/new_bug.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/extensions/BugModal/web/new_bug.js b/extensions/BugModal/web/new_bug.js index d00770e3a..9da5abce9 100644 --- a/extensions/BugModal/web/new_bug.js +++ b/extensions/BugModal/web/new_bug.js @@ -16,6 +16,7 @@ $(document).ready(function() { var product_sel = $("#product").selectize({ valueField: 'name', labelField: 'name', + placeholder: 'Product', searchField: 'name', options: [], preload: true, @@ -27,6 +28,7 @@ $(document).ready(function() { var component_sel = $("#component").selectize({ valueField: 'name', labelField: 'name', + placeholder: 'Component', searchField: 'name', options: [], }); @@ -34,6 +36,7 @@ $(document).ready(function() { var version_sel = $("#version").selectize({ valueField: 'name', labelField: 'name', + placeholder: 'Version', searchField: 'name', options: [], }); @@ -42,6 +45,7 @@ $(document).ready(function() { delimiter: ', ', valueField: 'name', labelField: 'name', + placeholder: 'Keywords', searchField: 'name', options: [], preload: true, @@ -93,9 +97,13 @@ $(document).ready(function() { $('.create-btn') .click(function(event) { event.preventDefault(); - if (document.newbugform.checkValidity && !document.newbugform.checkValidity()) + if (document.newbugform.checkValidity && !document.newbugform.checkValidity()) { + alert("Required fields are empty"); return; - this.form.submit() + } + else { + this.form.submit() + } }); }); |