diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-10-21 12:37:48 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-01-21 12:04:02 +0100 |
commit | 2d9bb22772610e1211580b410c7d075996f0f78c (patch) | |
tree | 16a8e8932c334c08b6fd592ee3634dad67a987a9 | |
parent | 7adb034e02c7a2a23f52d96d366273cc76e4717f (diff) | |
download | freeipa-2d9bb22772610e1211580b410c7d075996f0f78c.tar.gz freeipa-2d9bb22772610e1211580b410c7d075996f0f78c.tar.xz freeipa-2d9bb22772610e1211580b410c7d075996f0f78c.zip |
Change undo to regular button
https://fedorahosted.org/freeipa/ticket/3904
-rw-r--r-- | install/ui/src/freeipa/widget.js | 13 | ||||
-rw-r--r-- | ipatests/test_webui/ui_driver.py | 2 |
2 files changed, 7 insertions, 8 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 0fcf61827..619b0a47d 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 65d14f9ae..d9bd54701 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 |