diff --git a/src/Ui/media/all.css b/src/Ui/media/all.css index 358aabbc..9964349b 100644 --- a/src/Ui/media/all.css +++ b/src/Ui/media/all.css @@ -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 */ diff --git a/src/Ui/media/all.js b/src/Ui/media/all.js index 040a59fe..bf0bb8c9 100644 --- a/src/Ui/media/all.js +++ b/src/Ui/media/all.js @@ -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 ---- */