Loading...
 
Skip to main content

menu is not expandable - bug in icntoggle() javascript

Status
Open
Subject
menu is not expandable - bug in icntoggle() javascript
Version
2.x
6.x
Category
  • Error
  • Regression
  • Usability
Feature
Menu
User Menu
Submitted by
hfalk
Lastmod by
Marc Laporte
Rating
(0)
Related-to
Description

I use Tikiwiki v2.2

I use the standard menu id=42 for admin menu on the right pane on my website but the menus will not expand so I am able to see the menuitems.

I get the following javascript error in my browser:

Error: document.getElementsByName("icn" + foo)0 is undefined
Source File: http://www.mydomain.com/lib/tiki-js.js
Line: 520

Solution

If I comment out line 520-522 in function icntoggle() in lib/tiki-js.js
then the code is as in v1.9.11 and works

Copy to clipboard
if (!img) { // if (document.getElementsByName('icn' + foo)[0].src.search(/[\\\/]/)) // img = document.getElementsByName('icn' + foo)[0].src.replace(/.*[\\\/]([^\\\/]*)$/, "$1"); // else img = 'folder.png'; }


I do not know if this is a longterm solution but I think someone should to fix it in a future release.


Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2184
Created
Wednesday 26 November, 2008 21:06:21 UTC
by Unknown
LastModif
Monday 10 June, 2013 01:49:44 UTC


Show PHP error messages