Fewo Mails / Booking Country Services
This commit is contained in:
parent
b9c26d06d0
commit
48a6eb2282
154 changed files with 7761 additions and 1643 deletions
|
|
@ -140,7 +140,7 @@ $(function () {
|
|||
$.each(button.data(), function(index, value){
|
||||
data[index] = value;
|
||||
});
|
||||
//console.log(data);
|
||||
// console.log(data);
|
||||
loadModalInner(this, data);
|
||||
|
||||
});
|
||||
|
|
@ -173,7 +173,7 @@ $(function () {
|
|||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
success: function(data) {
|
||||
// console.log(data);
|
||||
// console.log(data);
|
||||
$(data.response.target).find('.modal-dialog').html(data.html);
|
||||
$(data.response.target).find('.selectpicker').selectpicker('refresh');
|
||||
initModalInner();
|
||||
|
|
@ -371,15 +371,25 @@ jQuery(document).ready(function() {
|
|||
});
|
||||
});
|
||||
|
||||
jQuery.each(jQuery('textarea.autoExpand'), function() {
|
||||
var offset = this.offsetHeight - this.clientHeight;
|
||||
var resizeTextarea = function(el) {
|
||||
var resizeTextarea = function(el) {
|
||||
if(el.scrollHeight > 0){
|
||||
var offset = el.offsetHeight - el.clientHeight;
|
||||
jQuery(el).css('height', 'auto').css('height', el.scrollHeight + offset);
|
||||
};
|
||||
jQuery(this).on('keyup input', function() { resizeTextarea(this); }).removeClass('autoExpand');
|
||||
}
|
||||
$(this).removeClass('autoExpand');
|
||||
|
||||
};
|
||||
jQuery.each(jQuery('textarea.autoExpand'), function() {
|
||||
jQuery(this).on('keyup input', function() { resizeTextarea(this); });
|
||||
jQuery(this).on('focus input', function() { resizeTextarea(this); });
|
||||
resizeTextarea(this);
|
||||
});
|
||||
jQuery('.collapse').on('shown.bs.collapse', function () {
|
||||
$('#'+$(this).attr('id')).find('textarea.autoExpand').each(function () {
|
||||
resizeTextarea(this);
|
||||
});
|
||||
|
||||
})
|
||||
$(function() {
|
||||
|
||||
$('.datepicker-range').datepicker({
|
||||
|
|
@ -392,7 +402,6 @@ $(function() {
|
|||
|
||||
});
|
||||
|
||||
|
||||
$('.datepicker-base').datepicker({
|
||||
calendarWeeks: true,
|
||||
todayBtn: 'linked',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue