From abf041d32fc75c510766d4beb54821cee343106d Mon Sep 17 00:00:00 2001 From: Bachurin Sergey Date: Wed, 11 Jun 2014 22:49:26 +0300 Subject: [PATCH] clear akts list on client change --- project/static/js/dialogs.js | 2 +- project/templates/docs/stub_js.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 +