From 85d6e0285f25744c19414b32f48f57fc35bf6f6f Mon Sep 17 00:00:00 2001
From: Adam Young <ayo...@redhat.com>
Date: Sat, 18 Jun 2011 21:44:06 -0400
Subject: [PATCH] entity select undo

Tests for dirty after the RPC call has completed and the select has updated
Passes the original value to the RPC completion, so it isn't lost upon RPC completion

https://fedorahosted.org/freeipa/ticket/1340
---
 install/ui/widget.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/install/ui/widget.js b/install/ui/widget.js
index b486145bd1ca73cbfcb4a52dd69c346fbbca391a..9f013a0a75168200ac338f79a2943e8781eb6dcc 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -1572,6 +1572,7 @@ IPA.entity_select_widget = function(spec) {
                     option.attr('selected','selected');
                 }
             }
+            that.set_dirty(that.test_dirty());
         }
         function find_error(err){
         }
@@ -1600,8 +1601,7 @@ IPA.entity_select_widget = function(spec) {
             id: 'entity_filter',
             style: 'display: none;',
             keyup: function(){
-                populate_select();
-                that.set_dirty(that.test_dirty());
+                populate_select($('option:selected', that.entity_select).val());
             }
         }).appendTo(container);
 
-- 
1.7.5.2

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to