1
0
Fork 0
forked from 0x2620/oxjs

fixing a bug where in a list, the click target loop would not exit when items are added or removed on click

This commit is contained in:
rlx 2011-09-05 05:40:44 +00:00
commit c3b59a62fe
8 changed files with 71 additions and 22 deletions

View file

@ -3,7 +3,7 @@ Ox.load('UI', {
theme: 'classic'
}, function() {
Ox.Theme('classic');
$.getJSON(Ox.UI.PATH + 'json/Ox.UI.json', function(files) {
$.getJSON(Ox.UI.PATH + 'json/Ox.UI.files.json', function(files) {
doc = Ox.DocPanel({
files: Ox.merge([
'Ox.js',
@ -25,8 +25,9 @@ Ox.load('UI', {
doc.selectItem(document.location.hash.substring(1));
},
select: function(data) {
if(data.ids)
if (data.ids) {
document.location.hash = data.ids[0];
}
}
});
doc.appendTo(Ox.UI.$body);