|
29 | 29 | $('.js-osdxp-submit-module-license').on('click', event => { |
30 | 30 | event.preventDefault(); |
31 | 31 |
|
32 | | - const pressEnterEvent = $.Event('keypress', {which: 13}); |
| 32 | + const pressEnterEvent = $.Event('keypress', { which: 13 }); |
33 | 33 | $(event.currentTarget).siblings('.js-osdxp-module-license').trigger(pressEnterEvent); |
34 | 34 | }); |
35 | 35 |
|
|
50 | 50 | $field.prop('disabled', true); |
51 | 51 |
|
52 | 52 | // Send license request. |
53 | | - $.ajax(`${OSDXPDashboard.restUrl}/license/${pluginSlug}/${licenseKey}`, { |
| 53 | + $.ajax(`${osDXPDashboard.restUrl}/license/${pluginSlug}/${licenseKey}`, { |
54 | 54 | beforeSend: (xhr) => { |
55 | | - xhr.setRequestHeader('X-WP-Nonce', OSDXPDashboard.restNonce); |
| 55 | + xhr.setRequestHeader('X-WP-Nonce', osDXPDashboard.restNonce); |
56 | 56 | }, |
57 | 57 | method: 'POST' |
58 | 58 | }).always(() => { |
|
79 | 79 | event.preventDefault(); |
80 | 80 |
|
81 | 81 | // Display a confirmation and only continue if the user clicked "Yes". |
82 | | - if (!confirm(OSDXPDashboard.text.licenseKeyRemovalConfirmation)) { |
| 82 | + if (!confirm(osDXPDashboard.text.licenseKeyRemovalConfirmation)) { |
83 | 83 | return; |
84 | 84 | } |
85 | 85 |
|
|
91 | 91 | $button.prop('disabled', true); |
92 | 92 |
|
93 | 93 | // Send license request. |
94 | | - $.ajax(`${OSDXPDashboard.restUrl}/license/${pluginSlug}`, { |
| 94 | + $.ajax(`${osDXPDashboard.restUrl}/license/${pluginSlug}`, { |
95 | 95 | beforeSend: (xhr) => { |
96 | | - xhr.setRequestHeader('X-WP-Nonce', OSDXPDashboard.restNonce); |
| 96 | + xhr.setRequestHeader('X-WP-Nonce', osDXPDashboard.restNonce); |
97 | 97 | }, |
98 | 98 | method: 'DELETE' |
99 | 99 | }).always(() => { |
|
127 | 127 | dxpActionsContainer.remove(); |
128 | 128 | dxpActionsHideLabel.remove(); |
129 | 129 |
|
130 | | - $(".dxp-dashboard #wp-admin-bar-root-default li").each( function() { |
131 | | - $(this).addClass('current'); |
| 130 | + $(".dxp-dashboard #wp-admin-bar-root-default li").each(function () { |
| 131 | + $(this).addClass('current'); |
132 | 132 | }); |
133 | 133 |
|
134 | 134 | $('.plugin-update-tr td').attr('colspan', 4); |
|
0 commit comments