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