diff --git a/js/PageFiles/PageFiles.coffee b/js/PageFiles/PageFiles.coffee index 28e1784..65e723c 100644 --- a/js/PageFiles/PageFiles.coffee +++ b/js/PageFiles/PageFiles.coffee @@ -197,10 +197,8 @@ class PageFiles extends Class h("span.size", "(#{Text.formatSize(@selected_files_size)})"), ]) h("div.actions", [ - if @selected_files_pinned > @selected_files_num / 2 - h("a.action.pin.unpin", {href: "#", onclick: @handleSelectbarUnpin}, "UnPin") - else - h("a.action.pin", {href: "#", title: "Don't delete these files automatically", onclick: @handleSelectbarPin}, "Pin") + h("a.action.pin", {href: "#", title: "Don't delete these files automatically", onclick: @handleSelectbarPin}, "Pin") + h("a.action.pin.unpin", {href: "#", onclick: @handleSelectbarUnpin}, "UnPin") h("a.action.delete", {href: "#", onclick: @handleSelectbarDelete}, "Delete") ]) h("a.cancel.link", {href: "#", onclick: @handleSelectbarCancel}, "Cancel") diff --git a/js/all.js b/js/all.js index 328d7a8..354decc 100644 --- a/js/all.js +++ b/js/all.js @@ -1484,14 +1484,14 @@ } }, [ "Selected:", h("span.info", [h("span.num", this.selected_files_num + " files"), h("span.size", "(" + (Text.formatSize(this.selected_files_size)) + ")")]), h("div.actions", [ - this.selected_files_pinned > this.selected_files_num / 2 ? h("a.action.pin.unpin", { - href: "#", - onclick: this.handleSelectbarUnpin - }, "UnPin") : h("a.action.pin", { + h("a.action.pin", { href: "#", title: "Don't delete these files automatically", onclick: this.handleSelectbarPin - }, "Pin"), h("a.action.delete", { + }, "Pin"), h("a.action.pin.unpin", { + href: "#", + onclick: this.handleSelectbarUnpin + }, "UnPin"), h("a.action.delete", { href: "#", onclick: this.handleSelectbarDelete }, "Delete")