api: revert silly js change
This commit is contained in:
parent
bef21341c6
commit
4ed00240eb
1 changed files with 2 additions and 2 deletions
|
@ -4083,7 +4083,7 @@ Metamaps.Topic = {
|
|||
};
|
||||
var topicSuccessCallback = function (topicModel, response) {
|
||||
if (Metamaps.Active.Map) {
|
||||
mapping.save({ mappable_id: topicModel.get('topic').id }, {
|
||||
mapping.save({ mappable_id: topicModel.id }, {
|
||||
success: mappingSuccessCallback,
|
||||
error: function (model, response) {
|
||||
console.log('error saving mapping to database');
|
||||
|
@ -4254,7 +4254,7 @@ Metamaps.Synapse = {
|
|||
};
|
||||
var synapseSuccessCallback = function (synapseModel, response) {
|
||||
if (Metamaps.Active.Map) {
|
||||
mapping.save({ mappable_id: synapseModel.get('synapse').id }, {
|
||||
mapping.save({ mappable_id: synapseModel.id }, {
|
||||
success: mappingSuccessCallback
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue