Bug fixes
This commit is contained in:
parent
60daef8d58
commit
eb450365d6
1 changed files with 8 additions and 2 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue