summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/src/freeipa/widgets')
-rw-r--r--install/ui/src/freeipa/widgets/LoginScreen.js8
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();