password generation
This commit is contained in:
@ -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