mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
* updated tinymce to the latest (4.7.0) version
* added option to uninstall plugin * added option to require specified myaac or php version for plugins * added links loaded from database to admin panel - for future plugins * added few characters hooks * fixed some kathrine template js bug when shop is disabled
This commit is contained in:
32
templates/kathrine/menu.js.html.twig
Normal file
32
templates/kathrine/menu.js.html.twig
Normal file
@@ -0,0 +1,32 @@
|
||||
var list = new Array();
|
||||
list[0] = 'news';
|
||||
list[1] = 'account';
|
||||
list[2] = 'community';
|
||||
list[3] = 'library';
|
||||
{% if config.gifts_system %}
|
||||
list[4] = 'shops';
|
||||
{% endif %}
|
||||
|
||||
function initMenu()
|
||||
{
|
||||
var length = list.length;
|
||||
for(i = 0; i < length; i++)
|
||||
{
|
||||
if(list[i] == category)
|
||||
{
|
||||
document.getElementById(list[i]).className = 'tab-active';
|
||||
document.getElementById(list[i] + "-submenu").style.display = 'block';
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById(list[i]).className = 'tab';
|
||||
document.getElementById(list[i] + "-submenu").style.display = 'none';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function menuSwitch(cat)
|
||||
{
|
||||
category = cat;
|
||||
initMenu();
|
||||
}
|
Reference in New Issue
Block a user