diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js
index d39dd9eb8..da9c89a24 100644
--- a/builds/appchan-x.user.js
+++ b/builds/appchan-x.user.js
@@ -17886,7 +17886,7 @@
clientHeight = d.documentElement.clientHeight;
style = ul.style;
style.cssText = ("width: " + width + "px; left: " + left + "px;") + (clientHeight - bottom < 200 ? "bottom: " + (clientHeight - top) + "px" : "top: " + bottom + "px");
- Rice.input = select = this.previousSibling;
+ Rice.input = select = this.previousElementSibling;
nodes = [];
_ref1 = select.options;
for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
@@ -19230,9 +19230,9 @@
return $.on(ta, 'change', $.cb.value);
},
advanced: function(section) {
- var archBoards, boardID, boardOptions, boardSelect, boards, customCSS, event, files, i, input, inputs, interval, item, items, name, o, row, rows, software, ta, table, warning, withCredentials, _i, _j, _k, _l, _len, _len1, _len2, _len3, _len4, _len5, _len6, _m, _n, _o, _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
+ var archBoards, boardID, boardOptions, boardSelect, boards, customCSS, files, i, input, inputs, interval, item, items, name, o, row, rows, software, ta, table, warning, withCredentials, _i, _j, _k, _l, _len, _len1, _len2, _len3, _len4, _len5, _len6, _m, _n, _o, _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
$.extend(section, {
- innerHTML: "
\r\r\r\r\r\r\r\r\r"
+ innerHTML: "\r\r\r\r\r\r\r\r\r"
});
_ref = $$('.warning', section);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
@@ -19247,8 +19247,15 @@
input = $("[name='" + name + "']", section);
items[name] = Conf[name];
inputs[name] = input;
- event = name === 'favicon' || name === 'usercss' ? 'change' : 'input';
- $.on(input, event, $.cb.value);
+ if (name === 'usercss') {
+ $.on(input, 'change', $.cb.value);
+ } else if (name === 'favicon') {
+ $.on(input, 'change', $.cb.value);
+ $.on(input, 'change', Settings[name]);
+ } else {
+ $.on(input, 'input', $.cb.value);
+ $.on(input, 'input', Settings[name]);
+ }
}
ta = $('.personafield', section);
$.get('QR.personas', Conf['QR.personas'], function(item) {
@@ -19264,7 +19271,6 @@
if (key === 'usercss') {
continue;
}
- $.on(input, event, Settings[key]);
Settings[key].call(input);
}
return Rice.nodes(section);
@@ -19431,7 +19437,7 @@
if (g.VIEW === 'thread' && Conf['Unread Favicon']) {
Unread.update();
}
- img = this.nextElementSibling.children;
+ img = ($.id('favicon-preview')).children;
img[0].src = Favicon["default"];
img[1].src = Favicon.unreadSFW;
img[2].src = Favicon.unreadNSFW;
diff --git a/builds/crx/script.js b/builds/crx/script.js
index 2b17be133..7b781ff0a 100644
--- a/builds/crx/script.js
+++ b/builds/crx/script.js
@@ -17901,7 +17901,7 @@
clientHeight = d.documentElement.clientHeight;
style = ul.style;
style.cssText = ("width: " + width + "px; left: " + left + "px;") + (clientHeight - bottom < 200 ? "bottom: " + (clientHeight - top) + "px" : "top: " + bottom + "px");
- Rice.input = select = this.previousSibling;
+ Rice.input = select = this.previousElementSibling;
nodes = [];
_ref1 = select.options;
for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
@@ -19254,9 +19254,9 @@
return $.on(ta, 'change', $.cb.value);
},
advanced: function(section) {
- var archBoards, boardID, boardOptions, boardSelect, boards, customCSS, event, files, i, input, inputs, interval, item, items, name, o, row, rows, software, ta, table, warning, withCredentials, _i, _j, _k, _l, _len, _len1, _len2, _len3, _len4, _len5, _len6, _m, _n, _o, _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
+ var archBoards, boardID, boardOptions, boardSelect, boards, customCSS, files, i, input, inputs, interval, item, items, name, o, row, rows, software, ta, table, warning, withCredentials, _i, _j, _k, _l, _len, _len1, _len2, _len3, _len4, _len5, _len6, _m, _n, _o, _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
$.extend(section, {
- innerHTML: "\r\r\r\r\r\r\r\r\r"
+ innerHTML: "\r\r\r\r\r\r\r\r\r"
});
_ref = $$('.warning', section);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
@@ -19271,8 +19271,15 @@
input = $("[name='" + name + "']", section);
items[name] = Conf[name];
inputs[name] = input;
- event = name === 'favicon' || name === 'usercss' ? 'change' : 'input';
- $.on(input, event, $.cb.value);
+ if (name === 'usercss') {
+ $.on(input, 'change', $.cb.value);
+ } else if (name === 'favicon') {
+ $.on(input, 'change', $.cb.value);
+ $.on(input, 'change', Settings[name]);
+ } else {
+ $.on(input, 'input', $.cb.value);
+ $.on(input, 'input', Settings[name]);
+ }
}
ta = $('.personafield', section);
$.get('QR.personas', Conf['QR.personas'], function(item) {
@@ -19288,7 +19295,6 @@
if (key === 'usercss') {
continue;
}
- $.on(input, event, Settings[key]);
Settings[key].call(input);
}
return Rice.nodes(section);
@@ -19455,7 +19461,7 @@
if (g.VIEW === 'thread' && Conf['Unread Favicon']) {
Unread.update();
}
- img = this.nextElementSibling.children;
+ img = ($.id('favicon-preview')).children;
img[0].src = Favicon["default"];
img[1].src = Favicon.unreadSFW;
img[2].src = Favicon.unreadNSFW;
diff --git a/src/General/Settings.coffee b/src/General/Settings.coffee
index 0d186602a..777674112 100755
--- a/src/General/Settings.coffee
+++ b/src/General/Settings.coffee
@@ -245,14 +245,18 @@ Settings =
input = $ "[name='#{name}']", section
items[name] = Conf[name]
inputs[name] = input
- event = if name in ['favicon', 'usercss']
- 'change'
+ if name is 'usercss'
+ $.on input, 'change', $.cb.value
+ else if name is 'favicon'
+ $.on input, 'change', $.cb.value
+ $.on input, 'change', Settings[name]
else
- 'input'
- $.on input, event, $.cb.value
+ $.on input, 'input', $.cb.value
+ $.on input, 'input', Settings[name]
# Quick Reply Personas
ta = $ '.personafield', section
+
$.get 'QR.personas', Conf['QR.personas'], (item) ->
ta.value = item['QR.personas']
$.on ta, 'change', $.cb.value
@@ -262,7 +266,6 @@ Settings =
input = inputs[key]
input.value = val
continue if key is 'usercss'
- $.on input, event, Settings[key]
Settings[key].call input
Rice.nodes section
@@ -387,7 +390,7 @@ Settings =
favicon: ->
Favicon.switch()
Unread.update() if g.VIEW is 'thread' and Conf['Unread Favicon']
- img = @nextElementSibling.children
+ img = ($.id 'favicon-preview').children
img[0].src = Favicon.default
img[1].src = Favicon.unreadSFW
img[2].src = Favicon.unreadNSFW
diff --git a/src/General/html/Settings/Advanced.html b/src/General/html/Settings/Advanced.html
index 70d77e874..c4aa82464 100755
--- a/src/General/html/Settings/Advanced.html
+++ b/src/General/html/Settings/Advanced.html
@@ -1,6 +1,6 @@