summaryrefslogtreecommitdiffstats
path: root/install/ui/details.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-07-19 14:47:48 +0200
committerPetr Vobornik <pvoborni@redhat.com>2012-07-25 11:05:56 +0200
commit65bd82eaa1a0d8e377b58ebc6b5d96ea9364c993 (patch)
tree8d6495127926a6927bf1aef10f557a70ee3e87f6 /install/ui/details.js
parentdedb180ddc773baf42bb31efc07a1dda698631bb (diff)
downloadfreeipa.git-65bd82eaa1a0d8e377b58ebc6b5d96ea9364c993.tar.gz
freeipa.git-65bd82eaa1a0d8e377b58ebc6b5d96ea9364c993.tar.xz
freeipa.git-65bd82eaa1a0d8e377b58ebc6b5d96ea9364c993.zip
IDs and names for dialogs
It's hard to detect if or which type dialog is displayed becouse not all dialogs have IDs. On dialog open, it's id or name (if id is not set) is used for containing element id. Many of dialog types were missing id or name so name was added to each dialog type. In HTML, element's id should be unique. Our framework allows opening two dialogs with the same id. It may lead to state where getElementById method may have unpredicted behaviour. Therefore attribute 'data-name' with dialog's name was added to dialog's containing element. Automation framework can search more reliable by using this attribute instead of id. https://fedorahosted.org/freeipa/ticket/2853
Diffstat (limited to 'install/ui/details.js')
-rw-r--r--install/ui/details.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/install/ui/details.js b/install/ui/details.js
index 176e7883..e652fa3e 100644
--- a/install/ui/details.js
+++ b/install/ui/details.js
@@ -576,6 +576,7 @@ IPA.details_facet = function(spec, no_init) {
that.show_validation_error = function() {
var dialog = IPA.message_dialog({
+ name: 'validation_error',
title: IPA.messages.dialogs.validation_title,
message: IPA.messages.dialogs.validation_message
});