diff options
author | Vitaly Takmazov | 2017-11-28 09:55:10 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-11-28 09:55:10 +0300 |
commit | 8e7a379f0afef3b0fe4e131dfbef350685f7c7f3 (patch) | |
tree | f16de7f48e0256622635fda34f25df959621ece0 /juick-www/src/main/static/scripts.js | |
parent | 41880290787c7e9021ee82f4f7eec8c419ad4092 (diff) |
Drop outdated moderator buttons
* also dropped hardcoded moderator (should be a spring-security role)
Diffstat (limited to 'juick-www/src/main/static/scripts.js')
-rw-r--r-- | juick-www/src/main/static/scripts.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 6bea2ea3..afc94973 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -695,33 +695,6 @@ ready(function () { e.preventDefault(); }); }); - document.querySelectorAll('.l .a-popular-plus').forEach(function (e) { - e.addEventListener('click', function (e) { - setPopular( - e.target, - e.target.closest('article').getAttribute('data-mid'), - 2); - e.preventDefault(); - }); - }); - document.querySelectorAll('.l .a-popular-minus').forEach(function (e) { - e.addEventListener('click', function (e) { - setPopular( - e.target, - e.target.closest('article').getAttribute('data-mid'), - -1); - e.preventDefault(); - }); - }); - document.querySelectorAll('.l .a-popular-delete').forEach(function (e) { - e.addEventListener('click', function (e) { - setPopular( - e.target, - e.target.closest('article').getAttribute('data-mid'), - -2); - e.preventDefault(); - }); - }); document.querySelectorAll('.ir a[data-fname], .msg-media a[data-fname]').forEach(function (el) { el.addEventListener('click', function (e) { let fname = e.target.closest('[data-fname]').getAttribute('data-fname'); |