This repository was archived by the owner on Sep 19, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ var Codeweek = window.Codeweek || {};
13
13
placeinfowindow = null ,
14
14
overlapSpiderifier = null ;
15
15
16
-
17
16
function createMap ( events , lat , lng , zoomVal ) {
18
17
var markerData = JSON . parse ( events ) ,
19
18
markerData_len = markerData . length ,
@@ -212,6 +211,7 @@ var Codeweek = window.Codeweek || {};
212
211
$ ( '#country' ) . html ( country_name ) ;
213
212
}
214
213
214
+
215
215
function initialize ( events , lon , lan ) {
216
216
map = createMap ( events , lon , lan , 3 ) ;
217
217
//setAutocomplete();
@@ -250,6 +250,12 @@ var Codeweek = window.Codeweek || {};
250
250
document . location . hash = "!" + country_code ;
251
251
} ) ;
252
252
253
+ $ ( "#past-link" ) . click ( function ( event ) {
254
+
255
+ var newUrl = $ ( this ) . attr ( 'href' ) + document . location . hash ;
256
+ $ ( this ) . attr ( 'href' , newUrl ) ;
257
+ } ) ;
258
+
253
259
$ ( "#zoomEU" ) . click ( function ( event ) {
254
260
event . preventDefault ( ) ;
255
261
Original file line number Diff line number Diff line change 31
31
< div class ="container index-content ">
32
32
< div id ="past-events ">
33
33
{% if past == 'yes' %}
34
- < a href ="{% url 'web.index' %} "> < i class ="fa fa-check-square-o "> </ i >
34
+ < a id =" past-link " href ="{% url 'web.index' %} "> < i class ="fa fa-check-square-o "> </ i >
35
35
{% else %}
36
- < a href ="{% url 'web.index' %}?past=yes "> < i class ="fa fa-square-o "> </ i >
36
+ < a id =" past-link " href ="{% url 'web.index' %}?past=yes "> < i class ="fa fa-square-o "> </ i >
37
37
{% endif %}
38
38
Show past events</ a >
39
39
</ div >
You can’t perform that action at this time.
0 commit comments