oulan / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

Backward navigation doesn't work with links #236

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add two pages with ids "home" and "songs" (ex: artists and songs pages)
2. In Songs page add a html link with the href "#home"
3. The backward navigation doesn't work

What is the expected output? What do you see instead?
Navigation to the left. Navigation to the right side.

What version of the product are you using? On what operating system?
iui 0.31 on OSX 10.6

Please provide any additional information below.

In iui.js on addEventListener("click", function(event) {} content when link
has a valid hash is executed the function showPage which hasn't backward param.
The fix is to replace line 202:
iui.showPage($(link.hash.substr(1)));
with
iui.showPageById(link.hash.substr(1));

Original issue reported on code.google.com by ofertebr...@gmail.com on 29 Mar 2010 at 12:53

GoogleCodeExporter commented 9 years ago

Original comment by msgilli...@gmail.com on 29 Mar 2010 at 9:10

GoogleCodeExporter commented 9 years ago
Applying the follow patch:
http://code.google.com/r/msgilligan-iuiscroll/source/detail?r=99d9e1419a4e3e3966
029b6a3ab83a6981969f33
To the current tip [latest Hg] should fix this  (and do a little needed cleanup 
after adding the busy flag)

Original comment by msgilli...@gmail.com on 31 Mar 2010 at 6:55