Bug 29648: Notice template - only sort
Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
a66b6cda96
commit
93f1c20cb4
|
|
@ -1694,6 +1694,7 @@ modules:
|
|||
cannot_be_modified: 1
|
||||
notices:
|
||||
lettert:
|
||||
default_sort_order: 3
|
||||
columns:
|
||||
-
|
||||
columnname: library
|
||||
|
|
|
|||
|
|
@ -596,7 +596,7 @@
|
|||
var code = '[% code | html %]';
|
||||
var new_lettercode = '[% new_lettercode | html %]';
|
||||
var new_branchcode = '[% new_branchcode | html %]';
|
||||
var columns_settings = [% TablesSettings.GetColumns( 'tools', 'notices', 'lettert', 'json' ) | $raw %];
|
||||
var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'notices', 'lettert', 'json' ) | $raw %];
|
||||
</script>
|
||||
[% Asset.js("js/letter.js") | $raw %]
|
||||
[% END %]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/* Variables defined in letter.tt: */
|
||||
/* global _ module add_form copy_form no_op_set code interface theme KohaTable columns_settings */
|
||||
/* global _ module add_form copy_form no_op_set code interface theme KohaTable table_settings */
|
||||
|
||||
var modal_loading = "<div id=\"loading\"><img src=\"" + interface + "/" + theme + "/img/spinner-small.gif\" alt=\"\" /> "+ __('Loading...') +"</div>";
|
||||
|
||||
|
|
@ -44,8 +44,7 @@ $(document).ready(function() {
|
|||
var ntable = KohaTable("lettert", {
|
||||
"autoWidth": false,
|
||||
"paging": false,
|
||||
"aaSorting": [[ 3, "asc" ]],
|
||||
}, columns_settings);
|
||||
}, table_settings);
|
||||
|
||||
if( no_op_set ){
|
||||
$('#branch').change(function() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue