Merge wrapper js, css

This commit is contained in:
shortcutme 2019-02-09 13:56:21 +01:00
parent b5ed158cc6
commit 2829146598
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 8 additions and 1 deletions

View file

@ -139,6 +139,7 @@ a { color: black }
opacity: 0; margin-left: 0px; pointer-events: none; -webkit-transition: all 0.6s; -moz-transition: all 0.6s; -o-transition: all 0.6s; -ms-transition: all 0.6s; transition: all 0.6s ;
}
.body-sidebar .infopanel { right: 425px; }
.body-sidebar .infopanel.closed { right: 0px; }
/* Loading screen */

View file

@ -551,6 +551,7 @@ $.extend( $.easing,
function Infopanel(elem) {
this.elem = elem;
this.setAction = bind(this.setAction, this);
this.setClosedNum = bind(this.setClosedNum, this);
this.setTitle = bind(this.setTitle, this);
this.open = bind(this.open, this);
this.close = bind(this.close, this);
@ -613,6 +614,10 @@ $.extend( $.easing,
return this.elem.find(".line-2").text(line2);
};
Infopanel.prototype.setClosedNum = function(num) {
return this.elem.find(".closed-num").text(num);
};
Infopanel.prototype.setAction = function(title, func) {
return this.elem.find(".button").text(title).off("click").on("click", func);
};
@ -626,7 +631,6 @@ $.extend( $.easing,
}).call(this);
/* ---- src/Ui/media/Loading.coffee ---- */
@ -1767,6 +1771,7 @@ $.extend( $.easing,
}
if (num > 0) {
_this.infopanel.setTitle(res.modified_files.length + " modified file" + (num > 1 ? 's' : ''), res.modified_files.join(", "));
_this.infopanel.setClosedNum(num);
_this.infopanel.setAction("Sign & Publish", function() {
_this.siteSign("content.json", function(res) {
if (res) {
@ -1895,6 +1900,7 @@ $.extend( $.easing,
}).call(this);
/* ---- src/Ui/media/WrapperZeroFrame.coffee ---- */