Merge pull request #2497 from thenbrent/variable-writepanel-tweaks
Tweaks to the Variable Product Writepanel
This commit is contained in:
commit
884c217c12
|
@ -88,6 +88,7 @@ function variable_product_type_options() {
|
|||
<option value="variable_file_paths" rel="textarea"><?php _e( 'File Path', 'woocommerce' ); ?></option>
|
||||
<option value="variable_download_limit"><?php _e( 'Download limit', 'woocommerce' ); ?></option>
|
||||
<option value="variable_download_expiry"><?php _e( 'Download Expiry', 'woocommerce' ); ?></option>
|
||||
<?php do_action( 'woocommerce_variable_product_bulk_edit_actions' ); ?>
|
||||
</select>
|
||||
<a class="button bulk_edit"><?php _e( 'Go', 'woocommerce' ); ?></a>
|
||||
</p>
|
||||
|
@ -430,7 +431,7 @@ function variable_product_type_options() {
|
|||
var input_tag = jQuery('select#field_to_edit :selected').attr('rel') ? jQuery('select#field_to_edit :selected').attr('rel') : 'input';
|
||||
|
||||
var value = prompt("<?php _e( 'Enter a value', 'woocommerce' ); ?>");
|
||||
jQuery(input_tag + '[name^="' + field_to_edit + '["]').val( value );
|
||||
jQuery(input_tag + '[name^="' + field_to_edit + '["]').val( value ).change();
|
||||
return false;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue