-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswitchsidebar.js
76 lines (68 loc) · 1.51 KB
/
switchsidebar.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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 editpage()
{
window.location = '/profile'
}
function open_home_page()
{
window.location = "/profile"
}
function open_switchmodel_page()
{
$.confirm({
title: 'Switch Admin',
content: 'Do you really want switch state...',
draggable: true,
buttons: {
Yes: {
btnClass: 'btn-success',
action: function ()
{
window.location = '/changeswitch'
}
},
No: {
btnClass: 'btn-danger',
action: function () {}
},
}
});
}
function open_communities_page()
{
window.location = '/switchcommunityhome'
}
function open_changepassword_page()
{
window.location ='/changepassword'
}
function open_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 () {}
},
}
});
}