You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2008/03/17 18:41:53 UTC

svn commit: r637988 - /myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js

Author: weber
Date: Mon Mar 17 10:41:45 2008
New Revision: 637988

URL: http://svn.apache.org/viewvc?rev=637988&view=rev
Log:
(TOBAGO-543) replace prototype with dojo as underlying ajax library
<http://issues.apache.org/jira/browse/TOBAGO-543>
  make logPanel moveable again

Modified:
    myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js

Modified: myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js?rev=637988&r1=637987&r2=637988&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js (original)
+++ myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js Mon Mar 17 10:41:45 2008
@@ -258,8 +258,10 @@
     Tobago.addBindEventListener(this.hideButton, "click", this, "doHide");
     Tobago.addBindEventListener(this.hideButton, "mousedown", Tobago, "stopEventPropagation");
 
-    new dojo.dnd.Moveable(this.element, {handle: this.dragHandleTop});
-
+    var moveable = new dojo.dnd.Moveable(this.element, {handle: this.dragHandleTop});
+    moveable.events[moveable.events.length] = dojo.connect(this.dragHandleRight, "onmousedown", moveable, "onMouseDown")
+    moveable.events[moveable.events.length] = dojo.connect(this.dragHandleBottom, "onmousedown", moveable, "onMouseDown")
+    moveable.events[moveable.events.length] = dojo.connect(this.dragHandleLeft, "onmousedown", moveable, "onMouseDown")
 
     this.body = document.getElementsByTagName("body")[0];
     this.body.tbgLogArea = this;