Permalink
Browse files

define API URL in a better place

  • Loading branch information...
1 parent c8ca9a8 commit 43c3712a3417475152ba1f07112e8c1ad1a63881 @JoeGermuska JoeGermuska committed Oct 15, 2011
Showing with 6 additions and 6 deletions.
  1. +3 −3 censusweb/media/js/ire_census.js
  2. +3 −3 tools/js/ire_census.js
@@ -2,6 +2,9 @@
// jQuery
var ire_census = {};
(function() {
+ this.API_URL = "http://censusdata.ire.org"
+ this.GEOAPI_URL = "http://census.ire.org/geo/1.0"
+
function apiRequest(path, callback, handler) {
$.ajax(this.API_URL + path, {
dataType: "jsonp",
@@ -10,9 +13,6 @@ var ire_census = {};
});
}
- this.API_URL = "http://censusdata.ire.org"
- this.GEOAPI_URL = "http://census.ire.org/geo/1.0"
-
this.table_comparator = function (table) {
parts = table.match(/([A-Z]+)(\d+)([A-Z]+)?/);
View
@@ -2,6 +2,9 @@
// jQuery
var ire_census = {};
(function() {
+ this.API_URL = "http://censusdata.ire.org"
+ this.GEOAPI_URL = "http://census.ire.org/geo/1.0"
+
function apiRequest(path, callback, handler) {
$.ajax(this.API_URL + path, {
dataType: "jsonp",
@@ -10,9 +13,6 @@ var ire_census = {};
});
}
- this.API_URL = "http://censusdata.ire.org"
- this.GEOAPI_URL = "http://census.ire.org/geo/1.0"
-
this.table_comparator = function (table) {
parts = table.match(/([A-Z]+)(\d+)([A-Z]+)?/);

0 comments on commit 43c3712

Please sign in to comment.