fixed image widget uses index.php for not found images

This commit is contained in:
Ralf Becker 2014-01-14 17:08:41 +00:00
parent 629bd6f2ee
commit cb8b279e94
2 changed files with 9 additions and 9 deletions

View File

@ -96,7 +96,7 @@
// Check whether _code is simply "1" -- if yes replace it accordingly // Check whether _code is simply "1" -- if yes replace it accordingly
if (_code === '1') if (_code === '1')
{ {
_code = 'widget.getInstanceManager().submit(); return true;'; _code = 'widget.getInstanceManager().submit(); return false;';
} }
// Check whether some pseudo-variables still reside inside of the code, // Check whether some pseudo-variables still reside inside of the code,

View File

@ -106,7 +106,7 @@ var et2_image = et2_baseWidget.extend([et2_IDetachedDOM],
var manager = this.getArrayMgr("content"); var manager = this.getArrayMgr("content");
if(manager) { if(manager) {
var src = manager.getEntry(_attrs["src"]); var src = manager.getEntry(_attrs["src"]);
if (typeof src != "undefined") if (typeof src != "undefined" && src !== null)
{ {
if(typeof src == "object") if(typeof src == "object")
{ {