1
0
Fork 0
forked from 0x2620/oxjs

add home button to doc page and example page

This commit is contained in:
rolux 2012-06-18 10:57:52 +02:00
commit ba1a3c4b2a
4 changed files with 47 additions and 15 deletions

View file

@ -113,17 +113,23 @@ Ox.ExamplePanel = function(options, self) {
item = Ox.getObjectById(self.items, id);
self.$panel.replaceElement(1,
self.$page = Ox.ExamplePage({
height: window.innerHeight,
html: item.html,
js: item.js,
references: item.references,
replaceCode: self.options.replaceCode,
replaceComment: self.options.replaceComment,
title: item.title,
width: window.innerWidth - self.options.size
})
height: window.innerHeight,
html: item.html,
js: item.js,
references: item.references,
replaceCode: self.options.replaceCode,
replaceComment: self.options.replaceComment,
title: item.title,
width: window.innerWidth - self.options.size
})
.bindEvent({
close: function() {
selectItem();
}
})
);
} else {
self.$list.options({selected: []});
self.$page.empty().append(self.options.element);
}
self.options.selected = id;