Adding yuipath variable to help.pl, and doing some cleanup of help templates (standar...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / virtualshelves-toolbar.inc
1 <div id="toolbar">
2         <script type="text/javascript">
3         //<![CDATA[
4
5         // prepare DOM for YUI Toolbar
6
7          $(document).ready(function() {
8                 $("#deleteshelfc").empty();
9             yuiToolbar();
10          });
11
12         // YUI Toolbar Functions
13
14         function yuiToolbar() {
15                     newshelfButton = new YAHOO.widget.Button("newshelf");
16                     editshelfButton = new YAHOO.widget.Button("editshelf");
17                         deleteshelfButton = new YAHOO.widget.Button({
18                                             id: "deleteshelf", 
19                                             type: "button", 
20                                             label: "Delete List", 
21                                             container: "deleteshelfc",
22                                                                                         onclick: {fn:function(){confirmDelete("Are you sure you want to delete this shelf?")}}
23                                         });
24         }
25
26         //]]>
27         </script>
28         
29 <ul class="toolbar">
30
31         <li><a id="newshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1">New List</a></li>
32         <!-- TMPL_IF NAME="viewshelf" --><!-- TMPL_IF name="manageshelf" --><li><a id="editshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=modif&amp;shelf=<!-- TMPL_VAR NAME="shelfnumber" -->">Edit List</a></li><li id="deleteshelfc"><a id="deleteshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1&amp;DEL-<!-- TMPL_VAR NAME="shelfnumber" -->=1">Delete List</a></li><!-- /TMPL_IF --><!-- /TMPL_IF -->
33 </ul></div>