Commit 7c1b1750 authored by Andrew Smith's avatar Andrew Smith Committed by Felix Schäfer

Clear the document selection when selecting multiple rows.

parent c8be011a
......@@ -174,6 +174,7 @@
addSelection: function(element) {
element.addClass(contextMenuSelectionClass);
methods.checkSelectionBox(element, true);
methods.clearDocumentSelection();
},
isSelected: function(element) {
return element.hasClass(contextMenuSelectionClass);
......@@ -208,6 +209,13 @@
methods.addSelection(self);
}
});
},
clearDocumentSelection: function() {
if(document.selection) {
document.selection.clear();
} else {
window.getSelection().removeAllRanges();
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment