Forgotten after changes xD

This commit is contained in:
Matheus Lopes 2016-04-20 15:04:31 -03:00
parent 2c191f5bb7
commit 2e6d83039f
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
$( 'select#woocommerce_allowed_countries, select#woocommerce_ship_to_countries' ).change( function() {
if ( 'disabled' === $( this ).val() ) {
$( this ).parent().parent().next( 'tr' ).hide();
jQuery( this ).parent().parent().next().next( 'tr' ).hide();
$( this ).parent().parent().next().next( 'tr' ).hide();
} else if ( 'specific' === $( this ).val() ) {
$( this ).parent().parent().next( 'tr' ).hide();
$( this ).parent().parent().next().next( 'tr' ).show();

View File

@ -1 +1 @@
!function(a){a("select#woocommerce_allowed_countries, select#woocommerce_ship_to_countries").change(function(){"disabled"===a(this).val()?(a(this).parent().parent().next("tr").hide(),jQuery(this).parent().parent().next().next("tr").hide()):"specific"===a(this).val()?(a(this).parent().parent().next("tr").hide(),a(this).parent().parent().next().next("tr").show()):(a(this).parent().parent().next("tr").show(),a(this).parent().parent().next().next("tr").hide())}).change(),a(".colorpick").iris({change:function(b,c){a(this).parent().find(".colorpickpreview").css({backgroundColor:c.color.toString()})},hide:!0,border:!0}).click(function(){a(".iris-picker").hide(),a(this).closest("td").find(".iris-picker").show()}),a("body").click(function(){a(".iris-picker").hide()}),a(".colorpick").click(function(a){a.stopPropagation()}),a(function(){var b=!1;a("input, textarea, select, checkbox").change(function(){b=!0}),a(".woo-nav-tab-wrapper a").click(function(){b?window.onbeforeunload=function(){return woocommerce_settings_params.i18n_nav_warning}:window.onbeforeunload=""}),a(".submit input").click(function(){window.onbeforeunload=""})}),a("table.wc_gateways tbody, table.wc_shipping tbody").sortable({items:"tr",cursor:"move",axis:"y",handle:"td.sort",scrollSensitivity:40,helper:function(b,c){return c.children().each(function(){a(this).width(a(this).width())}),c.css("left","0"),c},start:function(a,b){b.item.css("background-color","#f6f6f6")},stop:function(a,b){b.item.removeAttr("style")}}),a(".woocommerce").on("click",".select_all",function(){return a(this).closest("td").find("select option").attr("selected","selected"),a(this).closest("td").find("select").trigger("change"),!1}),a(".woocommerce").on("click",".select_none",function(){return a(this).closest("td").find("select option").removeAttr("selected"),a(this).closest("td").find("select").trigger("change"),!1})}(jQuery);
!function(a){a("select#woocommerce_allowed_countries, select#woocommerce_ship_to_countries").change(function(){"disabled"===a(this).val()?(a(this).parent().parent().next("tr").hide(),a(this).parent().parent().next().next("tr").hide()):"specific"===a(this).val()?(a(this).parent().parent().next("tr").hide(),a(this).parent().parent().next().next("tr").show()):(a(this).parent().parent().next("tr").show(),a(this).parent().parent().next().next("tr").hide())}).change(),a(".colorpick").iris({change:function(b,c){a(this).parent().find(".colorpickpreview").css({backgroundColor:c.color.toString()})},hide:!0,border:!0}).click(function(){a(".iris-picker").hide(),a(this).closest("td").find(".iris-picker").show()}),a("body").click(function(){a(".iris-picker").hide()}),a(".colorpick").click(function(a){a.stopPropagation()}),a(function(){var b=!1;a("input, textarea, select, checkbox").change(function(){b=!0}),a(".woo-nav-tab-wrapper a").click(function(){b?window.onbeforeunload=function(){return woocommerce_settings_params.i18n_nav_warning}:window.onbeforeunload=""}),a(".submit input").click(function(){window.onbeforeunload=""})}),a("table.wc_gateways tbody, table.wc_shipping tbody").sortable({items:"tr",cursor:"move",axis:"y",handle:"td.sort",scrollSensitivity:40,helper:function(b,c){return c.children().each(function(){a(this).width(a(this).width())}),c.css("left","0"),c},start:function(a,b){b.item.css("background-color","#f6f6f6")},stop:function(a,b){b.item.removeAttr("style")}}),a(".woocommerce").on("click",".select_all",function(){return a(this).closest("td").find("select option").attr("selected","selected"),a(this).closest("td").find("select").trigger("change"),!1}),a(".woocommerce").on("click",".select_none",function(){return a(this).closest("td").find("select option").removeAttr("selected"),a(this).closest("td").find("select").trigger("change"),!1})}(jQuery);