今天同事再配置zabbix时,访问zabbix后台菜单无法选中,报了一堆的js 错误,后来经过我仔细排查,原来是js文件未加进来来,不知道zabbix发布代码时疏忽了,还是帮意埋的坑呀。
解决办法
1,打开include/page_header.php文件
2,添加
$pageHeader->addJsFile(‘js/jquery/jquery.js‘);
$pageHeader->addJsFile(‘js/jquery/jquery-ui.js‘);
$pageHeader->addJsFile(‘js/browsers.js‘);
$pageHeader->addJsFile(‘js/prototype.js‘);
$pageHeader->addJsFile(‘js/main.js‘);
$pageHeader->addJsFile(‘js/common.js‘);
$pageHeader->addJsFile(‘js/class.cmessages.js‘);
$pageHeader->addJsFile(‘js/class.rpc.js‘);
$pageHeader->addJsFile(‘js/class.cookie.js‘);
$pageHeader->addJsFile(‘js/class.curl.js‘);
$pageHeader->addJsFile(‘js/chkbxrange.js‘);
$pageHeader->addJsFile(‘js/class.bbcode.js‘);
$pageHeader->addJsFile(‘js/class.calendar.js‘);
$pageHeader->addJsFile(‘js/class.cdate.js‘);
$pageHeader->addJsFile(‘js/class.cdebug.js‘);
$pageHeader->addJsFile(‘js/class.cmap.js‘);
$pageHeader->addJsFile(‘js/class.cscreen.js‘);
$pageHeader->addJsFile(‘js/class.csuggest.js‘);
$pageHeader->addJsFile(‘js/class.cswitcher.js‘);
$pageHeader->addJsFile(‘js/class.ctree.js‘);
$pageHeader->addJsFile(‘js/class.cviewswitcher.js‘);
$pageHeader->addJsFile(‘js/class.pmaster.js‘);
$pageHeader->addJsFile(‘js/flickerfreescreen.js‘);
$pageHeader->addJsFile(‘js/functions.js‘);
$pageHeader->addJsFile(‘js/gtlc.js‘);
$pageHeader->addJsFile(‘js/init.js‘);
$pageHeader->addJsFile(‘js/menupopup.js‘);
$pageHeader->addJsFile(‘js/multiselect.js‘);