Skip to content

Commit 9d6bdda

Browse files
authored
Merge pull request #75 from osDXP/1.1.5
1.1.5
2 parents 874684f + 412503b commit 9d6bdda

File tree

6 files changed

+255
-247
lines changed

6 files changed

+255
-247
lines changed

assets/js/main.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
$('.js-osdxp-submit-module-license').on('click', event => {
3030
event.preventDefault();
3131

32-
const pressEnterEvent = $.Event('keypress', {which: 13});
32+
const pressEnterEvent = $.Event('keypress', { which: 13 });
3333
$(event.currentTarget).siblings('.js-osdxp-module-license').trigger(pressEnterEvent);
3434
});
3535

@@ -50,9 +50,9 @@
5050
$field.prop('disabled', true);
5151

5252
// Send license request.
53-
$.ajax(`${OSDXPDashboard.restUrl}/license/${pluginSlug}/${licenseKey}`, {
53+
$.ajax(`${osDXPDashboard.restUrl}/license/${pluginSlug}/${licenseKey}`, {
5454
beforeSend: (xhr) => {
55-
xhr.setRequestHeader('X-WP-Nonce', OSDXPDashboard.restNonce);
55+
xhr.setRequestHeader('X-WP-Nonce', osDXPDashboard.restNonce);
5656
},
5757
method: 'POST'
5858
}).always(() => {
@@ -79,7 +79,7 @@
7979
event.preventDefault();
8080

8181
// Display a confirmation and only continue if the user clicked "Yes".
82-
if (!confirm(OSDXPDashboard.text.licenseKeyRemovalConfirmation)) {
82+
if (!confirm(osDXPDashboard.text.licenseKeyRemovalConfirmation)) {
8383
return;
8484
}
8585

@@ -91,9 +91,9 @@
9191
$button.prop('disabled', true);
9292

9393
// Send license request.
94-
$.ajax(`${OSDXPDashboard.restUrl}/license/${pluginSlug}`, {
94+
$.ajax(`${osDXPDashboard.restUrl}/license/${pluginSlug}`, {
9595
beforeSend: (xhr) => {
96-
xhr.setRequestHeader('X-WP-Nonce', OSDXPDashboard.restNonce);
96+
xhr.setRequestHeader('X-WP-Nonce', osDXPDashboard.restNonce);
9797
},
9898
method: 'DELETE'
9999
}).always(() => {
@@ -127,8 +127,8 @@
127127
dxpActionsContainer.remove();
128128
dxpActionsHideLabel.remove();
129129

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');
132132
});
133133

134134
$('.plugin-update-tr td').attr('colspan', 4);

build/app.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/app.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

osdxp-dashboard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Author URI: https://osdxp.org
99
* Requires at least: 5.2
1010
* Requires PHP: 7.2
11-
* Version: 1.1.4
11+
* Version: 1.1.5
1212
* License: GPL2
1313
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
1414
* Text domain: osdxp-dashboard
@@ -42,7 +42,7 @@
4242
define('OSDXP_DASHBOARD_URL', plugins_url('/', OSDXP_DASHBOARD_FILE));
4343

4444
// Always mention the plugin version (enclose in quotes so it is processed as a string).
45-
define('OSDXP_DASHBOARD_VER', '1.1.4');
45+
define('OSDXP_DASHBOARD_VER', '1.1.5');
4646
define('OSDXP_DASHBOARD_SITE', 'https://osdxp.org/');
4747

4848
define('OSDXP_DASHBOARD_PLUGIN_NAME', 'Open Source DXP Dashboard');

0 commit comments

Comments
 (0)