Bugzilla – Attachment 14724 Details for
Bug 9436
Use DataTables on cities administration page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9436 - Use DataTables on cities administration page
Bug-9436---Use-DataTables-on-cities-administration.patch (text/plain), 2.76 KB, created by
Owen Leonard
on 2013-01-20 00:57:36 UTC
(
hide
)
Description:
Bug 9436 - Use DataTables on cities administration page
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-01-20 00:57:36 UTC
Size:
2.76 KB
patch
obsolete
>From 2c058a85716897350a3dde13ad09f0e09a41d1b6 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Sat, 19 Jan 2013 19:53:50 -0500 >Subject: [PATCH] Bug 9436 - Use DataTables on cities administration page >Content-Type: text/plain; charset="utf-8" > >Replace the tablesorter plugin with the DataTables plugin on the >cities administration page. > >To test, open the cities administration page (Administration >-> Cities and towns). Confirm that table sorting works correctly. >--- > .../intranet-tmpl/prog/en/modules/admin/cities.tt | 21 ++++++++++---------- > 1 file changed, 11 insertions(+), 10 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >index 4b5dc0b..c41560b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >@@ -1,15 +1,10 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Administration › [% IF ( add_form ) %]Cities › [% IF ( cityid ) %] Modify city[% ELSE %] New city[% END %][% ELSE %][% IF ( delete_confirm ) %]Cities › Confirm deletion of city[% ELSE %] Cities[% END %][% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] >-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> >-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script> >-<script type="text/javascript" id="js">$(document).ready(function() { >- $.tablesorter.defaults.widgets = ['zebra']; >- $("#table_cities").tablesorter({ >- sortList: [[1,0]], >- headers: { 5: { sorter: false},6: { sorter: false}} >- }).tablesorterPager({container: $("#pagertable_cities"),positionFixed: false,size: 20}); >-}); </script> >+<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" /> >+<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script> >+[% INCLUDE 'datatables-strings.inc' %] >+<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script> > <script type="text/javascript"> > //<![CDATA[ > function Check(f) { >@@ -21,6 +16,13 @@ > } > $(document).ready(function() { > new YAHOO.widget.Button("newcity"); >+ $("#table_cities").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "aoColumnDefs": [ >+ { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, >+ ], >+ "aaSorting": [[ 1, "asc" ]], >+ "iDisplayLength": 10 >+ })); > }); > //]]> > </script> >@@ -130,7 +132,6 @@ > > [% IF ( loop ) %] > <div id="pagertable_cities"> >-[% INCLUDE 'table-pager.inc' perpage='20' %] > </div> > <table id="table_cities"> > <thead> >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9436
:
14724
|
14751
|
14884
|
15697
|
15741
|
15882
|
16139