From 0eaa3e08962d3d22f4277f81dbd6102424902ac1 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 7 Jan 2015 22:35:21 +0000 Subject: [PATCH] Fix file drop stopped working after changing template --- etemplate/js/et2_extension_nextmatch.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index c48d2a9769..34cb8000e2 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -271,8 +271,8 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], { var self = this; // Register a handler - $j('table.egwGridView_grid',this.div) - .on('dragenter','tr',function(e) { + $j(this.div) + .on('dragenter','.egwGridView_grid tr',function(e) { // Figure out _which_ row var row = self.controller.getRowByNode(this); @@ -289,12 +289,12 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], } return false; }) - .on('dragexit','tr', function(e) { + .on('dragexit','.egwGridView_grid tr', function(e) { self.controller._selectionMgr.setFocused(); }) - .on('dragover','tr',false).attr("dropzone","copy") + .on('dragover','.egwGridView_grid tr',false).attr("dropzone","copy") - .on('drop', 'tr',function(e) { + .on('drop', '.egwGridView_grid tr',function(e) { self.handle_drop(e,this); return false; });