[Bug 729068] Port |Bug 668316 - canDrop is not implemented for about:sessionrestore's treeView| to Seamonkey. r=Neil
authorMisak Khachatryan <misak.bugzilla@gmail.com>
Tue, 21 Feb 2012 17:19:06 +0400
changeset 10881 ef4fd81847414ad3cda327c58eeaddad45323015
parent 10880 4487f9fbfe2dacd8cd222b2160b6f59861890a5e
child 10882 74aecd7c865c85b4ed60512d3e6fef7f56a4bef2
push id463
push userbugzilla@standard8.plus.com
push dateTue, 24 Apr 2012 17:34:51 +0000
treeherdercomm-beta@e53588e8f7b0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil
bugs729068, 668316
[Bug 729068] Port |Bug 668316 - canDrop is not implemented for about:sessionrestore's treeView| to Seamonkey. r=Neil
suite/common/aboutSessionRestore.js
--- a/suite/common/aboutSessionRestore.js
+++ b/suite/common/aboutSessionRestore.js
@@ -257,16 +257,17 @@ var treeView = {
   getCellText: function(idx, column) { return gTreeData[idx].label; },
   isContainer: function(idx)         { return "open" in gTreeData[idx]; },
   getCellValue: function(idx, column){ return gTreeData[idx].checked; },
   isContainerOpen: function(idx)     { return gTreeData[idx].open; },
   isContainerEmpty: function(idx)    { return false; },
   isSeparator: function(idx)         { return false; },
   isSorted: function()               { return false; },
   isEditable: function(idx, column)  { return false; },
+  canDrop: function(idx, orientation, dt)  { return false; },
   getLevel: function(idx)            { return this.isContainer(idx) ? 0 : 1; },
 
   getParentIndex: function(idx) {
     if (!this.isContainer(idx))
       for (var t = idx - 1; t >= 0 ; t--)
         if (this.isContainer(t))
           return t;
     return -1;