PATH:
home
/
letacommog
/
aacote
/
wp-content
/
plugins
/
dc-woocommerce-multi-vendor
/
assets
/
frontend
/
js
/* global wcmp_meta_boxes_script_data */ (function ($) { // wcmp_meta_boxes_script_data is required to continue, ensure the object exists if ( typeof wcmp_meta_boxes_script_data === 'undefined' ) { return false; } var block = function( $node ) { if ( ! is_blocked( $node ) ) { $node.addClass( 'processing' ).block( { message: null, overlayCSS: { background: '#fff', opacity: 0.6 } } ); } }; var is_blocked = function( $node ) { return $node.is( '.processing' ) || $node.parents( '.processing' ).length; }; var unblock = function( $node ) { $node.removeClass( 'processing' ).unblock(); }; // Common scroll to element code. var scroll_to = function( scrollElement ) { //if ( scrollElement.length ) { $( 'html, body' ).animate( { scrollTop: ( scrollElement.offset().top - 100 ) }, 1000 ); //} }; var product_meta_boxes = { $product_title_wrap: $('.product-title-wrap'), init: function() { // helper functions this.$product_title_wrap.on( 'click', '.editable-content-button', this.edit_content); this.$product_title_wrap.on( 'click', '.cancel-btn', this.cancel_content); }, edit_content: function() { var $editable = $(this).siblings('.editable-content'); var $editableText = $editable.text(); var $editingWrapItem = $(this).siblings('.editing-content'); $editingWrapItem.css('display', 'inline-block'); $editingWrapItem.children('.form-control').val($editableText); $editingWrapItem.children('label').hide(); $editable.hide(); $(this).hide(); }, cancel_content: function() { var $editingWrapItem = $(this).parent(); var $editable = $editingWrapItem.siblings('.editable-content'); var $editableButton = $editingWrapItem.siblings('.editable-content-button'); $editingWrapItem.css('display', 'none'); $editable.show(); $editableButton.show(); }, }; product_meta_boxes.init(); $( '#product_visiblity' ).find( '.catalog-visiblity-btn' ).click( function() { $( '#product_visiblity' ).collapse('hide'); var label = $( 'input[name=_visibility]:checked' ).attr( 'data-label' ); if ( $( 'input[name=_featured]' ).is( ':checked' ) ) { label = label + ', ' + $( 'input[name=_featured]' ).attr( 'data-label' ); $( 'input[name=_featured]' ).attr( 'checked', 'checked' ); } $( '#catalog-visibility-display' ).text( label ); return false; }); $( '#multiple-cat-hierarchy-lbl' ).find( '.multi-cat-choose-dflt-btn' ).click( function() { $( '#product_visiblity' ).collapse('hide'); $( '#multi_cat_hierarchy_visiblity' ).collapse('show'); return false; }); $( '#multi_cat_hierarchy_visiblity' ).on( 'click', '.set-default-cat-hierarchy-btn', function() { var label = $( 'input[name=_default_cat_hierarchy_term_id]:checked' ).attr( 'data-hierarchy' ); console.log(label); $( '#multi_cat_hierarchy_visiblity' ).collapse('hide'); $(".cat-breadcrumb-wrap .wcmp-breadcrumb.has-multiple-cat").html(''); $(".cat-breadcrumb-wrap .wcmp-breadcrumb.has-multiple-cat").html(label); return false; }); $( '.coupon-products-wrap' ).on( 'click', 'button.select_all_attributes', function() { $("#products > option").prop("selected","selected"); $("#products").trigger("change"); return false; }); $( '.coupon-products-wrap' ).on( 'click', 'button.select_no_attributes', function() { $("#products > option").removeAttr( 'selected' ); $("#products").trigger("change"); return false; }); $(document).click(function(e) { if (!$(e.target).parents('.wcmp-clps').length) { $('.wcmp-clps.collapse').collapse('hide'); } }); })(jQuery);
[+]
..
[-] wcmp_vendor_dashboard.js
[edit]
[-] product.js
[edit]
[-] coupon.js
[edit]
[-] vendor_review_rating.js
[edit]
[-] product-classify.js
[edit]
[-] vendor_dashboard.js
[edit]
[-] vendor_dashboard.min.js
[edit]
[-] jquery.mCustomScrollbar.concat.min.js
[edit]
[-] vendor_review_rating.min.js
[edit]
[-] single-product-multiple-vendors.js
[edit]
[-] wcmp_vendor_map_widget_data.js
[edit]
[-] wcmp-country-state.js
[edit]
[-] wcmp_vendor_announcements.js
[edit]
[-] wcmp_vendor_map_widget_data.min.js
[edit]
[-] profile_edit.min.js
[edit]
[-] simplepopup.js
[edit]
[-] frontend.min.js
[edit]
[-] vendor-shipping.js
[edit]
[-] wcmp_vendor_dashboard.min.js
[edit]
[-] single-product-multiple-vendors.min.js
[edit]
[-] vendor_order_by_product.js
[edit]
[-] meta-boxes.js
[edit]
[-] frontend.js
[edit]
[-] wcmp-customer-qna.min.js
[edit]
[-] simplepopup.min.js
[edit]
[-] wcmp-customer-qna.js
[edit]
[-] wcmp_vendor_announcements.min.js
[edit]
[-] vendor-list.js
[edit]
[-] vendor_order_by_product.min.js
[edit]
[-] profile_edit.js
[edit]