fix #161
This commit is contained in:
parent
edaa5b42f4
commit
034648a5df
@ -1202,7 +1202,6 @@
|
|||||||
init: function() {
|
init: function() {
|
||||||
var h1, iframe;
|
var h1, iframe;
|
||||||
if (!$.id('recaptcha_challenge_field_holder')) return;
|
if (!$.id('recaptcha_challenge_field_holder')) return;
|
||||||
$('form[name=post]').hidden = true;
|
|
||||||
h1 = $.el('h1', {
|
h1 = $.el('h1', {
|
||||||
innerHTML: '<a href=javascript:;>Open the Quick Reply</a>'
|
innerHTML: '<a href=javascript:;>Open the Quick Reply</a>'
|
||||||
});
|
});
|
||||||
@ -3483,6 +3482,8 @@
|
|||||||
if (conf['Quote Backlinks']) quoteBacklink.init();
|
if (conf['Quote Backlinks']) quoteBacklink.init();
|
||||||
if (conf['Indicate OP quote']) quoteOP.init();
|
if (conf['Indicate OP quote']) quoteOP.init();
|
||||||
if (conf['Indicate Cross-thread Quotes']) quoteDR.init();
|
if (conf['Indicate Cross-thread Quotes']) quoteDR.init();
|
||||||
|
if (conf['Quick Reply']) Main.css += 'form[name=post] { display: none; }';
|
||||||
|
Main.addStyle();
|
||||||
return $.ready(Main.ready);
|
return $.ready(Main.ready);
|
||||||
},
|
},
|
||||||
ready: function() {
|
ready: function() {
|
||||||
@ -3493,7 +3494,6 @@
|
|||||||
}
|
}
|
||||||
if (!$.id('navtopr')) return;
|
if (!$.id('navtopr')) return;
|
||||||
$.addClass(d.body, engine);
|
$.addClass(d.body, engine);
|
||||||
$.addStyle(Main.css);
|
|
||||||
threading.init();
|
threading.init();
|
||||||
Favicon.init();
|
Favicon.init();
|
||||||
if (conf['Quick Reply']) qr.init();
|
if (conf['Quick Reply']) qr.init();
|
||||||
@ -3528,6 +3528,14 @@
|
|||||||
}
|
}
|
||||||
return $.on(form, 'DOMNodeInserted', Main.node);
|
return $.on(form, 'DOMNodeInserted', Main.node);
|
||||||
},
|
},
|
||||||
|
addStyle: function() {
|
||||||
|
$.off(d, 'DOMNodeInserted', Main.addStyle);
|
||||||
|
if (d.head) {
|
||||||
|
return $.addStyle(Main.css);
|
||||||
|
} else {
|
||||||
|
return $.on(d, 'DOMNodeInserted', Main.addStyle);
|
||||||
|
}
|
||||||
|
},
|
||||||
message: function(e) {
|
message: function(e) {
|
||||||
var data, version;
|
var data, version;
|
||||||
data = e.data;
|
data = e.data;
|
||||||
@ -3881,7 +3889,8 @@ img[md5], img[md5] + img {\
|
|||||||
}\
|
}\
|
||||||
.filtered {\
|
.filtered {\
|
||||||
text-decoration: line-through;\
|
text-decoration: line-through;\
|
||||||
}'
|
}\
|
||||||
|
'
|
||||||
};
|
};
|
||||||
|
|
||||||
Main.init();
|
Main.init();
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
master
|
master
|
||||||
|
- aeosynth
|
||||||
|
prevent post form flicker
|
||||||
|
|
||||||
2.25.3
|
2.25.3
|
||||||
- Mayhem
|
- Mayhem
|
||||||
|
|||||||
@ -862,7 +862,6 @@ nav =
|
|||||||
qr =
|
qr =
|
||||||
init: ->
|
init: ->
|
||||||
return unless $.id 'recaptcha_challenge_field_holder'
|
return unless $.id 'recaptcha_challenge_field_holder'
|
||||||
$('form[name=post]').hidden = true
|
|
||||||
h1 = $.el 'h1'
|
h1 = $.el 'h1'
|
||||||
innerHTML: '<a href=javascript:;>Open the Quick Reply</a>'
|
innerHTML: '<a href=javascript:;>Open the Quick Reply</a>'
|
||||||
$.on $('a', h1), 'click', qr.open
|
$.on $('a', h1), 'click', qr.open
|
||||||
@ -2711,6 +2710,10 @@ Main =
|
|||||||
if conf['Indicate Cross-thread Quotes']
|
if conf['Indicate Cross-thread Quotes']
|
||||||
quoteDR.init()
|
quoteDR.init()
|
||||||
|
|
||||||
|
if conf['Quick Reply']
|
||||||
|
Main.css += 'form[name=post] { display: none; }'
|
||||||
|
|
||||||
|
Main.addStyle()
|
||||||
|
|
||||||
$.ready Main.ready
|
$.ready Main.ready
|
||||||
|
|
||||||
@ -2721,7 +2724,6 @@ Main =
|
|||||||
if not $.id 'navtopr'
|
if not $.id 'navtopr'
|
||||||
return
|
return
|
||||||
$.addClass d.body, engine
|
$.addClass d.body, engine
|
||||||
$.addStyle Main.css
|
|
||||||
threading.init()
|
threading.init()
|
||||||
Favicon.init()
|
Favicon.init()
|
||||||
|
|
||||||
@ -2778,6 +2780,13 @@ Main =
|
|||||||
alert err
|
alert err
|
||||||
$.on form, 'DOMNodeInserted', Main.node
|
$.on form, 'DOMNodeInserted', Main.node
|
||||||
|
|
||||||
|
addStyle: ->
|
||||||
|
$.off d, 'DOMNodeInserted', Main.addStyle
|
||||||
|
if d.head
|
||||||
|
$.addStyle Main.css
|
||||||
|
else # XXX fox
|
||||||
|
$.on d, 'DOMNodeInserted', Main.addStyle
|
||||||
|
|
||||||
message: (e) ->
|
message: (e) ->
|
||||||
{data} = e
|
{data} = e
|
||||||
{version} = data
|
{version} = data
|
||||||
@ -3122,6 +3131,7 @@ img[md5], img[md5] + img {
|
|||||||
}
|
}
|
||||||
.filtered {
|
.filtered {
|
||||||
text-decoration: line-through;
|
text-decoration: line-through;
|
||||||
}'
|
}
|
||||||
|
'
|
||||||
|
|
||||||
Main.init()
|
Main.init()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user