diff --git a/source/js/mgr/imageplus.panel.input.js b/source/js/mgr/imageplus.panel.input.js index 50e055b..30e3588 100644 --- a/source/js/mgr/imageplus.panel.input.js +++ b/source/js/mgr/imageplus.panel.input.js @@ -359,7 +359,8 @@ Ext.extend(ImagePlus.panel.input, MODx.Panel, { return false; } })(this); - img.src = baseUrl + this.image.sourceImg.src; + srcTrim = this.image.sourceImg.src.replace(new RegExp('^(' + baseUrl + ')+'), ''); + img.src = baseUrl + srcTrim; }, // Update the component display on state change updateDisplay: function () {