From 2e6d83039fcb20baf6c6165130930a20ae31d1cc Mon Sep 17 00:00:00 2001 From: Matheus Lopes Date: Wed, 20 Apr 2016 15:04:31 -0300 Subject: [PATCH] Forgotten after changes xD --- assets/js/admin/settings.js | 2 +- assets/js/admin/settings.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/admin/settings.js b/assets/js/admin/settings.js index a2bcd2bd6c2..c20ac7e158b 100644 --- a/assets/js/admin/settings.js +++ b/assets/js/admin/settings.js @@ -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(); diff --git a/assets/js/admin/settings.min.js b/assets/js/admin/settings.min.js index 7bb0bf19101..6dfa7a3a51e 100644 --- a/assets/js/admin/settings.min.js +++ b/assets/js/admin/settings.min.js @@ -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); \ No newline at end of file +!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); \ No newline at end of file