@@ -43,23 +43,16 @@ var Codeweek = window.Codeweek || {};
43
43
44
44
var infoWindowContent = '' ,
45
45
buble_content = '' ,
46
- image = '' ,
47
- description = '' ;
46
+ image = '' ;
48
47
49
48
if ( marker . image !== "" ) {
50
49
image += '<img src="' + Codeweek . Index . media_url + marker . image + '" class="img-polaroid marker-buble-img">' ;
51
50
}
52
51
53
- if ( marker . description . length > 150 ) {
54
- description = marker . description . substring ( 0 , 150 ) + '... ' ;
55
- } else {
56
- description = marker . description ;
57
- }
58
-
59
52
buble_content = '<div><h4><a href="' + marker . url + '" class="map-marker">' + marker . title + '</a></h4><div>' +
60
53
image +
61
- '<p style="overflow:hidden;">' + description +
62
- ' <a href="' + marker . url + '" class="map-marker"><span>More...</span></a></p>' ;
54
+ '<p style="overflow:hidden;">' + marker . description +
55
+ ' <a class="btn btn-sm" href="' + marker . url + '" class="map-marker"><span>More...</span></a></p>' ;
63
56
64
57
placeinfowindow . setContent ( buble_content ) ;
65
58
placeinfowindow . open ( map , marker ) ;
@@ -75,7 +68,7 @@ var Codeweek = window.Codeweek || {};
75
68
map_event_id = events [ i ] . id ,
76
69
map_event_slug = events [ i ] . slug ,
77
70
markUrl = "/view/" + map_event_id + "/" + map_event_slug ,
78
- markDesc = events [ i ] . description ,
71
+ markDesc = events [ i ] . description_short ,
79
72
markImg = events [ i ] . picture ;
80
73
81
74
markers [ map_event_id ] = createMarker ( markTitle , markLat , markLng , markUrl , markDesc , markImg ) ;
0 commit comments