mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 10:22:23 +01:00
Clean up mixed spaces/tabs in post-formats.js
git-svn-id: http://core.svn.wordpress.org/trunk@23850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7b831aabd3
commit
5e20a29f04
@ -45,20 +45,20 @@ window.wp = window.wp || {};
|
||||
$('.post-format-tip').html( $('.post-format-options a.active').prop('title') );
|
||||
});
|
||||
|
||||
// Media selection
|
||||
$('.wp-format-media-select').click(function (event) {
|
||||
event.preventDefault();
|
||||
var $el = $(this), $holder, $field, mime = 'image', menu = '',
|
||||
$holder = $el.closest('.wp-format-media-holder'),
|
||||
$field = $( '#wp_format_' + $holder.data('format') );
|
||||
// Media selection
|
||||
$('.wp-format-media-select').click(function (event) {
|
||||
event.preventDefault();
|
||||
var $el = $(this), $holder, $field, mime = 'image', menu = '',
|
||||
$holder = $el.closest('.wp-format-media-holder'),
|
||||
$field = $( '#wp_format_' + $holder.data('format') );
|
||||
|
||||
switch ( $holder.data('format') ) {
|
||||
case 'audio':
|
||||
mime = 'audio';
|
||||
break;
|
||||
case 'video':
|
||||
mime = 'video';
|
||||
break;
|
||||
switch ( $holder.data('format') ) {
|
||||
case 'audio':
|
||||
mime = 'audio';
|
||||
break;
|
||||
case 'video':
|
||||
mime = 'video';
|
||||
break;
|
||||
}
|
||||
|
||||
// If the media frame already exists, reopen it.
|
||||
@ -123,8 +123,8 @@ window.wp = window.wp || {};
|
||||
$el.html('<img src="' + url + '" />');
|
||||
$holder.removeClass('empty').show();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
mediaFrame.open();
|
||||
});
|
||||
})(jQuery);
|
||||
mediaFrame.open();
|
||||
});
|
||||
})(jQuery);
|
||||
|
Loading…
Reference in New Issue
Block a user