-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusersidebar.js
56 lines (48 loc) · 1.19 KB
/
usersidebar.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
function showsidebar()
{
var element = document.getElementById("viewscreen");
element.classList.toggle("toggle-pc");
var element = document.getElementById("sidebar");
element.classList.toggle("sidebar-width");
var element = document.getElementById("rightview");
element.classList.toggle("set-rightview");
}
function open_home_page()
{
window.location = "/profile"
}
function open_changepassword_page()
{
window.location ='/changepassword'
}
function open_communities_page()
{
window.location = '/community/communitypanel'
}
function openeditpage()
{
window.location = '/home'
}
function open_logout()
{
// window.location = '/logout'
$.confirm({
title: 'Confirm Logout!',
content: 'Do you really want logout?',
draggable: true,
theme : 'supervan',
buttons: {
Yes: {
btnClass: 'btn-success',
action: function ()
{
window.location = '/logout'
}
},
No: {
btnClass: 'btn-danger',
action: function () {}
},
}
});
}