| | |
| | | this.Event.Row = this.ARow; |
| | | this.GridMouseOver(ev,1); |
| | | CancelEvent(ev); |
| | | var row = this.ARow, col = this.ACol; |
| | | if(Grids.OnDropFile && Grids.OnDropFile(this,row,col,F)) return false; |
| | | var row = this.ARow, col = this.ACol, ins = null; |
| | | if(Grids.OnDropFile){ |
| | | var A = Grids.OnDropFile(this,row,col,F); |
| | | if(A){ |
| | | if(typeof(A)!="object") return false; |
| | | if(A[0] && typeof(A[0])=="object" && A[0].Def) row = A[0]; |
| | | if(typeof(col)=="string") col = A[1]; |
| | | if(A[2]!=null&&typeof(ins)=="string") ins = A[2]; |
| | | } |
| | | } |
| | | if(row&&col){ |
| | | var typ = this.GetType(row,col); |
| | | if(typ=="File" && this.CanEdit(row,col)==1){ |
| | | if(typ=="File" && (ins||this.CanEdit(row,col)==1)){ |
| | | MS.File; |
| | | var N = [], acc = this.GetAttr(row,col,"Accept"); |
| | | if(acc) acc = ToRegExp(acc).replace(/\\\*/g,".*"); |
| | |
| | | this.GridMouseOver(E); |
| | | if(this.Event.Grid=="Grid") return this; |
| | | var A = EventToWindow(E); |
| | | for(var i=0;i<Grids.length;i++) { |
| | | for(var i=Grids.length-1;i>=0;i--) { |
| | | var G = Grids[i]; if(G && G!=this) { |
| | | var X = A[0] - G.TableX, Y = A[1] - G.TableY; |
| | | if(X>=0 && X<G.TableWidth && Y>=0 && Y<G.TableHeight){ |