Bugzilla – Attachment 15432 Details for
Bug 9648
Replace YUI buttons on authorized values administration page with Bootstrap
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9648 - Replace YUI buttons on authorized values administration page with Bootstrap
Bug-9648---Replace-YUI-buttons-on-authorized-value.patch (text/plain), 2.85 KB, created by
Owen Leonard
on 2013-02-16 21:12:44 UTC
(
hide
)
Description:
Bug 9648 - Replace YUI buttons on authorized values administration page with Bootstrap
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-02-16 21:12:44 UTC
Size:
2.85 KB
patch
obsolete
>From 3eeb3e65e16fcea634519fe0afa76192ecbb5ef2 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Sat, 16 Feb 2013 16:07:20 -0500 >Subject: [PATCH] Bug 9648 - Replace YUI buttons on authorized values > administration page with Bootstrap >Content-Type: text/plain; charset="utf-8" > >This patch converts the toolbar on the authorised values administration >page to to Bootstrap, replacing YUI button code with Bootstrap markup. > >To test, view the authorised values administration page and confirm that >the "New authorized value..." and "New cateogry" buttons look correct >and works correctly. >--- > .../prog/en/modules/admin/authorised_values.tt | 44 ++++++++------------ > 1 file changed, 17 insertions(+), 27 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >index e464617..8b6aeb2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >@@ -26,6 +26,19 @@ > }); > //]]> > </script> >+[% IF ( else ) %] >+<script type="text/javascript"> >+//<![CDATA[ >+$(document).ready(function() { >+ $('#category').find("input:submit").hide(); >+ $('#searchfield').change(function() { >+ $('#category').submit(); >+ }); >+}); >+//]]> >+</script> >+[% END %] >+ > <style type="text/css"> > fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; } > fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : #F4F8F9; } >@@ -169,33 +182,10 @@ > > [% IF ( else ) %] > >-<div id="toolbar"> >- <script type="text/javascript"> >- //<![CDATA[ >- >- // prepare DOM for YUI Toolbar >- >- $(document).ready(function() { >- yuiToolbar(); >- $('#category').find("input:submit").hide(); >- $('#searchfield').change(function() { >- $('#category').submit(); >- }); >- }); >- >- // YUI Toolbar Functions >- >- function yuiToolbar() { >- new YAHOO.widget.Button("addauth"); >- new YAHOO.widget.Button("addcat"); >- } >- >- //]]> >- </script> >- <ul class="toolbar"> >- <li><a id="addauth" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=[% category %]">New authorized value for [% category %]</a></li> >- <li><a id="addcat" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form">New category</a></li> >-</ul></div> >+<div id="toolbar" class="btn-toolbar"> >+ <a id="addauth" class="btn btn-small" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=[% category %]">New authorized value for [% category %]</a> >+ <a id="addcat" class="btn btn-small" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form">New category</a> >+</div> > > <h1>Authorized values</h1> > <div class="note"><strong>NOTE:</strong> If you change an authorized value, existing records using it won't be updated.</div> >-- >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 9648
:
15432
|
15433
|
15473