From a85cda36070bb7279e1248342b8eb1b1e19a12a5 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Jan 21 2014 11:04:02 +0000 Subject: Change undo-all to regular button https://fedorahosted.org/freeipa/ticket/3904 --- diff --git a/install/ui/ipa.css b/install/ui/ipa.css index 59b3857..0314bd9 100644 --- a/install/ui/ipa.css +++ b/install/ui/ipa.css @@ -970,6 +970,10 @@ table.scrollable tbody { width: 250px; } +.multivalued-widget a[name=add] { + margin-right: 5px; +} + .textarea-widget textarea { width: 250px; } diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 619b0a4..c6b4d37 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -813,11 +813,11 @@ IPA.multivalued_widget = function(spec) { container.append(' '); - that.undo_span = $('', { + that.undo_span = IPA.button({ name: 'undo_all', style: 'display: none;', - 'class': 'ui-state-highlight ui-corner-all undo', - html: text.get('@i18n:widget.undo_all'), + 'class': 'undo', + label: text.get('@i18n:widget.undo_all'), click: function() { that.undo_clicked.notify([], that); }