mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Fix insert, gallery, sizing, type queries, errors, thumbs, type fallback. Props andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@7172 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -20,7 +20,7 @@ function fileQueued(fileObj) {
|
||||
jQuery('#media-items').append('<div id="media-item-' + fileObj.id + '" class="media-item child-of-' + post_id + '"><div class="filename original">' + fileObj.name + '</div><div class="progress"><div class="bar"></div></div></div>');
|
||||
|
||||
// Disable the submit button
|
||||
jQuery('#insert-media').attr('disabled', 'disabled');
|
||||
jQuery('#insert-gallery').attr('disabled', 'disabled');
|
||||
}
|
||||
|
||||
function uploadStart(fileObj) { return true; }
|
||||
@@ -107,7 +107,7 @@ function uploadSuccess(fileObj, serverData) {
|
||||
function uploadComplete(fileObj) {
|
||||
// If no more uploads queued, enable the submit button
|
||||
if ( swfu.getStats().files_queued == 0 )
|
||||
jQuery('#insert-media').attr('disabled', '');
|
||||
jQuery('#insert-gallery').attr('disabled', '');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user