Skip to content

Commit fde518b

Browse files
committed
/series/add: disable country suggestion when country has been specified.
Fix #570
1 parent bbc3f66 commit fde518b

File tree

1 file changed

+3
-1
lines changed
  • src/main/webapp/WEB-INF/views/series

1 file changed

+3
-1
lines changed

src/main/webapp/WEB-INF/views/series/add.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
<link rel="stylesheet" href="../../static/styles/main.css" th:href="${MAIN_CSS}" />
1717
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.3/css/selectize.bootstrap3.min.css" th:href="${SELECTIZE_CSS}" />
1818
</head>
19-
<body th:onload="|initPage('@{${SUGGEST_SERIES_COUNTRY}}')|" onload="initPage(null)">
19+
<body th:with="suggestCountryUrl=${addSeriesForm.country != null and addSeriesForm.country.slug != null ? 'null' : '''__@{${SUGGEST_SERIES_COUNTRY}}__'''}"
20+
th:onload="|initPage(${suggestCountryUrl})|"
21+
onload="initPage(null)">
2022
<div class="container-fluid">
2123
<div class="row" id="header">
2224
<div id="logo" class="col-sm-9 vcenter">

0 commit comments

Comments
 (0)