Bug #5159
closedJavascript refactoring
0%
Description
The Javascript functions hideInput, disableInput, hideClass, addRow, delRow et al have been replicated across dozens of PHP files and need to be extracted to a common include file.
Updated by Anonymous about 9 years ago
Include file javascript/pfSenseHelpers.js created and populated with common hide/show/disable/enable functions
Include file added to foot.inc
Updated by Anonymous about 9 years ago
Affected files:
src/usr/local/www/diag_backup.php
src/usr/local/www/diag_logs_settings.php
src/usr/local/www/firewall_nat_edit.php
src/usr/local/www/firewall_nat_out_edit.php
src/usr/local/www/firewall_rules_edit.php
src/usr/local/www/interfaces.php
src/usr/local/www/interfaces_ppps_edit.php
src/usr/local/www/services_captiveportal.php
src/usr/local/www/services_dhcp.php
src/usr/local/www/services_dhcp_edit.php
src/usr/local/www/services_dhcpv6.php
src/usr/local/www/services_dyndns_edit.php
src/usr/local/www/services_ntpd.php
src/usr/local/www/services_ntpd_gps.php
src/usr/local/www/services_unbound.php
src/usr/local/www/system_advanced_admin.php
src/usr/local/www/system_usermanager.php
src/usr/local/www/vpn_ipsec_phase1.php
src/usr/local/www/vpn_ipsec_phase2.php
src/usr/local/www/vpn_openvpn_client.php
src/usr/local/www/vpn_openvpn_csc.php
src/usr/local/www/vpn_openvpn_server.php
Updated by Anonymous about 9 years ago
First phase completed. (hide/show etc)
Now needs row helper functions treated similarly
Updated by Anonymous about 9 years ago
Rowhelper pages to be updated:
usr/local/www/firewall_aliases_edit.php
usr/local/www/pkg_edit.php
usr/local/www/services_dhcp.php
usr/local/www/services_ntpd.php
usr/local/www/services_router_advertisements.php
usr/local/www/services_unbound_acls.php
usr/local/www/system_certmanager.php
usr/local/www/vpn_pppoe_edit.php
Updated by Anonymous about 9 years ago
- Tracker changed from Todo to Bug
- Status changed from Confirmed to Closed