We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e2c068 commit 2fcb017Copy full SHA for 2fcb017
1 file changed
media/quantumuploadimage/js/field.js
@@ -1,6 +1,9 @@
1
window.QuantumuploadimageInsertFieldValue = function (value, fieldid) {
2
let input = document.querySelector('#' + fieldid),
3
wrap = input.closest('.quantumuploadimage-field');
4
+ if(value.slice(0, 1) === '/') {
5
+ value = value.slice(1);
6
+ }
7
input.value = value;
8
updateImage(wrap, value);
9
};
0 commit comments