Skip to content

Commit 6fd75f8

Browse files
committed
adding gitignore, link to original data
1 parent fcc1228 commit 6fd75f8

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ tmp
1010
error.txt
1111
*.pyc
1212
input
13+
site/node_modules
14+
site/bower_components

site/js/taxbills.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
block = addressData.address.bblTaxBlock,
1414
lot = addressData.address.bblTaxLot;
1515
if (borough && block && lot) {
16+
var taxUrl = '/' + borough + '/' + block + '/' + lot + '/data.json'
1617
$.ajax({
17-
url: '/' + borough + '/' + block + '/' + lot + '/data.json',
18+
url: taxUrl,
1819
dataType: 'json'
1920
}).done(function (data) {
2021
if ($.isArray($('#table').bootstrapTable('getData'))) {
@@ -27,6 +28,14 @@
2728
$('#table').bootstrapTable({
2829
data: data
2930
});
31+
// Add a title
32+
var $title =$('<h4 />')
33+
.append($('<a />').text('Tax Data for BBL ' + borough + block + lot).attr({
34+
'href': taxUrl,
35+
'target': '_blank'
36+
}))
37+
.addClass('odc-title');
38+
$('.fixed-table-toolbar').prepend($title);
3039
}
3140
}).error(function (err) {
3241
$('#content').empty().append($('<div />').addClass('error').text(

0 commit comments

Comments
 (0)