Bugzilla – Attachment 20268 Details for
Bug 10614
have add order form at top and bottom
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10614 - have add order form at top and bottom
Bug-10614---have-add-order-form-at-top-and-bottom.patch (text/plain), 2.81 KB, created by
Owen Leonard
on 2013-08-12 12:38:44 UTC
(
hide
)
Description:
Bug 10614 - have add order form at top and bottom
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-08-12 12:38:44 UTC
Size:
2.81 KB
patch
obsolete
>From fda9818922227467d6128a2f917ddd8f127296de Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 12 Aug 2013 08:36:09 -0400 >Subject: [PATCH] Bug 10614 - have add order form at top and bottom >Content-Type: text/plain; charset="utf-8" > >If a basket has a lot of items it may be inconvenient to scroll to the >bottom of the patch to reach the "add to basket" form. This patch adds >as "Add to basket" button to the toolbar which uses JavaScript to copy >the form into a modal dialog for quick access. > >To test, apply the patch and view an open basket. You should be able to >click the "Add to basket" button to trigger a modal dialog with the full >"Add to basket" list of options. All options in the list should function >normally. > >If you view a closed basket the new button should not appear. >--- > .../intranet-tmpl/prog/en/modules/acqui/basket.tt | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >index 84df886..8cbc46e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >@@ -28,6 +28,11 @@ > > $("#show_all_details").attr('checked', false); > updateColumnsVisibility(false); >+ [% UNLESS ( closedate ) %] >+ $('#addtoBasket').on('show', function () { >+ $(this).find(".modal-body").html($("#acqui_basket_add")[0].outerHTML); >+ }); >+ [% END %] > }); > //]]> > </script> >@@ -137,6 +142,7 @@ > [% UNLESS ( selectbasketg ) %] > [% UNLESS ( closedate ) %] > <div id="toolbar" class="btn-toolbar"> >+ <div class="btn-group"><a href="#addtoBasket" role="button" class="btn btn-small" data-toggle="modal"><i class="icon-plus"></i> Add to basket</a></div> > <div class="btn-group"><a href="basketheader.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&op=add_form" class="btn btn-small" id="basketheadbutton"><i class="icon-pencil"></i> Edit basket</a></div> > <div class="btn-group"><a href="#" class="btn btn-small" id="delbasketbutton"><i class="icon-remove"></i> Delete this basket</a></div> > [% IF ( unclosable ) %] >@@ -451,6 +457,15 @@ > [% END %] > <br /> > [% UNLESS ( closedate ) %] >+ >+ <!-- Modal --> >+ <div id="addtoBasket" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel" aria-hidden="true"> >+ <div class="modal-body"></div> >+ <div class="modal-footer"> >+ <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a> >+ </div> >+ </div> >+ > [% INCLUDE 'acquisitions-add-to-basket.inc' %] > [% END %] > [% END %] >-- >1.7.9.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 10614
:
20268
|
20270
|
20287