mirror of
https://github.com/lubosz/overte.git
synced 2025-04-26 21:35:45 +02:00
stub of domain-server choose domain handler
This commit is contained in:
parent
c84aac9d2e
commit
85aa0c34fb
3 changed files with 24 additions and 0 deletions
domain-server/resources/web
6
domain-server/resources/web/js/bootbox.min.js
vendored
Normal file
6
domain-server/resources/web/js/bootbox.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -86,6 +86,15 @@ $(document).ready(function(){
|
|||
|
||||
$(this).blur()
|
||||
})
|
||||
|
||||
$('#settings-form').on('click', '#choose-domain-btn', function(){
|
||||
// setup the modal to help user pick their domain
|
||||
if (Settings.initialValues.metaverse["access-token"]) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
var panelsSource = $('#panels-template').html()
|
||||
Settings.panelsTemplate = _.template(panelsSource)
|
||||
|
@ -112,9 +121,17 @@ function reloadSettings() {
|
|||
placement: 'right',
|
||||
title: 'This setting is in the master config file and cannot be changed'
|
||||
})
|
||||
|
||||
appendDomainSelectionModal()
|
||||
});
|
||||
}
|
||||
|
||||
function appendDomainSelectionModal() {
|
||||
var metaverseFormGroup = $('#metaverse_id').parent('.form-group');
|
||||
var chooseButton = "<button type='button' id='choose-domain-btn' class='btn btn-primary'>Choose from my domains</button>";
|
||||
metaverseFormGroup.append(chooseButton);
|
||||
}
|
||||
|
||||
var SETTINGS_ERROR_MESSAGE = "There was a problem saving domain settings. Please try again!";
|
||||
|
||||
$('body').on('click', '.save-button', function(e){
|
||||
|
|
|
@ -75,6 +75,7 @@
|
|||
|
||||
<!--#include virtual="footer.html"-->
|
||||
<script src='/js/underscore-min.js'></script>
|
||||
<script src='/js/bootbox.min.js'></script>
|
||||
<script src='/js/settings.js'></script>
|
||||
<script src='/js/form2js.min.js'></script>
|
||||
<!--#include virtual="page-end.html"-->
|
Loading…
Reference in a new issue