mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Add city retrieval from geonamed id on input creation
This commit is contained in:
@@ -29,7 +29,7 @@ require.config({
|
||||
deps: ['jquery', 'jqueryui'],
|
||||
exports: '$.fn.geocompleter'
|
||||
},
|
||||
geonames: {
|
||||
"common/geonames": {
|
||||
deps: ["jquery.geonames"]
|
||||
},
|
||||
multiselect: {
|
||||
|
@@ -90,7 +90,8 @@ require([
|
||||
|
||||
var geocompleter = geonames.init($("#geonameid"), {
|
||||
"server": $form.data("geonames-server-adress"),
|
||||
"limit": 40
|
||||
"limit": 40,
|
||||
"init-input": false
|
||||
});
|
||||
|
||||
// Positioning menu below input
|
||||
|
@@ -9,9 +9,6 @@
|
||||
init: function($field, options) {
|
||||
var geocompleter = $field.geocompleter(options);
|
||||
|
||||
var geonameId = $field.val();
|
||||
|
||||
|
||||
// On focus add select-state
|
||||
geocompleter.geocompleter("autocompleter", "on", "autocompletefocus", function(event, ui) {
|
||||
$("li", $(event.originalEvent.target)).closest("li").removeClass("selected");
|
||||
|
Reference in New Issue
Block a user