Bug fixes

This commit is contained in:
Hillel Coren 2015-12-29 21:05:08 +02:00
parent 60daef8d58
commit eb450365d6

View File

@ -810,13 +810,19 @@
});
function applyComboboxListeners() {
var selectorStr = '.invoice-table input, .invoice-table select, .invoice-table textarea';
var selectorStr = '.invoice-table input, .invoice-table textarea';
$(selectorStr).off('change').on('change', function(event) {
onItemChange();
refreshPDF(true);
});
$('textarea').on('keyup focus', function(e) {
var selectorStr = '.invoice-table select';
$(selectorStr).off('blur').on('blur', function(event) {
onItemChange();
refreshPDF(true);
});
$('textarea').on('keyup focus', function(e) {
while($(this).outerHeight() < this.scrollHeight + parseFloat($(this).css("borderTopWidth")) + parseFloat($(this).css("borderBottomWidth"))) {
$(this).height($(this).height()+1);
};