2 <script type="text/javascript">
5 // prepare DOM for YUI Toolbar
7 $(document).ready(function() {
8 $("#newmenuc").empty();
9 $("#delAuthc").empty();
13 // YUI Toolbar Functions
15 function yuiToolbar() {
18 <!-- TMPL_LOOP name="authtypesloop" -->{ text: "<!-- TMPL_VAR name="authtypetext" -->", url: "/cgi-bin/koha/authorities/authorities.pl?authtypecode=<!-- TMPL_VAR name="value" -->"},
22 new YAHOO.widget.Button({
24 label: _("New Authority"),
25 name: "newmenubutton",
30 var editButton = new YAHOO.widget.Button("editAuth");
32 var delAuthButton = new YAHOO.widget.Button({
36 container: "delAuthc",
37 onclick: {fn: confirm_deletion }
43 <form name="f2" method="post" action="authorities.pl">
45 <!-- TMPL_IF NAME="authid" --> <a id="editAuth" href="authorities.pl?authid=<!-- TMPL_VAR NAME="authid" -->">Edit</a>
47 <!-- TMPL_UNLESS name="count" -->
48 <span id="delAuthc"><a id="delAuth" href="javascript:confirm_deletion()">Delete</a></span>
49 <!-- /TMPL_UNLESS --><!-- TMPL_ELSE --> <!-- /TMPL_IF -->
52 <label for="add_authtypecode">New: </label>
53 <select id="add_authtypecode" name="authtypecode">
54 <!-- TMPL_LOOP name="authtypesloop" -->
55 <!-- TMPL_IF name="selected" -->
56 <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="authtypetext" --></option>
58 <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="authtypetext" --></option>
62 <input type="submit" value="Add" class="button" />