Webserver: added a logout button
This commit is contained in:
1 parent
2f2349ffbb
commit
f27aae0ae2
4 files changed
+18
No files matched your search
@@ -340,6 +340,9 @@
|
||||
<CustomToolNamespace>css</CustomToolNamespace>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Website\img\logout.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Website\img\music.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@@ -89,6 +89,13 @@
|
||||
<p>Configure user rights</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#login" data-transition="slidefade">
|
||||
<img src="img/logout.png">
|
||||
<h2>Logout</h2>
|
||||
<p>Closes the session</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /content -->
|
||||
|
||||
@@ -354,6 +354,14 @@ function initPageLoadHandler() {
|
||||
$(this).data('promise', promise);
|
||||
});
|
||||
|
||||
//pageLoadHandler for login
|
||||
$(document).on('pagebeforeshow', '#login', function () {
|
||||
ownProfileId = -1;
|
||||
profileIdRequest = -1;
|
||||
songIdRequest = -1
|
||||
sessionId = "";
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function initLoginPageHandler() {
|
||||
|
||||
Reference in new issue
Block a user