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:
parent
5efe54c0e2
commit
c3b59a62fe
8 changed files with 71 additions and 22 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue