PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.3.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.3.0
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
← All changes | admin-legacy-core/assets/js/common.js +1 -27 3.1.2 → 3.3.0 View file →
@@ -10,38 +10,12 @@
10 10 }
11 11 }
12 12 };
13 13
14 - // Copy the log to clipboard.
15 - const wcf_copy_the_log = function () {
16 - $( '.wcf-log--copy' ).on( 'click', function ( e ) {
17 - e.preventDefault();
18 - const $this = $( this );
19 -
20 - const copy_boundry = document.createRange();
21 - copy_boundry.selectNode(
22 - document.getElementById( 'wcf-log--text' )
23 - );
24 - ownerDocument.defaultView.getSelection().removeAllRanges();
25 - ownerDocument.defaultView.getSelection().addRange( copy_boundry );
26 - document.execCommand( 'copy' );
27 - ownerDocument.defaultView.getSelection().removeAllRanges();
28 -
29 - $this.text( $this.attr( 'data-success' ) );
30 -
31 - setTimeout( function () {
32 - $this.text( $this.attr( 'data-default' ) );
33 - }, 500 );
34 - } );
35 - };
36 -
37 - $( document ).on( 'ready', function () {
14 + $( function () {
38 15 setTimeout( function () {
39 16 wcf_back_step_button();
40 17 }, 300 );
41 -
42 - // Copy the log to clipboard.
43 - wcf_copy_the_log();
44 18 } );
45 19
46 20 function installSuccess( event, args ) {
47 21 event.preventDefault();