summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-12-10 16:59:03 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-16 18:45:37 +0100
commit51a22431ee824357dce0100cb000032f29aabd47 (patch)
tree339aa12a968c1738ed19a6edec8df81451f162b1 /settings
parent3cc33a98a898f247499896ae0674ae680564fb12 (diff)
downloadnextcloud-server-51a22431ee824357dce0100cb000032f29aabd47.tar.gz
nextcloud-server-51a22431ee824357dce0100cb000032f29aabd47.zip
load showpassord.js conditionally in the template only if needed
Diffstat (limited to 'settings')
-rw-r--r--settings/js/personal.js1
-rw-r--r--settings/templates/personal.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index b2efa7c37f9..ac29f69037e 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -157,6 +157,7 @@ function avatarResponseHandler (data) {
}
$(document).ready(function () {
+ $('#pass2').showPassword().keyup();
$("#passwordbutton").click(function () {
if ($('#pass1').val() !== '' && $('#pass2').val() !== '') {
// Serialize the data
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index cc04de5ec38..913c5803f6d 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -63,6 +63,7 @@
<?php
if($_['passwordChangeSupported']) {
+ script('jquery-showpassword');
?>
<form id="passwordform" class="section">
<h2><?php p($l->t('Password'));?></h2>