[Patches] [PATCH] Bug 6842 Alternate fix, Branch transfer limits broken

koha-patchbot at kohaaloha.com koha-patchbot at kohaaloha.com
Thu Dec 29 05:50:02 NZDT 2011


From: Owen Leonard <oleonard at myacpl.org>
Date: Wed, 28 Dec 2011 11:41:16 -0500
Subject: [PATCH] Bug 6842 Alternate fix, Branch transfer limits broken
Content-Type: text/plain; charset="utf-8"

The patch which moved the table pager markup into an
include undid the fix which was previously pushed for
this problem. Re-implementing the fix in the pager
include is a simpler fix which doesn't depend on
the Datatables plugin.

The markup change in table-pager.inc fixes the problem
in branch transfer limits and does not affect functionality
on other pages.

The changes in this patch to branch_transfer_limits.tt and
staff-global.css are for cosmetic reasons only.
---
 .../intranet-tmpl/prog/en/css/staff-global.css     |    3 +++
 .../intranet-tmpl/prog/en/includes/table-pager.inc |    4 ++--
 .../en/modules/admin/branch_transfer_limits.tt     |    2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
index 9eb7fa2..c61f946 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
+++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
@@ -2133,3 +2133,6 @@ div.pager input.pagedisplay {
 	font-weight: bold;
 	text-align : center;
 }
+div.pager p {
+	margin: 0;
+}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/table-pager.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/table-pager.inc
index 961c07b..17d43d4 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/table-pager.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/table-pager.inc
@@ -1,4 +1,4 @@
-<div class="pager"><form class="formpager" action=""><label>Page(s):
+<div class="pager"><p class="formpager" action=""><label>Page(s):
 	<img src="[% interface %]/prog/img/first.png" alt="" class="first"/>
 	<img src="[% interface %]/prog/img/prev.png" alt="" class="prev"/>
 	<input type="text" size="5" class="pagedisplay"/></label>
@@ -14,4 +14,4 @@
 	[% IF ( perpage == 100) %]<option value="100" selected="selected">100</option>[% ELSE %]<option value="100">100</option>[% END %]
 	[% IF ( perpage == 200) %]<option value="200" selected="selected">200</option>[% ELSE %]<option value="200">200</option>[% END %]
 	</select></label>
-</form></div>
\ No newline at end of file
+</p></div>
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt
index 5e4e58f..0e8805e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt
@@ -102,7 +102,7 @@
 		<h4>Policy for [% codes_loo.limit_phrase %]: [% codes_loo.code %]</h4>
 	<p><a id="CheckAll[% codes_loo.code %]table" class="checkall" href="#">Check All</a> | <a id="UncheckAll[% codes_loo.code %]table" class="uncheckall" href="#">Uncheck All</a></p>
 	
-	<div id="pager[% codes_loo.code %]table" class="pager">
+	<div id="pager[% codes_loo.code %]table">
 	[% INCLUDE 'table-pager.inc' perpage='20' %]
 	</div>
 		<table id="[% codes_loo.code %]table" class="sorted">
-- 
1.7.3




More information about the Patches mailing list