remove superfluous password popup in jappixmini

This commit is contained in:
Leberwurscht 2012-04-15 14:31:46 +02:00
parent 90289ef561
commit 247c894ed5

View file

@ -263,8 +263,11 @@ function jappixmini_settings(&$a, &$s) {
clear_password = document.getElementById('jappixmini-clear-password'); clear_password = document.getElementById('jappixmini-clear-password');
if (encrypt) { if (encrypt) {
friendica_password = document.getElementById('jappixmini-friendica-password'); friendica_password = document.getElementById('jappixmini-friendica-password');
jappixmini_addon_set_client_secret(friendica_password.value);
password.value = jappixmini_addon_encrypt_password(clear_password.value); if (friendica_password) {
jappixmini_addon_set_client_secret(friendica_password.value);
password.value = jappixmini_addon_encrypt_password(clear_password.value);
}
} }
else { else {
password.value = clear_password.value; password.value = clear_password.value;