From 37b29231e47a0c4458dc1c15d98588f16f07e1e2 Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Thu, 06 Aug 2015 03:18:44 -0400
Subject: [PATCH] - don't set password via remoting if field is empty

---
 interface/web/sites/templates/web_vhost_domain_ssl.htm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/interface/web/sites/templates/web_vhost_domain_ssl.htm b/interface/web/sites/templates/web_vhost_domain_ssl.htm
index 167af9e..ad9629f 100644
--- a/interface/web/sites/templates/web_vhost_domain_ssl.htm
+++ b/interface/web/sites/templates/web_vhost_domain_ssl.htm
@@ -91,7 +91,7 @@
 
 	$('#reset_data').click(function(){
 		$('#ssl_organisation').add('#ssl_locality').add('#ssl_state').add('#ssl_organisation_unit').val('');
-		$('#ssl_country').val($("#ssl_country option:first").val());
+		$('#ssl_country').val($("#ssl_country option:first").val()).trigger('change');
 	});
 	$('#load_data').click(function(){
 		loadClientData();
@@ -104,7 +104,7 @@
         jQuery.getJSON('sites/ajax_get_json.php'+ '?' + Math.round(new Date().getTime()), {'web_id': web_id, 'type': "getclientssldata"}, function(data) {
 			$('#ssl_organisation').val(data['company_name']);
 			$('#ssl_locality').val(data['city']);
-			$('#ssl_country').val(data['country']);
+			$('#ssl_country').val(data['country']).trigger('change');
 			$('#ssl_state').val(data['state']);
 			$('#ssl_organisation_unit').val('IT');
         });

--
Gitblit v1.9.1