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:
Description:
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...
Comment