summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/templates/server-settings.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/locationinfo/templates/server-settings.html')
-rw-r--r--modules-available/locationinfo/templates/server-settings.html14
1 files changed, 10 insertions, 4 deletions
diff --git a/modules-available/locationinfo/templates/server-settings.html b/modules-available/locationinfo/templates/server-settings.html
index c9b713e6..51e5bff6 100644
--- a/modules-available/locationinfo/templates/server-settings.html
+++ b/modules-available/locationinfo/templates/server-settings.html
@@ -25,6 +25,9 @@
</div>
<div class="col-md-7">
<select class="form-control" onchange="servertype_changed(this.value)">
+ {{#defaultBlank}}
+ <option value="" selected>{{lang_pleaseSelect}}</option>
+ {{/defaultBlank}}
{{#backendList}}
<option value="{{backendtype}}" {{#active}}selected{{/active}}>{{display}}</option>
{{/backendList}}
@@ -75,12 +78,15 @@
if (value === currentBackend)
return;
var newBackend = value;
- console.log('From ' + currentBackend + ' to ' + value);
- $('#formwrapper-' + currentBackend).fadeOut('fast', function() {
- console.log('Fading in ' + newBackend);
+ var fadeIn = function() {
$('#formwrapper-' + newBackend).fadeIn('fast');
$('#myModalSubmitButton, #name-input').attr('form', 'form-' + newBackend);
- });
+ };
+ if (currentBackend) {
+ $('#formwrapper-' + currentBackend).fadeOut('fast', fadeIn);
+ } else {
+ fadeIn();
+ }
currentBackend = value;
}