View | Details | Raw Unified | Return to bug 5725
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/basket.js (-5 / +7 lines)
Lines 443-451 $(document).ready(function(){ Link Here
443
});
443
});
444
444
445
function batchEdit(){
445
function batchEdit(){
446
    var valCookie = readCookie(nameCookie);
446
    var items = document.getElementById('records').value;
447
    var strCookie = nameParam + "=" + valCookie;
447
    if(items){
448
448
        var loc = CGIBIN + "tools/batchedit.pl?" + nameParam + "=" + items;
449
    var loc = CGIBIN + "tools/batchedit.pl?" + strCookie;
449
        window.opener.location = loc;
450
    window.opener.location = loc;
450
    } else {
451
        alert(MSG_NO_RECORD_SELECTED);
452
    }
451
}
453
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt (-18 / +14 lines)
Lines 13-28 Link Here
13
	<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
13
	<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
14
	<script type="text/javascript">
14
	<script type="text/javascript">
15
	//<![CDATA[
15
	//<![CDATA[
16
17
$(document).ready(function()
18
    {
19
        $("#itemst").tablesorter({
20
                        headers: { 0: { sorter: false }}
21
                });
22
    }
23
);
24
25
26
function placeHold () {
16
function placeHold () {
27
    var checkedItems = $("input:checkbox:checked");
17
    var checkedItems = $("input:checkbox:checked");
28
    if ($(checkedItems).size() == 0) {
18
    if ($(checkedItems).size() == 0) {
Lines 72-77 function placeHold () { Link Here
72
	    });
62
	    });
73
        $(".holdsep").text("| ");
63
        $(".holdsep").text("| ");
74
        $(".hold").text(_("Place Hold"));
64
        $(".hold").text(_("Place Hold"));
65
        [% UNLESS ( verbose ) %]$("#itemst").tablesorter({
66
            headers: { 0: { sorter: false }}
67
        });[% END %]
75
	});
68
	});
76
69
77
70
Lines 93-105 function placeHold () { Link Here
93
        [% IF ( verbose ) %]<a href="basket.pl" class="brief" onclick="showLess(); return false;">Brief display</a>[% ELSE %]<a href="basket.pl" class="detail" onclick="showMore(); return false;">More details</a>[% END %]
86
        [% IF ( verbose ) %]<a href="basket.pl" class="brief" onclick="showLess(); return false;">Brief display</a>[% ELSE %]<a href="basket.pl" class="detail" onclick="showMore(); return false;">More details</a>[% END %]
94
	    </span></span>
87
	    </span></span>
95
	</li>
88
	</li>
96
    [% IF ( CAN_user_tools_batchedit ) %]
97
    <li>
98
        <span id="batchedit" class="yui-button yui-link-button"><span class="first-child">
99
        <a class="batchedit" href="basket.pl" onclick="batchEdit(); return false;">Batch Edit</a>
100
        </span></span>
101
    </li>
102
    [% END %]
103
	<li>
89
	<li>
104
	    <span id="receive" class="yui-button yui-link-button"><span class="first-child">
90
	    <span id="receive" class="yui-button yui-link-button"><span class="first-child">
105
		<a class="send" href="basket.pl" onclick="sendBasket(); return false;">Send</a>
91
		<a class="send" href="basket.pl" onclick="sendBasket(); return false;">Send</a>
Lines 142-147 function placeHold () { Link Here
142
     | <a href="#" onclick="placeHold(); return false;">Place hold</a>
128
     | <a href="#" onclick="placeHold(); return false;">Place hold</a>
143
[% END %]
129
[% END %]
144
130
131
[% IF ( CAN_user_tools_batchedit ) %]
132
     | <a class="batchedit" href="#" onclick="batchEdit(); return false;">Batch Edit</a>
133
[% END %]
134
145
</p>[% END %]
135
</p>[% END %]
146
            <form action="basket.pl" method="get" name="bookbag_form" id="bookbag_form">
136
            <form action="basket.pl" method="get" name="bookbag_form" id="bookbag_form">
147
    [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
137
    [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
Lines 310-318 function placeHold () { Link Here
310
     | <a href="#" onclick="placeHold(); return false;">Place hold</a>
300
     | <a href="#" onclick="placeHold(); return false;">Place hold</a>
311
[% END %]
301
[% END %]
312
302
303
[% IF ( CAN_user_tools_batchedit ) %]
304
     | <a class="batchedit" href="#" onclick="batchEdit(); return false;">Batch Edit</a>
305
[% END %]
313
306
314
[% END %]
307
[% END %]
315
</p>
308
</p>
309
    [% IF ( BIBLIO_RESULTS ) %]
316
    <table id="itemst">
310
    <table id="itemst">
317
	<thead><tr>
311
	<thead><tr>
318
	    [% UNLESS ( print_basket ) %]<th>&nbsp;</th>[% END %]
312
	    [% UNLESS ( print_basket ) %]<th>&nbsp;</th>[% END %]
Lines 359-364 function placeHold () { Link Here
359
            </tr>
353
            </tr>
360
        [% END %]
354
        [% END %]
361
    </table></form>
355
    </table></form>
356
    [% ELSE %]
357
    <div class="dialog message">Your cart is empty.</div>
358
    [% END %]
362
[% END %]
359
[% END %]
363
360
364
<form name="myform" action="basket/basket.pl" method="get">
361
<form name="myform" action="basket/basket.pl" method="get">
365
- 

Return to bug 5725