summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/facet.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-05-24 17:02:05 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-07-16 13:15:47 +0200
commita83e879e18148c763fcb09df42e08e1cf90dee84 (patch)
tree4e0f782ba13f1f56e44b3df7c9b6a21cd9695a35 /install/ui/src/freeipa/facet.js
parent7a105604e265222cf6f96b0ac060d4f1b2504b6c (diff)
downloadfreeipa.git-a83e879e18148c763fcb09df42e08e1cf90dee84.tar.gz
freeipa.git-a83e879e18148c763fcb09df42e08e1cf90dee84.tar.xz
freeipa.git-a83e879e18148c763fcb09df42e08e1cf90dee84.zip
Better automated test support
1. add class to active facet instead of using direct style modification for hiding/showing 2. add name attribute to tables and dialog buttons and error dialog https://fedorahosted.org/freeipa/ticket/3744
Diffstat (limited to 'install/ui/src/freeipa/facet.js')
-rw-r--r--install/ui/src/freeipa/facet.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/install/ui/src/freeipa/facet.js b/install/ui/src/freeipa/facet.js
index ad53b80f..166203a9 100644
--- a/install/ui/src/freeipa/facet.js
+++ b/install/ui/src/freeipa/facet.js
@@ -352,7 +352,7 @@ exp.facet = IPA.facet = function(spec, no_init) {
that.domNode.detach();
} else {
that.domNode = $('<div/>', {
- 'class': 'facet',
+ 'class': 'facet active-facet',
name: that.name,
'data-name': that.name,
'data-entity': entity_name
@@ -386,8 +386,7 @@ exp.facet = IPA.facet = function(spec, no_init) {
}).appendTo(domNode);
that.create_content(that.content);
-
-
+ domNode.removeClass('active-facet');
};
that.create_header = function(container) {
@@ -429,7 +428,7 @@ exp.facet = IPA.facet = function(spec, no_init) {
that.clear();
}
- that.domNode.css('display', 'block');
+ that.domNode.addClass('active-facet');
that.show_content();
that.header.select_tab();
@@ -437,7 +436,7 @@ exp.facet = IPA.facet = function(spec, no_init) {
that.refresh();
}
} else {
- that.domNode.css('display', 'block');
+ that.domNode.addClass('active-facet');
that.show_content();
that.header.select_tab();
}
@@ -459,7 +458,7 @@ exp.facet = IPA.facet = function(spec, no_init) {
};
that.hide = function() {
- that.domNode.css('display', 'none');
+ that.domNode.removeClass('active-facet');
};
that.load = function(data) {