diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js
index ec5b824a0..1215df192 100644
--- a/builds/appchan-x.user.js
+++ b/builds/appchan-x.user.js
@@ -19493,7 +19493,8 @@
mascotHide = $.el("div", {
id: "mascot_hide",
className: "reply"
- }, {
+ });
+ $.extend(mascotHide, {
innerHTML: "Hide Categories
"
});
keys = Object.keys(Mascots);
@@ -19501,7 +19502,8 @@
if (mode === 'default') {
mascotoptions = $.el('div', {
id: 'mascot-options'
- }, {
+ });
+ $.extend(mascotoptions, {
innerHTML: "EditDeleteExport"
});
$.on($('.edit', mascotoptions), 'click', cb.edit);
@@ -19519,13 +19521,13 @@
menu = $('div', mascotHide);
categories[name] = div = $.el("div", {
id: name,
- className: "mascots-container"
- }, {
- innerHTML: ""
- }, {
+ className: "mascots-container",
hidden: __indexOf.call(Conf["Hidden Categories"], name) >= 0
});
- option = UI.checkbox(name, name, __indexOf.call(Conf["Hidden Categories"], name) >= 0);
+ $.extend(categories[name], {
+ innerHTML: ""
+ });
+ option = UI.checkbox(name, name, (__indexOf.call(Conf["Hidden Categories"], name) >= 0));
$.on($('input', option), 'change', cb.category);
$.add(suboptions, div);
$.add(menu, option);
@@ -19540,7 +19542,7 @@
id: name,
className: __indexOf.call(Conf[g.MASCOTSTRING], name) >= 0 ? 'mascot enabled' : 'mascot'
});
- $.extend(div, {
+ $.extend(mascotEl, {
innerHTML: "" + (name.replace(/_/g, ' ')) + "
\r"
});
$.on(mascotEl, 'click', cb.select);
@@ -19616,7 +19618,8 @@
$.add(suboptions, container);
batchmascots = $.el('div', {
id: "mascots_batch"
- }, {
+ });
+ $.extend(batchmascots, {
innerHTML: "Return"
});
$.on($('#return', batchmascots), 'click', function() {
diff --git a/builds/crx/script.js b/builds/crx/script.js
index ea2412a0c..5ddaa3923 100644
--- a/builds/crx/script.js
+++ b/builds/crx/script.js
@@ -19528,7 +19528,8 @@
mascotHide = $.el("div", {
id: "mascot_hide",
className: "reply"
- }, {
+ });
+ $.extend(mascotHide, {
innerHTML: "Hide Categories "
});
keys = Object.keys(Mascots);
@@ -19536,7 +19537,8 @@
if (mode === 'default') {
mascotoptions = $.el('div', {
id: 'mascot-options'
- }, {
+ });
+ $.extend(mascotoptions, {
innerHTML: "EditDeleteExport"
});
$.on($('.edit', mascotoptions), 'click', cb.edit);
@@ -19554,13 +19556,13 @@
menu = $('div', mascotHide);
categories[name] = div = $.el("div", {
id: name,
- className: "mascots-container"
- }, {
- innerHTML: ""
- }, {
+ className: "mascots-container",
hidden: __indexOf.call(Conf["Hidden Categories"], name) >= 0
});
- option = UI.checkbox(name, name, __indexOf.call(Conf["Hidden Categories"], name) >= 0);
+ $.extend(categories[name], {
+ innerHTML: ""
+ });
+ option = UI.checkbox(name, name, (__indexOf.call(Conf["Hidden Categories"], name) >= 0));
$.on($('input', option), 'change', cb.category);
$.add(suboptions, div);
$.add(menu, option);
@@ -19575,7 +19577,7 @@
id: name,
className: __indexOf.call(Conf[g.MASCOTSTRING], name) >= 0 ? 'mascot enabled' : 'mascot'
});
- $.extend(div, {
+ $.extend(mascotEl, {
innerHTML: "" + (name.replace(/_/g, ' ')) + "
\r"
});
$.on(mascotEl, 'click', cb.select);
@@ -19651,7 +19653,8 @@
$.add(suboptions, container);
batchmascots = $.el('div', {
id: "mascots_batch"
- }, {
+ });
+ $.extend(batchmascots, {
innerHTML: "Return"
});
$.on($('#return', batchmascots), 'click', function() {
diff --git a/src/General/Settings.coffee b/src/General/Settings.coffee
index 482f9e070..7f4a4c72b 100755
--- a/src/General/Settings.coffee
+++ b/src/General/Settings.coffee
@@ -643,6 +643,8 @@ Settings =
mascotHide = $.el "div",
id: "mascot_hide"
className: "reply"
+
+ $.extend mascotHide,
<%= html('Hide Categories ') %>
keys = Object.keys Mascots
@@ -651,6 +653,8 @@ Settings =
if mode is 'default'
mascotoptions = $.el 'div',
id: 'mascot-options'
+
+ $.extend mascotoptions,
<%= html('EditDeleteExport') %>
$.on $('.edit', mascotoptions), 'click', cb.edit
@@ -667,10 +671,12 @@ Settings =
categories[name] = div = $.el "div",
id: name
className: "mascots-container"
- <%= html('') %>
hidden: name in Conf["Hidden Categories"]
+
+ $.extend categories[name],
+ <%= html('') %>
- option = UI.checkbox name, name, name in Conf["Hidden Categories"]
+ option = UI.checkbox name, name, (name in Conf["Hidden Categories"])
$.on $('input', option), 'change', cb.category
@@ -684,7 +690,7 @@ Settings =
id: name
className: if name in Conf[g.MASCOTSTRING] then 'mascot enabled' else 'mascot'
- $.extend div, <%= importHTML('Settings/Mascot') %>
+ $.extend mascotEl, <%= importHTML('Settings/Mascot') %>
$.on mascotEl, 'click', cb.select
$.on mascotEl, 'mouseover', addoptions
@@ -747,6 +753,7 @@ Settings =
batchmascots = $.el 'div',
id: "mascots_batch"
+ $.extend batchmascots,
<%= html('Return') %>
$.on $('#return', batchmascots), 'click', ->