wp/wp-includes/js/swfupload/handlers.js
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
--- a/wp/wp-includes/js/swfupload/handlers.js	Mon Jun 08 16:11:51 2015 +0000
+++ b/wp/wp-includes/js/swfupload/handlers.js	Tue Jun 09 03:35:32 2015 +0200
@@ -32,7 +32,7 @@
 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 @@
 	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) {