Revert "add print_labels instead of call submit from the template"
This reverts commit 022d40edbe
.
This commit is contained in:
parent
2a7eeb0b5d
commit
c3bb5cb863
|
@ -1,5 +1,4 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$(".deviceSelect").on("change", deviceSelect);
|
|
||||||
var show_allocate_form = $("#allocateModal").data('show-action-form');
|
var show_allocate_form = $("#allocateModal").data('show-action-form');
|
||||||
var show_datawipe_form = $("#datawipeModal").data('show-action-form');
|
var show_datawipe_form = $("#datawipeModal").data('show-action-form');
|
||||||
var show_trade_form = $("#tradeLotModal").data('show-action-form');
|
var show_trade_form = $("#tradeLotModal").data('show-action-form');
|
||||||
|
@ -12,6 +11,8 @@ $(document).ready(function() {
|
||||||
} else if (show_trade_form != "None") {
|
} else if (show_trade_form != "None") {
|
||||||
$("#tradeLotModal .btn-primary").show();
|
$("#tradeLotModal .btn-primary").show();
|
||||||
newTrade(show_trade_form);
|
newTrade(show_trade_form);
|
||||||
|
} else {
|
||||||
|
$(".deviceSelect").on("change", deviceSelect);
|
||||||
}
|
}
|
||||||
// $('#selectLot').selectpicker();
|
// $('#selectLot').selectpicker();
|
||||||
})
|
})
|
||||||
|
@ -180,11 +181,6 @@ function export_file(type_file) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function print_labels() {
|
|
||||||
deviceSelect();
|
|
||||||
$('#print_labels').submit();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reactive lots button
|
* Reactive lots button
|
||||||
|
|
Reference in New Issue