summaryrefslogtreecommitdiff
path: root/js/id_colors.js
diff options
context:
space:
mode:
author8chan <admin@8chan.co>2015-02-20 01:51:06 -0800
committerczaks <marcin@6irc.net>2016-05-05 12:15:26 +0200
commit5176377045d25ab00ed4653f980e9a95a17b0e31 (patch)
treea08ae71b97697b7d576c0e6f9d243d4be0acc59c /js/id_colors.js
parent88f6088a429fb73d12805377b43c6b567d03a5db (diff)
Fix many features for Internet Explorer 9 and 10
Please don't use "dataset" in scripts anymore, it doesn't work in IE9 or 10. Instead use $.data
Diffstat (limited to 'js/id_colors.js')
-rw-r--r--js/id_colors.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/id_colors.js b/js/id_colors.js
index 17f8b4d9..6335f960 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 {