mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Fix file drop stopped working after changing template
This commit is contained in:
parent
2c01aa23d4
commit
0eaa3e0896
@ -271,8 +271,8 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput],
|
|||||||
{
|
{
|
||||||
var self = this;
|
var self = this;
|
||||||
// Register a handler
|
// Register a handler
|
||||||
$j('table.egwGridView_grid',this.div)
|
$j(this.div)
|
||||||
.on('dragenter','tr',function(e) {
|
.on('dragenter','.egwGridView_grid tr',function(e) {
|
||||||
// Figure out _which_ row
|
// Figure out _which_ row
|
||||||
var row = self.controller.getRowByNode(this);
|
var row = self.controller.getRowByNode(this);
|
||||||
|
|
||||||
@ -289,12 +289,12 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput],
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
.on('dragexit','tr', function(e) {
|
.on('dragexit','.egwGridView_grid tr', function(e) {
|
||||||
self.controller._selectionMgr.setFocused();
|
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);
|
self.handle_drop(e,this);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user