mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 15:36:22 +08:00
fixes edit modal [fixes SCI-467]
This commit is contained in:
parent
cde7f3805f
commit
6143b257d0
|
@ -17,6 +17,7 @@
|
|||
});
|
||||
validateMoveModal(id);
|
||||
clearModal($(id));
|
||||
reloadPageAfterUpdate($(id));
|
||||
})
|
||||
.on("ajax:error", function() {
|
||||
animateSpinner(null, false);
|
||||
|
@ -73,6 +74,17 @@
|
|||
.clearFormErrors();
|
||||
}
|
||||
}
|
||||
// Reload after successfully updated experiment
|
||||
function reloadPageAfterUpdate(element){
|
||||
if ( element ) {
|
||||
var form = element.find("form");
|
||||
form
|
||||
.on('ajax:success' , function(){
|
||||
animateSpinner(form, true);
|
||||
location.reload();
|
||||
});
|
||||
}
|
||||
}
|
||||
// Initialize no description edit link
|
||||
function initEditNoDescription(){
|
||||
var modal = "#edit-experiment-modal-";
|
||||
|
|
Loading…
Reference in a new issue