1
0
Fork 0

Feature/ui modals usability 891 (#3989)

This commit is contained in:
Heiko 2017-12-14 12:59:33 +01:00 committed by Jan
parent 62d0476bd7
commit 7563ba25ea
2 changed files with 10 additions and 8 deletions

View File

@ -1,9 +1,12 @@
devel
-----
* UI: pressing the return key inside a select2 box no longer triggers the modals
success function
* UI: coordinators and db servers are now in sorted order (ascending)
* UI: fixed disappearing of the navigation label in some case special case
* UI: fixed disappearing of the navigation label in some cases
* fixed issue #3917: traversals with high maximal depth take extremely long
in planning phase.

View File

@ -97,17 +97,16 @@
// submit modal
$(this.el).unbind('keydown');
$(this.el).unbind('return');
// $(this.el).bind('keydown', 'return', function (e) {});
$('.modal-body input').unbind('keydown');
$('.modal-body input').unbind('return');
$('.modal-body input', $(this.el)).bind('keydown', 'return', function () {
$('.modal-body .collectionTh > input').unbind('keydown');
$('.modal-body .collectionTh > input').unbind('return');
$('.modal-body .collectionTh > input', $(this.el)).bind('keydown', 'return', function (e) {
$('.createModalDialog .modal-footer .button-success').click();
});
$('.modal-body select').unbind('keydown');
$('.modal-body select').unbind('return');
$('.modal-body select', $(this.el)).bind('keydown', 'return', function () {
$('.modal-body .collectionTh > select').unbind('keydown');
$('.modal-body .collectionTh > select').unbind('return');
$('.modal-body .collectionTh > select', $(this.el)).bind('keydown', 'return', function (e) {
$('.createModalDialog .modal-footer .button-success').click();
});
},