From 2d9bb22772610e1211580b410c7d075996f0f78c Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Jan 21 2014 11:04:02 +0000 Subject: Change undo to regular button https://fedorahosted.org/freeipa/ticket/3904 --- diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 0fcf618..619b0a4 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 = - $('', { - 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 65d14f9..d9bd547 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