webui: use normal buttons instead of link buttons in multivalued widget

Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
Petr Vobornik committed 2014-06-10 10:23:30 +02:00
1 parent 254b41e485
commit dd69557f4e
2 files changed
+4 -5

No files matched your search

+3 -4
View File
@@ -1026,7 +1026,7 @@ IPA.multivalued_widget = function(spec) {
var remove_link_visible = !(row.is_new || !that.is_writable());
row.remove_link = $('<button/>', {
name: 'remove',
'class': 'btn btn-link',
'class': 'btn btn-default',
title: text.get('@i18n:buttons.remove'),
html: text.get('@i18n:buttons.remove'),
click: function () {
@@ -1069,10 +1069,9 @@ IPA.multivalued_widget = function(spec) {
that.create_error_link(container);
that.add_link = $('<a/>', {
that.add_link = $('<button/>', {
name: 'add',
href: '#',
'class': 'link-btn',
'class': 'btn btn-default',
title: text.get('@i18n:buttons.add'),
html: text.get('@i18n:buttons.add'),
click: function() {
+1 -1
View File
@@ -722,7 +722,7 @@ class UI_driver(object):
parent = self.get_form()
s = "div[name='%s'].multivalued-widget" % name
w = self.find(s, By.CSS_SELECTOR, parent, strict=True)
add_btn = self.find("Add", By.LINK_TEXT, w, strict=True)
add_btn = self.find("button[name=add]", By.CSS_SELECTOR, w, strict=True)
add_btn.click()
s = "div[name=value] input"
inputs = self.find(s, By.CSS_SELECTOR, w, many=True)