Tiny fix. Don't cut off the [ on Settings.

This commit is contained in:
Nicolas Stepien 2012-09-05 21:36:14 +02:00
parent f2b1c25848
commit ad95f332c2
2 changed files with 3 additions and 5 deletions

View File

@ -2540,7 +2540,7 @@
Options = { Options = {
init: function() { init: function() {
var a, el, settings, _i, _len, _ref; var a, settings, _i, _len, _ref;
_ref = ['navtopright', 'navbotright']; _ref = ['navtopright', 'navbotright'];
for (_i = 0, _len = _ref.length; _i < _len; _i++) { for (_i = 0, _len = _ref.length; _i < _len; _i++) {
settings = _ref[_i]; settings = _ref[_i];
@ -2550,8 +2550,7 @@
textContent: '4chan X Settings' textContent: '4chan X Settings'
}); });
$.on(a, 'click', Options.dialog); $.on(a, 'click', Options.dialog);
el = $.id(settings).firstElementChild; $.prepend($.id(settings), [$.tn('['), a, $.tn('] ')]);
$.before(el, [a, $.tn('] ')]);
} }
if (!$.get('firstrun')) { if (!$.get('firstrun')) {
if (!Favicon.el) { if (!Favicon.el) {

View File

@ -2001,8 +2001,7 @@ Options =
className: 'settingsWindowLink' className: 'settingsWindowLink'
textContent: '4chan X Settings' textContent: '4chan X Settings'
$.on a, 'click', Options.dialog $.on a, 'click', Options.dialog
el = $.id(settings).firstElementChild $.prepend $.id(settings), [$.tn('['), a, $.tn('] ')]
$.before el, [a, $.tn('] ')]
unless $.get 'firstrun' unless $.get 'firstrun'
# Prevent race conditions # Prevent race conditions
Favicon.init() unless Favicon.el Favicon.init() unless Favicon.el