Dotclear

Changeset 1202:a30c7f28090c for admin/js


Ignore:
Timestamp:
07/17/13 06:41:44 (11 years ago)
Author:
sogox <thibault.cordier@…>
Branch:
default
Message:

Disabling start button if no file are pending
Enabling start button if new file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/jsUpload/jquery.fileupload-ui.js

    r1190 r1202  
    104104                    ); 
    105105                }); 
     106            /* 
     107             *  Recherche des fichers restants à uploader 
     108             *  Activation du bouton si un fichier trouvé 
     109             */ 
     110             var filesList = that.options.filesContainer; 
     111             if(filesList.find('.start').size() > 0) { 
     112                var fileUploadButtonBar = that.element.find('.fileupload-buttonbar'); 
     113                fileUploadButtonBar.find('.start').prop('disabled', false); 
     114                fileUploadButtonBar.find('.start').removeClass('disabled'); 
     115             } 
     116             /* 
     117             * 
     118             */ 
    106119            }, 
    107120            // Callback for the start of each file upload request: 
     
    300313                    } 
    301314                ); 
     315            /* 
     316             *  Recherche des fichers restants à uploader 
     317             *  Désactivation du bouton si plus rien 
     318             */ 
     319             var filesList = that.options.filesContainer; 
     320             if(filesList.find('.start').size() == 0) { 
     321                var fileUploadButtonBar = that.element.find('.fileupload-buttonbar'); 
     322                fileUploadButtonBar.find('.start').prop('disabled', true); 
     323                fileUploadButtonBar.find('.start').addClass('disabled'); 
     324             } 
     325            /* 
     326             * 
     327             */ 
    302328            }, 
    303329            processstart: function () { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map