mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
Allow #urPreview to scroll in the browser (fixes #2537)
This is the same issue as #2014/#2062. Bootstrap doesn't like having two dialogs open at once: it marks the body has having no dialogs open when the first dialog is closed, regardless of whether the second dialog is still open. This means that scrolling doesn't happen properly, and the user cannot scroll to the dialog's 'close' button. Work around this by making sure the first dialog (the settings page) is fully closed before the second dialog (usage preview) is opened.
This commit is contained in:
parent
9b2a643626
commit
4bd0dd2123
@ -1414,10 +1414,13 @@ angular.module('syncthing.core')
|
||||
};
|
||||
|
||||
$scope.showURPreview = function () {
|
||||
$('#settings').modal('hide');
|
||||
$('#urPreview').modal().on('hidden.bs.modal', function () {
|
||||
$('#settings').modal();
|
||||
});
|
||||
$('#settings').modal('hide')
|
||||
.one('hidden.bs.modal', function() {
|
||||
$('#urPreview').modal()
|
||||
.one('hidden.bs.modal', function () {
|
||||
$('#settings').modal();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
$scope.acceptUR = function () {
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user