
$(document).ready(function() {

    barcode.config.start = 0.1;
    barcode.config.end = 0.9;
    barcode.config.video = '#barcodevideo';
    barcode.config.canvas = '#barcodecanvas';
    barcode.config.canvasg = '#barcodecanvasg';
    barcode.setHandler(function(barcode) {
        $('#barcodes').prepend('<option value="' + barcode + '">' + barcode + '</option>');
        $('#barcodes option:end').remove();
        console.log(barcode);

        $.post('/barcode/default/save', {code: barcode});
    });
    barcode.init();

});
@@ -392,13 +392,16 @@
 tion
-:end'
+').last(
 ).re
@@ -411,38 +411,8 @@
 e();
-%0A        console.log(barcode);
 %0A%0A  

fix bugs js