mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 04:25:07 +00:00
Backbone 1.0.0.
Update media JS to reflect changes. Please open new tickets for remaining issues. props koopersmith. fixes #23830. git-svn-id: http://core.svn.wordpress.org/trunk@23893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
163ebbe809
commit
ec0e3724e1
41
wp-includes/js/backbone.min.js
vendored
41
wp-includes/js/backbone.min.js
vendored
File diff suppressed because one or more lines are too long
@ -75,13 +75,13 @@ window.wp = window.wp || {};
|
|||||||
|
|
||||||
options.success = function( resp ) {
|
options.success = function( resp ) {
|
||||||
if ( success )
|
if ( success )
|
||||||
success( model, resp, options );
|
success( resp );
|
||||||
model.trigger( 'sync', model, resp, options );
|
model.trigger( 'sync', model, resp, options );
|
||||||
};
|
};
|
||||||
|
|
||||||
options.error = function( xhr ) {
|
options.error = function( xhr ) {
|
||||||
if ( error )
|
if ( error )
|
||||||
error( model, xhr, options );
|
error( xhr );
|
||||||
model.trigger( 'error', model, xhr, options );
|
model.trigger( 'error', model, xhr, options );
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -745,7 +745,7 @@ window.wp = window.wp || {};
|
|||||||
return $.Deferred().resolveWith( this ).promise();
|
return $.Deferred().resolveWith( this ).promise();
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
options.add = true;
|
options.remove = false;
|
||||||
|
|
||||||
return this._more = this.fetch( options ).done( function( resp ) {
|
return this._more = this.fetch( options ).done( function( resp ) {
|
||||||
if ( _.isEmpty( resp ) || -1 === this.args.posts_per_page || resp.length < this.args.posts_per_page )
|
if ( _.isEmpty( resp ) || -1 === this.args.posts_per_page || resp.length < this.args.posts_per_page )
|
||||||
|
@ -276,7 +276,7 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
|
|
||||||
$scripts->add( 'underscore', '/wp-includes/js/underscore.min.js', array(), '1.4.4', 1 );
|
$scripts->add( 'underscore', '/wp-includes/js/underscore.min.js', array(), '1.4.4', 1 );
|
||||||
$scripts->add( 'template', "/wp-includes/js/template$suffix.js", array('underscore'), '1.4.4', 1 );
|
$scripts->add( 'template', "/wp-includes/js/template$suffix.js", array('underscore'), '1.4.4', 1 );
|
||||||
$scripts->add( 'backbone', '/wp-includes/js/backbone.min.js', array('underscore','jquery', 'template'), '0.9.10', 1 );
|
$scripts->add( 'backbone', '/wp-includes/js/backbone.min.js', array('underscore','jquery', 'template'), '1.0.0', 1 );
|
||||||
|
|
||||||
$scripts->add( 'revisions', "/wp-admin/js/revisions$suffix.js", array( 'backbone', 'jquery-ui-slider', 'jquery-ui-tooltip' ), false, 1 );
|
$scripts->add( 'revisions', "/wp-admin/js/revisions$suffix.js", array( 'backbone', 'jquery-ui-slider', 'jquery-ui-tooltip' ), false, 1 );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user