diff --git a/application/modules/opac/views/scripts/head.phtml b/application/modules/opac/views/scripts/head.phtml index 22d6082ab34a516a728cb5128247a86d118739d2..e13bb79bb9923a61b59b824cc7c8cab11c368730 100644 --- a/application/modules/opac/views/scripts/head.phtml +++ b/application/modules/opac/views/scripts/head.phtml @@ -30,9 +30,11 @@ $head_scripts = Class_ScriptLoader::newInstance() ->addJQueryReady('setupAnchorsTarget()') ->showNotifications(); - +$request = Zend_Controller_Front::getInstance()->getRequest(); if (($user = Class_Users::getLoader()->getIdentity()) - && $user->isAdmin()) + && $user->isAdmin() + && 'index' == $request->getControllerName() + && 'index' == $request->getActionName()) $head_scripts->addJQueryReady(' var currentPositions = [0, 0, 0]; $("div.layout-division>div>div").each(function(k, item) {