summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-10-21 12:37:48 +0200
committerMartin Kosek <mkosek@redhat.com>2014-01-21 12:04:02 +0100
commit2d9bb22772610e1211580b410c7d075996f0f78c (patch)
tree16a8e8932c334c08b6fd592ee3634dad67a987a9 /install
parent7adb034e02c7a2a23f52d96d366273cc76e4717f (diff)
downloadfreeipa-2d9bb22772610e1211580b410c7d075996f0f78c.tar.gz
freeipa-2d9bb22772610e1211580b410c7d075996f0f78c.tar.xz
freeipa-2d9bb22772610e1211580b410c7d075996f0f78c.zip
Change undo to regular button
https://fedorahosted.org/freeipa/ticket/3904
Diffstat (limited to 'install')
-rw-r--r--install/ui/src/freeipa/widget.js13
1 files changed, 6 insertions, 7 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() {