Permalink
Browse files

define API URL in a different better place

  • Loading branch information...
1 parent 43c3712 commit af6d9cc81a736ce73ed8d0a6e149f66b2a271a80 @JoeGermuska JoeGermuska committed Oct 15, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 censusweb/media/js/ire_census.js
  2. +1 −1 tools/js/ire_census.js
@@ -6,7 +6,7 @@ var ire_census = {};
this.GEOAPI_URL = "http://census.ire.org/geo/1.0"
function apiRequest(path, callback, handler) {
- $.ajax(this.API_URL + path, {
+ $.ajax(API_URL + path, {
dataType: "jsonp",
jsonpCallback: callback,
success: handler
View
@@ -6,7 +6,7 @@ var ire_census = {};
this.GEOAPI_URL = "http://census.ire.org/geo/1.0"
function apiRequest(path, callback, handler) {
- $.ajax(this.API_URL + path, {
+ $.ajax(API_URL + path, {
dataType: "jsonp",
jsonpCallback: callback,
success: handler

0 comments on commit af6d9cc

Please sign in to comment.