add ajax call to decrypt all files

Conflicts:
	apps/files_encryption/lib/crypt.php
This commit is contained in:
Björn Schießle 2013-06-10 12:57:18 +02:00 committed by Bjoern Schiessle
parent 2c8e5ec84f
commit e15e394fcc
3 changed files with 18 additions and 1 deletions

View File

@ -663,4 +663,8 @@ class Crypt {
} }
} }
public static function decryptAll() {
error_log("decrypt all");
}
} }

View File

@ -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={

View File

@ -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());