%PDF- %PDF-
Direktori : /var/www/html/itworks/wp-content/plugins/woocommerce-multilingual/res/js/ |
Current File : /var/www/html/itworks/wp-content/plugins/woocommerce-multilingual/res/js/lock_fields.min.min.min.js |
jQuery(document).ready(function(g){var f,j=["_virtual","_downloadable","product-type","_backorders","_manage_stock","_stock","_stock_status","_sold_individually","comment_status","_tax_status","_tax_class","parent_id","crosssell_ids","upsell_ids","product_shipping_class"];for(1==unlock_fields.file_paths&&j.push("_download_type"),j=j.concat(non_standard_fields.ids),g(".wcml_prod_hidden_notice").prependTo("#woocommerce-product-data"),f=0;f<j.length;f++){g("#"+j[f]).attr("disabled","disabled"),g("#"+j[f]).after(g(".wcml_lock_img").clone().removeClass("wcml_lock_img").show())}var i=["add_variation","link_all_variations","attribute_taxonomy","save_attributes","add_new_attribute","product_attributes .remove_row","add_attribute","select_all_attributes","select_no_attributes","edit-visibility"];for(i=i.concat(non_standard_fields.classes),1==unlock_fields.file_paths&&(i.push("upload_file_button"),i.push("insert"),i.push("delete"),g(".upload_file_button,.insert,.delete").bind({click:function(b){return!1}})),f=0;f<i.length;f++){g("."+i[f]).attr("disabled","disabled"),g("."+i[f]).after(g(".wcml_lock_img").clone().removeClass("wcml_lock_img").show())}g("#visibility .edit-visibility span").bind({click:function(b){return!1}}),g(".remove_variation").each(function(){g(this).attr("disabled","disabled"),g(this).after(g(".wcml_lock_img").clone().removeClass("wcml_lock_img").show().css("float","right"))});var h=["_width","_height","_sku","_length","_weight","product_length","_regular_price","_sale_price","_sale_price_dates_from","_sale_price_dates_to"];for(1==unlock_fields.file_paths&&(h.push("_download_limit"),h.push("_download_expiry"),h.push("_wc_file_names[]"),h.push("_wc_file_urls[]")),h=h.concat(non_standard_fields.input_names),1==unlock_fields.menu_order&&h.push("menu_order"),f=0;f<h.length;f++){g('input[name="'+h[f]+'"]').attr("readonly","readonly"),g(".dimensions_field span.wrap").css("float","left"),"_width"!=h[f]&&"_height"!=h[f]&&"_length"!=h[f]||(g('input[name="'+h[f]+'"]').css("margin-right",0),g('input[name="'+h[f]+'"]').css("float","none"),g('input[name="'+h[f]+'"]').css("width","29%")),"_sale_price_dates_to"==h[f]?g('input[name="'+h[f]+'"]').after(g(".wcml_lock_img").clone().removeClass("wcml_lock_img").css("float","left").show()):g('input[name="'+h[f]+'"]').after(g(".wcml_lock_img").clone().removeClass("wcml_lock_img").show())}g('#product_attributes td textarea,#product_attributes input[type="text"]').each(function(){g(this).attr("readonly","readonly"),g(this).after(g(".wcml_lock_img").clone().removeClass("wcml_lock_img").show())}),g('#product_attributes input[type="checkbox"]').each(function(){g(this).attr("disabled","disabled"),g(this).after(g(".wcml_lock_img").clone().removeClass("wcml_lock_img").show())}),g('form#post input[type="submit"]').click(function(){for(f=0;f<j.length;f++){g("#"+j[f]).removeAttr("disabled")}g('.woocommerce_variation select,#variable_product_options .toolbar select,.woocommerce_variation input[type="checkbox"],#product_attributes input[type="checkbox"]').each(function(){g(this).removeAttr("disabled")})})});var wcml_lock_variation_fields=function(i){var h=jQuery(".woocommerce_variation>h3 select").attr("disabled");if(void 0===h||h===!1){jQuery(".woocommerce_variation>h3 select, #variable_product_options .toolbar select, .show_if_variation_manage_stock select").each(function(){jQuery(this).attr("disabled","disabled"),jQuery(this).parent().append('<input type="hidden" name="'+jQuery(this).attr("name")+'" value="'+jQuery(this).val()+'" />'),jQuery(this).after(jQuery(".wcml_lock_img").clone().removeClass("wcml_lock_img").show())});var n=0,m=["_width","_height","_sku","_length","_weight","product_length","_regular_price","_sale_price","_sale_price_dates_from","_sale_price_dates_to","_stock","_download_limit","_download_expiry"];for(n=0;n<m.length;n++){jQuery('input[name^="variable'+m[n]+'"]').each(function(){jQuery(this).attr("readonly","readonly"),jQuery(this).after(jQuery(".wcml_lock_img").clone().removeClass("wcml_lock_img").show())})}var l=["_enabled","_is_downloadable","_is_virtual","_manage_stock"];for(n=0;n<l.length;n++){jQuery('input[name^="variable'+l[n]+'"]').each(function(){jQuery(this).attr("disabled","disabled"),jQuery(this).parent().append('<input type="hidden" name="'+jQuery(this).attr("name")+'" value="'+jQuery(this).val()+'" />'),jQuery(this).after(jQuery(".wcml_lock_img").clone().removeClass("wcml_lock_img").show())})}var k=["_stock_status","_shipping_class","_tax_class"];for(n=0;n<k.length;n++){jQuery('select[name^="variable'+k[n]+'"]').each(function(){jQuery(this).attr("disabled","disabled"),jQuery(this).parent().append('<input type="hidden" name="'+jQuery(this).attr("name")+'" value="'+jQuery(this).val()+'" />'),jQuery(this).after(jQuery(".wcml_lock_img").clone().removeClass("wcml_lock_img").show())})}if(i){for(var j in i){1==i[j]&&(jQuery('input[name^="_wc_variation_file_names['+j+']"]').each(function(){jQuery(this).attr("readonly","readonly")}),jQuery('input[name^="_wc_variation_file_urls['+j+']"]').each(function(){jQuery(this).attr("readonly","readonly"),jQuery(this).closest("tr").find(".upload_file_button").attr("disabled","disabled"),jQuery(this).closest("tr").find(".delete").attr("disabled","disabled"),jQuery(this).closest("tr").find(".delete").after(jQuery(".wcml_lock_img").clone().removeClass("wcml_lock_img").show().css("float","right"))}),jQuery('input[name^="_wc_variation_file_urls['+j+']"]').closest("table").find(".insert").attr("disabled","disabled"),jQuery('input[name^="_wc_variation_file_urls['+j+']"]').closest("table").find(".insert").after(jQuery(".wcml_lock_img").clone().removeClass("wcml_lock_img").show().css("float","left")))}}}};