|
Lines 1-3
Link Here
|
|
|
1 |
<script type="text/javascript"> |
| 2 |
$(document).ready(function(){ |
| 3 |
$(".confirmdelete").click(function(){ |
| 4 |
$(this).parents('tr').addClass("warn"); |
| 5 |
if(confirm(_("Are you sure you want to delete this collection?"))){ |
| 6 |
return true; |
| 7 |
} else { |
| 8 |
$(this).parents('tr').removeClass("warn"); |
| 9 |
return false; |
| 10 |
} |
| 11 |
}); |
| 12 |
}); |
| 13 |
</script> |
| 14 |
|
| 1 |
<div id="toolbar" class="btn-toolbar"> |
15 |
<div id="toolbar" class="btn-toolbar"> |
| 2 |
<div class="btn-group"> |
16 |
<div class="btn-group"> |
| 3 |
<a class="btn btn-small" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=new"><i class="fa fa-plus"></i> New collection</a> |
17 |
<a class="btn btn-small" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=new"><i class="fa fa-plus"></i> New collection</a> |
|
Lines 11-17
Link Here
|
| 11 |
<a class="btn btn-small" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=edit&colId=[% colId %]"><i class="fa fa-pencil"></i> Edit</a> |
25 |
<a class="btn btn-small" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=edit&colId=[% colId %]"><i class="fa fa-pencil"></i> Edit</a> |
| 12 |
</div> |
26 |
</div> |
| 13 |
<div class="btn-group"> |
27 |
<div class="btn-group"> |
| 14 |
<a class="btn btn-small" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=delete&colId=[% colId %]"><i class="fa fa-remove"></i> Delete</a> |
28 |
<a class="btn btn-small confirmdelete" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=delete&colId=[% colId %]"><i class="fa fa-remove"></i> Delete</a> |
| 15 |
</div> |
29 |
</div> |
| 16 |
[% END %] |
30 |
[% END %] |
| 17 |
</div> |
31 |
</div> |
| 18 |
- |
|
|