Lines 26-31
Link Here
|
26 |
</div> |
26 |
</div> |
27 |
<div id="print_button" class="noprint"> |
27 |
<div id="print_button" class="noprint"> |
28 |
<button class="btn btn-default print-label"><i class="fa fa-print"></i> Print this label</button> |
28 |
<button class="btn btn-default print-label"><i class="fa fa-print"></i> Print this label</button> |
|
|
29 |
<button class="btn btn-default edit-label"><i class="fa fa-lock"></i> Edit this label</button> |
29 |
</div> |
30 |
</div> |
30 |
[% END %] |
31 |
[% END %] |
31 |
|
32 |
|
Lines 46-51
Link Here
|
46 |
e.preventDefault(); |
47 |
e.preventDefault(); |
47 |
window.close(); |
48 |
window.close(); |
48 |
}); |
49 |
}); |
|
|
50 |
$('.edit-label').click( function() { |
51 |
$('#spinelabel').attr('contenteditable', function(index, attr){ |
52 |
return attr == 'true' ? null : 'true'; |
53 |
}); |
54 |
$('.edit-label .fa').toggleClass('fa-lock').toggleClass('fa-unlock'); |
55 |
}); |
49 |
}); |
56 |
}); |
50 |
</script> |
57 |
</script> |
51 |
|
58 |
|
52 |
- |
|
|