Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Fixed 'Set image' button from image input not working properly https://github.com/givanz/VvvebJs/issues/368

givanzc7c39be886a9
diff --git a/public/js/vvvebjs/plugin-media.js b/public/js/vvvebjs/plugin-media.js
index e0283e4..fbefb91 100755
--- a/public/js/vvvebjs/plugin-media.js
+++ b/public/js/vvvebjs/plugin-media.js
@@ -55,7 +55,7 @@ ImageInput = { ...ImageInput, ...{
//Vvveb.MediaModal.mediaPath = window.mediaPath;
}
- Vvveb.MediaModal.open(this);
+ Vvveb.MediaModal.open(this.closest(["data-target-input"]));
},
init: function(data) {