Bugzilla – Attachment 15770 Details for
Bug 9669
Replace YUI buttons on staff client cart toolbar
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9669 - Replace YUI buttons on staff client cart toolbar
Bug-9669---Replace-YUI-buttons-on-staff-client-car.patch (text/plain), 5.95 KB, created by
Jonathan Druart
on 2013-02-28 14:39:28 UTC
(
hide
)
Description:
Bug 9669 - Replace YUI buttons on staff client cart toolbar
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-02-28 14:39:28 UTC
Size:
5.95 KB
patch
obsolete
>From a1d1dc2b4f85f950d5fdb0f6b65d7241ceebba39 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 19 Feb 2013 15:18:27 -0500 >Subject: [PATCH] Bug 9669 - Replace YUI buttons on staff client cart toolbar > >This patch converts the toolbar on the staff client cart >page to Bootstrap, replacing YUI button code with Bootstrap markup. > >To test, view the staff client cart and confirm that all buttons look >correct and work correctly. Functions to test include: > >Full/brief display >Send >Download (various options) >Print >Empty and close >Hide window > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> > >Comment: Tested all buttons, works very well. No errors >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > .../intranet-tmpl/prog/en/css/staff-global.css | 2 +- > .../intranet-tmpl/prog/en/modules/basket/basket.tt | 68 +++++--------------- > 2 files changed, 18 insertions(+), 52 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 e95c60f..8e19eea 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >+++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >@@ -2527,7 +2527,6 @@ a.disabled { > position: inherit; > top: auto; > right : auto; >- line-height: inherit; > filter : none; > float : none; > font-size: inherit; >@@ -2539,6 +2538,7 @@ a.disabled { > .close:hover { > color: #538200; > filter: inherit; >+ font-size: inherit; > opacity: inherit; > } > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >index 9989194..cb1f573 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >@@ -40,8 +40,6 @@ function placeHold () { > window.close(); > } > >- >- > $(document).ready(function(){ > $("#CheckAll").click(function(){ > var checked = []; >@@ -69,24 +67,6 @@ function placeHold () { > headers: { 0: { sorter: false }} > }); > }); >- >-function yuiToolbar() { >- var downloadmenu = [ >- { text: _("iso2709"), url: "/cgi-bin/koha/basket/downloadcart.pl?format=iso2709&bib_list=[% bib_list %]" }, >- { text: _("RIS"), url: "/cgi-bin/koha/basket/downloadcart.pl?format=ris&bib_list=[% bib_list %]" }, >- { text: _("BibTex"), url: "/cgi-bin/koha/basket/downloadcart.pl?format=bibtex&bib_list=[% bib_list %]" }, >-[% FOREACH csv_profile IN csv_profiles %] >- { text: _("CSV - [% csv_profile.profile %]"), url: "/cgi-bin/koha/basket/downloadcart.pl?format=[% csv_profile.export_format_id %]&bib_list=[% bib_list %]" }, >-[% END %] >- ]; >- new YAHOO.widget.Button({ >- type: "menu", >- label: _("Download"), >- name: "downloadmenubutton", >- menu: downloadmenu, >- container: "downloadcartc" >- }); >-} > //]]> > </script> > [% END %] >@@ -98,37 +78,23 @@ function yuiToolbar() { > [% UNLESS ( print_basket ) %] > <h1>Your cart</h1> > >-<div id="toolbar"> >-<ul class="toolbar"> >- <li> >- <span id="addchild" class="yui-button yui-link-button"><span class="first-child"> >- [% IF ( verbose ) %]<a href="basket.pl" class="brief" onclick="showLess(); return false;">Brief display</a>[% ELSE %]<a href="basket.pl" class="detail" onclick="showMore(); return false;">More details</a>[% END %] >- </span></span> >- </li> >- <li> >- <span id="receive" class="yui-button yui-link-button"><span class="first-child"> >- <a class="send" href="basket.pl" onclick="sendBasket(); return false;">Send</a> >- </span></span> >- </li> >- <li id="downloadcartc"> >- <a href="#" id="downloadcart">Download</a> >- </li> >- <li> >- <span id="printmenuc" class="yui-button yui-link-button"><span class="first-child"> >- <a class="print" href="basket.pl" onclick="printBasket(); return false;">Print</a> >- </span></span> >- </li> >- <li> >- <span id="delete" class="yui-button yui-link-button"><span class="first-child"> >- <a class="empty" href="basket.pl" onclick="delBasket('popup'); return false;">Empty and close</a> >- </span></span> >- </li> >- <li> >- <span id="hide" class="yui-button yui-link-button"><span class="first-child"> >- <a class="hide close" href="basket.pl">Hide window</a> >- </span></span> >- </li> >-</ul> >+<div id="toolbar" class="btn-toolbar"> >+ [% IF ( verbose ) %]<a href="basket.pl" class="btn btn-small" onclick="showLess(); return false;"><i class="icon-zoom-out"></i> Brief display</a>[% ELSE %]<a href="basket.pl" class="btn btn-small" onclick="showMore(); return false;"><i class="icon-zoom-in"></i> More details</a>[% END %] >+ <a class="btn btn-small" href="basket.pl" onclick="sendBasket(); return false;"><i class="icon-envelope"></i> Send</a> >+ <div class="btn-group"> >+ <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#" id="downloadcart"><i class="icon-download-alt"></i> Download <span class="caret"></span> </a> >+ <ul class="dropdown-menu"> >+ <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=iso2709&bib_list=[% bib_list %]">iso2709</a></li> >+ <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=ris&bib_list=[% bib_list %]">RIS</a></li> >+ <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=bibtex&bib_list=[% bib_list %]">BibTex</a></li> >+ [% FOREACH csv_profile IN csv_profiles %] >+ <li><a href="/cgi-bin/koha/basket/downloadcart.pl?format=[% csv_profile.export_format_id %]&bib_list=[% bib_list %]">CSV - [% csv_profile.profile %]</a></li> >+ [% END %] >+ </ul> >+ </div> >+ <a class="btn btn-small" href="basket.pl" onclick="printBasket(); return false;"><i class="icon-print"></i> Print</a> >+ <a class="btn btn-small" href="basket.pl" onclick="delBasket('popup'); return false;"><i class="icon-trash"></i> Empty and close</a> >+ <a class="btn btn-small close" href="basket.pl"><i class="icon-remove-sign"></i> Hide window</a> > </div> > [% END %] > >-- >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 9669
:
15562
|
15563
| 15770