openmedialibrary/static/js/backButton.js

25 lines
512 B
JavaScript
Raw Normal View History

2014-05-04 17:26:43 +00:00
'use strict';
oml.ui.backButton = function() {
var ui = oml.user.ui,
that = Ox.Button({
style: 'squared',
title: 'arrowLeft',
2014-05-12 23:43:27 +00:00
tooltip: Ox._('Back to Books {0}', [Ox.UI.symbols.control + 'W']),
2014-05-04 17:26:43 +00:00
type: 'image'
})
.css({
float: 'left',
margin: '4px 2px 4px 4px'
})
.bindEvent({
click: function() {
oml.UI.set({item: ''});
}
});
return that;
};