diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-09-27 09:28:14 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2011-10-05 14:51:50 +0200 |
commit | fe8aeef30773739fe7b17e3c152be5ce858ef9f6 (patch) | |
tree | c56212d6214a62f3fb81114e0bb77fac4b10d552 /install/ui/dialog.js | |
parent | f93d71409aa78c4e5c860405cdcc3bc6ffc49280 (diff) | |
download | freeipa-fe8aeef30773739fe7b17e3c152be5ce858ef9f6.tar.gz freeipa-fe8aeef30773739fe7b17e3c152be5ce858ef9f6.tar.xz freeipa-fe8aeef30773739fe7b17e3c152be5ce858ef9f6.zip |
Added confirmation when adding multiple entries.
The adder dialog has been modified to show a confirmation message
after each successful addition.
Ticket #1786
Diffstat (limited to 'install/ui/dialog.js')
-rw-r--r-- | install/ui/dialog.js | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/install/ui/dialog.js b/install/ui/dialog.js index d291120ea..b55cce715 100644 --- a/install/ui/dialog.js +++ b/install/ui/dialog.js @@ -119,11 +119,8 @@ IPA.dialog = function(spec) { }; that.add_field = function(field) { - field.dialog = that; - var section = that.get_section(); section.add_field(field); - return field; }; @@ -184,6 +181,11 @@ IPA.dialog = function(spec) { */ that.create = function() { + that.message_container = $('<div/>', { + style: 'display: none', + 'class': 'dialog-message ui-state-highlight ui-corner-all' + }).appendTo(that.container); + var sections = that.sections.values; for (var i=0; i<sections.length; i++) { var section = sections[i]; @@ -198,6 +200,14 @@ IPA.dialog = function(spec) { }; + that.show_message = function(message) { + that.message_container.text(message); + that.message_container.css('display', ''); + }; + + that.hide_message = function() { + that.message_container.css('display', 'none'); + }; /** * Open dialog |