openmedialibrary/static/js/connectionButton.js
2014-05-12 04:09:31 +02:00

33 lines
No EOL
624 B
JavaScript

'use strict';
oml.ui.connectionButton = function() {
var that = Ox.Element({
tooltip: Ox._('Disconnected')
})
.css({
marginRight: '3px'
})
.bindEvent({
// ...
});
/*
oml.ui.statusIcon(oml.user.online ? 'connected' : 'disconnected')
.css({float: 'left'})
.appendTo(that);
*/
Ox.Element()
.addClass('OxLight')
.css({
float: 'left',
marginTop: '2px',
fontSize: '9px'
})
.html('↓0K/↑0K')
.appendTo(that);
return that;
};