summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRaghu Nayyar <me@iraghu.com>2013-10-15 02:59:53 -0700
committerRaghu Nayyar <me@iraghu.com>2013-10-15 02:59:53 -0700
commit8c25b5a0c168553d22de40dcbf7d1db557cf1a00 (patch)
tree90c36da1441e838d7ae91a1bfdda87fff6f4da09 /core
parent52501d6ba3da5596975a945ba00ea753f6c7f4e7 (diff)
parent2def1a8853c68afc0d1adc9f4c89d09387f27c9c (diff)
downloadnextcloud-server-8c25b5a0c168553d22de40dcbf7d1db557cf1a00.tar.gz
nextcloud-server-8c25b5a0c168553d22de40dcbf7d1db557cf1a00.zip
Merge pull request #5295 from owncloud/show-eye-in-personal
Shows The Eye permanently in the Confirm Password field in Personal Settings
Diffstat (limited to 'core')
-rw-r--r--core/js/jquery-showpassword.js6
-rw-r--r--core/js/js.js10
2 files changed, 6 insertions, 10 deletions
diff --git a/core/js/jquery-showpassword.js b/core/js/jquery-showpassword.js
index e1737643b48..a4373ec82bf 100644
--- a/core/js/jquery-showpassword.js
+++ b/core/js/jquery-showpassword.js
@@ -38,7 +38,11 @@
'tabindex' : $element.attr('tabindex'),
'autocomplete' : 'off'
});
-
+
+ if($element.attr('placeholder') !== undefined) {
+ $clone.attr('placeholder', $element.attr('placeholder'));
+ }
+
return $clone;
};
diff --git a/core/js/js.js b/core/js/js.js
index b7f7ff1ac15..c17e3fa2959 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -746,15 +746,7 @@ $(document).ready(function(){
});
var setShowPassword = function(input, label) {
- input.showPassword().keyup(function(){
- if (input.val().length == 0) {
- label.hide();
- }
- else {
- label.css("display", "inline").show();
- }
- });
- label.hide();
+ input.showPassword().keyup();
};
setShowPassword($('#adminpass'), $('label[for=show]'));
setShowPassword($('#pass2'), $('label[for=personal-show]'));