name email text
This commit is contained in:
parent
9e21a8f55d
commit
b2a5dd9087
@ -1371,7 +1371,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
dialog: function(text, tid) {
|
dialog: function(text, tid) {
|
||||||
var l, qr, ta;
|
var c, l, m, qr, ta;
|
||||||
if (text == null) {
|
if (text == null) {
|
||||||
text = '';
|
text = '';
|
||||||
}
|
}
|
||||||
@ -1399,11 +1399,7 @@
|
|||||||
<a class=error></a>
|
<a class=error></a>
|
||||||
"
|
"
|
||||||
#XXX use dom methods to set values instead of injecting raw user input into your html -_-;
|
#XXX use dom methods to set values instead of injecting raw user input into your html -_-;
|
||||||
c = d.cookie
|
|
||||||
$('[name=name]', qr).value = if m = c.match(/4chan_name=([^;]+)/) then decodeURIComponent m[1] else ''
|
|
||||||
$('[name=email]', qr).value = if m = c.match(/4chan_email=([^;]+)/) then decodeURIComponent m[1] else ''
|
|
||||||
$('[name=pwd]', qr).value = if m = c.match(/4chan_pass=([^;]+)/) then decodeURIComponent m[1] else $('input[name=pwd]').value
|
$('[name=pwd]', qr).value = if m = c.match(/4chan_pass=([^;]+)/) then decodeURIComponent m[1] else $('input[name=pwd]').value
|
||||||
$('textarea', qr).value = text
|
|
||||||
$.bind $('[type=file]', qr), 'change', QR.change
|
$.bind $('[type=file]', qr), 'change', QR.change
|
||||||
$.bind $('#attach', qr), 'click', QR.attach
|
$.bind $('#attach', qr), 'click', QR.attach
|
||||||
*/
|
*/
|
||||||
@ -1411,6 +1407,10 @@
|
|||||||
top: '0',
|
top: '0',
|
||||||
left: '0'
|
left: '0'
|
||||||
}, " <a class=close>X</a> <input type=checkbox id=autohide title=autohide> <div class=move> <span class=click> <button>File</button> <span class=input><input form=qr_form name=sub placeholder=Subject><span>Subject</span></span> <span class=input><input form=qr_form name=name placeholder=Name><span>Name</span></span> <span class=input><input form=qr_form name=email placeholder=Email><span>Email</span></span> </span> </div> <form enctype=multipart/form-data method=post action=http://sys.4chan.org/" + g.BOARD + "/post target=iframe id=qr_form> <input type=hidden name=resto value=" + tid + "> <input type=hidden name=mode value=regist> <input type=hidden name=recaptcha_challenge_field id=challenge> <input type=hidden name=recaptcha_response_field id=response> <textarea name=com></textarea> <div><img></div> <div id=captcha> <span id=cl>120 Captchas</span> <input id=recaptcha_response_field> </div> <div> <button>Submit</button> <input type=checkbox id=autopost title=autopost> <a class=error>Derp</span> </div> </form> ");
|
}, " <a class=close>X</a> <input type=checkbox id=autohide title=autohide> <div class=move> <span class=click> <button>File</button> <span class=input><input form=qr_form name=sub placeholder=Subject><span>Subject</span></span> <span class=input><input form=qr_form name=name placeholder=Name><span>Name</span></span> <span class=input><input form=qr_form name=email placeholder=Email><span>Email</span></span> </span> </div> <form enctype=multipart/form-data method=post action=http://sys.4chan.org/" + g.BOARD + "/post target=iframe id=qr_form> <input type=hidden name=resto value=" + tid + "> <input type=hidden name=mode value=regist> <input type=hidden name=recaptcha_challenge_field id=challenge> <input type=hidden name=recaptcha_response_field id=response> <textarea name=com></textarea> <div><img></div> <div id=captcha> <span id=cl>120 Captchas</span> <input id=recaptcha_response_field> </div> <div> <button>Submit</button> <input type=checkbox id=autopost title=autopost> <a class=error>Derp</span> </div> </form> ");
|
||||||
|
c = d.cookie;
|
||||||
|
$('[name=name]', qr).value = (m = c.match(/4chan_name=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
|
||||||
|
$('[name=email]', qr).value = (m = c.match(/4chan_email=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
|
||||||
|
$('textarea', qr).value = text;
|
||||||
if (conf['Cooldown']) {
|
if (conf['Cooldown']) {
|
||||||
QR.cooldown();
|
QR.cooldown();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1088,11 +1088,7 @@ QR =
|
|||||||
<a class=error></a>
|
<a class=error></a>
|
||||||
"
|
"
|
||||||
#XXX use dom methods to set values instead of injecting raw user input into your html -_-;
|
#XXX use dom methods to set values instead of injecting raw user input into your html -_-;
|
||||||
c = d.cookie
|
|
||||||
$('[name=name]', qr).value = if m = c.match(/4chan_name=([^;]+)/) then decodeURIComponent m[1] else ''
|
|
||||||
$('[name=email]', qr).value = if m = c.match(/4chan_email=([^;]+)/) then decodeURIComponent m[1] else ''
|
|
||||||
$('[name=pwd]', qr).value = if m = c.match(/4chan_pass=([^;]+)/) then decodeURIComponent m[1] else $('input[name=pwd]').value
|
$('[name=pwd]', qr).value = if m = c.match(/4chan_pass=([^;]+)/) then decodeURIComponent m[1] else $('input[name=pwd]').value
|
||||||
$('textarea', qr).value = text
|
|
||||||
$.bind $('[type=file]', qr), 'change', QR.change
|
$.bind $('[type=file]', qr), 'change', QR.change
|
||||||
$.bind $('#attach', qr), 'click', QR.attach
|
$.bind $('#attach', qr), 'click', QR.attach
|
||||||
###
|
###
|
||||||
@ -1125,6 +1121,10 @@ QR =
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
"
|
"
|
||||||
|
c = d.cookie
|
||||||
|
$('[name=name]', qr).value = if m = c.match(/4chan_name=([^;]+)/) then decodeURIComponent m[1] else ''
|
||||||
|
$('[name=email]', qr).value = if m = c.match(/4chan_email=([^;]+)/) then decodeURIComponent m[1] else ''
|
||||||
|
$('textarea', qr).value = text
|
||||||
QR.cooldown() if conf['Cooldown']
|
QR.cooldown() if conf['Cooldown']
|
||||||
$.bind $('.close', qr), 'click', QR.close
|
$.bind $('.close', qr), 'click', QR.close
|
||||||
$.bind $('.click', qr), 'mousedown', (e) -> e.stopPropagation()
|
$.bind $('.click', qr), 'mousedown', (e) -> e.stopPropagation()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user