Bugzilla – Attachment 15376 Details for
Bug 9624
Replace YUI button on reports dictionary page with Bootstrap
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9624 - Replace YUI button on reports dictionary page with Bootstrap
Bug-9624---Replace-YUI-button-on-reports-dictionar.patch (text/plain), 2.43 KB, created by
Owen Leonard
on 2013-02-15 16:36:07 UTC
(
hide
)
Description:
Bug 9624 - Replace YUI button on reports dictionary page with Bootstrap
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-02-15 16:36:07 UTC
Size:
2.43 KB
patch
obsolete
>From dee977179c27f608f361a7680adffba9e26b9325 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 15 Feb 2013 11:31:46 -0500 >Subject: [PATCH] Bug 9624 - Replace YUI button on reports dictionary page > with Bootstrap >Content-Type: text/plain; charset="utf-8" > >This patch removes the toolbar include file used by the reports >dictionary and embeds the toolbar markup directly in the main >template since it's the only instance where it is used. >Toolbar is converted to use Bootstrap, replacing YUI button code >with Bootstrap markup. > >To test, view the reports dictionary and confirm that the "New >definition" button looks correct and works correctly. >--- > .../prog/en/includes/dictionary-toolbar.inc | 21 -------------------- > .../prog/en/modules/reports/dictionary.tt | 6 +++++- > 2 files changed, 5 insertions(+), 22 deletions(-) > delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/dictionary-toolbar.inc > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/dictionary-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/dictionary-toolbar.inc >deleted file mode 100644 >index 4d213a1..0000000 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/dictionary-toolbar.inc >+++ /dev/null >@@ -1,21 +0,0 @@ >-<div id="toolbar"> >- <script type="text/javascript"> >- //<![CDATA[ >- >- // prepare DOM for YUI Toolbar >- >- $(document).ready(function() { >- yuiToolbar(); >- }); >- >- // YUI Toolbar Functions >- >- function yuiToolbar() { >- new YAHOO.widget.Button("newdictionary"); >- } >- >- //]]> >- </script> >- <ul class="toolbar"> >- <li><a id="newdictionary" href="/cgi-bin/koha/reports/dictionary.pl?phase=Add%20New%20Definition">New definition</a></li> >-</ul></div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt >index 2e15834..20c56b7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt >@@ -22,7 +22,11 @@ > <div id="yui-main"> > <div class="yui-b"> > [% IF ( start_dictionary ) %] >-[% INCLUDE 'dictionary-toolbar.inc' %] >+ <div id="toolbar"> >+ <ul class="toolbar"> >+ <li><a id="newdictionary" class="btn btn-small" href="/cgi-bin/koha/reports/dictionary.pl?phase=Add%20New%20Definition"><i class="icon-plus"></i> New definition</a></li> >+ </ul> >+ </div> > [% END %] > <h1>Dictionary</h1> > [% IF ( start_dictionary ) %] >-- >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 9624
:
15376
|
15383
|
15445