diff --git a/project/static/js/dialogs.js b/project/static/js/dialogs.js
index 6befcde..a95e389 100644
--- a/project/static/js/dialogs.js
+++ b/project/static/js/dialogs.js
@@ -25,11 +25,11 @@ $(document).ready(function() {
if (data.success) {
if (form[0].id == 'client-edit-form') {
- $('#id_client_text').val(data.name);
$('#id_client_text').hide()
$('#id_client-deck').html('X' + data.name + '');
$('#id_client').html('');
+ $('#id_client').trigger('change');
}
form.dialog('close');
form.clearForm();
diff --git a/project/templates/docs/stub_js.html b/project/templates/docs/stub_js.html
index 4868ebe..4374166 100644
--- a/project/templates/docs/stub_js.html
+++ b/project/templates/docs/stub_js.html
@@ -104,4 +104,4 @@
})
});
-
\ No newline at end of file
+