X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/cc7b1505cd9fafd87c3672f669e13e98b0c544f7..refs/tags/wordpress-2.3.3:/wp-includes/js/quicktags.js diff --git a/wp-includes/js/quicktags.js b/wp-includes/js/quicktags.js index be628e07..0837d84a 100644 --- a/wp-includes/js/quicktags.js +++ b/wp-includes/js/quicktags.js @@ -168,7 +168,7 @@ function edShowButton(button, i) { } function edShowLinks() { - var tempStr = ''; for (i = 0; i < edLinks.length; i++) { tempStr += ''; } @@ -205,7 +205,7 @@ function edCheckOpenTags(button) { else { return false; // tag not found } -} +} function edCloseAllTags() { var count = edOpenTags.length; @@ -248,7 +248,7 @@ function edSpell(myField) { } } if (word == '') { - word = prompt('Enter a word to look up:', ''); + word = prompt(quicktagsL10n.wordLookup, ''); } if (word !== null && /^\w[\w ]*$/.test(word)) { window.open('http://www.answers.com/' + escape(word)); @@ -260,8 +260,8 @@ function edToolbar() { for (i = 0; i < edButtons.length; i++) { edShowButton(edButtons[i], i); } - document.write(''); - document.write(''); + document.write(''); + document.write(''); // edShowLinks(); // disabled by default document.write(''); } @@ -366,7 +366,7 @@ function edInsertLink(myField, i, defaultValue) { defaultValue = 'http://'; } if (!edCheckOpenTags(i)) { - var URL = prompt('Enter the URL' ,defaultValue); + var URL = prompt(quicktagsL10n.enterURL, defaultValue); if (URL) { edButtons[i].tagStart = ''; edInsertTag(myField, i); @@ -378,11 +378,11 @@ function edInsertLink(myField, i, defaultValue) { } function edInsertImage(myField) { - var myValue = prompt('Enter the URL of the image', 'http://'); + var myValue = prompt(quicktagsL10n.enterImageURL, 'http://'); if (myValue) { myValue = '' + prompt('Enter a description of the image', '') 
+				+ ''; edInsertContent(myField, myValue); }