password generation
This commit is contained in:
1 parent
2a10a93ac9
commit
7d7e040c2b
5 files changed
+20
-2
No files matched your search
@@ -18,6 +18,10 @@ function revealPassword($src){
|
||||
// Use this instead of typical $().ready
|
||||
// because turbolinks.
|
||||
document.addEventListener("turbolinks:load", function() {
|
||||
$("[data-id=genpass]").on("ajax:success", "a", function(e, data){
|
||||
$(e.target).parent().find("input").val(data.hash);
|
||||
});
|
||||
|
||||
$("[data-id=passwd]").on("ajax:success", "a", function(e, data){
|
||||
getPassword($(e.target).parent(), data.hash);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user