Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
d182b4f5
Commit
d182b4f5
authored
11 years ago
by
Morris Jobke
Browse files
Options
Downloads
Plain Diff
Merge pull request #6927 from owncloud/enc_dont_reload_page_on_decrypt
remove the form, it isn't needed here
parents
b4d11df8
6bb27ea7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
settings/js/personal.js
+7
-3
7 additions, 3 deletions
settings/js/personal.js
settings/templates/personal.php
+20
-22
20 additions, 22 deletions
settings/templates/personal.php
with
27 additions
and
25 deletions
settings/js/personal.js
+
7
−
3
View file @
d182b4f5
...
...
@@ -206,6 +206,8 @@ $(document).ready(function(){
$
(
'
button:button[name="submitDecryptAll"]
'
).
click
(
function
()
{
var
privateKeyPassword
=
$
(
'
#decryptAll input:password[id="privateKeyPassword"]
'
).
val
();
$
(
'
#decryptAll button:button[name="submitDecryptAll"]
'
).
prop
(
"
disabled
"
,
true
);
$
(
'
#decryptAll input:password[name="privateKeyPassword"]
'
).
prop
(
"
disabled
"
,
true
);
OC
.
Encryption
.
decryptAll
(
privateKeyPassword
);
});
...
...
@@ -214,6 +216,8 @@ $(document).ready(function(){
if
(
privateKeyPassword
!==
''
)
{
$
(
'
#decryptAll button:button[name="submitDecryptAll"]
'
).
removeAttr
(
"
disabled
"
);
if
(
event
.
which
===
13
)
{
$
(
'
#decryptAll button:button[name="submitDecryptAll"]
'
).
prop
(
"
disabled
"
,
true
);
$
(
'
#decryptAll input:password[name="privateKeyPassword"]
'
).
prop
(
"
disabled
"
,
true
);
OC
.
Encryption
.
decryptAll
(
privateKeyPassword
);
}
}
else
{
...
...
@@ -280,13 +284,13 @@ OC.Encryption = {
$
.
post
(
'
ajax/decryptall.php
'
,
{
password
:
password
},
function
(
data
)
{
if
(
data
.
status
===
"
error
"
)
{
OC
.
Encryption
.
msg
.
finishedDecrypting
(
'
#decryptAll .msg
'
,
data
);
$
(
'
#decryptAll input:password[name="privateKeyPassword"]
'
).
removeAttr
(
"
disabled
"
);
}
else
{
OC
.
Encryption
.
msg
.
finishedDecrypting
(
'
#decryptAll .msg
'
,
data
);
}
}
);
});
}
}
}
;
OC
.
Encryption
.
msg
=
{
startDecrypting
:
function
(
selector
){
...
...
This diff is collapsed.
Click to expand it.
settings/templates/personal.php
+
20
−
22
View file @
d182b4f5
...
...
@@ -148,29 +148,27 @@ if($_['passwordChangeSupported']) {
};
?>
<?php
if
(
$_
[
'enableDecryptAll'
])
:
?>
<form
id=
"decryptAll"
>
<fieldset
class=
"personalblock"
>
<h2>
<?php
p
(
$l
->
t
(
'Encryption'
)
);
?>
</h2>
<?php
p
(
$l
->
t
(
"The encryption app is no longer enabled, please decrypt all your files"
));
?>
<p>
<input
type=
"password"
name=
"privateKeyPassword"
id=
"privateKeyPassword"
/>
<label
for=
"privateKeyPassword"
>
<?php
p
(
$l
->
t
(
"Log-in password"
));
?>
</label>
<br
/>
<button
type=
"button"
disabled
name=
"submitDecryptAll"
>
<?php
p
(
$l
->
t
(
"Decrypt all Files"
));
?>
</button>
<span
class=
"msg"
></span>
</p>
<fieldset
class=
"personalblock"
id=
"decryptAll"
>
<h2>
<?php
p
(
$l
->
t
(
'Encryption'
)
);
?>
</h2>
<?php
p
(
$l
->
t
(
"The encryption app is no longer enabled, please decrypt all your files"
));
?>
<p>
<input
type=
"password"
name=
"privateKeyPassword"
id=
"privateKeyPassword"
/>
<label
for=
"privateKeyPassword"
>
<?php
p
(
$l
->
t
(
"Log-in password"
));
?>
</label>
<br
/>
</fieldset>
</form>
<button
type=
"button"
disabled
name=
"submitDecryptAll"
>
<?php
p
(
$l
->
t
(
"Decrypt all Files"
));
?>
</button>
<span
class=
"msg"
></span>
</p>
<br
/>
</fieldset>
<?php
endif
;
?>
<fieldset
class=
"personalblock"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment