prevent default bookmark page(ctrl-d) in chrome

This commit is contained in:
j 2016-01-17 15:56:54 +05:30
parent d549ab3592
commit 2f6a9ac82f

View file

@ -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) {