fix typo + debug statements to make existingSynapse autocomplete work
This commit is contained in:
parent
675bcadda0
commit
379b37b445
2 changed files with 5 additions and 5 deletions
|
@ -753,11 +753,11 @@ Metamaps.Create = {
|
|||
prepare: function(query, settings) {
|
||||
var self = Metamaps.Create.newSynapse;
|
||||
if (Metamaps.Selected.Nodes.length < 2) {
|
||||
var url = '/search/synapses?topic1id=' + self.topic1id + '&topic2id=' + self.topic2id;
|
||||
settings.url = settings.url.replace("%TOPIC1", self.topic1id).replace("%TOPIC2", self.topic2id);
|
||||
return settings;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
console.log(query);
|
||||
console.log(settings);
|
||||
return settings;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
@ -219,7 +219,7 @@ class MainController < ApplicationController
|
|||
@synapses = []
|
||||
end
|
||||
|
||||
render json: utocomplete_synapse_array_json(@synapses)
|
||||
render json: autocomplete_synapse_array_json(@synapses)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue