Modal (Class): Use default cancel button icon.

This commit is contained in:
Nate
2020-03-05 09:55:10 -07:00
parent 5606c49fca
commit 36f1856c04

View File

@@ -53,7 +53,7 @@ if (!class_exists('modal')) {
break;
}
//prefix cancel button to action
$array['actions'] = button::create(['type'=>'button','label'=>$text['button-cancel'],'icon'=>'times','collapse'=>'never','onclick'=>'modal_close();']).$array['actions'];
$array['actions'] = button::create(['type'=>'button','label'=>$text['button-cancel'],'icon'=>$_SESSION['theme']['button_icon_cancel'],'collapse'=>'never','onclick'=>'modal_close();']).$array['actions'];
}
$modal .= $array['title'] ? "<span class='modal-title'>".$array['title']."</span>\n" : null;
$modal .= $array['message'] ? "<span class='modal-message'>".$array['message']."</span>\n" : null;