File Editor
Directories:
.. (Back)
Files:
accordion.js
accordion.min.js
bookmarklet.js
bookmarklet.min.js
color-picker.js
color-picker.min.js
comment.js
comment.min.js
common.js
common.min.js
custom-background.js
custom-background.min.js
custom-header.js
customize-controls.js
customize-controls.min.js
customize-nav-menus.js
customize-nav-menus.min.js
customize-widgets.js
customize-widgets.min.js
dashboard.js
dashboard.min.js
edit-comments.js
edit-comments.min.js
editor-expand.js
editor-expand.min.js
editor.js
editor.min.js
farbtastic.js
gallery.js
gallery.min.js
image-edit.js
image-edit.min.js
inline-edit-post.js
inline-edit-post.min.js
inline-edit-tax.js
inline-edit-tax.min.js
iris.min.js
language-chooser.js
language-chooser.min.js
link.js
link.min.js
media-gallery.js
media-gallery.min.js
media-upload.js
media-upload.min.js
media.js
media.min.js
nav-menu.js
nav-menu.min.js
password-strength-meter.js
password-strength-meter.min.js
plugin-install.js
plugin-install.min.js
post.js
post.min.js
postbox.js
postbox.min.js
press-this.js
press-this.min.js
revisions.js
revisions.min.js
set-post-thumbnail.js
set-post-thumbnail.min.js
svg-painter.js
svg-painter.min.js
tags-box.js
tags-box.min.js
tags.js
tags.min.js
theme.js
theme.min.js
updates.js
updates.min.js
user-profile.js
user-profile.min.js
user-suggest.js
user-suggest.min.js
widgets.js
widgets.min.js
word-count.js
word-count.min.js
wp-fullscreen-stub.js
wp-fullscreen-stub.min.js
xfn.js
xfn.min.js
Create New File
Create
Edit File: dashboard.min.js
var ajaxWidgets,ajaxPopulateWidgets,quickPressLoad;jQuery(document).ready(function(o){var t,s=o("#welcome-panel"),e=o("#wp_welcome_panel-hide");t=function(e){o.post(ajaxurl,{action:"update-welcome-panel",visible:e,welcomepanelnonce:o("#welcomepanelnonce").val()})},s.hasClass("hidden")&&e.prop("checked")&&s.removeClass("hidden"),o(".welcome-panel-close, .welcome-panel-dismiss a",s).click(function(e){e.preventDefault(),s.addClass("hidden"),t(0),o("#wp_welcome_panel-hide").prop("checked",!1)}),e.click(function(){s.toggleClass("hidden",!this.checked),t(this.checked?1:0)}),ajaxWidgets=["dashboard_primary"],(ajaxPopulateWidgets=function(e){function t(e,t){var s,i=o("#"+t+" div.inside:visible").find(".widget-loading");i.length&&(s=i.parent(),setTimeout(function(){s.load(ajaxurl+"?action=dashboard-widgets&widget="+t+"&pagenow="+pagenow,"",function(){s.hide().slideDown("normal",function(){o(this).css("display","")})})},500*e))}e?(e=e.toString(),-1!==o.inArray(e,ajaxWidgets)&&t(0,e)):o.each(ajaxWidgets,t)})(),postboxes.add_postbox_toggles(pagenow,{pbshow:ajaxPopulateWidgets}),(quickPressLoad=function(){var t,s,i,n,a,e=o("#quickpost-action");o('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled",!1),t=o("#quick-press").submit(function(e){e.preventDefault(),o("#dashboard_quick_press #publishing-action .spinner").show(),o('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled",!0),o.post(t.attr("action"),t.serializeArray(),function(e){var t;o("#dashboard_quick_press .inside").html(e),o("#quick-press").removeClass("initial-form"),quickPressLoad(),(t=o(".drafts ul li").first()).css("background","#fffbe5"),setTimeout(function(){t.css("background","none")},1e3),o("#title").focus()})}),o("#publish").click(function(){e.val("post-quickpress-publish")}),o("#title, #tags-input, #content").each(function(){var e=o(this),t=o("#"+this.id+"-prompt-text");""===this.value&&t.removeClass("screen-reader-text"),t.click(function(){o(this).addClass("screen-reader-text"),e.focus()}),e.blur(function(){""===this.value&&t.removeClass("screen-reader-text")}),e.focus(function(){t.addClass("screen-reader-text")})}),o("#quick-press").on("click focusin",function(){wpActiveEditor="content"}),document.documentMode&&document.documentMode<9||(o("body").append('<div class="quick-draft-textarea-clone" style="display: none;"></div>'),s=o(".quick-draft-textarea-clone"),i=o("#content"),n=i.height(),a=o(window).height()-100,s.css({"font-family":i.css("font-family"),"font-size":i.css("font-size"),"line-height":i.css("line-height"),"padding-bottom":i.css("paddingBottom"),"padding-left":i.css("paddingLeft"),"padding-right":i.css("paddingRight"),"padding-top":i.css("paddingTop"),"white-space":"pre-wrap","word-wrap":"break-word",display:"none"}),i.on("focus input propertychange",function(){var e=o(this),t=e.val()+" ",t=s.css("width",e.css("width")).text(t).outerHeight()+2;i.css("overflow-y","auto"),t===n||a<=t&&a<=n||(n=a<t?a:t,i.css("overflow","hidden"),e.css("height",n+"px"))}))})(),o(".meta-box-sortables").sortable("option","containment","#wpwrap")});
Save Changes
Rename File
Rename