[Bbs2ch-cvs 87] CVS update: bbs2chreader/content/bbs2chreader

Back to archive index

flyson flyso****@users*****
2006年 1月 20日 (金) 01:40:09 JST


Index: bbs2chreader/content/bbs2chreader/board-page.xul
diff -u bbs2chreader/content/bbs2chreader/board-page.xul:1.14 bbs2chreader/content/bbs2chreader/board-page.xul:1.15
--- bbs2chreader/content/bbs2chreader/board-page.xul:1.14	Mon Dec 12 02:19:11 2005
+++ bbs2chreader/content/bbs2chreader/board-page.xul	Fri Jan 20 01:40:09 2006
@@ -8,6 +8,7 @@
 ]>
 <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/x-javascript" src="chrome://bbs2chreader/content/lib/clipboard.js"/>
Index: bbs2chreader/content/bbs2chreader/board-page.js
diff -u bbs2chreader/content/bbs2chreader/board-page.js:1.27 bbs2chreader/content/bbs2chreader/board-page.js:1.28
--- bbs2chreader/content/bbs2chreader/board-page.js:1.27	Fri Dec 23 13:56:40 2005
+++ bbs2chreader/content/bbs2chreader/board-page.js	Fri Jan 20 01:40:09 2006
@@ -113,6 +113,18 @@
 
 
 /**
+ * ツリーオブジェクトへのドロップを禁止
+ */
+function treeDropCheck(aEvent){
+	if(aEvent.originalTarget.localName.indexOf("tree") == 0){
+		aEvent.preventBubble();
+		return false;
+	}
+	return true;
+}
+
+
+/**
  * TreeSubject の初期化
  */
 function initTreeSubject(){
@@ -581,6 +593,7 @@
 				sortDirection = "natural";
 				sortActive = "false";
 				break;
+
 			default:
 				sortDirection = "ascending";
 				sortActive = "true";
@@ -632,6 +645,7 @@
 	isContainerEmpty: function(aRow){},
 	isSeparator: function(aRow){},
 	isSorted: function(aRow){},
+	canDrop: function(aIndex){},
 	canDropOn: function(aIndex){},
 	canDropBeforeAfter: function(aIndex, aBefore){},
 	drop: function(aIndex, aOrientation){},


bbs2ch-cvs メーリングリストの案内
Back to archive index