Automatically set ssl option dropdown to 'disable' when host is '127.0.0.1'

This commit is contained in:
Dan Sosedoff
2014-11-23 14:48:59 -06:00
parent 4baa5ec3c6
commit 0d71a34ff9
2 changed files with 253 additions and 250 deletions

View File

@@ -424,7 +424,9 @@ $(document).ready(function() {
});
$("#pg_host").on("change", function() {
if ($(this).val().indexOf("localhost") != -1) {
var value = $(this).val();
if (value.indexOf("localhost") != -1 || value.indexOf("127.0.0.1") != -1) {
$("#connection_ssl").val("disable");
}
});