Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Feb 3, 2022
1 parent 4800015 commit e607e5f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions userfiles/modules/admin/backup/js/restore.js
Expand Up @@ -154,6 +154,10 @@ mw.restore = {
}

if (json_data.done) {

mw.restore.reload_mw_db();
mw.clear_cache();

mw.restore.get_progress(100);
mw.restore.get_log_check('stop');
//mw.spinner({element: ".button-start", size: 30, color: 'white'}).hide()
Expand All @@ -177,6 +181,11 @@ mw.restore = {
});
},

reload_mw_db: function () {
$.post(mw.settings.api_url + 'mw_post_update');
mw.notification.success("The DB was reloaded");
},

get_log_check: function(action = 'start') {

var importLogInterval = setInterval(function() {
Expand Down
2 changes: 2 additions & 0 deletions userfiles/modules/microweber/api/api.js
Expand Up @@ -555,6 +555,8 @@ mw.getScripts = function (array, callback) {
}
});
}


mw.temp_reload_module_queue_holder = [];


Expand Down

0 comments on commit e607e5f

Please sign in to comment.