Restructure connection settings view

This commit is contained in:
Dan Sosedoff
2014-11-06 16:05:49 -06:00
parent 1a47e7325a
commit 0fe2936729
5 changed files with 608 additions and 514 deletions

View File

@@ -424,6 +424,28 @@ $(document).ready(function() {
}
});
$(".connection-group-switch button").on("click", function() {
$(".connection-group-switch button").removeClass("active");
$(this).addClass("active");
switch($(this).attr("data")) {
case "scheme":
$(".connection-scheme-group").show();
$(".connection-standard-group").hide();
return;
case "standard":
$(".connection-scheme-group").hide();
$(".connection-standard-group").show();
$(".connection-ssh-group").hide();
return;
case "ssh":
$(".connection-scheme-group").hide();
$(".connection-standard-group").show();
$(".connection-ssh-group").show();
return;
}
});
$("#connection_form").on("submit", function(e) {
e.preventDefault();