|
Lines 147-152
Link Here
|
| 147 |
}); |
147 |
}); |
| 148 |
$("div.hint").eq(0).after(" <div class=\"hint\"><a href=\"#\" id=\"fillrandom\">"+_("Click to fill with a randomly generated suggestion. ")+"<strong>"+_("Passwords will be displayed as text")+"</strong>.</a></div>"); |
148 |
$("div.hint").eq(0).after(" <div class=\"hint\"><a href=\"#\" id=\"fillrandom\">"+_("Click to fill with a randomly generated suggestion. ")+"<strong>"+_("Passwords will be displayed as text")+"</strong>.</a></div>"); |
| 149 |
|
149 |
|
|
|
150 |
[% IF logged_in_user.borrowernumber == patron.borrowernumber %] |
| 151 |
$("#newuserid").on("change", function(){ |
| 152 |
$(this).parent().find("div.hint").remove(); |
| 153 |
if ( "[% patron.userid | html %]" != $(this).val() ) { |
| 154 |
$(this).parent().append('<div class="hint">%s</div>'.format(_("You will be logged out if you modify your username"))); |
| 155 |
} |
| 156 |
}); |
| 157 |
[% END %] |
| 158 |
|
| 150 |
$(document).ajaxStart(function () { |
159 |
$(document).ajaxStart(function () { |
| 151 |
$("input[name^=newpassword]").hide(); |
160 |
$("input[name^=newpassword]").hide(); |
| 152 |
$("label[for=newpassword2]").hide(); |
161 |
$("label[for=newpassword2]").hide(); |
| 153 |
- |
|
|