diff --git a/static/js/pandora.api.js b/static/js/pandora.api.js index 6272518a0..ed1b6876b 100755 --- a/static/js/pandora.api.js +++ b/static/js/pandora.api.js @@ -40,6 +40,11 @@ var app = new Ox.App({ }); $main.appendTo(app.$body); + if(document.location.hash) { + var action = document.location.hash.substring(1); + //FIXME: how to select item in Ox.TextList? + //app.$ui.actionList + } }); function constructList() { @@ -83,12 +88,15 @@ function constructList() { ] }).bindEvent({ select: function(event, data) { - var info = $('
').html(app.docs[k].replace('/\n/
\n/g'))); + hash += k + ',' }); + document.location.hash = hash.substring(0, hash.length-1); app.$ui.actionInfo.html(info); } });