From 1b2f0514b942a51444ca6fb06165128210eb3291 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Fri, 18 Sep 2020 09:43:29 -0500 Subject: [PATCH] convert delconfirm function to php file --- web/ajax/modal.php | 3 --- web/ajax/modals/delconfig.php | 24 +++++++++++++++++++++ web/skins/classic/includes/functions.php | 27 ------------------------ 3 files changed, 24 insertions(+), 30 deletions(-) create mode 100644 web/ajax/modals/delconfig.php diff --git a/web/ajax/modal.php b/web/ajax/modal.php index 8c1af9c74..64200f559 100644 --- a/web/ajax/modal.php +++ b/web/ajax/modal.php @@ -9,9 +9,6 @@ $modal = validJsStr($_REQUEST['modal']); $data = array(); switch ( $modal ) { - case 'delconfirm' : - $data['html'] = getDelConfirmHTML(); - break; case 'storage' : if ( !isset($_REQUEST['id']) ) ajaxError('Storage Id Not Provided'); $data['html'] = getStorageModalHTML($_REQUEST['id']); diff --git a/web/ajax/modals/delconfig.php b/web/ajax/modals/delconfig.php new file mode 100644 index 000000000..9aec739f4 --- /dev/null +++ b/web/ajax/modals/delconfig.php @@ -0,0 +1,24 @@ + + + diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index 61de0559e..fdabfce04 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -815,33 +815,6 @@ function getStatsTableHTML($eid, $fid, $row='') { return $result; } -// This is the HTML representing the Delete confirmation modal on the Events page -function getDelConfirmHTML() { - $result = ''; - - $result .= ''.PHP_EOL; - - return $result; -} - function getStorageModalHTML($sid) { $result = ''; $null = '';