PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
← All changes | assets/js/options.js +1 -13 2.3.2 → trunk View file →
@@ -640,21 +640,9 @@
640 640 * @param {number} remaining Number of media still waiting to be processed.
641 641 * @return {object} Object with `processed`, `total` and `percent` keys.
642 642 */
643 643 getProgress: function ( total, remaining ) {
644 - var effectiveTotal, processed;
645 -
646 - total = Math.max( parseInt( total, 10 ) || 0, 0 );
647 - remaining = Math.max( parseInt( remaining, 10 ) || 0, 0 );
648 -
649 - effectiveTotal = Math.max( total, remaining );
650 - processed = effectiveTotal - remaining;
651 -
652 - return {
653 - processed: processed,
654 - total: effectiveTotal,
655 - percent: effectiveTotal > 0 ? Math.floor( processed / effectiveTotal * 100 ) : 0
656 - };
644 + return w.imagify.getProgress( total, remaining );
657 645 },
658 646
659 647 /**
660 648 * Listen for the custom event "imagifybeat-tick" on $(document).