Defer JS to document ready
git-svn-id: http://core.svn.wordpress.org/trunk@23851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5e20a29f04
commit
43ca132c43
|
@ -2,7 +2,7 @@ window.wp = window.wp || {};
|
|||
|
||||
(function($) {
|
||||
var mediaFrame, lastMimeType, lastMenu, mediaPreview;
|
||||
|
||||
$(function(){
|
||||
// Post formats selection
|
||||
$('.post-format-options a').on( 'click', function(e){
|
||||
var $this = $(this), editor, body,
|
||||
|
@ -127,4 +127,5 @@ window.wp = window.wp || {};
|
|||
|
||||
mediaFrame.open();
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
|
|
Loading…
Reference in New Issue