Created
January 24, 2016 14:42
-
-
Save FrankHald/f3dc4135801efa737b92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//= require jquery | |
//= require jquery_ujs | |
//= require jquery.ui.all | |
//= require filterrific/filterrific-jquery | |
//= require bootstrap-sprockets | |
//= require lightbox-bootstrap | |
//= require turbolinks | |
//= require underscore | |
//= require gmaps/google | |
//= require gmaps-auto-complete | |
//= require_tree . | |
$(document).ready(ready); | |
$(document).on('page:load', ready); | |
var gmapsautocompleter = function(){ | |
var completer; | |
completer = new GmapsCompleter({inputField: '#apartment_address', errorField: 'form#search #address_error'}); | |
completer.autoCompleteInit({region: 'DK', country: 'Denmark'}); | |
}; | |
$(document).ready(gmapsautocompleter); | |
$(document).on('page:load', gmapsautocompleter); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment