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

View File

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