mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
reorganization of files
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Submit buttons are disabled as soon as submit button is clicked and form is submitted.
|
||||
*/
|
||||
|
||||
var submitButtons = document.querySelectorAll("[type=submit]");
|
||||
var form = document.getElementById('create-form');
|
||||
|
||||
for(var i=0; i<submitButtons.length; i++){
|
||||
submitButtons[i].addEventListener("click", function(e){
|
||||
form.submit();
|
||||
e.target.disabled = true;
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user