cablegates/static/js/pandora/ui/toolbar.js

26 lines
742 B
JavaScript
Raw Normal View History

2011-05-25 19:42:45 +00:00
// vim: et:ts=4:sw=4:sts=4:ft=js
pandora.ui.toolbar = function() {
var that = new Ox.Bar({
size: 24
}).css({
zIndex: 2 // fixme: remove later
});
2011-06-06 15:48:11 +00:00
pandora.user.ui.item && that.append(
pandora.$ui.backButton = pandora.ui.backButton()
2011-05-25 19:42:45 +00:00
);
that.append(
2011-06-06 15:48:11 +00:00
pandora.$ui.viewSelect = pandora.ui.viewSelect()
2011-05-25 19:42:45 +00:00
);
2011-06-06 15:48:11 +00:00
!pandora.user.ui.item && that.append(
pandora.$ui.sortSelect = pandora.ui.sortSelect()
2011-05-25 19:42:45 +00:00
);
that.append(
2011-06-06 15:48:11 +00:00
pandora.$ui.findElement = pandora.ui.findElement()
2011-05-25 19:42:45 +00:00
);
that.display = function() {
2011-06-06 15:48:11 +00:00
pandora.$ui.rightPanel.replaceElement(0, pandora.$ui.toolbar = pandora.ui.toolbar()); // fixme: remove later
2011-05-25 19:42:45 +00:00
}
return that;
};