Bugzilla – Attachment 15433 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]
[SIGNED-OFF] Bug 9648 - Replace YUI buttons on authorized values administration page with Bootstrap
SIGNED-OFF-Bug-9648---Replace-YUI-buttons-on-autho.patch (text/plain), 2.94 KB, created by
Bernardo Gonzalez Kriegel
on 2013-02-16 21:17:41 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 9648 - Replace YUI buttons on authorized values administration page with Bootstrap
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2013-02-16 21:17:41 UTC
Size:
2.94 KB
patch
obsolete
>From 9b2a4414289bc38ba6547ef31b6ae9c44a68ffd6 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Sat, 16 Feb 2013 16:07:20 -0500 >Subject: [PATCH] [SIGNED-OFF] Bug 9648 - Replace YUI buttons on authorized > values administration page with Bootstrap > >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. > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> > >Comment: Both buttons works and look correctly. No errors. >--- > .../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.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 9648
:
15432
|
15433
|
15473