Schedule Main.addStyle before something breaks. Otherwise the options are 'hidden' at the bottom of the page.

This commit is contained in:
Nicolas Stepien 2012-02-21 03:00:12 +01:00
parent 1eb1d2f268
commit 15b7a55fe0
3 changed files with 10 additions and 10 deletions

View File

@ -3576,6 +3576,10 @@
return; return;
} }
$.ready(options.init); $.ready(options.init);
if (conf['Quick Reply'] && conf['Hide Original Post Form']) {
Main.css += 'form[name=post] { display: none; }';
}
Main.addStyle();
now = Date.now(); now = Date.now();
if (conf['Check for Updates'] && $.get('lastUpdate', 0) < now - 6 * HOUR) { if (conf['Check for Updates'] && $.get('lastUpdate', 0) < now - 6 * HOUR) {
$.ready(function() { $.ready(function() {
@ -3619,10 +3623,6 @@
quoteIndicators.init(); quoteIndicators.init();
} }
if (conf['Fix XXX\'d Post Numbers']) unxify.init(); if (conf['Fix XXX\'d Post Numbers']) unxify.init();
if (conf['Quick Reply'] && conf['Hide Original Post Form']) {
Main.css += 'form[name=post] { display: none; }';
}
Main.addStyle();
return $.ready(Main.ready); return $.ready(Main.ready);
}, },
ready: function() { ready: function() {

View File

@ -6,7 +6,7 @@ master
- Hightlight, or hide. - Hightlight, or hide.
New filter group: Image dimensions. New filter group: Image dimensions.
Fix posting on Safari. Fix posting on Safari.
Fix rare case where the QR would not accept images. Fix rare case where the QR would not accept certain image types.
2.26.4 2.26.4
- Mayhem - Mayhem

View File

@ -2848,6 +2848,11 @@ Main =
$.ready options.init $.ready options.init
if conf['Quick Reply'] and conf['Hide Original Post Form']
Main.css += 'form[name=post] { display: none; }'
Main.addStyle()
now = Date.now() now = Date.now()
if conf['Check for Updates'] and $.get('lastUpdate', 0) < now - 6*HOUR if conf['Check for Updates'] and $.get('lastUpdate', 0) < now - 6*HOUR
$.ready -> $.add d.head, $.el 'script', src: 'https://raw.github.com/mayhemydg/4chan-x/master/latest.js' $.ready -> $.add d.head, $.el 'script', src: 'https://raw.github.com/mayhemydg/4chan-x/master/latest.js'
@ -2918,11 +2923,6 @@ Main =
if conf['Fix XXX\'d Post Numbers'] if conf['Fix XXX\'d Post Numbers']
unxify.init() unxify.init()
if conf['Quick Reply'] and conf['Hide Original Post Form']
Main.css += 'form[name=post] { display: none; }'
Main.addStyle()
$.ready Main.ready $.ready Main.ready
ready: -> ready: ->