[Koha-patches] [PATCH] Bug 9641 - Replace YUI button on the Koha news management page with Bootstrap

Owen Leonard oleonard at myacpl.org
Fri Feb 15 21:06:42 CET 2013


This patch converts the toolbar include file used by the Koha news
editor to Bootstrap, replacing YUI button and menu code with Bootstrap
markup.

To test, open the Koha news editor and test the "New entry" button. It
sould look correct and work correctly.
---
 .../prog/en/modules/tools/koha-news.tt             |   21 ++++----------------
 1 file changed, 4 insertions(+), 17 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt
index 195dcef..d84f8c5 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt
@@ -55,24 +55,11 @@ Edit News Item[% ELSE %]Add News Item[% END %][% ELSE %]News[% END %]</div>
    <div id="bd">
 	<div id="yui-main">
 	<div class="yui-b">
- 
+
 [% UNLESS ( add_form ) %]
-<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("newentry");
-	}
-	//]]>
-	</script>
-	<ul class="toolbar">
-	<li><a id="newentry" href="/cgi-bin/koha/tools/koha-news.pl?op=add_form">New Entry</a></li>
-</ul></div>
+<div id="toolbar" class="btn-toolbar">
+    <a class="btn btn-small" id="newentry" href="/cgi-bin/koha/tools/koha-news.pl?op=add_form"><i class="icon-plus"></i> New entry</a>
+</div>
 [% END %]
 
 [% IF ( add_form ) %]
-- 
1.7.9.5


More information about the Koha-patches mailing list