Skip to content

Commit

Permalink
Workaround the for the illegal state with null seek and non-null cach…
Browse files Browse the repository at this point in the history
…ed tableSettings.
  • Loading branch information
aiannacc committed Sep 5, 2013
1 parent 1f24cab commit de0a082
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ext/automatch.js
Expand Up @@ -515,11 +515,11 @@ loadAutomatchModule = function (gs, conn, mtgRoom, zch) {
gs.AM.cancelSeek = function (seek) {
if (gs.AM.state.seek !== null) {
gs.AM.state.seek.canceling = true;
gs.AM.tableSettings = null;
gs.AM.ws.sendMessage('CANCEL_SEEK',
{seekid: gs.AM.state.seek.seekid},
function () { gs.AM.state.seek = null; });
}
gs.AM.tableSettings = null;
};

gs.AM.acceptOffer = function (aoCallback) {
Expand Down
8 changes: 4 additions & 4 deletions src/ext/automatchSeekPop.js
Expand Up @@ -255,12 +255,12 @@
visible = true;
}

if (gs.AM.tableSettings === null) {
$('#seekPop').dialog(visible ? 'open' : 'close');
$('#seekhide').focus();
} else {
if (gs.AM.state.seek !== null && gs.AM.tableSettings !== null) {
$('#seekAAPop').dialog(visible ? 'open' : 'close');
$('#seekAAOkay').focus();
} else {
$('#seekPop').dialog(visible ? 'open' : 'close');
$('#seekhide').focus();
}
};
}());

0 comments on commit de0a082

Please sign in to comment.