Changeset 60031
- Timestamp:
- 03/17/2025 05:46:51 PM (5 weeks ago)
- Location:
- trunk/src/js/media/views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/views/frame/post.js
r47122 r60031 581 581 text: editing ? l10n.updateGallery : l10n.insertGallery, 582 582 priority: 80, 583 requires: { library: true },583 requires: { library: true, uploadingComplete: true }, 584 584 585 585 /** -
trunk/src/js/media/views/toolbar.js
r57987 r60031 144 144 145 145 var requires = button.options.requires, 146 disabled = false; 146 disabled = false, 147 modelsUploading = ! _.isEmpty( library.findWhere( { 'uploading': true } ) ); 147 148 148 149 // Prevent insertion of attachments if any of them are still uploading. … … 151 152 return attachment.get('uploading') === true; 152 153 }); 154 } 155 if ( requires.uploadingComplete && modelsUploading ) { 156 disabled = true; 153 157 } 154 158
Note: See TracChangeset
for help on using the changeset viewer.