openmedialibrary/static/js/notificationsButton.js
2016-01-13 10:19:49 +05:30

40 lines
No EOL
744 B
JavaScript

'use strict';
oml.ui.notificationsButton = function() {
var that = Ox.Element({
tooltip: Ox._('No peering requests')
})
.css({
marginRight: '6px'
})
.bindEvent({
click: function() {
// ...
}
});
Ox.Button({
style: 'symbol',
title: 'user',
type: 'image'
})
.css({
float: 'left',
borderRadius: 0
})
.appendTo(that);
Ox.Element()
.addClass('OxLight')
.css({
float: 'left',
marginTop: '2px',
fontSize: '9px'
})
.html('0')
.appendTo(that);
return that;
};