PluginProbe
Tracking Code Manager / 2.2.0
Tracking Code Manager v2.2.0
2.8.0 2.7.0 trunk 1.11.8 1.11.9 1.12.0 1.12.1 1.12.2 1.12.3 1.4 1.5 2.0.0 2.0.1 2.0.13 2.0.14 2.0.15 2.0.16 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.0 2.2.0 All 29 releases
tracking-code-manager / assets / js / plugin.js
plugin.js
113 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 //IntellyWP
2 jQuery('.wrap .updated.fade').remove();
3 jQuery('.woocommerce-message').remove();
4 jQuery('.error').remove();
5 jQuery('.info').remove();
6 jQuery('.update-nag').remove();
7
8 jQuery(function() {
9 "use strict";
10 //WooCommerce errors
11 var removeWooUpdateTheme = setInterval(function () {
12 if (jQuery('.wrap .updated.fade').length > 0) {
13 jQuery('.wrap .updated.fade').remove();
14 clearInterval(removeWooUpdateTheme);
15 }
16 }, 100);
17 var removeWooMessage = setInterval(function () {
18 if (jQuery('.woocommerce-message').length > 0) {
19 jQuery('.woocommerce-message').remove();
20 clearInterval(removeWooMessage);
21 }
22 }, 100);
23
24 jQuery('.wrap .updated.fade').remove();
25 jQuery('.woocommerce-message').remove();
26 jQuery('.error').remove();
27 jQuery('.info').remove();
28 jQuery('.update-nag').remove();
29 });
30
31 jQuery(function() {
32 if(jQuery('.wrap .updated.fade').length>0) {
33 jQuery('.wrap .updated.fade').remove();
34 }
35 if(jQuery('.woocommerce-message').length>0) {
36 jQuery('.woocommerce-message').remove();
37 }
38 jQuery('.update-nag,.updated,.error').each(function() {
39 var $self=jQuery(this);
40 if(!$self.hasClass('iwp')) {
41 $self.remove();
42 }
43 });
44 });
45
46 jQuery(function() {
47 "use strict";
48
49 //WooCommerce errors
50 var removeWooUpdateTheme=setInterval(function () {
51 if (jQuery('.wrap .updated.fade').length > 0) {
52 jQuery('.wrap .updated.fade').remove();
53 clearInterval(removeWooUpdateTheme);
54 }
55 }, 100);
56 var removeWooMessage=setInterval(function () {
57 if (jQuery('.woocommerce-message').length > 0) {
58 jQuery('.woocommerce-message').remove();
59 clearInterval(removeWooMessage);
60 }
61 }, 100);
62 });
63
64 jQuery(function() {
65 jQuery('.tcmp-select-onfocus').click(function() {
66 var $self=jQuery(this);
67 $self.select();
68 });
69
70 jQuery(".tcmp-hideShow").click(function() {
71 tcmp_hideShow(this);
72 });
73 jQuery(".tcmp-hideShow").each(function() {
74 tcmp_hideShow(this);
75 });
76
77 function tcmp_hideShow(v) {
78 var $source=jQuery(v);
79 if($source.attr('tcmp-hideIfTrue') && $source.attr('tcmp-hideShow')) {
80 var $destination=jQuery('[name='+$source.attr('tcmp-hideShow')+']');
81 if($destination.length==0) {
82 $destination=jQuery('#'+$source.attr('tcmp-hideShow'));
83 }
84 if($destination.length>0) {
85 var isChecked=$source.is(":checked");
86 var hideIfTrue=($source.attr('tcmp-hideIfTrue').toLowerCase()=='true');
87
88 if(isChecked) {
89 if(hideIfTrue) {
90 $destination.hide();
91 } else {
92 $destination.show();
93 }
94 } else {
95 if(hideIfTrue) {
96 $destination.show();
97 } else {
98 $destination.hide();
99 }
100 }
101 }
102 }
103 }
104 });
105
106 jQuery(function() {
107 jQuery(".starrr").starrr();
108 jQuery('#tcmp-rate').on('starrr:change', function(e, value){
109 var url='https://wordpress.org/support/view/plugin-reviews/tracking-code-manager?rate=5#postform';
110 window.open(url);
111 });
112 jQuery('#rate-box').show();
113 });