From f92dc108e2c6a25c236f5119c84f1aea42ff2c99 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sat, 4 Feb 2023 22:09:56 +0000 Subject: [PATCH] Tidy - Move some scripts to their own js files - Move some duplicate code blocks to functions - General tidy & spacing cleanups (#538) --- account_add_modal.php | 104 +- account_edit_modal.php | 64 +- accounts.php | 13 +- calendar_add_modal.php | 72 +- calendar_event_add_modal.php | 302 +- calendar_event_edit_modal.php | 299 +- calendar_events.php | 253 +- categories.php | 14 +- category_add_modal.php | 82 +- category_edit_modal.php | 97 +- category_quick_add_modal.php | 146 +- check_login.php | 4 +- client_add_modal.php | 600 ++-- client_asset_add_modal.php | 633 ++-- client_asset_copy_modal.php | 625 ++-- client_asset_documents_modal.php | 54 +- client_asset_edit_modal.php | 628 ++-- client_asset_import_modal.php | 52 +- client_asset_interface_add_modal.php | 231 +- client_asset_tickets_modal.php | 66 +- client_assets.php | 52 +- client_certificates.php | 4 +- client_contact_add_modal.php | 392 ++- client_contact_details.php | 139 +- client_contact_details_modal.php | 198 +- client_contact_edit_modal.php | 458 ++- client_contact_import_modal.php | 52 +- client_contact_invite_modal.php | 148 +- client_contacts.php | 406 ++- client_delete_modal.php | 44 +- client_document_details.php | 4 +- client_document_edit_modal.php | 94 +- client_document_folder_add_modal.php | 52 +- client_document_folder_rename_modal.php | 52 +- client_document_template_add_modal.php | 52 +- client_document_template_details.php | 4 +- client_document_template_edit_modal.php | 54 +- client_document_templates.php | 4 +- client_document_view_modal.php | 26 +- client_documents.php | 356 ++- client_domain_add_modal.php | 164 +- client_domain_edit_modal.php | 258 +- client_domains.php | 266 +- client_edit_modal.php | 327 +- client_events.php | 4 +- client_file_add_modal.php | 58 +- client_file_view_modal.php | 30 +- client_files.php | 11 +- client_invoices.php | 4 +- client_location_add_modal.php | 322 +- client_location_edit_modal.php | 340 ++- client_locations.php | 4 +- client_login_add_modal.php | 408 +-- client_login_edit_modal.php | 415 ++- client_logins.php | 2 +- client_logs.php | 2 +- client_networks.php | 4 +- client_payments.php | 4 +- client_quotes.php | 248 +- client_recurring_invoices.php | 4 +- client_scheduled_tickets.php | 176 +- client_services.php | 300 +- client_shared_items.php | 4 +- client_software.php | 4 +- client_software_add_from_template_modal.php | 84 +- client_software_add_modal.php | 444 ++- client_software_edit_modal.php | 444 ++- client_software_template_add_modal.php | 132 +- client_software_template_edit_modal.php | 132 +- client_software_templates.php | 4 +- client_tickets.php | 2 +- client_trips.php | 228 +- client_vendor_templates.php | 4 +- client_vendors.php | 318 +- clients.php | 638 ++-- companies.php | 195 +- company_add_modal.php | 360 +-- company_edit_modal.php | 364 +-- cron.php | 47 +- dashboard_technical.php | 21 +- database_updates.php | 88 +- expense_add_modal.php | 316 +- expense_copy_modal.php | 294 +- expense_edit_modal.php | 328 +- expense_export_modal.php | 78 +- expense_refund_modal.php | 124 +- expenses.php | 365 ++- footer.php | 48 +- functions.php | 52 + get_credential.php | 4 +- get_settings.php | 274 +- global_search.php | 41 +- guest_download_file.php | 9 +- guest_header.php | 86 +- guest_post.php | 12 +- guest_view_invoice.php | 14 +- guest_view_item.php | 20 +- inc_all.php | 16 +- inc_all_client.php | 62 +- invoice.php | 14 +- invoice_add_modal.php | 180 +- invoices.php | 44 +- js/client_delete_confirm.js | 9 + js/domain_edit_modal.js | 74 + ...ets.js => scheduled_tickets_edit_modal.js} | 0 logs.php | 13 +- notifications.php | 12 +- notifications_dismissed.php | 195 +- post.php | 24 +- quote_add_modal.php | 183 +- revenues.php | 337 ++- scheduled_tickets.php | 4 +- settings_api.php | 174 +- settings_backup.php | 6 +- settings_defaults.php | 373 ++- settings_modules.php | 69 +- settings_online_payment.php | 92 +- settings_ticket.php | 6 +- setup.php | 2648 ++++++++--------- transfer_add_modal.php | 243 +- transfer_edit_modal.php | 254 +- trip_add_modal.php | 250 +- trip_copy_modal.php | 242 +- trip_edit_modal.php | 249 +- trip_export_modal.php | 78 +- trips.php | 341 ++- user_profile.php | 10 +- vendor_add_from_template_modal.php | 88 +- vendor_template_add_modal.php | 310 +- vendor_template_edit_modal.php | 320 +- 130 files changed, 11265 insertions(+), 11514 deletions(-) create mode 100644 js/client_delete_confirm.js create mode 100644 js/domain_edit_modal.js rename js/{scheduledTickets.js => scheduled_tickets_edit_modal.js} (100%) diff --git a/account_add_modal.php b/account_add_modal.php index 9e728716..fb8db55f 100644 --- a/account_add_modal.php +++ b/account_add_modal.php @@ -1,61 +1,61 @@