Bläddra i källkod

Bug #2867 - The online editor: Minor logical and visual fixes for Image manager plugin.

Ivan Tcholakov 15 år sedan
förälder
incheckning
45e7afcefb

BIN
main/inc/lib/fckeditor/editor/plugins/ImageManager/assets/images/button_refresh.gif


+ 4 - 0
main/inc/lib/fckeditor/editor/plugins/ImageManager/assets/manager.js

@@ -126,6 +126,10 @@
 			if (id == "f_url")
 			{
 				str = el.value.toString().Trim();
+				if ( !str )
+				{
+					return ; // No image has been selected, do nothing.
+				}
 				if ( str.indexOf('://') < 0 )
 				{
 					if ( !isSemiAbsoluteUrl( str ) ) // A semi-absolute URL could be entered manually.