Bugzilla – Attachment 15597 Details for
Bug 9676
Replace YUI buttons on authorities editor page with Bootstrap
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 9676 - Replace YUI buttons on authorities editor page with Bootstrap
SIGNED-OFF-Bug-9676---Replace-YUI-buttons-on-autho.patch (text/plain), 5.51 KB, created by
Bernardo Gonzalez Kriegel
on 2013-02-21 19:00:59 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 9676 - Replace YUI buttons on authorities editor page with Bootstrap
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2013-02-21 19:00:59 UTC
Size:
5.51 KB
patch
obsolete
>From bd03b45280249d36cb335a9ffd7992a9d6365722 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 20 Feb 2013 15:52:24 -0500 >Subject: [PATCH] [SIGNED-OFF] Bug 9676 - Replace YUI buttons on authorities > editor page with Bootstrap > >This patch converts the "Save" button on the authorities editor page to >Bootstrap, replacing YUI button code with Bootstrap markup. > >This patch also adds the float effect to the toolbar to match that on >the MARC editor page. > >To test, create a new authority or load an existing one. The "Save" >button should look correct and work correctly. When you scroll the page >down, the toolbar should "stick" to the top of the browser window so >that the "Save" button stays visible. > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> > >Comment: Button works and looks good. The toolbart sticks when scrolling, >but I see a gap between the box of the save button, and the top of >the window (tested with chrome, opera, firefox). >--- > .../prog/en/modules/authorities/authorities.tt | 73 ++++++-------------- > 1 file changed, 21 insertions(+), 52 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >index 5c3d566..1907a1b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >@@ -1,17 +1,21 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Authorities › [% IF ( authid ) %]Modify authority #[% authid %] ([% authtypetext %])[% ELSE %]Adding authority ([% authtypetext %])[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] >-<script type="text/javascript" src="[% themelang %]/lib/yui/plugins/bubbling-min.js"></script> >+<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.fixFloat.js"></script> > <script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script> > > <script type="text/javascript"> > //<![CDATA[ >- >+ $(window).load(function(){ >+ $("#loading").hide(); >+ }); > $(document).ready(function() { > $('#authoritytabs').tabs(); >- >- $("#f").submit(function(){ >- return $(this).Check(); >+ $('#toolbar').fixFloat(); >+ $("#addauth").click(function(){ >+ if(Check()){ >+ $("#f").submit(); >+ } > }); > }); > >@@ -87,10 +91,6 @@ function AreMandatoriesNotOk(){ > return false; > } > >-/** >- * >- * >- */ > function Check(){ > var StrAlert = AreMandatoriesNotOk(); > if( ! StrAlert ){ >@@ -118,52 +118,20 @@ function searchauthority() { > Y = document.forms[0].value.value; > window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains"; > } >+function confirmnotdup(redirect){ >+ $("#confirm_not_duplicate").attr("value","1"); >+ Check(); >+} > //]]> > </script> > <link type="text/css" rel="stylesheet" href="[% themelang %]/css/addbiblio.css" /> > </head> > <body id="auth_authorities" class="auth"> >-<div id="yui-cms-loading"> >- <div id="yui-cms-float"> >- Loading, please wait... >- </div> >- </div> >-<script type="text/javascript" src="[% themelang %]/lib/yui/plugins/loading-min.js"></script> >-<script type="text/javascript"> >-//<![CDATA[ >-(function() { >- // configuring the loading mask >- YAHOO.widget.Loading.config({ >- opacity: 0.8 >- }); >-})(); >- $(document).ready(function() { >- yuiToolbar(); >- $("#addauthc,#action").empty(); >- }); >- // YUI Toolbar Functions >- function yuiToolbar() { >- var addauthButton = new YAHOO.widget.Button({ >- id: "addauth", >- type: "button", >- label: _("Save"), >- container: "addauthc", >- onclick: {fn: Check } >- }); >- var addauthButton2 = new YAHOO.widget.Button({ >- id: "addauth2", >- type: "button", >- label: _("Save"), >- container: "action", >- onclick: {fn: Check } >- }); >- } >- function confirmnotdup(redirect){ >- $("#confirm_not_duplicate").attr("value","1"); >- Check(); >- } >-//]]> >-</script> >+ >+<div id="loading"> >+ <div>Loading, please wait...</div> >+</div> >+ > [% INCLUDE 'header.inc' %] > > <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> › [% IF ( authid ) %]Modify authority #[% authid %] ([% authtypetext %])[% ELSE %]Adding authority [% authtypetext %][% END %] </div> >@@ -204,8 +172,9 @@ function searchauthority() { > <input type="hidden" name="index" value="[% index %]" /> > <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" /> > >- <div id="toolbar"> >- <ul class="toolbar"><li id="addauthc"><input id="addauth" type="submit" value="Save" accesskey="w" /></li></ul></div> >+ <div id="toolbar" class="btn-toolbar"> >+ <div class="btn-group"><a href="#" id="addauth" class="btn btn-small" accesskey="w"><i class="icon-hdd"></i> Save</a></div> >+ </div> > > <div id="authoritytabs" class="toptabs numbered"> > <ul> >-- >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 9676
:
15574
|
15597
|
15831