PATH:
home
/
lab2454c
/
costbloc.com
/
public
/
dist
/
js
/
custom
"use strict";if($(".main-body .page-wrapper").find("#attribute_group-add-container").length||$(".main-body .page-wrapper").find("#attribute_group-edit-container").length||$(".main-body .page-wrapper").find("#attribute-add-container").length||$(".main-body .page-wrapper").find("#attribute-edit-container").length){var rowid=2;function addAttributeValue(){let attributValue=`<tr draggable="false" class="" id="rowid-${rowid}">\n <td class="text-center">\n <i class="fa fa-bars"></i>\n </td>\n <td>\n <div class="form-group">\n <input type="text" name="values[]" class="form-control inputFieldDesign" required id="valueChk-${rowid}">\n <span id="value-text-${rowid}" class="validationMsg"></span>\n <input type="hidden" name="row_identify[]" value="${rowid}">\n </div>\n </td>\n <td class="text-center">\n <button type="button" class="btn btn-xs btn-danger delete-row" data-row-id="${rowid}" data-bs-toggle="tooltip" data-title="Delete Value" data-original-title="" title="">\n <i class="feather icon-trash-2"></i>\n </button>\n </td>\n </tr>`;rowid++,$("#values").append(attributValue)}$(".main-body .page-wrapper").find("#attribute-edit-container").length&&(rowid=$("#row_id").val()),($(".main-body .page-wrapper").find("#attribute-add-container").length||$(".main-body .page-wrapper").find("#attribute-edit-container").length)&&$("#values").sortable({distance:5,delay:300,opacity:.6,cursor:"move"}),$(document).on("click","#btnSubmit",(function(event){let arr=["v-pills-home-tab","v-pills-profile-tab"];setTimeout(()=>{for(const key in arr){let target=$(`.tab-pane[aria-labelledby="${arr[key]}"]`);if($(target).find(".error").length>0){$(`#${arr[key]}`).tab("show");break}}},100)})),$(document).on("click","#add-new-value",(function(event){event.preventDefault(),addAttributeValue()})),$(document).on("click",".delete-row",(function(e){e.preventDefault();var idtodelete=$(this).attr("data-row-id");$("#rowid-"+idtodelete).remove()}))}$(".main-body .page-wrapper").find("#attribute-list-container").length&&$(document).on("click","#csv, #pdf",(function(event){event.preventDefault(),window.location=SITE_URL+"/attributes/"+this.id})),$(".main-body .page-wrapper").find("#attribute_group-list-container").length&&$(document).on("click","#csv, #pdf",(function(event){event.preventDefault(),window.location=SITE_URL+"/attribute-groups/"+this.id}));
[-] create-product.min.js
[edit]
[-] refund.js
[edit]
[-] shops.js
[edit]
[-] commission.min.js
[edit]
[-] user.min.js
[edit]
[-] installer.js
[edit]
[-] category.min.js
[edit]
[+]
site
[-] jquery.blockUI.js
[edit]
[-] category.js
[edit]
[-] create-product.js
[edit]
[-] refund.min.js
[edit]
[+]
..
[-] shipping.min.js
[edit]
[-] user.js
[edit]
[-] jquery.blockUI.min.js
[edit]
[-] option.min.js
[edit]
[-] users-activity-list.js
[edit]
[-] attribute.min.js
[edit]
[-] email-configuration.min.js
[edit]
[-] dashboard.js
[edit]
[-] order.min.js
[edit]
[-] delete-modal.js
[edit]
[-] withdrawal.js
[edit]
[-] product-setting.js
[edit]
[-] validation.js
[edit]
[-] vendors.min.js
[edit]
[-] shops.min.js
[edit]
[-] roles.js
[edit]
[-] review.js
[edit]
[-] common.min.js
[edit]
[-] geolocale-suggestion.min.js
[edit]
[-] custom-category.js
[edit]
[-] product.js
[edit]
[-] order-invoice.min.js
[edit]
[-] common.js
[edit]
[-] product_list.js
[edit]
[-] settings.js
[edit]
[-] permission.min.js
[edit]
[-] coupon.js
[edit]
[-] export.js
[edit]
[-] yajra-custom.min.js
[edit]
[-] users-activity-list.min.js
[edit]
[-] finance.min.js
[edit]
[-] geolocale-suggestion.js
[edit]
[-] option.js
[edit]
[-] newsletter.min.js
[edit]
[-] order.js
[edit]
[-] role-permission.js
[edit]
[-] brand.min.js
[edit]
[-] transaction.js
[edit]
[-] popup.min.js
[edit]
[-] validation.min.js
[edit]
[-] templates.min.js
[edit]
[-] attribute.js
[edit]
[-] brand.js
[edit]
[-] app-layout.js
[edit]
[-] preference.js
[edit]
[-] invoice.js
[edit]
[-] order-invoice.js
[edit]
[-] yajra-export.js
[edit]
[-] product-setting.min.js
[edit]
[-] yajra-custom.js
[edit]
[-] installer.min.js
[edit]
[-] invoice.min.js
[edit]
[-] product_list.min.js
[edit]
[-] email-configuration.js
[edit]
[-] custom-category.min.js
[edit]
[-] settings.min.js
[edit]
[-] yajra-export.min.js
[edit]
[-] withdrawal.min.js
[edit]
[-] payment.js
[edit]
[-] preference.min.js
[edit]
[-] roles.min.js
[edit]
[-] finance.js
[edit]
[-] app-layout.min.js
[edit]
[-] permission.js
[edit]
[-] transaction.min.js
[edit]
[-] popup.js
[edit]
[-] order_status.min.js
[edit]
[-] commission.js
[edit]
[-] coupon.min.js
[edit]
[-] shipping.js
[edit]
[-] review.min.js
[edit]
[-] templates.js
[edit]
[-] delete-modal.min.js
[edit]
[-] vendors.js
[edit]
[-] order_status.js
[edit]
[-] dashboard.min.js
[edit]
[-] newsletter.js
[edit]
[-] product.min.js
[edit]
[-] export.min.js
[edit]