When creating an `EmbedLink` view, don't add a spinner - it already exists in `Embed`.
Use the value of `wp.media.controller.Embed.sensitivity` as the sensitivity value for the debounced method in `EmbedLink` to ensure that the spinner toggles don't stutter or overlap. Fixes #32036. Built from https://develop.svn.wordpress.org/trunk@32462 git-svn-id: http://core.svn.wordpress.org/trunk@32432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3f642ba717
commit
b7d4685f3d
|
@ -503,7 +503,7 @@ Embed = wp.media.controller.State.extend({
|
|||
},
|
||||
|
||||
// The amount of time used when debouncing the scan.
|
||||
sensitivity: 200,
|
||||
sensitivity: 400,
|
||||
|
||||
initialize: function(options) {
|
||||
this.metadata = options.metadata;
|
||||
|
@ -4533,8 +4533,6 @@ EmbedLink = wp.media.view.Settings.extend({
|
|||
template: wp.template('embed-link-settings'),
|
||||
|
||||
initialize: function() {
|
||||
this.spinner = $('<span class="spinner" />');
|
||||
this.$el.append( this.spinner[0] );
|
||||
this.listenTo( this.model, 'change:url', this.updateoEmbed );
|
||||
},
|
||||
|
||||
|
@ -4551,7 +4549,7 @@ EmbedLink = wp.media.view.Settings.extend({
|
|||
}
|
||||
|
||||
this.fetch();
|
||||
}, 600 ),
|
||||
}, wp.media.controller.Embed.sensitivity ),
|
||||
|
||||
fetch: function() {
|
||||
var embed;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-alpha-32461';
|
||||
$wp_version = '4.3-alpha-32462';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue