openmedialibrary/static/js/backButton.js

28 lines
585 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-09-29 13:17:59 +00:00
tooltip: Ox._('Back to Books {0}', [Ox.SYMBOLS.control + 'W']),
2014-05-04 17:26:43 +00:00
type: 'image'
})
.css({
float: 'left',
margin: '4px 2px 4px 4px'
})
.bindEvent({
click: function() {
2014-05-18 23:24:04 +00:00
oml.UI.set({
item: '',
itemView: 'info'
});
2014-05-04 17:26:43 +00:00
}
});
return that;
};