Show More
@@ -244,7 +244,7 b'' | |||||
244 | var selected_branch = e.currentTarget.options[e.currentTarget.selectedIndex].value; |
|
244 | var selected_branch = e.currentTarget.options[e.currentTarget.selectedIndex].value; | |
245 | var url_main = "${h.url('changelog_home',repo_name=c.repo_name)}"; |
|
245 | var url_main = "${h.url('changelog_home',repo_name=c.repo_name)}"; | |
246 | var url = "${h.url('changelog_home',repo_name=c.repo_name,branch='__BRANCH__')}"; |
|
246 | var url = "${h.url('changelog_home',repo_name=c.repo_name,branch='__BRANCH__')}"; | |
247 | var url = url.replace('__BRANCH__',selected_branch); |
|
247 | var url = url.replace('__BRANCH__', encodeURIComponent(selected_branch)); | |
248 | if(selected_branch != ''){ |
|
248 | if(selected_branch != ''){ | |
249 | window.location = url; |
|
249 | window.location = url; | |
250 | }else{ |
|
250 | }else{ |
General Comments 0
You need to be logged in to leave comments.
Login now