From 5a7c825044c90021500fe8f3d7a2aedfc06c62af Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Thu, 6 Jan 2011 17:12:26 +0200 Subject: [PATCH] Feature #2132 - "asciisvg" plug-in: Corrections to the previous transaction. --- .../fckeditor/editor/plugins/asciisvg/ASCIIsvgPI.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main/inc/lib/fckeditor/editor/plugins/asciisvg/ASCIIsvgPI.js b/main/inc/lib/fckeditor/editor/plugins/asciisvg/ASCIIsvgPI.js index 445a87603a..97b7b06228 100644 --- a/main/inc/lib/fckeditor/editor/plugins/asciisvg/ASCIIsvgPI.js +++ b/main/inc/lib/fckeditor/editor/plugins/asciisvg/ASCIIsvgPI.js @@ -163,21 +163,21 @@ function isSVGavailable() { // Added by Ivan Tcholakov, 06-JAN-2011. if (navigator.appName.slice(0, 8) == "Netscape") { // Gecko, Chrome, Safari if (window['SVGElement']) { - return 1; - } else { return null; + } else { + return 1; } } else if (navigator.appName.slice(0, 9) == "Microsoft") { // IE try { var oSVG = eval("new ActiveXObject('Adobe.SVGCtl.3');"); - return 1; - } catch (ex) { return null; + } catch (ex) { + return 1; } } else if (navigator.appName.slice(0, 5) == "Opera") { // Opera 9.50b1 or higher - return 1; + return null; } - return null; + return 1; // }