Template, Core Apps: Update to new modal.

This commit is contained in:
Nate
2020-03-25 16:48:12 -06:00
parent 52f4626452
commit 97eec1da04
20 changed files with 213 additions and 120 deletions

View File

@@ -18,7 +18,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Copyright (C) 2010 - 2019
Copyright (C) 2010 - 2020
All Rights Reserved.
Contributor(s):
@@ -32,7 +32,7 @@ if (!class_exists('modal')) {
$modal = "<div id='".($array['id'] ? $array['id'] : 'modal')."' class='modal-window'>\n";
$modal .= " <div>\n";
$modal .= " <a href='#' title=\"".$text['button-close']."\" class='modal-close'>".($array['close'] ? $array['close'] : '&times;')."</a>\n";
$modal .= " <span title=\"".$text['button-close']."\" class='modal-close' onclick=\"modal_close();\">".($array['close'] ? $array['close'] : '&times;')."</span>\n";
if ($array['type'] != '') {
//add multi-lingual support
$language = new text;
@@ -51,6 +51,8 @@ if (!class_exists('modal')) {
$array['title'] = $text['modal_title-confirmation'];
$array['message'] = $text['confirm-delete'];
break;
default:
$array['title'] = $array['title'] != '' ? $array['title'] : $text['modal_title-confirmation'];
}
//prefix cancel button to action
$array['actions'] = button::create(['type'=>'button','label'=>$text['button-cancel'],'icon'=>$_SESSION['theme']['button_icon_cancel'],'collapse'=>'never','onclick'=>'modal_close();']).$array['actions'];
@@ -69,4 +71,4 @@ if (!class_exists('modal')) {
}
}
?>
?>