diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-01-22 07:19:54 +0700 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-01-24 13:32:55 -0500 |
commit | fa5ae89d7fa876cf40522ba129d5ff6b22316021 (patch) | |
tree | 289c822cb30a903bb54b83112991bf7ed489e4a5 | |
parent | 5ef7b8adb8b3c9436c1b353d59dd79dbe0c65606 (diff) | |
download | freeipa-fa5ae89d7fa876cf40522ba129d5ff6b22316021.tar.gz freeipa-fa5ae89d7fa876cf40522ba129d5ff6b22316021.tar.xz freeipa-fa5ae89d7fa876cf40522ba129d5ff6b22316021.zip |
Added scrollable panel for delete dialog box.
-rw-r--r-- | install/ui/test/data/i18n_messages.json | 2 | ||||
-rw-r--r-- | install/ui/test/data/ipa_init.json | 2 | ||||
-rw-r--r-- | install/ui/test/data/json_metadata.json | 2 | ||||
-rw-r--r-- | install/ui/widget.js | 15 | ||||
-rw-r--r-- | ipalib/plugins/internal.py | 2 |
5 files changed, 14 insertions, 9 deletions
diff --git a/install/ui/test/data/i18n_messages.json b/install/ui/test/data/i18n_messages.json index 6dfb1c64..aba90334 100644 --- a/install/ui/test/data/i18n_messages.json +++ b/install/ui/test/data/i18n_messages.json @@ -27,7 +27,7 @@ "header": "Logged In As" }, "search": { - "delete_confirm": "Do you really want to delete the selected entries?", + "delete_confirm": "Are you sure you want to delete selected entries?", "quick_links": "Quick Links", "select_all": "Select All", "unselect_all": "Unselect All" diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json index e0e6053c..73ee8dc9 100644 --- a/install/ui/test/data/ipa_init.json +++ b/install/ui/test/data/ipa_init.json @@ -7730,7 +7730,7 @@ "header": "Logged In As" }, "search": { - "delete_confirm": "Do you really want to delete the selected entries?", + "delete_confirm": "Are you sure you want to delete selected entries?", "quick_links": "Quick Links", "select_all": "Select All", "unselect_all": "Unselect All" diff --git a/install/ui/test/data/json_metadata.json b/install/ui/test/data/json_metadata.json index 222a8b65..6aa02578 100644 --- a/install/ui/test/data/json_metadata.json +++ b/install/ui/test/data/json_metadata.json @@ -27,7 +27,7 @@ "header": "Logged In As" }, "search": { - "delete_confirm": "Do you really want to delete the selected entries?", + "delete_confirm": "Are you sure you want to delete selected entries?", "quick_links": "Quick Links", "select_all": "Select All", "unselect_all": "Unselect All" diff --git a/install/ui/widget.js b/install/ui/widget.js index 576eef77..138526fb 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -1292,18 +1292,23 @@ IPA.deleter_dialog = function (spec) { }; that.create = function() { + + $('<p/>', { + 'text': IPA.messages.search.delete_confirm + }).appendTo(that.container); + + var div = $('<div/>', { + style: 'overflow:auto; max-height: 100px' + }).appendTo(that.container); + var ul = $('<ul/>'); - ul.appendTo(that.container); + ul.appendTo(div); for (var i=0; i<that.values.length; i++) { $('<li/>',{ 'text': that.values[i] }).appendTo(ul); } - - $('<p/>', { - 'text': IPA.messages.search.delete_confirm - }).appendTo(that.container); }; that.open = function(container) { diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py index 215131f0..76e80db5 100644 --- a/ipalib/plugins/internal.py +++ b/ipalib/plugins/internal.py @@ -94,7 +94,7 @@ class i18n_messages(Command): "quick_links":_("Quick Links"), "select_all":_("Select All"), "unselect_all":_("Unselect All"), - "delete_confirm":_("Do you really want to delete the selected entries?"), + "delete_confirm":_("Are you sure you want to delete selected entries?"), }, "details":{ "identity":_("Identity Settings"), |