mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Bug fixes
This commit is contained in:
parent
60daef8d58
commit
eb450365d6
@ -810,13 +810,19 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
function applyComboboxListeners() {
|
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) {
|
$(selectorStr).off('change').on('change', function(event) {
|
||||||
onItemChange();
|
onItemChange();
|
||||||
refreshPDF(true);
|
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"))) {
|
while($(this).outerHeight() < this.scrollHeight + parseFloat($(this).css("borderTopWidth")) + parseFloat($(this).css("borderBottomWidth"))) {
|
||||||
$(this).height($(this).height()+1);
|
$(this).height($(this).height()+1);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user