Ad Widget

Collapse

Improvent: DHTML positioning of map elements

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steki
    Junior Member
    • Mar 2008
    • 9

    #1

    Improvent: DHTML positioning of map elements

    Alpha version of patch that allows administrator to position elements on map with simple click - drag - place functionality.

    Zabbix version used for this is 1.4.4, I presume it should be usable on future versions (did not check )

    Patch internals:
    include/classes/ctag.inc.php: 2 functions added setID and getID
    include/classes/ccombobox.inc.php: 1 function call to new setID and $id value parameter addition
    include/classes/ctextbox.inc.php: 1 function call to new setID
    js/common.js: 2 functions added (not necessary in this moment for patch usage
    js/webtoolkit.drag.js: new file GPL license (stated by author on http://www.devbox.info/better-delaye...nothing-at-all)
    map.php: many changes

    Description:
    in current state this is fully usable except "problems" mentioned bellow, patching of main classes was necessity as some of the work in javascript would be too tedious (document.getElementsByName and looping trough it... and as someone reported is not very portable over different browsers.)
    Added functions (set|get)ID are usable now not only for this functionality but any scripting of all elements if needed
    Problems:
    problems with generation of areamap on main page of map editor (wrong "if" i presume by me somwhere - didn't had time to check)
    map is not center aligned...
    Attached Files
  • Aly
    ZABBIX developer
    • May 2007
    • 1126

    #2
    Thank you for your patch.

    We saw your patch, nice one. But it can't be applied to new version(v1.5), there are conflicting code areas. We decided to create the advanced maps based on your idea. This thing is in our TODO list and it won't get in to v1.4.x.
    Zabbix | ex GUI developer

    Comment

    Working...