changeset 3043:fafaa6590b80

fix gui editor insertion of .jpeg images (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 19 Feb 2008 22:19:09 +0100
parents 353739af70fa
children bf99a66453d3
files wiki/htdocs/applets/moinFCKplugins/moinimage/fck_image.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wiki/htdocs/applets/moinFCKplugins/moinimage/fck_image.js	Tue Feb 19 22:06:50 2008 +0100
+++ b/wiki/htdocs/applets/moinFCKplugins/moinimage/fck_image.js	Tue Feb 19 22:19:09 2008 +0100
@@ -134,7 +134,7 @@
   {
     // Check for valid image Url
     var sEnd = sSrc.substring(sSrc.length-4, sSrc.length).toLowerCase();
-    if (!(sEnd==".gif" || sEnd=='.png' || sEnd=='.jpg' || sEnd=='.jpeg'))
+    if (!(sEnd==".gif" || sEnd=='.png' || sEnd=='.jpg' || sSrc.substring(sSrc.length-5, sSrc.length).toLowerCase()=='.jpeg'))
     {
       alert("Image Url must end with .gif, .png, .jpg or .jpeg"); //XXX i18n!
       return false;