Skip to content

Conversation

@bmfmancini
Copy link
Member

This pull request refactors the JavaScript functionality for the Audit plugin by moving inline scripts from audit.php into a new, dedicated file js/functions.js. This change improves code organization, maintainability, and reusability. No functional changes were made; the logic was simply relocated and slightly refactored for clarity.

JavaScript refactoring and organization:

  • Extracted all inline JavaScript related to filtering, dialog handling, and event binding from audit.php and placed it into a new file, js/functions.js, with improved function naming and comments for clarity. ([[1]](https://github.com/Cacti/plugin_audit/pull/43/files#diff-f08519ce6864967c56cf3b1a348441c4784a8e5b226c0710e17940fc38ff3cccL341-L388), [[2]](https://github.com/Cacti/plugin_audit/pull/43/files#diff-f08519ce6864967c56cf3b1a348441c4784a8e5b226c0710e17940fc38ff3cccL511-R463), [[3]](https://github.com/Cacti/plugin_audit/pull/43/files#diff-31238393ef9ee4284c3da472dd0c96c5ec04cd250e7626f57a0e96bcb262df3cR1-R150))
  • Updated audit.php to include the new js/functions.js script instead of inline JavaScript. ([audit.phpL511-R463](https://github.com/Cacti/plugin_audit/pull/43/files#diff-f08519ce6864967c56cf3b1a348441c4784a8e5b226c0710e17940fc38ff3cccL511-R463))

No changes were made to the PHP business logic or backend functionality.

@TheWitness TheWitness merged commit 2bcb3e0 into Cacti:develop Jan 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants