User editable dashboards... implementation in progress

SVN:trunk[2025]
This commit is contained in:
Denis Flaven
2012-05-24 14:22:01 +00:00
parent 536ea2cc21
commit 7de5315a01

View File

@@ -681,7 +681,13 @@ try
}
$oDashlet->FromParams($aCurrentValues);
$oDashlet->Update($aValues, $aUpdatedDecoded);
$sPrevClass = get_class($oDashlet);
$oDashlet = $oDashlet->Update($aValues, $aUpdatedDecoded);
$sNewClass = get_class($oDashlet);
if ($sNewClass != $sPrevClass)
{
$oPage->add_ready_script("$('#dashlet_$sDashletId').dashlet('option', {dashlet_class: '$sNewClass'});");
}
if ($oDashlet->IsRedrawNeeded())
{
$offset = $oPage->start_capture();