summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install/ui/src/freeipa/widget.js13
-rw-r--r--ipatests/test_webui/ui_driver.py2
2 files changed, 7 insertions, 8 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js
index 0fcf6182..619b0a47 100644
--- a/install/ui/src/freeipa/widget.js
+++ b/install/ui/src/freeipa/widget.js
@@ -316,13 +316,12 @@ IPA.input_widget = function(spec) {
that.create_undo = function(container, on_undo) {
container.append(' ');
- that.undo_span =
- $('<span/>', {
- name: 'undo',
- style: 'display: none;',
- 'class': 'ui-state-highlight ui-corner-all undo',
- html: text.get('@i18n:widget.undo')
- }).appendTo(container);
+ that.undo_span = IPA.button({
+ name: 'undo',
+ style: 'display: none;',
+ 'class': 'undo',
+ label: text.get('@i18n:widget.undo')
+ }).appendTo(container);
if(on_undo === undefined) {
on_undo = function() {
diff --git a/ipatests/test_webui/ui_driver.py b/ipatests/test_webui/ui_driver.py
index 65d14f9a..d9bd5470 100644
--- a/ipatests/test_webui/ui_driver.py
+++ b/ipatests/test_webui/ui_driver.py
@@ -825,7 +825,7 @@ class UI_driver(object):
"""
if not parent:
parent = self.get_form()
- s = "div[name='%s'].field span.undo" % (field)
+ s = ".controls div[name='%s'] .btn.undo" % (field)
undos = self.find(s, By.CSS_SELECTOR, parent, strict=True, many=True)
return undos