diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-07-22 14:15:11 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-07-28 10:20:15 +0200 |
commit | fb975bba2076758f0615dae042aed2cde705a1b0 (patch) | |
tree | a9d4edd8a63abfa1c8507892f2b4e1e959593073 /install/ui/src/freeipa/widgets | |
parent | 4059aa12a4487c925472751b132842bdb0b16a02 (diff) | |
download | freeipa-fb975bba2076758f0615dae042aed2cde705a1b0.tar.gz freeipa-fb975bba2076758f0615dae042aed2cde705a1b0.tar.xz freeipa-fb975bba2076758f0615dae042aed2cde705a1b0.zip |
webui: internet explorer fixes
Fixed:
1. IE doesn't support value 'initial' in CSS rule.
2. setting innerHTML='' also destroys content of child nodes in
LoginScreen in IE -> reattached buttons have no text.
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa/widgets')
-rw-r--r-- | install/ui/src/freeipa/widgets/LoginScreen.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/widgets/LoginScreen.js b/install/ui/src/freeipa/widgets/LoginScreen.js index 3e0986435..e7e1b029e 100644 --- a/install/ui/src/freeipa/widgets/LoginScreen.js +++ b/install/ui/src/freeipa/widgets/LoginScreen.js @@ -231,7 +231,13 @@ define(['dojo/_base/declare', refresh: function() { if (this.buttons_node) { - this.buttons_node.innerHTML = ""; + // detach button nodes politely + // hard methods like `innerHTML=''` might have undesired + // consequences, e.g., removal of children's content in IE + var bn = this.buttons_node; + while (bn.firstChild) { + bn.removeChild(bn.firstChild); + } } if (this.view === 'reset') { this.show_reset_view(); |