mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-06 23:57:20 +02:00
Fix AngularJS controller registration issue
- Make app variable global in system-status.js to fix [$controller:ctrlreg] errors - Add module reference check in websiteFunctions.js for compatibility - Ensures all controllers can register properly with the CyberCP module - Fixes dashboard data loading and WordPress creation page functionality
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
* Created by usman on 7/26/17.
|
||||
*/
|
||||
|
||||
// Ensure app is available (get existing module or create reference)
|
||||
// This ensures compatibility with the global app variable from system-status.js
|
||||
if (typeof app === 'undefined') {
|
||||
app = angular.module('CyberCP');
|
||||
}
|
||||
|
||||
// Global function for deleting staging sites
|
||||
function deleteStagingGlobal(stagingId) {
|
||||
if (confirm("Are you sure you want to delete this staging site? This action cannot be undone.")) {
|
||||
|
||||
Reference in New Issue
Block a user