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

Author: LaMi <[email protected]>
Date:   Thu Mar 25 21:16:42 2010 +0100

#230 Statless lines can now be added using the WUI

---

 share/frontend/wui/classes/WuiMap.php         |    4 ++++
 share/userfiles/templates/default.header.html |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/share/frontend/wui/classes/WuiMap.php 
b/share/frontend/wui/classes/WuiMap.php
index a4af029..8e716d2 100644
--- a/share/frontend/wui/classes/WuiMap.php
+++ b/share/frontend/wui/classes/WuiMap.php
@@ -168,6 +168,10 @@ class WuiMap extends GlobalMap {
         */
        function fixIcon(&$obj) {
                $obj = $this->getIconPaths($obj);
+
+               if($obj['type'] == 'line') {
+                       return $obj;
+               }
                
                if($obj['type'] == 'shape' && 
preg_match('/^\[(.*)\]$/',$obj['icon'],$match) > 0) {
                        $obj['icon'] = $match[1];
diff --git a/share/userfiles/templates/default.header.html 
b/share/userfiles/templates/default.header.html
index 83e5670..af75740 100644
--- a/share/userfiles/templates/default.header.html
+++ b/share/userfiles/templates/default.header.html
@@ -110,7 +110,7 @@
                                <ul>
                                        <li><a class="topline topline" 
href="javascript:get_click('shape',1,'add');ddMenuHide(['map-addspecial','map']);">{$langShape}</a></li>
                                        <li><a class="topline" 
href="javascript:get_click('textbox',2,'add');ddMenuHide(['map-addspecial','map']);">{$langTextbox}</a></li>
-                                       <li><a class="topline underline" 
href="#">{$langStateless} {$langLine}</a></li>
+                                       <li><a class="topline underline" 
href="javascript:get_click('line',2,'add');ddMenuHide(['map-addspecial','map']);">{$langStateless}
 {$langLine}</a></li>
                                </ul>
                        </dd>
                </dl>


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to