1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
function getMidOfAnchor(oObj) {
return [ oObj.x + parseInt(oObj.style.width) / 2,
oObj.y + parseInt(oObj.style.height) / 2 ];
}
function saveObjectAttr(objId, attr) {
var urlPart = '';
for (var key in attr)
urlPart += '&' + key + '=' + escapeUrlValues(attr[key]);
call_ajax(oGeneralProperties.path_server + '?mod=Map&act=modifyObject&map='
+ escapeUrlValues(oPageProperties.map_name) + '&id=' + escapeUrlValues(objId) + urlPart);
}
function saveObjectRemove(objId) {
call_ajax(oGeneralProperties.path_server + '?mod=Map&act=deleteObject&map='
+ escapeUrlValues(oPageProperties.map_name) + '&id=' + escapeUrlValues(objId));
}
|