/** * Copyright (c) 2013, Sam Tuke * This file is licensed under the Affero General Public License version 3 or later. * See the COPYING-README file. */ OC.Encryption = _.extend(OC.Encryption || {}, { updatePrivateKeyPassword: function () { var oldPrivateKeyPassword = $('input:password[id="oldPrivateKeyPassword"]').val(); var newPrivateKeyPassword = $('input:password[id="newPrivateKeyPassword"]').val(); OC.msg.startSaving('#ocDefaultEncryptionModule .msg'); $.post( OC.generateUrl('/apps/encryption/ajax/updatePrivateKeyPassword'), { oldPassword: oldPrivateKeyPassword, newPassword: newPrivateKeyPassword } ).done(function (data) { OC.msg.finishedSuccess('#ocDefaultEncryptionModule .msg', data.message); }) .fail(function (jqXHR) { OC.msg.finishedError('#ocDefaultEncryptionModule .msg', JSON.parse(jqXHR.responseText).message); }); } }); $(document).ready(function () { // Trigger ajax on recoveryAdmin status change $('input:radio[name="userEnableRecovery"]').change( function () { var recoveryStatus = $(this).val(); OC.msg.startAction('#userEnableRecovery .msg', 'Updating recovery keys. This can take some time...'); $.post( OC.generateUrl('/apps/encryption/ajax/userSetRecovery'), { userEnableRecovery: recoveryStatus } ).done(function (data) { OC.msg.finishedSuccess('#userEnableRecovery .msg', data.data.message); }) .fail(function (jqXHR) { OC.msg.finishedError('#userEnableRecovery .msg', JSON.parse(jqXHR.responseText).data.message); }); // Ensure page is not reloaded on form submit return false; } ); // update private key password $('input:password[name="changePrivateKeyPassword"]').keyup(function (event) { var oldPrivateKeyPassword = $('input:password[id="oldPrivateKeyPassword"]').val(); var newPrivateKeyPassword = $('input:password[id="newPrivateKeyPassword"]').val(); if (newPrivateKeyPassword !== '' && oldPrivateKeyPassword !== '') { $('button:button[name="submitChangePrivateKeyPassword"]').removeAttr("disabled"); if (event.which === 13) { OC.Encryption.updatePrivateKeyPassword(); } } else { $('button:button[name="submitChangePrivateKeyPassword"]').attr("disabled", "true"); } }); $('button:button[name="submitChangePrivateKeyPassword"]').click(function () { OC.Encryption.updatePrivateKeyPassword(); }); }); h-1 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/css/sharetabview.scss
blob: 880226e7d143408061b1e085f9b86e0378b291a9 (plain)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
.app-files .shareTabView {
	min-height: 100px;
}

.shareTabView .oneline {
	white-space: nowrap;
	position: relative;
}

.shareTabView .shareWithLoading {
	padding-left: 10px;
	right: 35px;
	top: 0px;
}

.shareTabView .shareWithRemoteInfo,
.shareTabView .clipboardButton,
.shareTabView .linkPass .icon-loading-small {
	position: absolute;
	right: -7px;
	top: -4px;
	padding: 14px;
}

.shareTabView .linkMore {
	position: absolute;
	right: -7px;
	top: -4px;
	padding: 14px;
}

/* fix the popup menu because the button is shifted and then the menu is not aligned */
.shareTabView .popovermenu.socialSharingMenu {
	right: -7px;
}

.shareTabView .popovermenu .clipboardButton {
	position: relative;
	top: initial;
	right: initial;
	padding: 18px 0 18px 36px;
}

.shareTabView label {
	white-space: nowrap;
}

.shareTabView input[type="checkbox"] {
	margin: 0 3px 0 8px;
	vertical-align: middle;
}

.shareTabView input[type="text"].shareWithField,
.shareTabView input[type="text"].emailField,
.shareTabView input[type="text"].linkText,
.shareTabView input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding-right: 32px;
	text-overflow: ellipsis;
}

.shareTabView form {
	font-size: 100%;
	margin-left: 0;
	margin-right: 0;
}

#shareWithList {
	list-style-type: none;
	padding: 0 0 16px;
}

#shareWithList > li {
	padding-top: 5px;
	padding-bottom: 5px;
	white-space: normal;
	display: inline-flex;
	align-items: center;
}

#shareWithList .unshare img, #shareWithList .showCruds img {
	vertical-align: text-bottom; /* properly align icons */
}

#shareWithList .sharingOptionsGroup .icon-more {
	padding: 7px;
	vertical-align: middle;
	opacity: .5;
}

#shareWithList .unshare {
	padding: 1px 6px;
	vertical-align: text-bottom;
}
#shareWithList .unshare .icon {
	vertical-align: text-top;
}

#shareWithList .sharingOptionsGroup .popovermenu:after {
	right: 3px;
}

#shareWithList label input[type=checkbox] {
	margin-left: 0;
	position: relative;
}
#shareWithList .username {
	padding-right: 8px;
	white-space: nowrap;
	text-overflow: ellipsis;
	display: inline-block;
	overflow: hidden;
	vertical-align: middle;
}
#shareWithList li .sharingOptionsGroup > .shareOption > label {
	padding: 6px;
	margin-right: 8px;
	vertical-align: text-top;
}

.shareTabView .icon-loading-small {
	display: inline-block;
	z-index: 1;
	margin-right: 4px;
	vertical-align: text-top;
}

.shareTabView .shareWithList .icon-loading-small:not(.hidden) + span,
.shareTabView .linkShareView .icon-loading-small:not(.hidden) + input + label:before {
	/* Hide if loader is visible */
	display: none !important;
}

.linkShareView {
	margin-top: 16px;
}

.shareTabView .linkPass .icon-loading-small {
	margin-right: 0px;
}

.shareTabView .icon {
	background-size: 16px 16px;
}