Bernd Wurst
Funktionsfähiger Prototyp
Bernd Wurst commited 50033c3 at 2017-02-25 19:09:22
function selectedDomain() {
dom = $('#domain option:selected').text();
return dom.match(/\S+/g)[0]
}
function getDefaultDocroot() {
var hostname;
if ($('#hostname').val() == '')
hostname = selectedDomain();
else
hostname = $('#hostname').val() + '.' + selectedDomain();
return hostname + '/htdocs';
}
function useDefaultDocroot( default_docroot ) {
var do_it = $('#use_default_docroot').prop('checked');
var inputfield = $('#docroot');
inputfield.attr('disabled', do_it);
if (do_it) {
$('#docroot').val(getDefaultDocroot());
}
}
function showAppropriateLines() {
type = $('input[name="vhost_type"]:checked').val();
switch (type) {
case "regular":
$('#options_docroot').show();
$('#options_scriptlang').show();
$('#options_webapp').hide();
break;
case "dav":
$('#options_docroot').show();
$('#options_scriptlang').hide();
$('#options_webapp').hide();
break;
case "svn":
$('#options_docroot').hide();
$('#options_scriptlang').hide();
$('#options_webapp').hide();
break;
case "webapp":
$('#options_docroot').hide();
$('#options_scriptlang').hide();
$('#options_webapp').show();
break;
}
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX