Add nedge device shutdown and reboot dialogs

This commit is contained in:
emanuele-f 2018-01-24 17:51:47 +01:00
parent c0964bb924
commit ca21850b12
5 changed files with 74 additions and 4 deletions

View file

@ -3273,7 +3273,7 @@ function makeResolutionButtons(fmt_to_data, ctrl_id, fmt, value, extra)
function resol_selector_on_form_submit(event) {
var form = $(this);
if (event.isDefaultPrevented()) /* isDefaultPrevented is true when the form is invalid */
if (event.isDefaultPrevented() || (form.find(".has-error").length > 0))
return false;
resol_selector_finalize(form);