"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public/js/icinga/behavior/modal.js" between
icingaweb2-2.11.3.tar.gz and icingaweb2-2.11.4.tar.gz

About: Icinga Web 2 is an Web interface for Icinga 2, a network and computer system monitoring system.

modal.js  (icingaweb2-2.11.3):modal.js  (icingaweb2-2.11.4)
skipping to change at line 122 skipping to change at line 122
var title = req.getResponseHeader('X-Icinga-Title'); var title = req.getResponseHeader('X-Icinga-Title');
if (!! title) { if (!! title) {
_this.setTitle($modal, decodeURIComponent(title).replace(/\s::\s .*/, '')); _this.setTitle($modal, decodeURIComponent(title).replace(/\s::\s .*/, ''));
} }
if (req.getResponseHeader('X-Icinga-Redirect')) { if (req.getResponseHeader('X-Icinga-Redirect')) {
_this.hide($modal); _this.hide($modal);
} }
}); });
// otherwise the form is submitted several times by clicking the "Submit if (typeof $autoSubmittedBy === 'undefined') {
" button several times // otherwise the form is submitted several times by clicking the "Su
$form.find('input:not(:disabled)').prop('disabled', true); bmit" button several times
$form.find('input[type=submit],button[type=submit],button:not([type]
)').prop('disabled', true);
}
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
return false; return false;
}; };
/** /**
* Event handler for form auto submits within a modal. * Event handler for form auto submits within a modal.
* *
* @param event {Event} The `change` event triggered by a form input within the modal * @param event {Event} The `change` event triggered by a form input within the modal
 End of changes. 1 change blocks. 
3 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)