cablegates/static/js/pandora/ui/backButton.js

17 lines
387 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.backButton = function() {
var that = Ox.Button({
2011-06-06 15:48:11 +00:00
title: 'Back to ' + pandora.site.itemName.plural,
2011-05-25 19:42:45 +00:00
width: 96
}).css({
float: 'left',
margin: '4px'
})
.bindEvent({
click: function(event, data) {
pandora.URL.set(pandora.Query.toString());
}
});
return that;
};