|
Lines 819-825
Link Here
|
| 819 |
<script> |
819 |
<script> |
| 820 |
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'libraries', 'libraries', 'json' ) | $raw %]; |
820 |
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'libraries', 'libraries', 'json' ) | $raw %]; |
| 821 |
var calendarFirstDayOfWeek = '[% Koha.Preference('CalendarFirstDayOfWeek') | html %]'; |
821 |
var calendarFirstDayOfWeek = '[% Koha.Preference('CalendarFirstDayOfWeek') | html %]'; |
|
|
822 |
</script> |
| 822 |
|
823 |
|
|
|
824 |
<script> |
| 823 |
var libraries_table; |
825 |
var libraries_table; |
| 824 |
$(document).ready(function() { |
826 |
$(document).ready(function() { |
| 825 |
|
827 |
|
|
Lines 982-999
Link Here
|
| 982 |
], |
984 |
], |
| 983 |
bKohaColumnsUseNames: true, |
985 |
bKohaColumnsUseNames: true, |
| 984 |
}, table_settings); |
986 |
}, table_settings); |
| 985 |
|
|
|
| 986 |
[% UNLESS library %] |
| 987 |
$("#Aform").on("submit", function( event ) { |
| 988 |
if ( $("#branchcode").val().match(/\s/) ) { |
| 989 |
event.preventDefault(); |
| 990 |
alert(_("The library code entered contains whitespace characters. Please remove any whitespace characters from the library code")); |
| 991 |
return false; |
| 992 |
} else { |
| 993 |
return true; |
| 994 |
} |
| 995 |
}); |
| 996 |
[% END %] |
| 997 |
}); |
987 |
}); |
| 998 |
|
988 |
|
| 999 |
$( ".expand-textarea" ).on("click", function(e){ |
989 |
$( ".expand-textarea" ).on("click", function(e){ |
|
Lines 1034-1039
Link Here
|
| 1034 |
$( "#" + target ).hide(); |
1024 |
$( "#" + target ).hide(); |
| 1035 |
}); |
1025 |
}); |
| 1036 |
</script> |
1026 |
</script> |
|
|
1027 |
|
| 1028 |
[% UNLESS library %] |
| 1029 |
<script> |
| 1030 |
$("#Aform").on("submit", function( event ) { |
| 1031 |
if ( $("#branchcode").val().match(/\s/) ) { |
| 1032 |
event.preventDefault(); |
| 1033 |
alert(_("The library code entered contains whitespace characters. Please remove any whitespace characters from the library code")); |
| 1034 |
return false; |
| 1035 |
} else { |
| 1036 |
return true; |
| 1037 |
} |
| 1038 |
}); |
| 1039 |
</script> |
| 1040 |
[% END %] |
| 1041 |
|
| 1037 |
[% END %] |
1042 |
[% END %] |
| 1038 |
|
1043 |
|
| 1039 |
[% INCLUDE 'intranet-bottom.inc' %] |
1044 |
[% INCLUDE 'intranet-bottom.inc' %] |
| 1040 |
- |
|
|