File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 10
10
error.txt
11
11
* .pyc
12
12
input
13
+ site /node_modules
14
+ site /bower_components
Original file line number Diff line number Diff line change 13
13
block = addressData . address . bblTaxBlock ,
14
14
lot = addressData . address . bblTaxLot ;
15
15
if ( borough && block && lot ) {
16
+ var taxUrl = '/' + borough + '/' + block + '/' + lot + '/data.json'
16
17
$ . ajax ( {
17
- url : '/' + borough + '/' + block + '/' + lot + '/data.json' ,
18
+ url : taxUrl ,
18
19
dataType : 'json'
19
20
} ) . done ( function ( data ) {
20
21
if ( $ . isArray ( $ ( '#table' ) . bootstrapTable ( 'getData' ) ) ) {
27
28
$ ( '#table' ) . bootstrapTable ( {
28
29
data : data
29
30
} ) ;
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 ) ;
30
39
}
31
40
} ) . error ( function ( err ) {
32
41
$ ( '#content' ) . empty ( ) . append ( $ ( '<div />' ) . addClass ( 'error' ) . text (
You can’t perform that action at this time.
0 commit comments