Bugzilla – Attachment 35670 Details for
Bug 13670
Patron holds table not loading when holds tab anchor is used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13670 - Patron holds table not loading when holds tab anchor is used
Bug-13670---Patron-holds-table-not-loading-when-ho.patch (text/plain), 1.59 KB, created by
Kyle M Hall
on 2015-02-05 14:24:29 UTC
(
hide
)
Description:
Bug 13670 - Patron holds table not loading when holds tab anchor is used
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2015-02-05 14:24:29 UTC
Size:
1.59 KB
patch
obsolete
>From 798dee493dfc8b8469070824e3cd734b84c7b8e1 Mon Sep 17 00:00:00 2001 >From: ByWater Staff <staff@bywatersolutions.com> >Date: Thu, 5 Feb 2015 09:21:12 -0500 >Subject: [PATCH] Bug 13670 - Patron holds table not loading when holds tab anchor is used > >If a link to a patron record ends with #reserves, the holds tab is selected >on page load, but the holds table does not load. > >Test Plan: >1) Build your holds queue >2) From the holds queue report, open any patron link >3) Note the patron's reserves do not load >4) Apply this patch >5) Clear your browser cache >6) Repeat step 2 >7) Note the holds table now loads >--- > koha-tmpl/intranet-tmpl/prog/en/js/holds.js | 12 ++++++++---- > 1 files changed, 8 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js b/koha-tmpl/intranet-tmpl/prog/en/js/holds.js >index 60f747b..f0d1d85 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js >+++ b/koha-tmpl/intranet-tmpl/prog/en/js/holds.js >@@ -1,7 +1,12 @@ > $(document).ready(function() { >- // Don't load holds table unless it is clicked on > var holdsTable; >- $("#holds-tab").click( function() { >+ >+ // Don't load holds table unless it is clicked on >+ $("#holds-tab").on( "click", function(){ load_holds_table() } ); >+ >+ if ( $("#holds-tab").parent().hasClass('ui-state-active') ) { load_holds_table() } >+ >+ function load_holds_table() { > if ( ! holdsTable ) { > holdsTable = $("#holds-table").dataTable({ > "bAutoWidth": false, >@@ -127,6 +132,5 @@ $(document).ready(function() { > }); > } > } >- }); >- >+ } > }); >-- >1.7.2.5
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 13670
:
35670
|
35671
|
35676
|
35731