]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/postbox.js
Wordpress 4.6-scripts
[autoinstalls/wordpress.git] / wp-admin / js / postbox.js
index 36673a900766185fd7cfc7b050f8022071c97f91..a8222ee296fc2dbf80fea8f1faba0aaa4cb6632d 100644 (file)
@@ -110,7 +110,7 @@ var postboxes;
                                tolerance: 'pointer',
                                forcePlaceholderSize: true,
                                helper: function( event, element ) {
-                                       // `helper: 'clone'` is equilavalent to `return element.clone();`
+                                       // `helper: 'clone'` is equivalent to `return element.clone();`
                                        // Cloning a checked radio and then inserting that clone next to the original
                                        // radio unchecks the original radio (since only one of the two can be checked).
                                        // We get around this by renaming the helper's inputs' name attributes so that,
@@ -139,6 +139,7 @@ var postboxes;
                                                $(ui.sender).sortable('cancel');
 
                                        postboxes._mark_area();
+                                       $document.trigger( 'postbox-moved', ui.item );
                                }
                        });