PluginProbe ʕ •ᴥ•ʔ
Flex Import / 2.2
Flex Import v2.2
2.9 trunk 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8
flex-import / assets / js / license_script.js
flex-import / assets / js Last commit date
admin-script.js 11 months ago dashboard-posts.js 11 months ago front-script.js 11 months ago jquery.notify.min.js 11 months ago license_script.js 11 months ago plugin-admin.js 11 months ago template-admin.js 11 months ago
license_script.js
72 lines
1 jQuery(document).ready(function(){
2 jQuery('form#fleximp-license-key-form').on('submit', function(e) {
3 e.preventDefault();
4 var license_key = jQuery('form#fleximp-license-key-form').serializeArray()[0].value;
5
6 if ( license_key == "" ) {
7 alert('Please Enter the license key first!');
8 return;
9 } else {
10 jQuery.post(
11 localize_script_arr.ajaxurl, {
12 action: 'license_activate_fleximp',
13 wpnonce: localize_script_arr.wpnonce,
14 fleximp_is_premium: license_key,
15 text_domain: 'flex-import'
16 },
17 function(data, status) {
18 if (status == 'success') {
19 if (data.status) {
20 location.reload(true);
21
22 jQuery.notify(data.msg, {
23 position: "right bottom",
24 className: "success"
25 });
26 } else {
27 jQuery.notify(data.msg, {
28 position: "right bottom"
29 });
30 }
31 }
32 }
33 );
34 }
35 });
36
37 jQuery('form#fleximp-license-key-form .next-step-activation').on('click', function(e) {
38 e.preventDefault();
39 jQuery('.demo-import-wrap').show();
40 jQuery('.license-key-wrap').hide();
41 });
42
43 jQuery('form#fleximp-license-key-form .deactivate-domain').on('click', function(e) {
44
45 var license_key = jQuery('form#fleximp-license-key-form').serializeArray()[0].value;
46
47 if (confirm('Are you sure you want to deactivate the key!')) {
48 jQuery.post(
49 localize_script_arr.ajaxurl, {
50 action: 'license_deactivate_fleximp',
51 wpnonce: localize_script_arr.wpnonce,
52 fleximp_license_key: license_key
53 },
54 function(data) {
55
56 if( data.status == true ) {
57 location.reload(true);
58
59 jQuery.notify(data.msg, {
60 position: "right bottom",
61 className: "success"
62 });
63 } else {
64 jQuery.notify(data.msg, {
65 position: "right bottom"
66 });
67 }
68 }
69 );
70 }
71 });
72 });