svnno****@sourc*****
svnno****@sourc*****
2007年 10月 25日 (木) 22:51:09 JST
Revision: 233 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=233 Author: flyson Date: 2007-10-25 22:51:09 +0900 (Thu, 25 Oct 2007) Log Message: ----------- ツリーへのドロップを行えるようにした Modified Paths: -------------- trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.js trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.xul -------------- next part -------------- Modified: trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.js =================================================================== --- trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.js 2007-10-25 13:44:41 UTC (rev 232) +++ trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.js 2007-10-25 13:51:09 UTC (rev 233) @@ -134,18 +134,6 @@ } -/** - * ツリーオブジェクトへのドロップを禁止 - */ -function treeDropCheck(aEvent){ - if(aEvent.originalTarget.localName.indexOf("tree") == 0){ - aEvent.stopPropagation(); - return false; - } - return true; -} - - function loadPersist(){ var persistPref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService) @@ -899,24 +887,24 @@ } }, getColumnProperties: function(aCol, aProperties){}, - isContainer: function(aRow){}, - isContainerOpen: function(aRow){}, - isContainerEmpty: function(aRow){}, - isSeparator: function(aRow){}, - isSorted: function(aRow){}, - canDrop: function(aIndex){}, + isContainer: function(aRow){ return false; }, + isContainerOpen: function(aRow){ return false; }, + isContainerEmpty: function(aRow){ return false; }, + isSeparator: function(aRow){ return false; }, + isSorted: function(aRow){ return false; }, + canDrop: function(aIndex){ return false; }, canDropOn: function(aIndex){}, canDropBeforeAfter: function(aIndex, aBefore){}, drop: function(aIndex, aOrientation){}, - getParentIndex: function getParentIndex(aIndex){}, - hasNextSibling: function(aIndex, aAfterIndex){}, - getLevel: function(aIndex){}, + getParentIndex: function getParentIndex(aIndex){ return -1; }, + hasNextSibling: function(aIndex, aAfterIndex){ return false; }, + getLevel: function(aIndex){ return 0; }, getImageSrc: function(aRow, aCol){}, getProgressMode: function(aRow, aCol){}, getCellValue: function(aRow, aCol){}, selectionChanged: function(){}, cycleCell: function(aRow, aCol){}, - isEditable: function(aRow, aCol){}, + isEditable: function(aRow, aCol){ return false; }, setCellText: function(aRow, aCol, aValue){}, toggleOpenState: function(aIndex){}, performAction: function(aAction){}, Modified: trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.xul =================================================================== --- trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.xul 2007-10-25 13:44:41 UTC (rev 232) +++ trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.xul 2007-10-25 13:51:09 UTC (rev 233) @@ -8,7 +8,6 @@ ]> <page id="pageMain" onload="startup()" onunload="shutdown()" onmousedown="eventBubbleCheck(event)" onkeypress="eventBubbleCheck(event)" - ondragover="return treeDropCheck(event)" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/javascript; version=1.7" src="chrome://bbs2chreader/content/lib/clipboard.js"/>