File tree 4 files changed +14
-7
lines changed
4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public final class Url {
80
80
public static final String ADD_SERIES_WITH_COUNTRY_PAGE = "/series/add/country/{slug}" ;
81
81
82
82
// MUST be updated when any of our resources were modified
83
- public static final String RESOURCES_VERSION = "v0.3.1 " ;
83
+ public static final String RESOURCES_VERSION = "v0.3.2 " ;
84
84
85
85
// CheckStyle: ignore LineLength for next 4 lines
86
86
public static final String MAIN_CSS = "/static/" + RESOURCES_VERSION + "/styles/main.min.css" ;
Original file line number Diff line number Diff line change @@ -30,13 +30,16 @@ function initPage(suggestCountryUrl) {
30
30
31
31
var country = $ ( "#js-guess-country-link" ) ;
32
32
country . click ( function chooseSuggestedCountry ( ) {
33
- $ ( this ) . hide ( ) ;
34
-
35
- var select_country = $ ( "#country" ) . selectize ( ) ;
36
- var selectize = select_country [ 0 ] . selectize ;
37
- selectize . setValue ( slug ) ;
33
+ chooseCountryBySlug ( slug ) ;
34
+ country . hide ( ) ;
38
35
} ) ;
39
36
country . show ( ) ;
40
37
} ) ;
41
38
}
42
39
}
40
+
41
+ function chooseCountryBySlug ( slug ) {
42
+ var select_country = $ ( "#country" ) . selectize ( ) ;
43
+ var selectize = select_country [ 0 ] . selectize ;
44
+ selectize . setValue ( slug ) ;
45
+ }
Original file line number Diff line number Diff line change @@ -107,3 +107,7 @@ label {
107
107
.goog-tooltip {
108
108
color : white;
109
109
}
110
+
111
+ .link-vcenter {
112
+ line-height : 34px ;
113
+ }
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ <h3 th:text="${#strings.capitalize(add_series)}">
204
204
</ div >
205
205
206
206
< small togglz:active ="SHOW_SUGGESTION_LINK ">
207
- < a tabindex ="-1 " th:text ="#{t_guess_country} " href ="javascript:void(0) " id ="js-guess-country-link " th:style ="'display: none; position: relative; top: 7px; ' "> Guess a country</ a >
207
+ < a tabindex ="-1 " th:text ="#{t_guess_country} " href ="javascript:$('#js-guess-country-link').hide(); chooseCountryBySlug('russia'); void(0) " th:href =" 'javascript:void(0)' " id ="js-guess-country-link " class =" link-vcenter " th:style ="'display: none' "> Guess a country</ a >
208
208
</ small >
209
209
</ div >
210
210
You can’t perform that action at this time.
0 commit comments