add ajax call to decrypt all files
Conflicts: apps/files_encryption/lib/crypt.php
This commit is contained in:
parent
2c8e5ec84f
commit
e15e394fcc
|
@ -663,4 +663,8 @@ class Crypt {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function decryptAll() {
|
||||||
|
error_log("decrypt all");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -110,6 +110,19 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('button:button[name="submitDecryptAll"]').click(function() {
|
||||||
|
console.log("click!");
|
||||||
|
$.post('ajax/decryptall.php', {}, function(data) {
|
||||||
|
/*
|
||||||
|
if (data.status === "error") {
|
||||||
|
OC.msg.finishedSaving('#encryption .msg', data);
|
||||||
|
} else {
|
||||||
|
OC.msg.finishedSaving('#encryption .msg', data);
|
||||||
|
}*/
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
} );
|
} );
|
||||||
|
|
||||||
OC.msg={
|
OC.msg={
|
||||||
|
|
|
@ -89,7 +89,7 @@ $tmpl->assign('activelanguage', $userLang);
|
||||||
$tmpl->assign('passwordChangeSupported', OC_User::canUserChangePassword(OC_User::getUser()));
|
$tmpl->assign('passwordChangeSupported', OC_User::canUserChangePassword(OC_User::getUser()));
|
||||||
$tmpl->assign('displayNameChangeSupported', OC_User::canUserChangeDisplayName(OC_User::getUser()));
|
$tmpl->assign('displayNameChangeSupported', OC_User::canUserChangeDisplayName(OC_User::getUser()));
|
||||||
$tmpl->assign('displayName', OC_User::getDisplayName());
|
$tmpl->assign('displayName', OC_User::getDisplayName());
|
||||||
$tmpl->assign('enableDecryptAll' , true);
|
$tmpl->assign('enableDecryptAll' , $enableDecryptAll);
|
||||||
|
|
||||||
$forms=OC_App::getForms('personal');
|
$forms=OC_App::getForms('personal');
|
||||||
$tmpl->assign('forms', array());
|
$tmpl->assign('forms', array());
|
||||||
|
|
Loading…
Reference in New Issue