-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
-[% INCLUDE 'datatables-strings.inc' %]
-<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
-[% INCLUDE 'greybox.inc' %]
-<script type="text/javascript">
-//<![CDATA[
-
- dt_overwrite_html_sorting_localeCompare();
-
- $(document).ready(function(){
- if ( $("#pendingt").length ) {
- var pendingt = $("#pendingt").dataTable($.extend(true, {}, dataTablesDefaults, {
- "bStateSave": true,
- "iCookieDuration": 60*60*24*1000, // 1000 days
- "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
- "aoColumnDefs": [
- { "aTargets": [ 3, 8, 9 ], "bSortable": false, "bSearchable": false },
- ],
- "aoColumns": [
- { "sType": "num-html" },
- { "sType": "num-html" },
- { "sType": "html" },
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- ],
- "sPaginationType": "four_button"
- } ) );
- }
- if ( $("#receivedt").length ) {
- var receivedt = $("#receivedt").dataTable($.extend(true, {}, dataTablesDefaults, {
- "bStateSave": true,
- "iCookieDuration": 60*60*24*1000, // 1000 days
- "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
- "aoColumnDefs": [
- { "aTargets": [ 3, -1 ], "bSortable": false, "bSearchable": false },
- ],
- "aoColumns": [
- { "sType": "num-html" },
- { "sType": "num-html" },
- { "sType": "html" },
- null,
- null,
- null,
- null,
- null,
- null
- ],
- "sPaginationType": "four_button"
- } ) );
- }
-
- });
-
- // Case-insensitive version of jquery's contains function
- jQuery.extend(jQuery.expr[':'], {
- icontains : "jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())>=0"
- });
-
- // Contains exactly function
- jQuery.extend(jQuery.expr[':'], {
- containsExactly: "$(a).text() == m[3]"
- });
-
-//]]>
-</script>
-<script type="text/javascript">
-//<![CDATA[
- function confirm_delete_item(ordernumber, basketno, biblionumber) {
- var is_confirmed = confirm(_("Are you sure you want to delete this order ?"));
- if (is_confirmed) {
- window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&invoiceid=[% invoiceid %]";
- }
- }
-
- function confirm_delete_biblio(ordernumber, basketno, biblionumber) {
- var is_confirmed = confirm(_("Are you sure you want to delete this catalog record and order ?"));
- if (is_confirmed) {
- window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&delbiblio=1&invoiceid=[% invoiceid %]";
- }
- }
-//]]>
-</script>