This is required by the latest spec. May need further revision.

--
Endi S. Dewata
From cd62f88852aa8718114e9f4189103c8e852288bf Mon Sep 17 00:00:00 2001
From: Endi S. Dewata <edew...@redhat.com>
Date: Sat, 22 Jan 2011 07:19:54 +0700
Subject: [PATCH] Added scrollable panel for delete dialog box.

---
 install/ui/test/data/i18n_messages.json |    2 +-
 install/ui/test/data/ipa_init.json      |    2 +-
 install/ui/test/data/json_metadata.json |    2 +-
 install/ui/widget.js                    |   15 ++++++++++-----
 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 6dfb1c64580245f57447708dcd9e59a8493ec569..aba9033484f25f7416ca53b291285d11ddc3cfc7 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 e0e6053c4758fc0c5264d99c20eba76d3cb8ef56..73ee8dc95c414e51e1cf9e6a9756ea0a7adf5b48 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 222a8b65c5609ba698592a1bea088a89b7807d24..6aa02578852747201b9f84efca04620248dc24ba 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 576eef77b4fed7a168925bd1fd7f4d7fbe4e7487..138526fb3520e71643769ee8ad841be6769d0d70 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 89b2b4dd1e03675abed1ee797fe86d3d191d01a6..7e44e506b12d405f2abe7bcd87a754568ac8c5f5 100644
--- a/ipalib/plugins/internal.py
+++ b/ipalib/plugins/internal.py
@@ -92,7 +92,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"),
-- 
1.6.6.1

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

Reply via email to