mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 22:39:18 +02:00
fix for domain-server settings account disconnect
This commit is contained in:
parent
f4f4be7917
commit
33545a0c3f
1 changed files with 4 additions and 1 deletions
|
@ -254,12 +254,15 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#' + Settings.FORM_ID).on('click', '#' + Settings.DISCONNECT_ACCOUNT_BTN_ID, function(e){
|
$('#' + Settings.FORM_ID).on('click', '#' + Settings.DISCONNECT_ACCOUNT_BTN_ID, function(e){
|
||||||
|
$(this).blur();
|
||||||
disonnectHighFidelityAccount();
|
disonnectHighFidelityAccount();
|
||||||
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#' + Settings.FORM_ID).on('click', '#' + Settings.CONNECT_ACCOUNT_BTN_ID, function(e){
|
$('#' + Settings.FORM_ID).on('click', '#' + Settings.CONNECT_ACCOUNT_BTN_ID, function(e){
|
||||||
$(this).blur();
|
$(this).blur();
|
||||||
prepareAccessTokenPrompt();
|
prepareAccessTokenPrompt();
|
||||||
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
var panelsSource = $('#panels-template').html()
|
var panelsSource = $('#panels-template').html()
|
||||||
|
@ -345,7 +348,7 @@ function disonnectHighFidelityAccount() {
|
||||||
+ "</br></br>This could cause your domain to appear offline and no longer be reachable via any place names.",
|
+ "</br></br>This could cause your domain to appear offline and no longer be reachable via any place names.",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
html: true,
|
html: true,
|
||||||
showCancelButton: true,
|
showCancelButton: true
|
||||||
}, function(){
|
}, function(){
|
||||||
// we need to post to settings to clear the access-token
|
// we need to post to settings to clear the access-token
|
||||||
$(Settings.ACCESS_TOKEN_SELECTOR).val('').change();
|
$(Settings.ACCESS_TOKEN_SELECTOR).val('').change();
|
||||||
|
|
Loading…
Reference in a new issue