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

View File

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