Changeset 27243
- Timestamp:
- 02/24/2014 08:48:02 PM (11 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/plupload/handlers.js
r27239 r27243 23 23 24 24 // Disable submit 25 jQuery('#insert-gallery , #insert-playlist').prop('disabled', true);25 jQuery('#insert-gallery').prop('disabled', true); 26 26 } 27 27 … … 48 48 if ( max > hundredmb && file.size > hundredmb ) { 49 49 setTimeout(function(){ 50 50 51 51 if ( file.status < 3 && file.loaded === 0 ) { // not uploading 52 52 wpFileError(file, pluploadL10n.big_upload_failed.replace('%1$s', '<a class="uploader-html" href="#">').replace('%2$s', '</a>')); … … 65 65 if ( items.length == 1 ) { 66 66 items.addClass('open').find('.slidetoggle').show(); 67 jQuery('.insert-gallery , .insert-playlist').hide();67 jQuery('.insert-gallery').hide(); 68 68 } else if ( items.length > 1 ) { 69 69 items.removeClass('open'); 70 70 // Only show Gallery/Playlist buttons when there are at least two files. 71 jQuery('.insert-gallery , .insert-playlist').show();71 jQuery('.insert-gallery').show(); 72 72 } 73 73 … … 172 172 var type, 173 173 item = jQuery('#media-item-' + fileObj.id); 174 174 175 175 if ( type = jQuery('#type-of-' + fileObj.id).val() ) 176 176 jQuery('#' + type + '-counter').text(jQuery('#' + type + '-counter').text()-0+1); … … 258 258 259 259 function uploadComplete() { 260 jQuery('#insert-gallery , #insert-playlist').prop('disabled', false);260 jQuery('#insert-gallery').prop('disabled', false); 261 261 } 262 262 -
trunk/src/wp-includes/js/swfupload/handlers.js
r27239 r27243 33 33 try { 34 34 if ( typeof topWin.tb_remove != 'undefined' ) 35 topWin.jQuery('#TB_overlay').unbind('click', topWin.tb_remove); 35 topWin.jQuery('#TB_overlay').unbind('click', topWin.tb_remove); 36 36 } catch(e){} 37 37 … … 213 213 jQuery('.savebutton').hide(); 214 214 215 // Only show Gallery /Playlistbuttons when there are at least two files.215 // Only show Gallery buttons when there are at least two files. 216 216 if ( items.length > 1 ) { 217 jQuery('.insert-gallery , .insert-playlist').show();217 jQuery('.insert-gallery').show(); 218 218 } else { 219 jQuery('.insert-gallery , .insert-playlist').hide();219 jQuery('.insert-gallery').hide(); 220 220 } 221 221 } … … 240 240 if ( swfu.getStats().files_queued == 0 ) { 241 241 jQuery('#cancel-upload').prop('disabled', true); 242 jQuery('#insert-gallery , #insert-playlist').prop('disabled', false);242 jQuery('#insert-gallery').prop('disabled', false); 243 243 } 244 244 }
Note: See TracChangeset
for help on using the changeset viewer.