File tree 2 files changed +18
-2
lines changed
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change
1
+ < div id ="meetup-developers-error " class ="alert alert-danger hidden ">
2
+ < p > There was a problem fetching the developers list. Please reload the page to try again.</ p >
3
+ < samp class ="output "> </ samp >
4
+ </ div >
5
+
1
6
< div id ="developers ">
2
7
<!-- Generating events below -->
3
8
</ div >
109
114
$ ( '#developers' ) . append ( paginator ) ;
110
115
} )
111
116
. fail ( function ( error ) {
112
- console . log ( error ) ;
117
+ $ ( '#meetup-developers-error' )
118
+ . removeClass ( 'hidden' )
119
+ . find ( '.output' )
120
+ . text ( '' + error ) ;
113
121
} ) ;
114
122
115
123
function createDevCard ( dev ) {
Original file line number Diff line number Diff line change
1
+ < div id ="meetup-events-error " class ="alert alert-danger hidden ">
2
+ < p > There was a problem fetching the Events. Please reload the page to try again.</ p >
3
+ < samp class ="output "> </ samp >
4
+ </ div >
5
+
1
6
< div id ="meetup-events ">
2
7
<!-- Generating events below -->
3
8
</ div >
40
45
} )
41
46
} )
42
47
. fail ( function ( error ) {
43
- console . log ( error ) ;
48
+ $ ( '#meetup-events-error' )
49
+ . removeClass ( 'hidden' )
50
+ . find ( '.output' )
51
+ . text ( '' + error ) ;
44
52
} ) ;
45
53
46
54
function createEventCard ( event ) {
You can’t perform that action at this time.
0 commit comments