I use standalone popup (with colorbox as suggested in readme.md). I run a problem where after I choose a file, my input field doesn't get updated. I tried adding console.log in function processSelectedFile() and it does log in my console.
function processSelectedFile(filePath, requestingField) {
console.log(requestingField);
$('#'+requestingField).val(filePath).trigger('change');
}
So I tried $('#'+requestingField).remove() to check and it works...
colorbox.css is in <head>jquery.colorbox-min.js is right before head closing </head>standalonepopup.js is right before body closing </body>
Hi,
I use standalone popup (with colorbox as suggested in readme.md). I run a problem where after I choose a file, my input field doesn't get updated. I tried adding
console.log
in functionprocessSelectedFile()
and it does log in my console.function processSelectedFile(filePath, requestingField) { console.log(requestingField); $('#'+requestingField).val(filePath).trigger('change'); }
So I tried
$('#'+requestingField).remove()
to check and it works...colorbox.css
is in<head>
jquery.colorbox-min.js
is right before head closing</head>
standalonepopup.js
is right before body closing</body>
any suggestion? thanks