From 86191610080d8acc81c8f835b539843b27cddd25 Mon Sep 17 00:00:00 2001
From: "herbert: hoekstra"
Date: Thu, 30 May 2024 14:03:35 +0200
Subject: [PATCH] Added animation on action buttons
* 1.4.1 Added animation on action buttons
* Update data file button shows animated icon on download action
* Run the scan button shows animated icon on run action
* cleaned up some javascript on the buttons, now using jquery
---
CHANGELOG.md | 4 ++++
class/class-dashboard.php | 17 ++++++++++++++---
hhdev-mwpcpv.php | 4 ++--
3 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6a63d0c..1381ce2 100755
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,10 @@
**MainWP check vulnerability extension**
**Changelog:**
+* 1.4.1 Added animation on action buttons
+ * Update data file button shows animated icon on download action
+ * Run the scan button shows animated icon on run action
+ * cleaned up some javascript on the buttons, now using jquery
* 1.4.0 New plugin updater
* added: plugin updater
* removed: updater class
diff --git a/class/class-dashboard.php b/class/class-dashboard.php
index 7d90d43..0b85c34 100755
--- a/class/class-dashboard.php
+++ b/class/class-dashboard.php
@@ -1,6 +1,6 @@
-
+
+
@@ -148,6 +149,14 @@ public static function hhdev_mwpcpv_render_page() {
$('#toggle-novuln').removeClass('active').css("background-color","#7FB100");
}
});
+ $( "#dl-button" ).on( "click", function() {
+ $('.dl-loader').css('display','inline-block');
+ $('#data-update').submit();
+ });
+ $( "#run-button" ).on( "click", function() {
+ $('.run-loader').css('display','inline-block');
+ $('#run-scan').submit();
+ });
});
@@ -177,7 +188,7 @@ public static function hhdev_mwpcpv_render_page() {
echo ' '.$MainWPCheckPluginVulnerabilityActivator->hhdev_get_groups_dropdown($selected_group);
echo '
';
?>
-
+
diff --git a/hhdev-mwpcpv.php b/hhdev-mwpcpv.php
index 34115c9..db406f6 100755
--- a/hhdev-mwpcpv.php
+++ b/hhdev-mwpcpv.php
@@ -3,7 +3,7 @@
* Plugin Name: MainWP Check Plugins Vulnerability Extension
* Plugin URI: https://haha.nl
* Description: MainWP Extension: Use this extension to check the installed child site plugins for vulnerabilities using data from the wordfence vulnerability data feed api.
- * Version: 1.4.0
+ * Version: 1.4.1
* Author: herbert hoekstra - haha!
* Author URI: https://haha.nl
* Documentation URI: https://haha.nl/voorbeelden/mainwp-check-plugins-vulnerability-extension/
@@ -42,7 +42,7 @@ class MainWPCheckPluginVulnerabilityActivator
protected $childFile;
protected $plugin_handle = 'mainwp-check-plugins-vulnerability';
protected $product_id = 'MainWP Check Plugins Vulnerability Extension';
- protected $software_version = '1.4.0'; // used for mwp update notice
+ protected $software_version = '1.4.1'; // used for mwp update notice
// set custom plugin vars
// -------------------