1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-17 04:04:13 +02:00

Minor update in InputfieldImage JS to make jQuery migrator happy

This commit is contained in:
Ryan Cramer
2020-07-10 12:47:41 -04:00
parent 0cc2bf4b79
commit cd44d8b7f2
2 changed files with 2 additions and 2 deletions

View File

@@ -1981,7 +1981,7 @@ function InputfieldImage($) {
function updateProgress(evt) {
if(typeof evt != "undefined") {
if(!evt.lengthComputable) return;
$progressBar.attr("value", parseInt((evt.loaded / evt.total) * 100));
$progressBar.val(parseInt((evt.loaded / evt.total) * 100));
}
$('body').addClass('pw-uploading');
$spinner.css('display', 'block');

File diff suppressed because one or more lines are too long