Plugin Directory

Changeset 847860


Ignore:
Timestamp:
01/29/2014 07:16:34 PM (12 years ago)
Author:
mihaivalentin
Message:

0.29 - Fixed a progress bar bug that was not reporting the progress correctly in some conditions after release 0.28

Location:
image-pro-wordpress-image-media-management-and-resizing-done-right/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • image-pro-wordpress-image-media-management-and-resizing-done-right/trunk/imagepro.php

    r847712 r847860  
    55Description: WordPress media & images management done right!
    66Author: Mihai Valentin
    7 Version: 0.28
     7Version: 0.29
    88Author URI: http://www.mihaivalentin.com/
    99*/
  • image-pro-wordpress-image-media-management-and-resizing-done-right/trunk/readme.txt

    r847712 r847860  
    55Requires at least: 3.0.0
    66Tested up to: 3.8
    7 Stable tag: 0.28
     7Stable tag: 0.29
    88
    99Upload, resize, add, change images instantly. Manage your media collection with ease and use it for any post or page. A new way of managing content!
     
    7070
    7171== Changelog ==
     72
     73= 0.29 =
     74* Fixed a progress bar bug that was not reporting the progress correctly in some conditions after release 0.28
    7275
    7376= 0.28 =
  • image-pro-wordpress-image-media-management-and-resizing-done-right/trunk/src/js/dragdropupload.js

    r847712 r847860  
    177177                if ('function' === typeof that.onProgress) {
    178178                    var currentFileProgress = Math.round((e.loaded / e.total) * 100);
     179                    /* sometimes, e.total is zero, so we get infinite */
     180                    if (!isFinite(currentFileProgress)) {
     181                        /* though we may not get a new progress event, we set it to 3% falsy,
     182                        so at least a small part of the progress is visible */
     183                        currentFileProgress = 5;
     184                    }
    179185                    var totalProgress = Math.round((i / files.length) * 100) + Math.round(currentFileProgress * (1 / files.length));
    180186                    that.onProgress(e, file, i, currentFileProgress, totalProgress);
  • image-pro-wordpress-image-media-management-and-resizing-done-right/trunk/src/js/folder.js

    r847712 r847860  
    274274        },
    275275        onCompleted: function(e, files, filesSucceeded, filesFailed) {
     276            /* the progress events before may not have succesfully reach 100%, so we do it here */
     277            $('#vimg-progress').show().width('100%');
    276278            /* hide progress, but a bit later to allow the animation to complete */
    277279            setTimeout(function() {
Note: See TracChangeset for help on using the changeset viewer.