Rev1232, Db schema reload sidebar button
This commit is contained in:
parent
e481a12647
commit
5f55d8a034
4 changed files with 38 additions and 8 deletions
|
@ -239,6 +239,13 @@ class Sidebar extends Class
|
|||
@updateHtmlTag()
|
||||
return false
|
||||
|
||||
# Database reload
|
||||
@tag.find("#button-dbreload").off("click").on "click", =>
|
||||
wrapper.ws.cmd "dbReload", [], =>
|
||||
wrapper.notifications.add "done-sitelimit", "done", "Database schema reloaded", 5000
|
||||
@updateHtmlTag()
|
||||
return false
|
||||
|
||||
# Update site
|
||||
@tag.find("#button-update").off("click").on "click", =>
|
||||
@tag.find("#button-update").addClass("loading")
|
||||
|
|
|
@ -318,7 +318,7 @@ window.initScrollable = function () {
|
|||
};
|
||||
|
||||
Sidebar.prototype.setSiteInfo = function(site_info) {
|
||||
RateLimit(3000, (function(_this) {
|
||||
RateLimit(1500, (function(_this) {
|
||||
return function() {
|
||||
return _this.updateHtmlTag();
|
||||
};
|
||||
|
@ -459,6 +459,15 @@ window.initScrollable = function () {
|
|||
return false;
|
||||
};
|
||||
})(this));
|
||||
this.tag.find("#button-dbreload").off("click").on("click", (function(_this) {
|
||||
return function() {
|
||||
wrapper.ws.cmd("dbReload", [], function() {
|
||||
wrapper.notifications.add("done-sitelimit", "done", "Database schema reloaded", 5000);
|
||||
return _this.updateHtmlTag();
|
||||
});
|
||||
return false;
|
||||
};
|
||||
})(this));
|
||||
this.tag.find("#button-update").off("click").on("click", (function(_this) {
|
||||
return function() {
|
||||
_this.tag.find("#button-update").addClass("loading");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue