2 <script type="text/javascript">
5 // prepare DOM for YUI Toolbar
7 $(document).ready(function() {
8 $("#deleteshelfc").empty();
12 // YUI Toolbar Functions
14 function yuiToolbar() {
15 newshelfButton = new YAHOO.widget.Button("newshelf");
16 editshelfButton = new YAHOO.widget.Button("editshelf");
17 deleteshelfButton = new YAHOO.widget.Button({
20 label: _("Delete List"),
21 container: "deleteshelfc",
22 onclick: {fn:function(){confirmDelete(_("Are you sure you want to delete this shelf?"))}}
30 <li><a id="newshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1">New List</a></li>
31 <!-- TMPL_IF NAME="viewshelf" --><!-- TMPL_IF name="manageshelf" -->
32 <li><a id="editshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->&op=modif">Edit List</a></li>
33 <li id="deleteshelfc"><a id="deleteshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?<!-- TMPL_IF NAME="showprivateshelves" -->display=privateshelves&<!-- /TMPL_IF -->shelves=1&DEL-<!-- TMPL_VAR NAME="shelfnumber" -->=1">Delete List</a></li>
34 <!-- /TMPL_IF --><!-- /TMPL_IF -->