openmedialibrary/static/js/backButton.js

28 lines
588 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() {
2014-05-18 23:24:04 +00:00
oml.UI.set({
item: '',
itemView: 'info'
});
2014-05-04 17:26:43 +00:00
}
});
return that;
};