diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-05-13 13:00:16 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-06-10 10:23:29 +0200 |
commit | 408457ce53c553c27f25a682f3f5118ae2e1ab30 (patch) | |
tree | d87f62b6e061397b177aeb362cf406c3aa11e9b2 /install/ui/src/freeipa/widget.js | |
parent | 40a25ecf371ebfcbb0801e1f99e3a2853439f44b (diff) | |
download | freeipa-408457ce53c553c27f25a682f3f5118ae2e1ab30.tar.gz freeipa-408457ce53c553c27f25a682f3f5118ae2e1ab30.tar.xz freeipa-408457ce53c553c27f25a682f3f5118ae2e1ab30.zip |
webui: change control buttons to normal buttons
Now buttons have normal button appearance instead of link button.
Partially fixes: https://fedorahosted.org/freeipa/ticket/4258 since the disabling is done through button's disabled attribute.
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa/widget.js')
-rw-r--r-- | install/ui/src/freeipa/widget.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 1c6bf7cf8..76761d4a7 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -4097,6 +4097,12 @@ IPA.button_widget = function(spec) { that['class'] = spec['class']; /** + * Icon name + * @property {string} + */ + that.icon = spec.icon; + + /** * Widget click handler. * * Calls provided click handler. @@ -4118,8 +4124,10 @@ IPA.button_widget = function(spec) { label: that.label, 'class': that['class'], style: that.style, + icon: that.icon, click: that.on_click }).appendTo(container); + that.container = that.button; that.set_enabled(that.enabled); }; @@ -4133,6 +4141,8 @@ IPA.button_widget = function(spec) { } }; + that.button_widget_create = that.create; + return that; }; |