From 4a92be81b31c634c5a695c9100ba9b4c981302ab Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Tue, 8 Feb 2011 12:22:44 +0200 Subject: [PATCH] Task #2766 - Fixing some javascript errors. --- .../fckeditor/editor/plugins/customizations/fckplugin_load.js | 1 + .../editor/plugins/customizations/fckplugin_load_compressed.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin_load.js b/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin_load.js index 51c3afce0b..3e80c61fe5 100755 --- a/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin_load.js +++ b/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin_load.js @@ -35,6 +35,7 @@ FCKPlugin.prototype.Load = function() case 'tablecommands': case 'ImageManager': case 'prompt': + case 'tableoneclick': // In this case we have to clear the list of available languages. this.AvailableLangs = null ; this.AvailableLangs = new Array() ; diff --git a/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin_load_compressed.js b/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin_load_compressed.js index dd3c846dcb..d9d1a88273 100755 --- a/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin_load_compressed.js +++ b/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin_load_compressed.js @@ -1 +1 @@ -FCKPlugin.prototype.Load=function(){switch (this.Name){case 'dragresizetable':case 'tablecommands':case 'ImageManager':case 'prompt':this.AvailableLangs=null;this.AvailableLangs=[];break;case 'asciimath':case 'asciisvg':case 'customizations':case 'audio':case 'fckEmbedMovies':case 'flvPlayer':case 'youtube':case 'googlemaps':case 'mimetex':case 'wikilink':case 'imgmap':break;default:LoadScript(this.Path+'lang/en.js');};if (this.AvailableLangs.length>0){var A;if (this.AvailableLangs.IndexOf(FCKLanguageManager.ActiveLanguage.Code)>=0) A=FCKLanguageManager.ActiveLanguage.Code;else A=this.AvailableLangs[0];LoadScript(this.Path+'lang/'+A+'.js');};var B;switch (this.Name){case 'asciimath':case 'asciisvg':case 'audio':case 'autogrow':case 'customizations':case 'dragresizetable':case 'fckEmbedMovies':case 'flvPlayer':case 'googlemaps':case 'ImageManager':case 'imgmap':case 'mimetex':case 'prompt':case 'tablecommands':case 'wikilink':case 'youtube':B=(window.document.location.toString().indexOf('fckeditor.original.html')!=-1)?'fckplugin.js':'fckplugin_compressed.js';break;default:B='fckplugin.js';};LoadScript(this.Path+B);}; +FCKPlugin.prototype.Load=function(){switch (this.Name){case 'dragresizetable':case 'tablecommands':case 'ImageManager':case 'prompt':case 'tableoneclick':this.AvailableLangs=null;this.AvailableLangs=[];break;case 'asciimath':case 'asciisvg':case 'customizations':case 'audio':case 'fckEmbedMovies':case 'flvPlayer':case 'youtube':case 'googlemaps':case 'mimetex':case 'wikilink':case 'imgmap':break;default:LoadScript(this.Path+'lang/en.js');};if (this.AvailableLangs.length>0){var A;if (this.AvailableLangs.IndexOf(FCKLanguageManager.ActiveLanguage.Code)>=0) A=FCKLanguageManager.ActiveLanguage.Code;else A=this.AvailableLangs[0];LoadScript(this.Path+'lang/'+A+'.js');};var B;switch (this.Name){case 'asciimath':case 'asciisvg':case 'audio':case 'autogrow':case 'customizations':case 'dragresizetable':case 'fckEmbedMovies':case 'flvPlayer':case 'googlemaps':case 'ImageManager':case 'imgmap':case 'mimetex':case 'prompt':case 'tablecommands':case 'wikilink':case 'youtube':B=(window.document.location.toString().indexOf('fckeditor.original.html')!=-1)?'fckplugin.js':'fckplugin_compressed.js';break;default:B='fckplugin.js';};LoadScript(this.Path+B);};