handleSave: function(id)
{
var o = this._options;
- params = {
- img: id,
- lat: this._map.points[0].getLatLng().lat(),
- lng: this._map.points[0].getLatLng().lng(),
- type: 'geotag'
- };
-
- new Ajax.Request(o.xurl, {
+ var params = { "values": "img=" + id + "/lat=" + this._map.points[0].getLatLng().lat() + "/lng=" + this._map.points[0].getLatLng().lng() };
+ new Ajax.Request(o.xurl + "/action=geotag/post=values", {
method: 'post',
parameters: params,
onComplete: function(transport) {
{
include_once dirname(__FILE__) . '/../../base.php';
- /* Require type, location, img to be from POST */
- $type = Horde_Util::getPost('type');
- $location = Horde_Util::getPost('location');
- $img = Horde_Util::getPost('img');
- $lat = Horde_Util::getPost('lat');
- $lng = Horde_Util::getPost('lng');
+ $type = $args['action'];
+ $location = empty($post['location']) ? '' : $post['location'];
+ $img = $post['img'];
+ $lat = $post['lat'];
+ $lng = $post['lng'];
if (empty($img) ||
($type == 'location' && empty($location)) ||