summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-06-03 13:54:17 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-07-16 13:15:51 +0200
commite3cddab940a77424b1bb56b75bba10d177fbc1cc (patch)
treec80a7a710de0f8cb10ba9d170f5665d893041b4f
parenta83e879e18148c763fcb09df42e08e1cf90dee84 (diff)
downloadfreeipa-e3cddab940a77424b1bb56b75bba10d177fbc1cc.zip
freeipa-e3cddab940a77424b1bb56b75bba10d177fbc1cc.tar.gz
freeipa-e3cddab940a77424b1bb56b75bba10d177fbc1cc.tar.xz
Fix container element in adder dialogs
Host and DNS adder dialogs used span element as container for block elements. It's not valid nor consistent with other forms. 'span' was replaced by 'div' https://fedorahosted.org/freeipa/ticket/3744
-rw-r--r--install/ui/src/freeipa/dns.js10
-rw-r--r--install/ui/src/freeipa/host.js8
2 files changed, 9 insertions, 9 deletions
diff --git a/install/ui/src/freeipa/dns.js b/install/ui/src/freeipa/dns.js
index 52cbb81..b4085fe 100644
--- a/install/ui/src/freeipa/dns.js
+++ b/install/ui/src/freeipa/dns.js
@@ -446,14 +446,14 @@ IPA.dnszone_name_section = function(spec) {
title: idnsname.label
}).appendTo(tr);
- var span = $('<span/>', {
+ var widget_cont = $('<div/>', {
name: 'idnsname',
'class': 'field'
}).appendTo(td);
- idnsname.create(span);
+ idnsname.create(widget_cont);
- var idnsname_input = $('input', span);
+ var idnsname_input = $('input', widget_cont);
var name_from_ip = that.widgets.get_widget('name_from_ip');
@@ -481,12 +481,12 @@ IPA.dnszone_name_section = function(spec) {
title: name_from_ip.label
}).appendTo(tr);
- span = $('<span/>', {
+ widget_cont = $('<div/>', {
name: 'name_from_ip',
'class': 'field'
}).appendTo(td);
- name_from_ip.create(span);
+ name_from_ip.create(widget_cont);
idnsname.radio.click();
};
diff --git a/install/ui/src/freeipa/host.js b/install/ui/src/freeipa/host.js
index 7e28149..f4b1e24 100644
--- a/install/ui/src/freeipa/host.js
+++ b/install/ui/src/freeipa/host.js
@@ -331,19 +331,19 @@ IPA.host_fqdn_widget = function(spec) {
'class': 'hostname'
}).appendTo(tr);
- var span = $('<span/>', {
+ var widget_cont = $('<div/>', {
name: hostname.name
}).appendTo(td);
- hostname.create(span);
+ hostname.create(widget_cont);
td = $('<td/>', {
'class': 'dnszone'
}).appendTo(tr);
- span = $('<span/>', {
+ widget_cont = $('<div/>', {
name: dnszone.name
}).appendTo(td);
- dnszone.create(span);
+ dnszone.create(widget_cont);
var hostname_input = $('input', hostname.container);
var dnszone_input = $('input', dnszone.container);