Lines 8-15
Link Here
|
8 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
8 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
9 |
<script type="text/javascript"> |
9 |
<script type="text/javascript"> |
10 |
//<![CDATA[ |
10 |
//<![CDATA[ |
11 |
$(document).ready(function(){ |
11 |
function checkForm() { |
|
|
12 |
if ( $('#uploadbarcodes').val() ) { |
13 |
if ( !( |
14 |
$('#branchloop').val() || |
15 |
$('#locationloop').val() || |
16 |
$('#minlocation').val() || |
17 |
$('#maxlocation').val() || |
18 |
$('#statuses input:checked').length |
19 |
) ) { |
20 |
return confirm( |
21 |
_("You have not selected any catalog filters and are about to compare a file of barcodes to your entire catalog.") + "\n\n" + |
22 |
_("For large catalogs this can result in unexpected behavior") + "\n\n" + |
23 |
_("Are you sure you want to do this?") |
24 |
); |
25 |
} |
26 |
} |
27 |
|
28 |
return true; |
29 |
} |
12 |
|
30 |
|
|
|
31 |
$(document).ready(function(){ |
13 |
inventorydt = $('#inventoryt').dataTable($.extend(true, {}, dataTablesDefaults, { |
32 |
inventorydt = $('#inventoryt').dataTable($.extend(true, {}, dataTablesDefaults, { |
14 |
'sPaginationType': 'full_numbers', |
33 |
'sPaginationType': 'full_numbers', |
15 |
[% IF compareinv2barcd %] |
34 |
[% IF compareinv2barcd %] |
Lines 88-94
$(document).ready(function(){
Link Here
|
88 |
[% END %] |
107 |
[% END %] |
89 |
[% UNLESS op %] |
108 |
[% UNLESS op %] |
90 |
<div class="yui-g"> |
109 |
<div class="yui-g"> |
91 |
<form method="post" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data"> |
110 |
<form method="post" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data" onsubmit="return checkForm()"> |
92 |
<fieldset class="rows"> |
111 |
<fieldset class="rows"> |
93 |
<legend>Use a barcode file</legend> |
112 |
<legend>Use a barcode file</legend> |
94 |
<ol> |
113 |
<ol> |
Lines 98-106
$(document).ready(function(){
Link Here
|
98 |
</ol> |
117 |
</ol> |
99 |
</fieldset> |
118 |
</fieldset> |
100 |
|
119 |
|
101 |
<!-- submit button for uploaded file --> |
|
|
102 |
<fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset> |
103 |
|
104 |
<fieldset class="rows"> |
120 |
<fieldset class="rows"> |
105 |
<legend>Select items you want to check</legend> |
121 |
<legend>Select items you want to check</legend> |
106 |
<ol><li> |
122 |
<ol><li> |
Lines 144-150
$(document).ready(function(){
Link Here
|
144 |
</fieldset> |
160 |
</fieldset> |
145 |
<fieldset class="rows"> |
161 |
<fieldset class="rows"> |
146 |
<legend>Item statuses</legend> |
162 |
<legend>Item statuses</legend> |
147 |
<div name="statuses" style="display: block;"> |
163 |
<div id="statuses" style="display: block;"> |
148 |
[% FOREACH status IN statuses %] |
164 |
[% FOREACH status IN statuses %] |
149 |
[% IF (status.values) %] |
165 |
[% IF (status.values) %] |
150 |
<fieldset style="float: left; padding: 5px; margin: 5px;text-align:right"> |
166 |
<fieldset style="float: left; padding: 5px; margin: 5px;text-align:right"> |
Lines 189-195
$(document).ready(function(){
Link Here
|
189 |
</fieldset> |
205 |
</fieldset> |
190 |
<input type="hidden" name="op" value="do_it" /> |
206 |
<input type="hidden" name="op" value="do_it" /> |
191 |
|
207 |
|
192 |
<!-- repeat submit button for generating shelf list --> |
|
|
193 |
<fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset> |
208 |
<fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset> |
194 |
</form> |
209 |
</form> |
195 |
</div> |
210 |
</div> |
196 |
- |
|
|