- Added section on configuration to README.md

- Made the application more configurable by the user
- Made installation easier
- API location is now dynamic based on window.location
- Cleaned up some older code that was pointing to dev stuff
- Now includes the SQL-table required to run the application
- Application now exposes config to console for easier debugging
- Search now supports user specified table name
- Updated the OpenFlights airport data file source
This commit is contained in:
Ismo Vuorinen
2013-11-19 15:34:42 +02:00
parent 787abf7062
commit b0258437cd
8 changed files with 158 additions and 62 deletions

View File

@@ -5,7 +5,7 @@ define([
'config'
], function ($, _, config) {
var airportById = function (element, callback) {
$.get('http://localhost:8000/search.php?i=' + element.val(), null, function (data) {
$.get( config.api + '/search.php?i=' + element.val(), null, function (data) {
callback(data[0]);
});
};