PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
woocommerce
/
legacy
/
js
/
admin
/* exported wcSetClipboard, wcClearClipboard */ /** * Simple text copy functions using native browser clipboard capabilities. * @since 3.2.0 */ /** * Set the user's clipboard contents. * * @param string data: Text to copy to clipboard. * @param object $el: jQuery element to trigger copy events on. (Default: document) */ function wcSetClipboard( data, $el ) { if ( 'undefined' === typeof $el ) { $el = jQuery( document ); } var $temp_input = jQuery( '<textarea style="opacity:0">' ); jQuery( 'body' ).append( $temp_input ); $temp_input.val( data ).trigger( 'select' ); $el.trigger( 'beforecopy' ); try { document.execCommand( 'copy' ); $el.trigger( 'aftercopy' ); } catch ( err ) { $el.trigger( 'aftercopyfailure' ); } $temp_input.remove(); } /** * Clear the user's clipboard. */ function wcClearClipboard() { wcSetClipboard( '' ); }
[-] meta-boxes-product-variation.js
[edit]
[-] reports.js
[edit]
[-] system-status.js
[edit]
[-] wc-enhanced-select.js
[edit]
[-] woocommerce_admin.js
[edit]
[+]
..
[-] meta-boxes.js
[edit]
[-] api-keys.js
[edit]
[-] backbone-modal.js
[edit]
[-] wc-shipping-zones.js
[edit]
[-] wc-shipping-zone-methods.js
[edit]
[-] wc-clipboard.js
[edit]
[-] meta-boxes-order.js
[edit]
[-] wc-product-export.js
[edit]
[-] quick-edit.js
[edit]
[-] settings.js
[edit]
[-] settings-views-html-settings-tax.js
[edit]
[-] wc-orders.js
[edit]
[-] users.js
[edit]
[-] marketplace-suggestions.js
[edit]
[-] product-ordering.js
[edit]
[-] wc-product-import.js
[edit]
[-] meta-boxes-product.js
[edit]
[-] network-orders.js
[edit]
[-] wc-setup.js
[edit]
[-] term-ordering.js
[edit]
[-] meta-boxes-coupon.js
[edit]
[-] wc-shipping-classes.js
[edit]
[-] wc-status-widget.js
[edit]