Fix flash of repo list in settings page during load.

This commit is contained in:
Mihai Parparita 2014-09-28 22:09:56 -07:00
parent 7405cb5651
commit cd88fad2ac
2 changed files with 6 additions and 4 deletions

View file

@ -21,6 +21,3 @@ function updateReposContainer() {
reposContainerNode.style.display = "none";
}
}
updateWeeklyDayContainer();
updateReposContainer();

View file

@ -13,6 +13,8 @@
{{define "body"}}
<script src="/static/settings.js"></script>
<form method="POST" action="{{routeUrl "save-settings"}}">
<div class="setting">
@ -131,7 +133,10 @@
</form>
<script src="/static/settings.js"></script>
<script>
updateWeeklyDayContainer();
updateReposContainer();
</script>
{{end}}