Compress scripts/styles: 3.6-beta1-24008.
git-svn-id: http://core.svn.wordpress.org/trunk@24008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
81a2d77654
commit
3841d591e6
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
window.wp=window.wp||{};(function(g){var c,b,a,h,f,e=["standard","chat","status","aside","gallery"];function d(i){c.get(0).className=c.get(0).className.replace(/\bwp-format-[^ ]+/,"");c.addClass("wp-format-"+i)}g(function(){var i=g(".post-formats-fields");g(".post-format-options").on("click","a",function(p){p.preventDefault();var o=g(this),l,j,k=o.parent(),n=o.data("wp-format"),m=g(".post-format-description");if(typeof c==="undefined"){c=g("#post-body-content")}if(n===postFormats.currentPostFormat){return}k.find("a.active").removeClass("active");o.addClass("active");g("#icon-edit").removeClass(postFormats.currentPostFormat).addClass(n);g("#post_format").val(n);if(-1<g.inArray(n,e)&&-1<g.inArray(postFormats.currentPostFormat,e)){d(n)}else{i.slideUp(200,function(){d(n);i.slideDown(400)})}g("#title").focus();m.html(o.data("description"));if(m.not(":visible")){m.slideDown("fast")}if(typeof tinymce!="undefined"){l=tinymce.get("content");if(l){j=l.getBody();j.className=j.className.replace(/\bpost-format-[^ ]+/,"");l.dom.addClass(j,"post-format-"+n)}}postFormats.currentPostFormat=n}).on("mouseenter focusin","a",function(){g(".post-format-tip").html(g(this).prop("title"))}).on("mouseleave focusout","a",function(){g(".post-format-tip").html(g(".post-format-options a.active").prop("title"))});g(".wp-format-media-select").click(function(l){l.preventDefault();var j=g(this),n,k,m="image",o="",n=j.closest(".wp-format-media-holder"),k=g("#wp_format_"+n.data("format"));switch(n.data("format")){case"audio":m="audio";break;case"video":m="video";break}if(b&&a===m&&h===o){b.open();return}a=m;h=o;b=wp.media.frames.formatMedia=wp.media({title:j.data("choose"),toolbar:o,library:{type:m},button:{text:j.data("update")}});f=function(v){var p,r,s="",q=v.url,t=v.mime,u=v.type;if("video"===u){if(v.width){p=v.width;if(p>600){p=600}s+=' width="'+p+'"'}if(v.height){r=v.height;if(v.width&&p<v.width){r=Math.round((r*p)/v.width)}s+=' height="'+r+'"'}}g("#"+u+"-preview").remove();n.parent().prepend('<div id="'+u+'-preview" class="wp-format-media-preview"><'+u+s+' class="wp-'+u+'-shortcode" controls="controls" preload="none"><source type="'+t+'" src="'+q+'" /></'+u+"></div>");g(".wp-"+u+"-shortcode").mediaelementplayer()};b.on("select",function(){var p=b.state().get("selection").first().toJSON();if(0===p.mime.indexOf("audio")){k.val(p.url);f(p)}else{if(0===p.mime.indexOf("video")){p.src=p.url;k.val(wp.shortcode.string({tag:"video",attrs:_.pick(p,"src","width","height")}));f(p)}else{k.val(p.id);j.html('<img src="'+p.url+'" />');n.removeClass("empty").show()}}});b.open()})})})(jQuery);
|
window.wp=window.wp||{};(function(e){var a,b,f,j,d,h=["standard","chat","status","aside","gallery"],i=e(".post-formats-fields");function c(k){a.get(0).className=a.get(0).className.replace(/\bwp-format-[^ ]+/g,"");a.addClass("wp-format-"+k)}function g(q){var m,k,l=q.parent(),p=q.data("wp-format"),n=e(".post-format-description"),o=e("#title");if(typeof a==="undefined"){a=e("#post-body-content")}l.slideUp().find("a.active").removeClass("active");q.addClass("active");e("#post_format").val(p);e(".post-format-change").show().find("span.icon").removeClass(postFormats.currentPostFormat).addClass(p);if(-1<e.inArray(p,h)){c(p);i.hide()}else{i.slideUp(200,function(){c(p);i.slideDown(400)})}o.focus();if(""===o.val()){e("#title-prompt-text").removeClass("screen-reader-text")}n.html(q.data("description"));if(n.not(":visible")){n.slideDown("fast")}if(typeof tinymce!="undefined"){m=tinymce.get("content");if(m){k=m.getBody();k.className=k.className.replace(/\bpost-format-[^ ]+/,"");m.dom.addClass(k,"post-format-"+p)}}postFormats.currentPostFormat=p}e(function(){e(".post-format-change a").click(function(){e(".post-formats-fields, .post-format-change").slideUp();e(".post-format-options").slideDown();return false});e(".post-format-options").on("click","a",function(k){k.preventDefault();g(e(this))});e(".wp-format-media-select").click(function(m){m.preventDefault();var k=e(this),o,n=k.closest(".wp-format-media-holder"),l=e("#wp_format_"+n.data("format"));o=n.data("format");if(b&&f===o){b.open();return}f=o;b=wp.media.frames.formatMedia=wp.media({title:k.data("choose"),library:{type:o},button:{text:k.data("update")}});d=function(v){var p,r,s="",q=v.url,t=v.mime,u=v.type;if("video"===u){if(v.width){p=v.width;if(p>600){p=600}s+=' width="'+p+'"'}if(v.height){r=v.height;if(v.width&&p<v.width){r=Math.round((r*p)/v.width)}s+=' height="'+r+'"'}}e("#"+u+"-preview").remove();n.parent().prepend('<div id="'+u+'-preview" class="wp-format-media-preview"><'+u+s+' class="wp-'+u+'-shortcode" controls="controls" preload="none"><source type="'+t+'" src="'+q+'" /></'+u+"></div>");e(".wp-"+u+"-shortcode").mediaelementplayer()};b.on("select",function(){var p=0,r=0,q,s=b.state().get("selection").first().toJSON();if(0===s.mime.indexOf("audio")){l.val(s.url);d(s)}else{if(0===s.mime.indexOf("video")){s.src=s.url;l.val(wp.shortcode.string({tag:"video",attrs:_.pick(s,"src","width","height")}));d(s)}else{q=wp.media.string.image({},s);l.val(q);e("#image-preview").remove();if(s.width){p=s.width>600?600:s.width}if(s.height){r=s.height}if(p<s.width){r=Math.round((r*p)/s.width)}n.parent().prepend(['<div id="image-preview" class="wp-format-media-preview">','<img src="',s.url,'"',p?' width="'+p+'"':"",r?' height="'+r+'"':""," />","</div>"].join(""))}}});b.open()})})})(jQuery);
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '3.6-beta1-23997';
|
$wp_version = '3.6-beta1-24008';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue