qr - put resto before table
This commit is contained in:
parent
a7213c5c6c
commit
caccdf34fb
@ -1285,7 +1285,7 @@
|
|||||||
return window.setTimeout(qr.cooldown, 1000);
|
return window.setTimeout(qr.cooldown, 1000);
|
||||||
},
|
},
|
||||||
dialog: function(link) {
|
dialog: function(link) {
|
||||||
var clone, dialog, el, html, input, script, xpath, _i, _len, _ref;
|
var clone, dialog, el, html, resto, script, xpath, _i, _len, _ref;
|
||||||
html = "<div class=move>Quick Reply <input type=checkbox title=autohide> <a name=close title=close>X</a></div>";
|
html = "<div class=move>Quick Reply <input type=checkbox title=autohide> <a name=close title=close>X</a></div>";
|
||||||
dialog = ui.dialog('qr', {
|
dialog = ui.dialog('qr', {
|
||||||
top: '0px',
|
top: '0px',
|
||||||
@ -1304,12 +1304,12 @@
|
|||||||
$.bind($('input[name=recaptcha_response_field]', clone), 'keydown', recaptchaListener);
|
$.bind($('input[name=recaptcha_response_field]', clone), 'keydown', recaptchaListener);
|
||||||
if (!g.REPLY) {
|
if (!g.REPLY) {
|
||||||
xpath = 'preceding::span[@class="postername"][1]/preceding::input[1]';
|
xpath = 'preceding::span[@class="postername"][1]/preceding::input[1]';
|
||||||
input = $.el('input', {
|
resto = $.el('input', {
|
||||||
type: 'hidden',
|
type: 'hidden',
|
||||||
name: 'resto',
|
name: 'resto',
|
||||||
value: $.x(xpath, link).name
|
value: $.x(xpath, link).name
|
||||||
});
|
});
|
||||||
$.append(clone, input);
|
$.before(clone.lastChild, resto);
|
||||||
}
|
}
|
||||||
$.append(dialog, clone);
|
$.append(dialog, clone);
|
||||||
$.append(d.body, dialog);
|
$.append(d.body, dialog);
|
||||||
|
|||||||
@ -1010,11 +1010,11 @@ qr =
|
|||||||
if not g.REPLY
|
if not g.REPLY
|
||||||
#figure out which thread we're replying to
|
#figure out which thread we're replying to
|
||||||
xpath = 'preceding::span[@class="postername"][1]/preceding::input[1]'
|
xpath = 'preceding::span[@class="postername"][1]/preceding::input[1]'
|
||||||
input = $.el 'input',
|
resto = $.el 'input',
|
||||||
type: 'hidden'
|
type: 'hidden'
|
||||||
name: 'resto'
|
name: 'resto'
|
||||||
value: $.x(xpath, link).name
|
value: $.x(xpath, link).name
|
||||||
$.append clone, input
|
$.before clone.lastChild, resto
|
||||||
|
|
||||||
$.append dialog, clone
|
$.append dialog, clone
|
||||||
$.append d.body, dialog
|
$.append d.body, dialog
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user