chg: [user] Usage of the assetLoader instead of echo

pull/4441/head
mokaddem 2019-04-08 11:15:55 +02:00
parent 00e0157d77
commit f5aa556f8b
1 changed files with 4 additions and 4 deletions

View File

@ -87,10 +87,10 @@ $buttonModifyStatus = $mayModify ? 'button_on':'button_off';
'class' => empty($user['User']['disabled']) ? '' : 'background-red',
'boolean' => $user['User']['disabled']
);
echo $this->Html->script('vis');
echo $this->Html->css('vis');
echo $this->Html->css('distribution-graph');
echo $this->Html->script('network-distribution-graph');
echo $this->element('genericElements/assetLoader', array(
'css' => array('vis', 'distribution-graph'),
'js' => array('vis', 'network-distribution-graph')
));
echo sprintf(
'<div class="users view row-fluid"><div class="span8" style="margin:0px;">%s%s</div>%s</div>%s',
sprintf(