Skip to content

Commit

Permalink
Dev #T864: Sticky Bar (#1951)
Browse files Browse the repository at this point in the history
Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
  • Loading branch information
gabrieljenik and encuestabizdevgit committed Jul 28, 2021
1 parent ff50d8d commit 9febdb1
Show file tree
Hide file tree
Showing 19 changed files with 919 additions and 811 deletions.
4 changes: 4 additions & 0 deletions application/core/Survey_Common_Action.php
Expand Up @@ -753,6 +753,10 @@ function _fullpagebar(array $aData)
$sAlternativeUrl = '/admin/index';
$aData['fullpagebar']['closebutton']['url'] = Yii::app()->request->getUrlReferrer(Yii::app()->createUrl($sAlternativeUrl));
}
App()->getClientScript()->registerScriptFile(
App()->getConfig('adminscripts') . 'topbar.js',
CClientScript::POS_END
);
$this->getController()->renderPartial("/admin/super/fullpagebar_view", $aData);
}
}
Expand Down
9 changes: 9 additions & 0 deletions application/helpers/LayoutHelper.php
Expand Up @@ -205,6 +205,10 @@ public function fullpagebar(array $aData)
$sAlternativeUrl = '/admin/index';
$aData['fullpagebar']['closebutton']['url'] = Yii::app()->request->getUrlReferrer(Yii::app()->createUrl($sAlternativeUrl));
}
App()->getClientScript()->registerScriptFile(
App()->getConfig('adminscripts') . 'topbar.js',
CClientScript::POS_END
);
Yii::app()->getController()->renderPartial("/layouts/fullpagebar_view", $aData);
}
}
Expand Down Expand Up @@ -445,6 +449,11 @@ protected function beforeSideMenuRender(array $aData)
*/
public static function renderTopbar(array $aData)
{
App()->getClientScript()->registerScriptFile(
App()->getConfig('adminscripts') . 'topbar.js',
CClientScript::POS_END
);

$oTopbarConfig = TopbarConfiguration::createFromViewData($aData);

return Yii::app()->getController()->widget(
Expand Down

0 comments on commit 9febdb1

Please sign in to comment.