Module: nagvis
Branch: master
Commit: b300462c3d024f6f7a3eea1d274d8c47bcb535a3
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=b300462c3d024f6f7a3eea1d274d8c47bcb535a3

Author: Lars Michelsen <[email protected]>
Date:   Thu Oct 14 19:36:38 2010 +0200

Removing the link completely from icons/lines when the link url is "#"

---

 .../frontend/nagvis-js/js/NagVisStatefulObject.js  |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js 
b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
index ed9bd70..ca1a2ca 100644
--- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
+++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
@@ -452,7 +452,7 @@ var NagVisStatefulObject = NagVisObject.extend({
                oLineDiv = null;
                
                // Parse hover/link area only when needed
-               if((this.conf.url && this.conf.url !== '') || 
(this.conf.hover_menu && this.conf.hover_menu !== '')) {
+               if((this.conf.url && this.conf.url !== '' && this.conf.url !== 
'#') || (this.conf.hover_menu && this.conf.hover_menu !== '')) {
                        var oLink = document.createElement('a');
                        oLink.setAttribute('id', 
this.conf.object_id+'-linelink');
                        oLink.href = this.conf.url;
@@ -714,7 +714,7 @@ var NagVisStatefulObject = NagVisObject.extend({
                oIconDiv.style.zIndex = this.conf.z;
                
                // Parse link only when set
-               if(this.conf.url && this.conf.url !== '') {
+               if(this.conf.url && this.conf.url !== '' && this.conf.url !== 
'#') {
                        var oIconLink = document.createElement('a');
                        oIconLink.href = this.conf.url;
                        oIconLink.target = this.conf.url_target;
@@ -763,7 +763,7 @@ var NagVisStatefulObject = NagVisObject.extend({
                oIconDiv.style.zIndex = this.conf.z;
                
                // Parse link only when set
-               if(this.conf.url && this.conf.url !== '') {
+               if(this.conf.url && this.conf.url !== '' && this.conf.url !== 
'#') {
                        var oIconLink = document.createElement('a');
                        oIconLink.href = this.conf.url;
                        oIconLink.target = this.conf.url_target;


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to