git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4640 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2008-10-20 06:36:27 +00:00
parent 16c9b72946
commit 1aa41aacd7
10 changed files with 13 additions and 7 deletions

View file

@ -32,9 +32,15 @@ function showXESubMenu(evt) {
// open/close Main Navigator
function toggleXEMainNavigator() {
var obj = xGetElementsByClassName('xeAdmin')[0];
var btnObj = xGetElementById('btnFolder');
if(!obj) return;
if(obj.style.display == 'none') obj.style.display = 'block';
else obj.style.display = 'none';
if(obj.style.display == 'none') {
obj.style.display = 'block';
btnObj.src = btnObj.src.replace(/btn_off.png/,'btn.png');
} else {
obj.style.display = 'none';
btnObj.src = btnObj.src.replace(/btn.png/,'btn_off.png');
}
var expire = new Date();
expire.setTime(expire.getTime()+ (7000 * 24 * 3600000));
xSetCookie('XEMN', obj.style.display, expire);