From 6aaa88d3bccac105cf70b3bccd62908a736792c8 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 30 May 2011 11:06:28 +0200 Subject: [PATCH] simplify ListMap callbacks --- static/js/pandora/ui/placesDialog.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/static/js/pandora/ui/placesDialog.js b/static/js/pandora/ui/placesDialog.js index c2c82da1..feef0561 100644 --- a/static/js/pandora/ui/placesDialog.js +++ b/static/js/pandora/ui/placesDialog.js @@ -20,21 +20,21 @@ pandora.ui.placesDialog = function() { query: {conditions: [], operator: ''} }, data), callback); }, - addPlace: function(data, callback) { - Ox.print('ADDPLACE', data); - pandora.api.addPlace(data.place, function(result) { + addPlace: function(place, callback) { + Ox.print('ADDPLACE', place); + pandora.api.addPlace(place, function(result) { Ox.Request.clearCache(); // fixme: remove callback(result); }); }, - editPlace: function(data, callback) { - Ox.print('EDITPLACE', data); - pandora.api.editPlace(data.place, callback); + editPlace: function(place, callback) { + Ox.print('EDITPLACE', place); + pandora.api.editPlace(place, callback); }, - removePlace: function(data, callback) { - Ox.print('REMOVEPLACE', data); - pandora.api.removePlace(data.place, function(result) { + removePlace: function(place, callback) { + Ox.print('REMOVEPLACE', place); + pandora.api.removePlace(place, function(result) { Ox.Request.clearCache(); // fixme: remove callback(result); });