mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-08 04:33:49 +00:00
Template, Core Apps: Update to new modal.
This commit is contained in:
@@ -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'] : '×')."</a>\n";
|
||||
$modal .= " <span title=\"".$text['button-close']."\" class='modal-close' onclick=\"modal_close();\">".($array['close'] ? $array['close'] : '×')."</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')) {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user