prevent default bookmark page(ctrl-d) in chrome
This commit is contained in:
parent
d549ab3592
commit
2f6a9ac82f
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,7 @@ oml.ui.list = function() {
|
||||||
}
|
}
|
||||||
oml.$ui.statusbar.set('total', data);
|
oml.$ui.statusbar.set('total', data);
|
||||||
},
|
},
|
||||||
key_control_d: function() {
|
key_control_d: function(event) {
|
||||||
var items = ui.listSelection.filter(function(id) {
|
var items = ui.listSelection.filter(function(id) {
|
||||||
return oml.$ui.list.value(id, 'mediastate') == 'unavailable';
|
return oml.$ui.list.value(id, 'mediastate') == 'unavailable';
|
||||||
});
|
});
|
||||||
|
@ -80,6 +80,7 @@ oml.ui.list = function() {
|
||||||
// FIXME: reload?
|
// FIXME: reload?
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
event.preventDefault();
|
||||||
},
|
},
|
||||||
key_control_delete: function() {
|
key_control_delete: function() {
|
||||||
if (that.options('selected').filter(function(id) {
|
if (that.options('selected').filter(function(id) {
|
||||||
|
|
Loading…
Reference in a new issue