[Web] Keep modal data when adding a sync job
parent
049a930d47
commit
1abd0357d7
|
@ -255,6 +255,8 @@ $(document).ready(function() {
|
|||
});
|
||||
if (unset === true) {
|
||||
unset = null;
|
||||
// Keep form data for sync jobs
|
||||
if (id != "add_syncjob") {
|
||||
$('form').formcache('clear');
|
||||
$('form').formcache('destroy');
|
||||
var i = localStorage.length;
|
||||
|
@ -265,6 +267,7 @@ $(document).ready(function() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
var add_modal = $('.modal.in').attr('id');
|
||||
localStorage.setItem("add_modal", add_modal);
|
||||
|
|
Loading…
Reference in New Issue