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

26 lines
746 B
JavaScript
Raw Normal View History

2011-07-29 18:37:11 +00:00
// vim: et:ts=4:sw=4:sts=4:ft=javascript
2011-05-25 19:42:45 +00:00
pandora.ui.toolbar = function() {
2011-06-19 17:49:25 +00:00
var that = Ox.Bar({
2011-05-25 19:42:45 +00:00
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;
};