includes/clientside/tinymce/tiny_mce_popup.js
changeset 476 f26a69c40431
parent 459 31c23016ab62
child 543 dffcbfbc4e59
--- a/includes/clientside/tinymce/tiny_mce_popup.js	Thu Mar 06 20:45:46 2008 -0500
+++ b/includes/clientside/tinymce/tiny_mce_popup.js	Thu Mar 06 20:47:11 2008 -0500
@@ -97,8 +97,14 @@
 	requireLangPack : function() {
 		var u = this.getWindowArg('plugin_url') || this.getWindowArg('theme_url');
 
-		if (u && this.editor.settings.language)
-			document.write('<script type="text/javascript" src="' + u + '/langs/' + this.editor.settings.language + '_dlg.js' + '"></script>');
+		if (u && this.editor.settings.language) {
+			u += '/langs/' + this.editor.settings.language + '_dlg.js';
+
+			if (!tinymce.ScriptLoader.isDone(u)) {
+				document.write('<script type="text/javascript" src="' + u + '"></script>');
+				tinymce.ScriptLoader.markDone(u);
+			}
+		}
 	},
 
 	pickColor : function(e, element_id) {