From 14b353b097705678b6a07171e64efb22218c80c3 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 25 Oct 2012 14:10:47 +0200 Subject: Focus first input element after 'Add and Add another' When using 'Add and Add Another' button in entity adder dialog the dialog lose focus when an item is successfully added. It caused by search dialog filter input. It gets focus in search facet's refresh. The refresh is happening when item is added. This patch is disabling this focus and additionally is focusing first input element to allow imidiate definion of another item --- install/ui/add.js | 1 + 1 file changed, 1 insertion(+) (limited to 'install/ui/add.js') diff --git a/install/ui/add.js b/install/ui/add.js index 2fd50ee6..6d3f454b 100644 --- a/install/ui/add.js +++ b/install/ui/add.js @@ -63,6 +63,7 @@ IPA.entity_adder_dialog = function(spec) { var facet = IPA.current_entity.get_facet(); facet.refresh(); that.reset(); + that.focus_first_element(); }, that.on_error); } -- cgit