Lines 11-19
Link Here
|
11 |
str += "from=" + parseInt(document.getElementById("from-input").value) + "&"; |
11 |
str += "from=" + parseInt(document.getElementById("from-input").value) + "&"; |
12 |
str += "to=" + parseInt(document.getElementById("to-input").value); |
12 |
str += "to=" + parseInt(document.getElementById("to-input").value); |
13 |
return GB_showCenter('Export labels', "/cgi-bin/koha/labels/label-print.pl?" + str, 400, 800); |
13 |
return GB_showCenter('Export labels', "/cgi-bin/koha/labels/label-print.pl?" + str, 400, 800); |
14 |
return; |
|
|
15 |
} |
14 |
} |
16 |
function print() { |
15 |
|
|
|
16 |
function validate() { |
17 |
var error = false; |
17 |
var error = false; |
18 |
if (parseInt(document.getElementById("from-input").value) == 0) { |
18 |
if (parseInt(document.getElementById("from-input").value) == 0) { |
19 |
document.getElementById("from-error").innerHTML = " *Cannot be smaller than 1"; |
19 |
document.getElementById("from-error").innerHTML = " *Cannot be smaller than 1"; |
Lines 80-86
Link Here
|
80 |
</div> |
80 |
</div> |
81 |
</form> |
81 |
</form> |
82 |
<div id="batch-manage" class="btn-toolbar"> |
82 |
<div id="batch-manage" class="btn-toolbar"> |
83 |
<a class="btn btn-default btn-sm" id="print" href="javascript:print()"> |
83 |
<a class="btn btn-default btn-sm" id="print" onClick="validate()"> |
84 |
<!-- This display a plus. Is there a more appropriate symbol to use? |
84 |
<!-- This display a plus. Is there a more appropriate symbol to use? |
85 |
<i class="fa fa-plus"></i> |
85 |
<i class="fa fa-plus"></i> |
86 |
--> |
86 |
--> |
87 |
- |
|
|