Remove duplicate code and avoid DOM search operation.

refs #6355
This commit is contained in:
Murtuza Zabuawala
2021-05-06 10:53:32 +05:30
committed by Akshay Joshi
parent b13627398b
commit 4c55044440
2 changed files with 2 additions and 10 deletions
@@ -493,11 +493,7 @@ define('tools.querytool', [
});
// Prevent browser from opening the drag file.
$('#datagrid').bind('dragover', function (event) {
event.stopPropagation();
event.preventDefault();
});
$('#datagrid').bind('drop', function (event) {
$('#datagrid').bind('dragover drop', function (event) {
event.stopPropagation();
event.preventDefault();
});