summaryrefslogtreecommitdiff
path: root/js/id_colors.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/id_colors.js')
-rw-r--r--js/id_colors.js16
1 files changed, 5 insertions, 11 deletions
diff --git a/js/id_colors.js b/js/id_colors.js
index 17f8b4d9..55454476 100644
--- a/js/id_colors.js
+++ b/js/id_colors.js
@@ -1,18 +1,18 @@
if (active_page == 'thread' || active_page == 'index') {
$(document).ready(function(){
if (window.Options && Options.get_tab('general')) {
- selector = '#color-ids>input';
- event = 'change';
+ var selector = '#color-ids>input';
+ var e = 'change';
Options.extend_tab("general", "<label id='color-ids'><input type='checkbox' /> "+_('Color IDs')+"</label>");
}
else {
- selector = '#color-ids';
- event = 'click';
+ var selector = '#color-ids';
+ var e = 'click';
$('hr:first').before('<div id="color-ids" style="text-align:right"><a class="unimportant" href="javascript:void(0)">'+_('Color IDs')+'</a></div>')
}
- $(selector).on(event, function() {
+ $(selector).on(e, function() {
if (localStorage.color_ids === 'true') {
localStorage.color_ids = 'false';
} else {
@@ -50,12 +50,6 @@ if (active_page == 'thread' || active_page == 'index') {
"border-radius": "8px",
"color": ft
});
-
- $(el).mouseover(function() {
- $(this).css('color', '#800000'); // how about a CSS :hover rule instead?
- }).mouseout(function() {
- $(this).css('color', ft);
- });
}
$(".poster_id").each(function(k, v){