Further work on multi-file-upload
This commit is contained in:
@ -509,10 +509,10 @@ function initDrafts() {
|
||||
var button = new SaveButton(document.querySelector('.savebutton'))
|
||||
|
||||
// Dirty forms set up
|
||||
$('#case-study-form').dirtyForms()
|
||||
$('#case-study-form').dirtyForms();
|
||||
$('#case-study-form').on('dirty.dirtyforms', ev => {
|
||||
button.switchStateUnsaved()
|
||||
})
|
||||
});
|
||||
|
||||
// Save button
|
||||
button.element.button.addEventListener('click', evt => {
|
||||
|
Reference in New Issue
Block a user