summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js')
-rw-r--r--core/js/jquery-showpassword.js6
1 files changed, 5 insertions, 1 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;
};