diff options
author | Morlinest <Morlinest@users.noreply.github.com> | 2017-08-17 18:04:39 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-08-17 19:04:39 +0300 |
commit | f3486360d231fd6fcc5b620fc0f4e5e0325d858d (patch) | |
tree | cdca47d9833ca93b79cfde49b4ceb77512e6a604 | |
parent | 9e9e1e0e52e5afc24b74769ef7b94279f1cc67ef (diff) | |
download | gitea-f3486360d231fd6fcc5b620fc0f4e5e0325d858d.tar.gz gitea-f3486360d231fd6fcc5b620fc0f4e5e0325d858d.zip |
Make use of Vue more universal (#2318)
-rw-r--r-- | public/js/index.js | 6 | ||||
-rw-r--r-- | templates/user/dashboard/dashboard.tmpl | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/public/js/index.js b/public/js/index.js index 3152b2a5a4..169563a4ec 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1568,7 +1568,7 @@ $(document).ready(function () { initWebhook(); initAdmin(); initCodeView(); - initDashboardSearch(); + initVueApp(); initTeamSettings(); // Repo clone url. @@ -1758,8 +1758,8 @@ function initVueComponents(){ }) } -function initDashboardSearch() { - var el = document.getElementById('dashboard-repo-search'); +function initVueApp() { + var el = document.getElementById('app'); if (!el) { return; } diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 01619ff4ee..9135d117b7 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -7,7 +7,7 @@ <div class="ten wide column"> {{template "user/dashboard/feeds" .}} </div> - <div id="dashboard-repo-search" class="six wide column"> + <div id="app" class="six wide column"> <repo-search :search-limit="searchLimit" :suburl="suburl" :uid="uid"><i class="fa fa-spinner fa-spin"></i></repo-search> </div> </div> |