fix menu extras

This commit is contained in:
rlx 2016-01-16 21:02:40 +05:30
parent bc88615c31
commit 601c23f985
2 changed files with 14 additions and 10 deletions

View file

@ -7,9 +7,6 @@ oml.ui.peersButton = function() {
})
.css({
marginRight: '6px'
})
.bindEvent({
click: open
}),
count,
requests = 0;
@ -24,7 +21,9 @@ oml.ui.peersButton = function() {
borderRadius: 0
})
.bindEvent({
click: open
click: function() {
oml.UI.set({page: 'peers'});
}
})
.appendTo(that);
@ -36,6 +35,11 @@ oml.ui.peersButton = function() {
fontSize: '9px'
})
.html('0')
.bindEvent({
anyclick: function() {
oml.UI.set({page: 'peers'});
}
})
.appendTo(that);
oml.bindEvent({
@ -44,7 +48,7 @@ oml.ui.peersButton = function() {
update();
function open() {
oml.UI.set({page: 'peers'});
}
function update() {
// wait for clearCache in folder.js

View file

@ -7,11 +7,6 @@ oml.ui.transferButton = function() {
})
.css({
marginRight: '6px'
})
.bindEvent({
click: function() {
oml.UI.set({page: 'transfers'});
}
}),
bandwidth = Ox.Element()
@ -22,6 +17,11 @@ oml.ui.transferButton = function() {
fontSize: '9px'
})
.html(formatBandwidth(0, 0))
.bindEvent({
anyclick: function() {
oml.UI.set({page: 'transfers'});
}
})
.appendTo(that);
function formatBandwidth(up, down) {