fixed the variation bulk edit, closes #4807

solved the issue with increase and decrease values forcing to be string the prompt return value
This commit is contained in:
claudiosmweb 2014-02-14 18:24:48 -02:00
parent d5482d00d0
commit d3e4a18763
1 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ jQuery( function($){
$('#variable_product_options').load( this_page + ' #variable_product_options_inner', function() {
$('#variable_product_options').unblock();
jQuery('#variable_product_options').trigger('woocommerce_variations_added');
jQuery(".tips").tipTip({
'attribute' : 'data-tip',
'fadeIn' : 50,
@ -205,7 +205,7 @@ jQuery( function($){
jQuery( ':input[name^="' + edit_field + '["]').each(function() {
var current_value = Number( jQuery(this).val() );
if ( value.indexOf("%") >= 0 )
if ( value.toString().indexOf("%") >= 0 )
value = Number( ( Number( current_value ) / 100 ) * Number( value.replace(/\%/, "" ) ) );
else
value = Number( value );
@ -343,4 +343,4 @@ jQuery( function($){
wp.media.model.settings.post.id = wp_media_post_id;
} );
});
});