Owen Leonard
41db97255c
Corrected an instance where <!-- TMPL_IF --> was embedded inside an HTML tag (conflicts with translation script). Modified styling of confirm button to match existing interface convention. Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
36 lines
1.6 KiB
HTML
36 lines
1.6 KiB
HTML
<div id="toolbar">
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
|
|
// prepare DOM for YUI Toolbar
|
|
|
|
$(document).ready(function() {
|
|
$("#deleteshelfc").empty();
|
|
yuiToolbar();
|
|
});
|
|
|
|
// YUI Toolbar Functions
|
|
|
|
function yuiToolbar() {
|
|
newshelfButton = new YAHOO.widget.Button("newshelf");
|
|
editshelfButton = new YAHOO.widget.Button("editshelf");
|
|
deleteshelfButton = new YAHOO.widget.Button({
|
|
id: "deleteshelf",
|
|
type: "button",
|
|
label: _("Delete List"),
|
|
container: "deleteshelfc",
|
|
onclick: {fn:function(){confirmDelete(_("Are you sure you want to delete this shelf?"))}}
|
|
});
|
|
}
|
|
|
|
//]]>
|
|
</script>
|
|
|
|
<ul class="toolbar">
|
|
<li><a id="newshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1">New List</a></li>
|
|
<!-- TMPL_IF NAME="viewshelf" --><!-- TMPL_IF name="manageshelf" -->
|
|
<li><a id="editshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->&op=modif">Edit List</a></li>
|
|
<li id="deleteshelfc"><!-- TMPL_IF NAME="showprivateshelves" --><a id="deleteshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves&shelves=1&DEL-<!-- TMPL_VAR NAME="shelfnumber" -->=1">Delete List</a><!-- TMPL_ELSE --><a id="deleteshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1&DEL-<!-- TMPL_VAR NAME="shelfnumber" -->=1">Delete List</a><!-- /TMPL_IF --></li>
|
|
<!-- /TMPL_IF --><!-- /TMPL_IF -->
|
|
</ul>
|
|
</div>
|