|
@@ -302,6 +302,12 @@
|
|
if (_item) {
|
|
if (_item) {
|
|
this.currentCategory = _type;
|
|
this.currentCategory = _type;
|
|
this.currentItemUid = _item.uid;
|
|
this.currentItemUid = _item.uid;
|
|
|
|
+
|
|
|
|
+ // autogrow textarea
|
|
|
|
+ let self = this;
|
|
|
|
+ $('[stag-popup-key="other-popup"] textarea').each(function() {
|
|
|
|
+ self.autoGrow(this);
|
|
|
|
+ });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -1001,6 +1007,11 @@
|
|
window.localStorage.autoOpen = '';
|
|
window.localStorage.autoOpen = '';
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ autoGrow: function(_ta) {
|
|
|
|
+ _ta.style.minHeight = "46px";
|
|
|
|
+ _ta.style.height = "46px";
|
|
|
|
+ _ta.style.height = (_ta.scrollHeight + 10)+"px";
|
|
|
|
+ },
|
|
@include('app.patient.tickets.pharmacy-suggest', ['category' => 'erx'])
|
|
@include('app.patient.tickets.pharmacy-suggest', ['category' => 'erx'])
|
|
@include('app.patient.tickets.pharmacy-suggest', ['category' => 'lab'])
|
|
@include('app.patient.tickets.pharmacy-suggest', ['category' => 'lab'])
|
|
@include('app.patient.tickets.pharmacy-suggest', ['category' => 'imaging'])
|
|
@include('app.patient.tickets.pharmacy-suggest', ['category' => 'imaging'])
|
|
@@ -1038,20 +1049,15 @@
|
|
@endif
|
|
@endif
|
|
@endif
|
|
@endif
|
|
|
|
|
|
- function autoGrow(_ta) {
|
|
|
|
- _ta.style.minHeight = "46px";
|
|
|
|
- _ta.style.height = "46px";
|
|
|
|
- _ta.style.height = (_ta.scrollHeight + 10)+"px";
|
|
|
|
- }
|
|
|
|
$(document)
|
|
$(document)
|
|
.off('input.auto-grow', '#ticketsApp textarea.auto-grow')
|
|
.off('input.auto-grow', '#ticketsApp textarea.auto-grow')
|
|
.on('input.auto-grow', '#ticketsApp textarea.auto-grow', function() {
|
|
.on('input.auto-grow', '#ticketsApp textarea.auto-grow', function() {
|
|
- autoGrow(this);
|
|
|
|
|
|
+ this.autoGrow(this);
|
|
});
|
|
});
|
|
$(document)
|
|
$(document)
|
|
.off('focus.auto-grow', '#ticketsApp textarea.auto-grow')
|
|
.off('focus.auto-grow', '#ticketsApp textarea.auto-grow')
|
|
.on('focus.auto-grow', '#ticketsApp textarea.auto-grow', function() {
|
|
.on('focus.auto-grow', '#ticketsApp textarea.auto-grow', function() {
|
|
- autoGrow(this);
|
|
|
|
|
|
+ this.autoGrow(this);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
})
|
|
})
|