%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/assets/js/admin/
Upload File :
Create Path :
Current File : //var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/assets/js/admin/quick-edit.min.js

jQuery(function(v){v("#the-list").on("click",".editinline",function(){inlineEditPost.revert();var e=(e=v(this).closest("tr").attr("id")).replace("post-",""),t=v("#kkart_inline_"+e),i=t.find(".sku").text(),n=t.find(".regular_price").text(),o=t.find(".sale_price ").text(),d=t.find(".weight").text(),s=t.find(".length").text(),l=t.find(".width").text(),c=t.find(".height").text(),a=t.find(".shipping_class").text(),r=t.find(".visibility").text(),_=t.find(".stock_status").text(),m=t.find(".stock").text(),p=t.find(".featured").text(),u=t.find(".manage_stock").text(),f=t.find(".menu_order").text(),w=t.find(".tax_status").text(),h=t.find(".tax_class").text(),k=t.find(".backorders").text(),e=t.find(".product_type").text(),n=n.replace(".",kkart_admin.mon_decimal_point),o=o.replace(".",kkart_admin.mon_decimal_point);v('input[name="_sku"]',".inline-edit-row").val(i),v('input[name="_regular_price"]',".inline-edit-row").val(n),v('input[name="_sale_price"]',".inline-edit-row").val(o),v('input[name="_weight"]',".inline-edit-row").val(d),v('input[name="_length"]',".inline-edit-row").val(s),v('input[name="_width"]',".inline-edit-row").val(l),v('input[name="_height"]',".inline-edit-row").val(c),v('select[name="_shipping_class"] option:selected',".inline-edit-row").attr("selected",!1).change(),v('select[name="_shipping_class"] option[value="'+a+'"]').attr("selected","selected").change(),v('input[name="_stock"]',".inline-edit-row").val(m),v('input[name="menu_order"]',".inline-edit-row").val(f),v('select[name="_tax_status"] option, select[name="_tax_class"] option, select[name="_visibility"] option, select[name="_stock_status"] option, select[name="_backorders"] option').removeAttr("selected");f="variable"===e;v('select[name="_stock_status"] ~ .kkart-quick-edit-warning',".inline-edit-row").toggle(f),v('select[name="_stock_status"] option[value="'+(f?"":_)+'"]',".inline-edit-row").attr("selected","selected"),v('select[name="_tax_status"] option[value="'+w+'"]',".inline-edit-row").attr("selected","selected"),v('select[name="_tax_class"] option[value="'+h+'"]',".inline-edit-row").attr("selected","selected"),v('select[name="_visibility"] option[value="'+r+'"]',".inline-edit-row").attr("selected","selected"),v('select[name="_backorders"] option[value="'+k+'"]',".inline-edit-row").attr("selected","selected"),"yes"===p?v('input[name="_featured"]',".inline-edit-row").attr("checked","checked"):v('input[name="_featured"]',".inline-edit-row").removeAttr("checked");k=t.find(".product_is_virtual").text(),p="external"!==e,t="external"!==e&&"grouped"!==e;v(".stock_fields, .manage_stock_field, .stock_status_field, .backorder_field").show(),t?"yes"===u?(v(".stock_qty_field, .backorder_field",".inline-edit-row").show().removeAttr("style"),v(".stock_status_field").hide(),v(".manage_stock_field input").prop("checked",!0)):(v(".stock_qty_field, .backorder_field",".inline-edit-row").hide(),v(".stock_status_field").show().removeAttr("style"),v(".manage_stock_field input").prop("checked",!1)):v(p?".stock_fields, .manage_stock_field, .backorder_field":".stock_fields, .manage_stock_field, .stock_status_field, .backorder_field").hide(),"simple"===e||"external"===e?v(".price_fields",".inline-edit-row").show().removeAttr("style"):v(".price_fields",".inline-edit-row").hide(),"yes"===k?v(".dimension_fields",".inline-edit-row").hide():v(".dimension_fields",".inline-edit-row").show().removeAttr("style"),v('input[name="comment_status"]').parent().find(".checkbox-title").text(kkart_quick_edit.strings.allow_reviews)}),v("#the-list").on("change",'.inline-edit-row input[name="_manage_stock"]',function(){v(this).is(":checked")?(v(".stock_qty_field, .backorder_field",".inline-edit-row").show().removeAttr("style"),v(".stock_status_field").hide()):(v(".stock_qty_field, .backorder_field",".inline-edit-row").hide(),v(".stock_status_field").show().removeAttr("style"))}),v("#wpbody").on("click","#doaction, #doaction2",function(){v("input.text",".inline-edit-row").val(""),v("#kkart-fields").find("select").prop("selectedIndex",0),v("#kkart-fields-bulk").find(".inline-edit-group .change-input").hide()}),v("#wpbody").on("change","#kkart-fields-bulk .inline-edit-group .change_to",function(){0<v(this).val()?v(this).closest("div").find(".change-input").show():v(this).closest("div").find(".change-input").hide()}),v("#wpbody").on("click",".trash-product",function(){return window.confirm(kkart_admin.i18n_delete_product_notice)})});

Zerion Mini Shell 1.0