mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
set data-remote of button to open a modal box with content loaded from remote
This commit is contained in:
parent
7854f75c8c
commit
d3d7956f4e
|
@ -1363,8 +1363,10 @@ function getOverallStatusIcon($status) { /* {{{ */
|
|||
function getModalBoxLinkAttributes($config) { /* {{{ */
|
||||
$attrs = array();
|
||||
$attrs[] = array('data-target', '#'.$config['target']);
|
||||
if(isset($config['remote']))
|
||||
if(isset($config['remote'])) {
|
||||
$attrs[] = array('href', $config['remote']);
|
||||
$attrs[] = array('data-remote', $config['remote']);
|
||||
}
|
||||
$attrs[] = array('data-toggle', 'modal');
|
||||
$attrs[] = array('role', 'button');
|
||||
if(isset($config['class'])) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user