* [bug#54666,0.5h] fix single and multiple change bug.
This commit is contained in:
@@ -27,7 +27,7 @@ window.afterPageUpdate = function($target, info, options)
|
||||
|
||||
window.initCheckedList = function()
|
||||
{
|
||||
if(typeof window.checkedList !== 'undefined' && Array.isArray(window.checkedList) && window.checkedList.length > 1)
|
||||
if(viewType == 'multiple' && (typeof window.checkedList !== 'undefined' && Array.isArray(window.checkedList) && window.checkedList.length > 1))
|
||||
{
|
||||
return window.checkedList;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ foreach($groupMetrics as $key => $metrics)
|
||||
foreach($metrics as $metric)
|
||||
{
|
||||
$class = in_array($metric->id, $checkedList) ? 'metric-current' : '';
|
||||
$class .= ' font-medium checkbox';
|
||||
$class .= ' check-metric font-medium checkbox';
|
||||
$metricCheckItems[] = item
|
||||
(
|
||||
set::text($metric->name),
|
||||
|
||||
Reference in New Issue
Block a user