Merge pull request #6927 from owncloud/enc_dont_reload_page_on_decrypt
remove the form, it isn't needed here
This commit is contained in:
commit
d182b4f59f
|
@ -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){
|
||||
|
|
|
@ -148,8 +148,7 @@ if($_['passwordChangeSupported']) {
|
|||
};?>
|
||||
|
||||
<?php if($_['enableDecryptAll']): ?>
|
||||
<form id="decryptAll">
|
||||
<fieldset class="personalblock">
|
||||
<fieldset class="personalblock" id="decryptAll">
|
||||
<h2>
|
||||
<?php p( $l->t( 'Encryption' ) ); ?>
|
||||
</h2>
|
||||
|
@ -169,8 +168,7 @@ if($_['passwordChangeSupported']) {
|
|||
<span class="msg"></span>
|
||||
</p>
|
||||
<br />
|
||||
</fieldset>
|
||||
</form>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<fieldset class="personalblock">
|
||||
|
|
Loading…
Reference in New Issue