Update version 0.0.11

Update version 0.0.11
This commit is contained in:
dmzx
2015-03-27 00:26:11 +01:00
parent 71335db0f8
commit 088308248b
12 changed files with 40 additions and 11 deletions

View File

@@ -93,6 +93,25 @@
var text_name = 'message';
var mChatFocusFix = true;
<!-- ENDIF -->
function insert_quote(user,text)
{
var quote = decodeURIComponent(text.replace(/\+/g, " "));
quote = quote.replace(/&lt;/g, "<");
quote = quote.replace(/&gt;/g, ">");
quote = quote.replace(/&#58;/g, ':');
quote = quote.replace(/&#46;/g, '.');
quote = quote.replace(/&amp;/g, '&');
quote = quote.replace(/&quot;/g, '"');
var username = decodeURIComponent(user.replace(/\+/g, " "));
username = username.replace(/&lt;/g, "<");
username = username.replace(/&gt;/g, ">");
username = username.replace(/&#58;/g, ':');
username = username.replace(/&#46;/g, '.');
username = username.replace(/&amp;/g, '&');
username = username.replace(/&quot;/g, '"');
document.getElementById('mChatMessage').value += '[quote="' + username + '"]' + ' ' + quote + '[/quote]';
document.getElementById('mChatMessage').focus();
}
// ]]>
</script>
<!-- IF not MCHAT_ARCHIVE_MODE -->