diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-06-11 18:17:08 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-06-11 18:17:08 -0400 |
commit | 1e726b4251ca21b2f14e10332ab3b7dede57db8e (patch) | |
tree | 45b8669f13fddf0cc82777ed6614b433295d1c48 /forum/skins/default/media/js/com.cnprog.post.js | |
parent | 6c74fb1c0a08bb475f2c61ec039140fca8457beb (diff) | |
download | askbot-1e726b4251ca21b2f14e10332ab3b7dede57db8e.tar.gz askbot-1e726b4251ca21b2f14e10332ab3b7dede57db8e.tar.bz2 askbot-1e726b4251ca21b2f14e10332ab3b7dede57db8e.zip |
added russian js translation, fixed url translations in javascript for Turkish, Spanish, Russian and German
Diffstat (limited to 'forum/skins/default/media/js/com.cnprog.post.js')
-rwxr-xr-x | forum/skins/default/media/js/com.cnprog.post.js | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/forum/skins/default/media/js/com.cnprog.post.js b/forum/skins/default/media/js/com.cnprog.post.js index 7c064acf..7cc14e67 100755 --- a/forum/skins/default/media/js/com.cnprog.post.js +++ b/forum/skins/default/media/js/com.cnprog.post.js @@ -489,10 +489,13 @@ function createComments(type) { if (canPostComments(id)) { if (jDiv.find("#" + formId).length === 0) { var form = '<form id="' + formId + '" class="post-comments"><div>'; - form += '<textarea name="comment" cols="60" rows="5" maxlength="300" onblur="'+ objectType +'Comments.updateTextCounter(this)" '; - form += 'onfocus="' + objectType + 'Comments.updateTextCounter(this)" onkeyup="'+ objectType +'Comments.updateTextCounter(this)"></textarea>'; + form += '<textarea name="comment" cols="60" rows="5" maxlength="300" onblur="' + + objectType +'Comments.updateTextCounter(this)" '; + form += 'onfocus="' + objectType + + 'Comments.updateTextCounter(this)" onkeyup="' + objectType + + 'Comments.updateTextCounter(this)"></textarea>'; form += '<input type="submit" value="' + - $.i18n._('add comment') + '" /><br><span class="text-counter"></span>'; + $.i18n._('add comment') + '" /><br><span class="text-counter"></span>'; form += '<span class="form-error"></span></div></form>'; jDiv.append(form); @@ -505,11 +508,13 @@ function createComments(type) { else { var divId = "comments-rep-needed-" + objectType + '-' + id; if (jDiv.find("#" + divId).length === 0) { - jDiv.append('<p id="' + divId + '" class="comment">' + - $.i18n._('to comment, need') + ' ' + - repNeededForComments + ' ' + $.i18n._('community karma points') + - '<a href="' + scriptUrl + $.i18n._('faq/') + '" class="comment-user">' + - $.i18n._('please see') + 'faq</a></span></p>'); + jDiv.append( + '<p id="' + divId + '" class="comment">' + + $.i18n._('to comment, need') + ' ' + + repNeededForComments + ' ' + $.i18n._('community karma points') + + '<a href="' + scriptUrl + $.i18n._('faq/') + '" class="comment-user">' + + $.i18n._('please see') + 'faq</a></span></p>' + ); } } }; @@ -540,8 +545,11 @@ function createComments(type) { var html = ''; var img = mediaUrl("media/images/close-small.png"); var imgHover = mediaUrl("media/images/close-small-hover.png"); - html += '<img class="delete-icon" onclick="' + objectType + 'Comments.deleteComment($(this), ' + post_id + ', \'' + delete_url + '\')" src="' + img; - html += '" onmouseover="$(this).attr(\'src\', \'' + imgHover + '\')" onmouseout="$(this).attr(\'src\', \'' + img; + html += '<img class="delete-icon" onclick="' + objectType + + 'Comments.deleteComment($(this), ' + post_id + ', \'' + + delete_url + '\')" src="' + img; + html += '" onmouseover="$(this).attr(\'src\', \'' + imgHover + + '\')" onmouseout="$(this).attr(\'src\', \'' + img; html += '\')" title="' + $.i18n._('delete this comment') + '" />'; return html; } |