wp/wp-admin/js/gallery.js
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
--- a/wp/wp-admin/js/gallery.js	Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-admin/js/gallery.js	Tue Dec 15 13:49:49 2020 +0100
@@ -15,7 +15,7 @@
 			distance: 2,
 			handle: 'div.filename',
 			stop: function() {
-				// When an update has occurred, adjust the order for each item
+				// When an update has occurred, adjust the order for each item.
 				var all = $('#media-items').sortable('toArray'), len = all.length;
 				$.each(all, function(i, id) {
 					var order = desc ? (len - i) : (1 + i);
@@ -71,7 +71,7 @@
 		$('img.pinkynail').toggle(true);
 	});
 
-	// initialize sortable
+	// Initialize sortable.
 	gallerySortableInit();
 	clearAll();
 
@@ -88,7 +88,7 @@
 	}
 });
 
-jQuery(window).unload( function () { window.tinymce = window.tinyMCE = window.wpgallery = null; } ); // Cleanup
+jQuery(window).unload( function () { window.tinymce = window.tinyMCE = window.wpgallery = null; } ); // Cleanup.
 
 /* gallery settings */
 window.tinymce = null;
@@ -122,7 +122,7 @@
 			document.domain = q.mce_rdomain;
 		}
 
-		// Find window & API
+		// Find window & API.
 		window.tinymce = w.tinymce;
 		window.tinyMCE = w.tinyMCE;
 		t.editor = tinymce.EditorManager.activeEditor;