Module: nagvis Branch: master Commit: f6d65a5274a3894a26ceba00fab70ed4d7f13349 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=f6d65a5274a3894a26ceba00fab70ed4d7f13349
Author: Lars Michelsen <[email protected]> Date: Mon Sep 13 19:25:41 2010 +0200 Fixed drag n drop default browser action handling in current firefox --- share/frontend/wui/js/wui.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/share/frontend/wui/js/wui.js b/share/frontend/wui/js/wui.js index 5e0551d..80745f4 100644 --- a/share/frontend/wui/js/wui.js +++ b/share/frontend/wui/js/wui.js @@ -766,10 +766,10 @@ function dragStart(event) { sLabelName = null; // Disable the default events for all the different browsers - /*if(event.preventDefault) + if(event.preventDefault) event.preventDefault(); else - event.returnValue = false;*/ + event.returnValue = false; return true; } @@ -817,7 +817,7 @@ function moveRelativeObject(parentId, parentTop, parentLeft) { } function dragStop() { - if(!draggingEnabled) + if(!draggingEnabled || !draggingObject) return; // When x or y are negative just return this and make no change ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
