More styling settings tweaks
This commit is contained in:
parent
b7a544ec40
commit
56fef5b4f6
File diff suppressed because one or more lines are too long
|
@ -3035,7 +3035,7 @@ img.help_tip {
|
||||||
}
|
}
|
||||||
|
|
||||||
input.regular-input {
|
input.regular-input {
|
||||||
width: 25em;
|
width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea.wide-input {
|
textarea.wide-input {
|
||||||
|
|
|
@ -240,7 +240,7 @@ jQuery( function( $ ) {
|
||||||
|
|
||||||
// WooCommerce Backbone Modal
|
// WooCommerce Backbone Modal
|
||||||
.on( 'wc_backbone_modal_before_remove', function() {
|
.on( 'wc_backbone_modal_before_remove', function() {
|
||||||
$( ':input.wc-enhanced-select, :input.wc-product-search, :input.wc-customer-search' ).select2( 'close' );
|
$( '.wc-enhanced-select, :input.wc-product-search, :input.wc-customer-search' ).filter( ".select2-hidden-accessible" ).select2( 'close' );
|
||||||
})
|
})
|
||||||
|
|
||||||
.trigger( 'wc-enhanced-select-init' );
|
.trigger( 'wc-enhanced-select-init' );
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
jQuery(function(a){function b(){var a={formatMatches:function(a){return 1===a?wc_enhanced_select_params.i18n_matches_1:wc_enhanced_select_params.i18n_matches_n.replace("%qty%",a)},formatNoMatches:function(){return wc_enhanced_select_params.i18n_no_matches},formatAjaxError:function(){return wc_enhanced_select_params.i18n_ajax_error},formatInputTooShort:function(a,b){var c=b-a.length;return 1===c?wc_enhanced_select_params.i18n_input_too_short_1:wc_enhanced_select_params.i18n_input_too_short_n.replace("%qty%",c)},formatInputTooLong:function(a,b){var c=a.length-b;return 1===c?wc_enhanced_select_params.i18n_input_too_long_1:wc_enhanced_select_params.i18n_input_too_long_n.replace("%qty%",c)},formatSelectionTooBig:function(a){return 1===a?wc_enhanced_select_params.i18n_selection_too_long_1:wc_enhanced_select_params.i18n_selection_too_long_n.replace("%qty%",a)},formatLoadMore:function(){return wc_enhanced_select_params.i18n_load_more},formatSearching:function(){return wc_enhanced_select_params.i18n_searching}};return a}a(document.body).on("wc-enhanced-select-init",function(){a(":input.wc-enhanced-select, :input.chosen_select").filter(":not(.enhanced)").each(function(){var c=a.extend({minimumResultsForSearch:10,allowClear:!!a(this).data("allow_clear"),placeholder:a(this).data("placeholder")},b());a(this).select2(c).addClass("enhanced")}),a(":input.wc-enhanced-select-nostd, :input.chosen_select_nostd").filter(":not(.enhanced)").each(function(){var c=a.extend({minimumResultsForSearch:10,allowClear:!0,placeholder:a(this).data("placeholder")},b());a(this).select2(c).addClass("enhanced")}),a(":input.wc-product-search").filter(":not(.enhanced)").each(function(){var c={allowClear:!!a(this).data("allow_clear"),placeholder:a(this).data("placeholder"),minimumInputLength:a(this).data("minimum_input_length")?a(this).data("minimum_input_length"):"3",escapeMarkup:function(a){return a},ajax:{url:wc_enhanced_select_params.ajax_url,dataType:"json",quietMillis:250,data:function(b){return{term:b,action:a(this).data("action")||"woocommerce_json_search_products_and_variations",security:wc_enhanced_select_params.search_products_nonce,exclude:a(this).data("exclude"),include:a(this).data("include"),limit:a(this).data("limit")}},results:function(b){var c=[];return b&&a.each(b,function(a,b){c.push({id:a,text:b})}),{results:c}},cache:!0}};a(this).data("multiple")===!0?(c.multiple=!0,c.initSelection=function(b,c){var d=a.parseJSON(b.attr("data-selected")),e=[];return a(b.val().split(",")).each(function(a,b){e.push({id:b,text:d[b]})}),c(e)},c.formatSelection=function(a){return'<div class="selected-option" data-id="'+a.id+'">'+a.text+"</div>"}):(c.multiple=!1,c.initSelection=function(a,b){var c={id:a.val(),text:a.attr("data-selected")};return b(c)}),c=a.extend(c,b()),a(this).select2(c).addClass("enhanced"),a(this).data("sortable")&&a(this).select2("container").find("ul.select2-choices").sortable({containment:"parent",start:function(){a(this).select2("onSortStart")},update:function(){a(this).select2("onSortEnd")}})}),a(":input.wc-customer-search").filter(":not(.enhanced)").each(function(){var c={allowClear:!!a(this).data("allow_clear"),placeholder:a(this).data("placeholder"),minimumInputLength:a(this).data("minimum_input_length")?a(this).data("minimum_input_length"):"3",escapeMarkup:function(a){return a},ajax:{url:wc_enhanced_select_params.ajax_url,dataType:"json",quietMillis:250,data:function(b){return{term:b,action:"woocommerce_json_search_customers",security:wc_enhanced_select_params.search_customers_nonce,exclude:a(this).data("exclude")}},results:function(b){var c=[];return b&&a.each(b,function(a,b){c.push({id:a,text:b})}),{results:c}},cache:!0}};a(this).data("multiple")===!0?(c.multiple=!0,c.initSelection=function(b,c){var d=a.parseJSON(b.attr("data-selected")),e=[];return a(b.val().split(",")).each(function(a,b){e.push({id:b,text:d[b]})}),c(e)},c.formatSelection=function(a){return'<div class="selected-option" data-id="'+a.id+'">'+a.text+"</div>"}):(c.multiple=!1,c.initSelection=function(a,b){var c={id:a.val(),text:a.attr("data-selected")};return b(c)}),c=a.extend(c,b()),a(this).select2(c).addClass("enhanced"),a(this).data("sortable")&&a(this).select2("container").find("ul.select2-choices").sortable({containment:"parent",start:function(){a(this).select2("onSortStart")},update:function(){a(this).select2("onSortEnd")}})})}).on("wc_backbone_modal_before_remove",function(){a(":input.wc-enhanced-select, :input.wc-product-search, :input.wc-customer-search").select2("close")}).trigger("wc-enhanced-select-init")});
|
jQuery(function(a){function b(){var a={formatMatches:function(a){return 1===a?wc_enhanced_select_params.i18n_matches_1:wc_enhanced_select_params.i18n_matches_n.replace("%qty%",a)},formatNoMatches:function(){return wc_enhanced_select_params.i18n_no_matches},formatAjaxError:function(){return wc_enhanced_select_params.i18n_ajax_error},formatInputTooShort:function(a,b){var c=b-a.length;return 1===c?wc_enhanced_select_params.i18n_input_too_short_1:wc_enhanced_select_params.i18n_input_too_short_n.replace("%qty%",c)},formatInputTooLong:function(a,b){var c=a.length-b;return 1===c?wc_enhanced_select_params.i18n_input_too_long_1:wc_enhanced_select_params.i18n_input_too_long_n.replace("%qty%",c)},formatSelectionTooBig:function(a){return 1===a?wc_enhanced_select_params.i18n_selection_too_long_1:wc_enhanced_select_params.i18n_selection_too_long_n.replace("%qty%",a)},formatLoadMore:function(){return wc_enhanced_select_params.i18n_load_more},formatSearching:function(){return wc_enhanced_select_params.i18n_searching}};return a}a(document.body).on("wc-enhanced-select-init",function(){a(":input.wc-enhanced-select, :input.chosen_select").filter(":not(.enhanced)").each(function(){var c=a.extend({minimumResultsForSearch:10,allowClear:!!a(this).data("allow_clear"),placeholder:a(this).data("placeholder")},b());a(this).select2(c).addClass("enhanced")}),a(":input.wc-enhanced-select-nostd, :input.chosen_select_nostd").filter(":not(.enhanced)").each(function(){var c=a.extend({minimumResultsForSearch:10,allowClear:!0,placeholder:a(this).data("placeholder")},b());a(this).select2(c).addClass("enhanced")}),a(":input.wc-product-search").filter(":not(.enhanced)").each(function(){var c={allowClear:!!a(this).data("allow_clear"),placeholder:a(this).data("placeholder"),minimumInputLength:a(this).data("minimum_input_length")?a(this).data("minimum_input_length"):"3",escapeMarkup:function(a){return a},ajax:{url:wc_enhanced_select_params.ajax_url,dataType:"json",quietMillis:250,data:function(b){return{term:b,action:a(this).data("action")||"woocommerce_json_search_products_and_variations",security:wc_enhanced_select_params.search_products_nonce,exclude:a(this).data("exclude"),include:a(this).data("include"),limit:a(this).data("limit")}},results:function(b){var c=[];return b&&a.each(b,function(a,b){c.push({id:a,text:b})}),{results:c}},cache:!0}};a(this).data("multiple")===!0?(c.multiple=!0,c.initSelection=function(b,c){var d=a.parseJSON(b.attr("data-selected")),e=[];return a(b.val().split(",")).each(function(a,b){e.push({id:b,text:d[b]})}),c(e)},c.formatSelection=function(a){return'<div class="selected-option" data-id="'+a.id+'">'+a.text+"</div>"}):(c.multiple=!1,c.initSelection=function(a,b){var c={id:a.val(),text:a.attr("data-selected")};return b(c)}),c=a.extend(c,b()),a(this).select2(c).addClass("enhanced"),a(this).data("sortable")&&a(this).select2("container").find("ul.select2-choices").sortable({containment:"parent",start:function(){a(this).select2("onSortStart")},update:function(){a(this).select2("onSortEnd")}})}),a(":input.wc-customer-search").filter(":not(.enhanced)").each(function(){var c={allowClear:!!a(this).data("allow_clear"),placeholder:a(this).data("placeholder"),minimumInputLength:a(this).data("minimum_input_length")?a(this).data("minimum_input_length"):"3",escapeMarkup:function(a){return a},ajax:{url:wc_enhanced_select_params.ajax_url,dataType:"json",quietMillis:250,data:function(b){return{term:b,action:"woocommerce_json_search_customers",security:wc_enhanced_select_params.search_customers_nonce,exclude:a(this).data("exclude")}},results:function(b){var c=[];return b&&a.each(b,function(a,b){c.push({id:a,text:b})}),{results:c}},cache:!0}};a(this).data("multiple")===!0?(c.multiple=!0,c.initSelection=function(b,c){var d=a.parseJSON(b.attr("data-selected")),e=[];return a(b.val().split(",")).each(function(a,b){e.push({id:b,text:d[b]})}),c(e)},c.formatSelection=function(a){return'<div class="selected-option" data-id="'+a.id+'">'+a.text+"</div>"}):(c.multiple=!1,c.initSelection=function(a,b){var c={id:a.val(),text:a.attr("data-selected")};return b(c)}),c=a.extend(c,b()),a(this).select2(c).addClass("enhanced"),a(this).data("sortable")&&a(this).select2("container").find("ul.select2-choices").sortable({containment:"parent",start:function(){a(this).select2("onSortStart")},update:function(){a(this).select2("onSortEnd")}})})}).on("wc_backbone_modal_before_remove",function(){a("select.wc-enhanced-select, select.wc-product-search, select.wc-customer-search").select2("close")}).trigger("wc-enhanced-select-init")});
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -384,8 +384,8 @@ abstract class WC_Settings_API {
|
||||||
?>
|
?>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th scope="row" class="titledesc">
|
<th scope="row" class="titledesc">
|
||||||
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
|
||||||
<?php echo $this->get_tooltip_html( $data ); ?>
|
<?php echo $this->get_tooltip_html( $data ); ?>
|
||||||
|
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
||||||
</th>
|
</th>
|
||||||
<td class="forminp">
|
<td class="forminp">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -428,8 +428,8 @@ abstract class WC_Settings_API {
|
||||||
?>
|
?>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th scope="row" class="titledesc">
|
<th scope="row" class="titledesc">
|
||||||
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
|
||||||
<?php echo $this->get_tooltip_html( $data ); ?>
|
<?php echo $this->get_tooltip_html( $data ); ?>
|
||||||
|
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
||||||
</th>
|
</th>
|
||||||
<td class="forminp">
|
<td class="forminp">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -472,8 +472,8 @@ abstract class WC_Settings_API {
|
||||||
?>
|
?>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th scope="row" class="titledesc">
|
<th scope="row" class="titledesc">
|
||||||
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
|
||||||
<?php echo $this->get_tooltip_html( $data ); ?>
|
<?php echo $this->get_tooltip_html( $data ); ?>
|
||||||
|
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
||||||
</th>
|
</th>
|
||||||
<td class="forminp">
|
<td class="forminp">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -528,8 +528,8 @@ abstract class WC_Settings_API {
|
||||||
?>
|
?>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th scope="row" class="titledesc">
|
<th scope="row" class="titledesc">
|
||||||
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
|
||||||
<?php echo $this->get_tooltip_html( $data ); ?>
|
<?php echo $this->get_tooltip_html( $data ); ?>
|
||||||
|
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
||||||
</th>
|
</th>
|
||||||
<td class="forminp">
|
<td class="forminp">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -574,8 +574,8 @@ abstract class WC_Settings_API {
|
||||||
?>
|
?>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th scope="row" class="titledesc">
|
<th scope="row" class="titledesc">
|
||||||
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
|
||||||
<?php echo $this->get_tooltip_html( $data ); ?>
|
<?php echo $this->get_tooltip_html( $data ); ?>
|
||||||
|
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
||||||
</th>
|
</th>
|
||||||
<td class="forminp">
|
<td class="forminp">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -622,8 +622,8 @@ abstract class WC_Settings_API {
|
||||||
?>
|
?>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th scope="row" class="titledesc">
|
<th scope="row" class="titledesc">
|
||||||
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
|
||||||
<?php echo $this->get_tooltip_html( $data ); ?>
|
<?php echo $this->get_tooltip_html( $data ); ?>
|
||||||
|
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
||||||
</th>
|
</th>
|
||||||
<td class="forminp">
|
<td class="forminp">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -668,8 +668,8 @@ abstract class WC_Settings_API {
|
||||||
?>
|
?>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th scope="row" class="titledesc">
|
<th scope="row" class="titledesc">
|
||||||
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
|
||||||
<?php echo $this->get_tooltip_html( $data ); ?>
|
<?php echo $this->get_tooltip_html( $data ); ?>
|
||||||
|
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
||||||
</th>
|
</th>
|
||||||
<td class="forminp">
|
<td class="forminp">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -719,8 +719,8 @@ abstract class WC_Settings_API {
|
||||||
?>
|
?>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th scope="row" class="titledesc">
|
<th scope="row" class="titledesc">
|
||||||
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
|
||||||
<?php echo $this->get_tooltip_html( $data ); ?>
|
<?php echo $this->get_tooltip_html( $data ); ?>
|
||||||
|
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo wp_kses_post( $data['title'] ); ?></label>
|
||||||
</th>
|
</th>
|
||||||
<td class="forminp">
|
<td class="forminp">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|
|
@ -96,7 +96,7 @@ class WC_Gateway_COD extends WC_Payment_Gateway {
|
||||||
'title' => __( 'Enable for shipping methods', 'woocommerce' ),
|
'title' => __( 'Enable for shipping methods', 'woocommerce' ),
|
||||||
'type' => 'multiselect',
|
'type' => 'multiselect',
|
||||||
'class' => 'wc-enhanced-select',
|
'class' => 'wc-enhanced-select',
|
||||||
'css' => 'width: 450px;',
|
'css' => 'width: 400px;',
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'description' => __( 'If COD is only available for certain methods, set it up here. Leave blank to enable for all methods.', 'woocommerce' ),
|
'description' => __( 'If COD is only available for certain methods, set it up here. Leave blank to enable for all methods.', 'woocommerce' ),
|
||||||
'options' => $shipping_methods,
|
'options' => $shipping_methods,
|
||||||
|
|
|
@ -37,7 +37,7 @@ $settings = array(
|
||||||
'title' => __( 'Specific countries', 'woocommerce' ),
|
'title' => __( 'Specific countries', 'woocommerce' ),
|
||||||
'type' => 'multiselect',
|
'type' => 'multiselect',
|
||||||
'class' => 'wc-enhanced-select',
|
'class' => 'wc-enhanced-select',
|
||||||
'css' => 'width: 450px;',
|
'css' => 'width: 400px;',
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'options' => WC()->countries->get_shipping_countries(),
|
'options' => WC()->countries->get_shipping_countries(),
|
||||||
'custom_attributes' => array(
|
'custom_attributes' => array(
|
||||||
|
|
|
@ -106,7 +106,7 @@ class WC_Shipping_Legacy_Free_Shipping extends WC_Shipping_Method {
|
||||||
'title' => __( 'Specific countries', 'woocommerce' ),
|
'title' => __( 'Specific countries', 'woocommerce' ),
|
||||||
'type' => 'multiselect',
|
'type' => 'multiselect',
|
||||||
'class' => 'wc-enhanced-select',
|
'class' => 'wc-enhanced-select',
|
||||||
'css' => 'width: 450px;',
|
'css' => 'width: 400px;',
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'options' => WC()->countries->get_shipping_countries(),
|
'options' => WC()->countries->get_shipping_countries(),
|
||||||
'custom_attributes' => array(
|
'custom_attributes' => array(
|
||||||
|
|
|
@ -163,7 +163,7 @@ class WC_Shipping_Legacy_Local_Delivery extends WC_Shipping_Local_Pickup {
|
||||||
'title' => __( 'Specific countries', 'woocommerce' ),
|
'title' => __( 'Specific countries', 'woocommerce' ),
|
||||||
'type' => 'multiselect',
|
'type' => 'multiselect',
|
||||||
'class' => 'wc-enhanced-select',
|
'class' => 'wc-enhanced-select',
|
||||||
'css' => 'width: 450px;',
|
'css' => 'width: 400px;',
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'options' => WC()->countries->get_shipping_countries(),
|
'options' => WC()->countries->get_shipping_countries(),
|
||||||
'custom_attributes' => array(
|
'custom_attributes' => array(
|
||||||
|
|
|
@ -119,7 +119,7 @@ class WC_Shipping_Legacy_Local_Pickup extends WC_Shipping_Method {
|
||||||
'title' => __( 'Specific countries', 'woocommerce' ),
|
'title' => __( 'Specific countries', 'woocommerce' ),
|
||||||
'type' => 'multiselect',
|
'type' => 'multiselect',
|
||||||
'class' => 'wc-enhanced-select',
|
'class' => 'wc-enhanced-select',
|
||||||
'css' => 'width: 450px;',
|
'css' => 'width: 400px;',
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'options' => WC()->countries->get_shipping_countries(),
|
'options' => WC()->countries->get_shipping_countries(),
|
||||||
'custom_attributes' => array(
|
'custom_attributes' => array(
|
||||||
|
|
Loading…
Reference in New Issue