mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +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') );
|
$('.post-format-tip').html( $('.post-format-options a.active').prop('title') );
|
||||||
});
|
});
|
||||||
|
|
||||||
// Media selection
|
// Media selection
|
||||||
$('.wp-format-media-select').click(function (event) {
|
$('.wp-format-media-select').click(function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var $el = $(this), $holder, $field, mime = 'image', menu = '',
|
var $el = $(this), $holder, $field, mime = 'image', menu = '',
|
||||||
$holder = $el.closest('.wp-format-media-holder'),
|
$holder = $el.closest('.wp-format-media-holder'),
|
||||||
$field = $( '#wp_format_' + $holder.data('format') );
|
$field = $( '#wp_format_' + $holder.data('format') );
|
||||||
|
|
||||||
switch ( $holder.data('format') ) {
|
switch ( $holder.data('format') ) {
|
||||||
case 'audio':
|
case 'audio':
|
||||||
mime = 'audio';
|
mime = 'audio';
|
||||||
break;
|
break;
|
||||||
case 'video':
|
case 'video':
|
||||||
mime = 'video';
|
mime = 'video';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the media frame already exists, reopen it.
|
// If the media frame already exists, reopen it.
|
||||||
@ -123,8 +123,8 @@ window.wp = window.wp || {};
|
|||||||
$el.html('<img src="' + url + '" />');
|
$el.html('<img src="' + url + '" />');
|
||||||
$holder.removeClass('empty').show();
|
$holder.removeClass('empty').show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
mediaFrame.open();
|
mediaFrame.open();
|
||||||
});
|
});
|
||||||
})(jQuery);
|
})(jQuery);
|
Loading…
Reference in New Issue
Block a user