Change undo to regular button

https://fedorahosted.org/freeipa/ticket/3904
This commit is contained in:
Petr Vobornik
2013-10-21 12:37:48 +02:00
committed by Martin Kosek
parent 7adb034e02
commit 2d9bb22772
2 changed files with 7 additions and 8 deletions

View File

@@ -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() {

View File

@@ -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