mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Change undo to regular button
https://fedorahosted.org/freeipa/ticket/3904
This commit is contained in:
committed by
Martin Kosek
parent
7adb034e02
commit
2d9bb22772
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user