chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r1662973 - in /chukwa/trunk: CHANGES.txt src/main/web/hicc/js/workspace/workspace.js
Date Sat, 28 Feb 2015 17:42:07 GMT
Author: eyang
Date: Sat Feb 28 17:42:07 2015
New Revision: 1662973

URL: http://svn.apache.org/r1662973
Log:
CHUKWA-738. Updated dragging event handling over iframe.  (Eric Yang)

Modified:
    chukwa/trunk/CHANGES.txt
    chukwa/trunk/src/main/web/hicc/js/workspace/workspace.js

Modified: chukwa/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/chukwa/trunk/CHANGES.txt?rev=1662973&r1=1662972&r2=1662973&view=diff
==============================================================================
--- chukwa/trunk/CHANGES.txt (original)
+++ chukwa/trunk/CHANGES.txt Sat Feb 28 17:42:07 2015
@@ -12,6 +12,8 @@ Trunk (unreleased changes)
 
   CHUKWA-723. Update Chukwa code to use new HBase HConnection API.  (Sreepathi Prasanna via
Eric Yang)
 
+  CHUKWA-738. Updated dragging event handling over iframe.  (Eric Yang)
+
   BUGS
 
   CHUKWA-735. Updated Nagios support to support basic encryption.  (Eric Yang)

Modified: chukwa/trunk/src/main/web/hicc/js/workspace/workspace.js
URL: http://svn.apache.org/viewvc/chukwa/trunk/src/main/web/hicc/js/workspace/workspace.js?rev=1662973&r1=1662972&r2=1662973&view=diff
==============================================================================
--- chukwa/trunk/src/main/web/hicc/js/workspace/workspace.js (original)
+++ chukwa/trunk/src/main/web/hicc/js/workspace/workspace.js Sat Feb 28 17:42:07 2015
@@ -1791,15 +1791,11 @@ portalPage.prototype = {
       			reverteffect: function(element, top_offset, left_offset) {
         		element._revert = new Effect.Move(element, { x: -left_offset, y: -top_offset, duration:
0.001});
       		    }, onDrag: function(element, draggable, event) { 
-                        if(navigator.userAgent.indexOf('Firefox')!=-1) {
-                            var dh = getDocHeight(document)+500;
-                            document.getElementById('firefox-bug').style.display='block';
-                            document.getElementById('firefox-bug').style.height=dh+'px';
-                        }
+                        var dh = getDocHeight(document)+500;
+                        document.getElementById('firefox-bug').style.display='block';
+                        document.getElementById('firefox-bug').style.height=dh+'px';
                     }, onEnd: function(element, draggable, event) {
-                        if(navigator.userAgent.indexOf('Firefox')!=-1) {
-                            document.getElementById('firefox-bug').style.display='none';
-                        }
+                        document.getElementById('firefox-bug').style.display='none';
                     } });
             	    var div = document.createElement('DIV');
                     columnWidth = 99 - sumWidth;
@@ -1890,15 +1886,11 @@ portalPage.prototype = {
       		    reverteffect: function(element, top_offset, left_offset) {
         	    element._revert = new Effect.Move(element, { x: -left_offset, y: -top_offset,
duration: 0.001});
       		    }, onDrag: function(element, draggable, event) { 
-                        if(navigator.userAgent.indexOf('Firefox')!=-1) {
-                            var dh = getDocHeight(document)+500;
-                            document.getElementById('firefox-bug').style.display='block';
-                            document.getElementById('firefox-bug').style.height=dh+'px';
-                        }
+                        var dh = getDocHeight(document)+500;
+                        document.getElementById('firefox-bug').style.display='block';
+                        document.getElementById('firefox-bug').style.height=dh+'px';
                     }, onEnd: function(element, draggable, event) {
-                        if(navigator.userAgent.indexOf('Firefox')!=-1) {
-                            document.getElementById('firefox-bug').style.display='none';
-                        }
+                        document.getElementById('firefox-bug').style.display='none';
                     } });
 	    }
         }
@@ -2000,11 +1992,9 @@ function moveDragableElement(e) {
    if(!okToMove)return;
    okToMove = false;
    
-   if(navigator.userAgent.indexOf('Firefox')!=-1) {
-      var dh = getDocHeight(document)+500;
-      document.getElementById('firefox-bug').style.display='block';
-      document.getElementById('firefox-bug').style.height=dh+'px';
-   }
+   var dh = getDocHeight(document)+500;
+   document.getElementById('firefox-bug').style.display='block';
+   document.getElementById('firefox-bug').style.height=dh+'px';
    destinationObj = false;	
    rectangleDiv.style.display = 'none'; 
    
@@ -2078,9 +2068,7 @@ function stop_dragDropElement() {
       return;
    }
    dragDropCounter = -1;
-   if(navigator.userAgent.indexOf('Firefox')!=-1) {
-      document.getElementById('firefox-bug').style.display='none';
-   }
+   document.getElementById('firefox-bug').style.display='none';
    if(transparencyWhenDragging){
       dragObject.style.filter = null;
       dragObject.style.opacity = null;



Mime
View raw message