summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-01-22 07:19:54 +0700
committerAdam Young <ayoung@redhat.com>2011-01-24 13:32:55 -0500
commitfa5ae89d7fa876cf40522ba129d5ff6b22316021 (patch)
tree289c822cb30a903bb54b83112991bf7ed489e4a5
parent5ef7b8adb8b3c9436c1b353d59dd79dbe0c65606 (diff)
downloadfreeipa-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.json2
-rw-r--r--install/ui/test/data/ipa_init.json2
-rw-r--r--install/ui/test/data/json_metadata.json2
-rw-r--r--install/ui/widget.js15
-rw-r--r--ipalib/plugins/internal.py2
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 6dfb1c645..aba903348 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 e0e6053c4..73ee8dc95 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 222a8b65c..6aa025788 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 576eef77b..138526fb3 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 215131f07..76e80db5f 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"),