From 207dff9e6737c406282ede865ce75f5a61855505 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 13 May 2016 03:56:34 +0300 Subject: [PATCH] "Move /all button" fix and minor refactoring. --- chrome_point_plus/css/point-plus.css | 6 ++++++ chrome_point_plus/js/point-plus.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/chrome_point_plus/css/point-plus.css b/chrome_point_plus/css/point-plus.css index 96e370f..2364601 100644 --- a/chrome_point_plus/css/point-plus.css +++ b/chrome_point_plus/css/point-plus.css @@ -216,3 +216,9 @@ div#markItUpText-input { background-position: 0 0; } } + +/* "All" link in left menu */ +#pp-left-menu-all { + /* Opened Lock icon from default point.im icon set */ + background-image: url("/img/icon-private-inactive.png") !important; +} \ No newline at end of file diff --git a/chrome_point_plus/js/point-plus.js b/chrome_point_plus/js/point-plus.js index 54a86bc..5693dad 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -52,7 +52,7 @@ function PointPlus(ppVersion) { // Move "all posts" to left menu if (options.is('option_other_move_all_to_menu')) { - $('div.secret a').insertAfter('a#menu-recent').css('background-image','url("img/icon-private-inactive.png")'); + $('div.secret a').insertAfter('a#menu-recent').attr({'id': 'pp-left-menu-all'}); } // Side panel