
01-08-2012, 05:03 PM
|
 |
|
|
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by michal72
Please try this:
Relapace in all 8 WR Media templates:
PHP Code:
.prepare_submit(this.inputname.value, {vb:raw vboptions.postminchars})
with
PHP Code:
.prepare_submit(0, {vb:raw vboptions.postminchars})
In media_ajax_comment.js replace:
PHP Code:
function post_comment(mid) { if (!fetch_object('vB_Editor_QR_textarea').value) { return false; }
fetch_object('commentsubmit').value = vbphrase['post_comment_wait']; fetch_object('commentsubmit').disabled = true;
YAHOO.util.Connect.asyncRequest("POST", "media_ajax.php?do=comment", { success: send_comment, failure: vBulletin_AJAX_Error_Handler, timeout: 15000 }, SESSIONURL + 'securitytoken=' + SECURITYTOKEN + "&mid=" + mid + "&message=" + PHP.urlencode(fetch_object('vB_Editor_QR_textarea').value));
return false; }
with
PHP Code:
function post_comment(mid) { var inptval=vB_Editor['vB_Editor_QR'].get_editor_contents(); if(!vB_Editor['vB_Editor_QR'].prepare_submit(0, 0)) { return false; } fetch_object('commentsubmit').value = vbphrase['post_comment_wait']; fetch_object('commentsubmit').disabled = true;
YAHOO.util.Connect.asyncRequest("POST", "media_ajax.php?do=comment", { success: send_comment, failure: vBulletin_AJAX_Error_Handler, timeout: 15000 }, SESSIONURL + 'securitytoken=' + SECURITYTOKEN + "&mid=" + mid + "&message=" + PHP.urlencode(inptval));
return false; }
BTW
Jaxel very nice mod!
|
I only find the first code in one template.!?
8WR_media_submit (should there be more.?)
|