Bugzilla – Attachment 11714 Details for
Bug 8659
Inactive funds in neworderempty not disabled in IE/Opera
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-FixInactiveBudgetsIE.patch (text/plain), 2.32 KB, created by
Maxime Pelletier
on 2012-08-20 20:27:59 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Maxime Pelletier
Created:
2012-08-20 20:27:59 UTC
Size:
2.32 KB
patch
obsolete
>From 19d8bba84a89e2c6b013b6bf31bd964cf2e14f17 Mon Sep 17 00:00:00 2001 >From: Maxime Pelletier <maxime.pelletier@libeo.com> >Date: Mon, 20 Aug 2012 15:08:48 -0400 >Subject: [PATCH] Bug 8659 Fix Inactive budgets shown in IE because display none is not supported. >Does a copy of inactive budgets before removing() them. Them when showallbudgets is clicked, prepend those options back. >Sponsored by the CCSR >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >--- > .../prog/en/modules/acqui/neworderempty.tt | 13 ++++++++----- > 1 files changed, 8 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >index 39e9ca2..7d6158a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >@@ -92,13 +92,16 @@ $(document).ready(function() > }); > [% END %] > >+ //keep a copy of disabled budgets before removing them >+ disabledBudgetsCopy = $('#budget_id .b_inactive').clone(); >+ $('#budget_id .b_inactive').remove(); >+ > $('#showallbudgets').click(function() { >- if ( $('#budget_id .b_inactive').is(":visible") ) >- { >- $('#budget_id .b_inactive').hide(); >+ if ($(this).attr('checked') === true) { >+ $('#budget_id').prepend(disabledBudgetsCopy); // > } > else { >- $('#budget_id .b_inactive').show(); >+ $('#budget_id .b_inactive').remove(); > } > }); > }); >@@ -333,7 +336,7 @@ $(document).ready(function() > <option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option> > [% ELSE %] > [% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option> >- [% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive" style="display : none;">[% budget_loo.b_txt %]</option> >+ [% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive">[% budget_loo.b_txt %]</option> > [% END %] > [% END %] > [% END %] >-- >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 8659
:
11714
|
11730
|
11752
|
11753