Built from https://develop.svn.wordpress.org/trunk@28045 git-svn-id: http://core.svn.wordpress.org/trunk@27875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3f3a1380d2
commit
fd0ae7e406
|
@ -22,7 +22,7 @@ themes.Model = Backbone.Model.extend({
|
|||
// Adds attributes to the default data coming through the .org themes api
|
||||
// Map `id` to `slug` for shared code
|
||||
initialize: function() {
|
||||
var install, installed;
|
||||
var install;
|
||||
|
||||
// Install url for the theme
|
||||
// using the install nonce
|
||||
|
@ -1204,7 +1204,7 @@ themes.Run = {
|
|||
});
|
||||
|
||||
// Handles search route event
|
||||
themes.router.on( 'route:search', function( query ) {
|
||||
themes.router.on( 'route:search', function() {
|
||||
$( '.theme-search' ).trigger( 'keyup' );
|
||||
});
|
||||
|
||||
|
@ -1548,7 +1548,7 @@ themes.InstallerRouter = Backbone.Router.extend({
|
|||
|
||||
search: function( query ) {
|
||||
$( '.theme-search' ).val( query );
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
@ -1604,7 +1604,7 @@ themes.RunInstaller = {
|
|||
});
|
||||
|
||||
// Handles search route event
|
||||
themes.router.on( 'route:search', function( query ) {
|
||||
themes.router.on( 'route:search', function() {
|
||||
$( '.theme-search' ).focus().trigger( 'keyup' );
|
||||
});
|
||||
|
||||
|
|
|
@ -1519,8 +1519,8 @@ i.mce-i-hr:before {
|
|||
height: 30px;
|
||||
z-index: 100020;
|
||||
background: #fff;
|
||||
transition-property: height;
|
||||
transition-duration: 0.2s;
|
||||
-webkit-transition: height 0.2s;
|
||||
transition: height 0.2s;
|
||||
}
|
||||
|
||||
#wp-fullscreen-status {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1519,8 +1519,8 @@ i.mce-i-hr:before {
|
|||
height: 30px;
|
||||
z-index: 100020;
|
||||
background: #fff;
|
||||
transition-property: height;
|
||||
transition-duration: 0.2s;
|
||||
-webkit-transition: height 0.2s;
|
||||
transition: height 0.2s;
|
||||
}
|
||||
|
||||
#wp-fullscreen-status {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -32,7 +32,7 @@ tinymce.WPWindowManager = tinymce.InlineWindowManager = function( editor ) {
|
|||
if ( typeof jQuery === 'undefined' || ! jQuery.wp || ! jQuery.wp.wpdialog ) {
|
||||
// wpdialog.js is not loaded
|
||||
if ( window.console && window.console.error ) {
|
||||
window.console.error("wpdialog.js is not loaded. Please set 'wpdialogs' as dependency for your script when calling wp_enqueue_script(). You may also want to enqueue the 'wp-jquery-ui-dialog' stylesheet.");
|
||||
window.console.error('wpdialog.js is not loaded. Please set "wpdialogs" as dependency for your script when calling wp_enqueue_script(). You may also want to enqueue the "wp-jquery-ui-dialog" stylesheet.');
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
|
@ -1 +1 @@
|
|||
tinymce.WPWindowManager=tinymce.InlineWindowManager=function(a){return this.wp?this:(this.wp={},this.parent=a.windowManager,this.editor=a,tinymce.extend(this,this.parent),this.open=function(b,c){var d,e=this,f=this.wp;if(!b.wpDialog)return this.parent.open.apply(this,arguments);if(b.id){if("undefined"==typeof jQuery||!jQuery.wp||!jQuery.wp.wpdialog)return void(window.console&&window.console.error&&window.console.error("wpdialog.js is not loaded. Please set 'wpdialogs' as dependency for your script when calling wp_enqueue_script(). You may also want to enqueue the 'wp-jquery-ui-dialog' stylesheet."));f.$element=d=jQuery("#"+b.id),d.length&&(window.console&&window.console.log&&window.console.log("tinymce.WPWindowManager is deprecated. Use the default editor.windowManager to open dialogs with inline HTML."),f.features=b,f.params=c,a.nodeChanged(),d.data("wpdialog")||d.wpdialog({title:b.title,width:b.width,height:b.height,modal:!0,dialogClass:"wp-dialog",zIndex:3e5}),d.wpdialog("open"),d.on("wpdialogclose",function(){e.wp.$element&&(e.wp={})}))}},void(this.close=function(){return this.wp.features&&this.wp.features.wpDialog?void this.wp.$element.wpdialog("close"):this.parent.close.apply(this,arguments)}))},tinymce.PluginManager.add("wpdialogs",function(a){a.on("init",function(){a.windowManager=new tinymce.WPWindowManager(a)})});
|
||||
tinymce.WPWindowManager=tinymce.InlineWindowManager=function(a){return this.wp?this:(this.wp={},this.parent=a.windowManager,this.editor=a,tinymce.extend(this,this.parent),this.open=function(b,c){var d,e=this,f=this.wp;if(!b.wpDialog)return this.parent.open.apply(this,arguments);if(b.id){if("undefined"==typeof jQuery||!jQuery.wp||!jQuery.wp.wpdialog)return void(window.console&&window.console.error&&window.console.error('wpdialog.js is not loaded. Please set "wpdialogs" as dependency for your script when calling wp_enqueue_script(). You may also want to enqueue the "wp-jquery-ui-dialog" stylesheet.'));f.$element=d=jQuery("#"+b.id),d.length&&(window.console&&window.console.log&&window.console.log("tinymce.WPWindowManager is deprecated. Use the default editor.windowManager to open dialogs with inline HTML."),f.features=b,f.params=c,a.nodeChanged(),d.data("wpdialog")||d.wpdialog({title:b.title,width:b.width,height:b.height,modal:!0,dialogClass:"wp-dialog",zIndex:3e5}),d.wpdialog("open"),d.on("wpdialogclose",function(){e.wp.$element&&(e.wp={})}))}},void(this.close=function(){return this.wp.features&&this.wp.features.wpDialog?void this.wp.$element.wpdialog("close"):this.parent.close.apply(this,arguments)}))},tinymce.PluginManager.add("wpdialogs",function(a){a.on("init",function(){a.windowManager=new tinymce.WPWindowManager(a)})});
|
Binary file not shown.
Loading…
Reference in New Issue