fix for firefox datepicker focus problem in modals (#630)
This commit is contained in:
@@ -116,8 +116,7 @@ $(function() {
|
|||||||
$(this).find('a.anchor').hide();
|
$(this).find('a.anchor').hide();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
reloadDatatableWithToolbarFilter: function()
|
reloadDatatableWithToolbarFilter: function() {
|
||||||
{
|
|
||||||
var $form = $('.toolbar form');
|
var $form = $('.toolbar form');
|
||||||
var loading = '<div class="overlay"><i class="fas fa-sync fa-spin"></i></div>';
|
var loading = '<div class="overlay"><i class="fas fa-sync fa-spin"></i></div>';
|
||||||
$('section.content').append(loading);
|
$('section.content').append(loading);
|
||||||
@@ -256,6 +255,17 @@ $(function() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------
|
||||||
|
// a fix for firefox focus problems with datepicker in modal
|
||||||
|
// see https://github.com/kevinpapst/kimai2/issues/618
|
||||||
|
var enforceModalFocusFn = $.fn.modal.Constructor.prototype.enforceFocus;
|
||||||
|
$.fn.modal.Constructor.prototype.enforceFocus = function() {};
|
||||||
|
$modal.on('hidden', function() {
|
||||||
|
$.fn.modal.Constructor.prototype.enforceFocus = enforceModalFocusFn;
|
||||||
|
});
|
||||||
|
$modal.modal({ backdrop : false });
|
||||||
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
$modal.modal('show');
|
$modal.modal('show');
|
||||||
|
|
||||||
// the new form that was loaded via ajax
|
// the new form that was loaded via ajax
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"build/app.js": "/build/app.js?71d3a396b643a587cabb",
|
"build/app.js": "/build/app.js?cae858aec32ae026057b",
|
||||||
"build/app.css": "/build/app.css?e067eb7af0fed5e92ada44bb38e51cb5",
|
"build/app.css": "/build/app.css?e067eb7af0fed5e92ada44bb38e51cb5",
|
||||||
"build/images/blue@2x.png": "/build/images/blue@2x.png?2694acfd",
|
"build/images/blue@2x.png": "/build/images/blue@2x.png?2694acfd",
|
||||||
"build/images/blue.png": "/build/images/blue.png?96f8a905",
|
"build/images/blue.png": "/build/images/blue.png?96f8a905",
|
||||||
|
|||||||
Reference in New Issue
Block a user