Disable game menu during sorting.

Changing game mid-sort breaks various things, so disallow it. Fixes
#361.
This commit is contained in:
Oliver Hamlet
2014-12-23 14:50:04 +00:00
parent eb44124b4b
commit 86ff5b104f
+9
View File
@@ -586,6 +586,9 @@ function sortPlugins(evt) {
hideElement(document.getElementById('sortButton'));
showElement(document.getElementById('applySortButton'));
showElement(document.getElementById('cancelSortButton'));
/* Disable changing game. */
document.getElementById('gameMenu').setAttribute('disabled', '');
closeProgressDialog();
}
}).catch(processCefError);
@@ -613,6 +616,9 @@ function applySort(evt) {
showElement(document.getElementById('sortButton'));
hideElement(document.getElementById('applySortButton'));
hideElement(document.getElementById('cancelSortButton'));
/* Enable changing game. */
document.getElementById('gameMenu').removeAttribute('disabled');
}).catch(processCefError);
}
function cancelSort(evt) {
@@ -629,6 +635,9 @@ function cancelSort(evt) {
showElement(document.getElementById('sortButton'));
hideElement(document.getElementById('applySortButton'));
hideElement(document.getElementById('cancelSortButton'));
/* Enable changing game. */
document.getElementById('gameMenu').removeAttribute('disabled');
}).catch(processCefError);
}
function redatePlugins(evt) {