A little cleanup of post-formats.js

git-svn-id: http://core.svn.wordpress.org/trunk@24007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Mark Jaquith 2013-04-17 05:22:14 +00:00
parent 56d5d62a19
commit 81a2d77654
1 changed files with 8 additions and 11 deletions

View File

@ -24,7 +24,6 @@ window.wp = window.wp || {};
$this.addClass('active');
$('#post_format').val(format);
$('.post-format-change').show().find('span.icon').removeClass(postFormats.currentPostFormat).addClass(format);
// container.addClass('wp-format-set');
if ( -1 < $.inArray( format, noUIFormats ) ) {
switchFormatClass( format ); // No slide
@ -109,9 +108,7 @@ window.wp = window.wp || {};
});
mediaPreview = function(attachment) {
var w, h, dimensions = '', url = attachment.url,
mime = attachment.mime,
format = attachment.type;
var w, h, dimensions = '', url = attachment.url, mime = attachment.mime, format = attachment.type;
if ( 'video' === format ) {
if ( attachment.width ) {