Bug 23590: Remove JS error on the suggestion list
The notify option is only available from the edit view Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
dbdcae1ccb
commit
9a956d7f97
|
|
@ -904,14 +904,16 @@
|
|||
$('#managedby').val(borrowernumber);
|
||||
}
|
||||
|
||||
var notify = $('#notify');
|
||||
if ( notify.length ) {
|
||||
if ( borrowernumber == [% logged_in_user.borrowernumber | html %] || borrowernumber == [% managedby_patron.borrowernumber | html %] ) {
|
||||
$(notify).prop('checked', false).prop('disabled', true);
|
||||
} else {
|
||||
$(notify).prop('disabled', false);
|
||||
[% IF op == "save" %]
|
||||
var notify = $('#notify');
|
||||
if ( notify.length ) {
|
||||
if ( borrowernumber == [% logged_in_user.borrowernumber | html %] || borrowernumber == [% managedby_patron.borrowernumber | html %] ) {
|
||||
$(notify).prop('checked', false).prop('disabled', true);
|
||||
} else {
|
||||
$(notify).prop('disabled', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
[% END %]
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue