Automatically select ssl mode for localhost connections

This commit is contained in:
Dan Sosedoff 2014-11-03 20:12:41 -06:00
parent 958ea6813c
commit bfd4335e61

View File

@ -381,7 +381,15 @@ $(document).ready(function() {
$("#close_connection_window").on("click", function() {
$("#connection_window").hide();
})
});
$("#connection_url").on("change", function() {
var url = $(this).val();
if (url.indexOf("localhost") != -1) {
$("#connection_ssl").val("disable");
}
});
$("#connection_form").on("submit", function(e) {
e.preventDefault();