Fix for Bug Ticket ID 2184
- Status
- Open
- Subject
- Fix for Bug Ticket ID 2184
- Version
- 6.x
- Category
- Patch
- Feature
- Menu
Modules - Submitted by
- mycroft
- Lastmod by
- mycroft
- Rating
- Related-to
- Description
I have confirmed this bug (2184) in Tiki 6.3 using Chrome and IE7/8.
I am not a javascript guru so this may not be the most eloquent solution, but it works.
To fix, replace the icntoggle function (line 693) in tiki-js.js with the following:
- Solution
function icntoggle(foo, img) {
if (!img) {
if (document.getElementsByName("icn" + foo).item(0).attributes.item("src").value.search(/\\//)) {
img = document.getElementsByName("icn" + foo).item(0).attributes.item("src").value.replace(/.*\\/(^\\/*)$/, "$1");
} else {
img = 'folder.png';
}
}if ($("#" + foo + ":hidden").length) {
show(foo, true, "menu");
document.getElementsByName("icn" + foo).item(0).attributes.item("src").value = document.getElementsByName("icn" + foo).item(0).attributes.item("src").value.replace(/^\\/*$/, 'o' + img);} else {
hide(foo, true, "menu");
img = img.replace(/(^|\/|\\)o(.*)$/, '$1$2');
document.getElementsByName("icn" + foo).item(0).attributes.item("src").value = document.getElementsByName("icn" + foo).item(0).attributes.item("src").value.replace(/^\\/*$/, img);
}
}- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3909
- Created
- Thursday 02 June, 2011 14:49:15 UTC
by mycroft - LastModif
- Thursday 02 June, 2011 14:49:15 UTC