]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/swfupload/handlers.js
WordPress 3.9
[autoinstalls/wordpress.git] / wp-includes / js / swfupload / handlers.js
index f38172c38d8b4c4290ae62eb639c4f9e07f10f42..e27bd371f34d4da506ba790ff97e070ae1632ef9 100644 (file)
@@ -32,7 +32,7 @@ function fileQueued(fileObj) {
 function uploadStart(fileObj) {
        try {
                if ( typeof topWin.tb_remove != 'undefined' )
-                       topWin.jQuery('#TB_overlay').unbind('click', topWin.tb_remove); 
+                       topWin.jQuery('#TB_overlay').unbind('click', topWin.tb_remove);
        } catch(e){}
 
        return true;
@@ -212,11 +212,12 @@ function updateMediaForm() {
        else
                jQuery('.savebutton').hide();
 
-       // Only show Gallery button when there are at least two files.
-       if ( items.length > 1 )
+       // Only show Gallery buttons when there are at least two files.
+       if ( items.length > 1 ) {
                jQuery('.insert-gallery').show();
-       else
+       } else {
                jQuery('.insert-gallery').hide();
+       }
 }
 
 function uploadSuccess(fileObj, serverData) {