Bug 41564: (follow-up) Minor fixes

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Owen Leonard 2026-01-12 14:27:17 -05:00 committed by Lucas Gass
parent 22087ab2ec
commit a5dc152afc
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
4 changed files with 12 additions and 14 deletions

View File

@ -436,7 +436,7 @@
[% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %]
[% Asset.js("js/admin-menu.js") | $raw %]
<script>
const tagsubfield = [% IF tabsubfield %]"[% tabsubfield | html %]"[% ELSE %]null[% END %];
const tagsubfield = [% IF tagsubfield %]"[% tagsubfield | html %]"[% ELSE %]null[% END %];
</script>
<script>
$(document).ready(function () {

View File

@ -206,18 +206,16 @@
[% INCLUDE 'datatables.inc' %]
<script>
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'cities', 'table_cities', 'json' ) | $raw %];
$(document).ready(function() {
var cities_table_url = '/api/v1/cities?';
var cities_table_url = '/api/v1/cities?';
[% IF city_name_filter %]
var city_name_filter = {
'name': {
"like": '%[%- city_name_filter | html -%]%'
}
};
cities_table_url += 'q='+ encodeURIComponent(JSON.stringify(city_name_filter));
[% END %]
});
[% IF city_name_filter %]
var city_name_filter = {
'name': {
"like": '%[%- city_name_filter | html -%]%'
}
};
cities_table_url += 'q='+ encodeURIComponent(JSON.stringify(city_name_filter));
[% END %]
</script>
<script>
$(document).ready(function () {

View File

@ -461,7 +461,7 @@
[% INCLUDE 'datatables.inc' %]
<script>
const i18n = {
on: "[% tp("Active", "On") | html %]";
on: "[% tp("Active", "On") | html %]"
};
</script>
<script>

View File

@ -321,7 +321,7 @@
[% INCLUDE 'datatables.inc' %]
<script>
const i18n = {
on: "[% tp("Active", "On") | html %]";
on: "[% tp("Active", "On") | html %]"
};
</script>
<script>