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>
This commit is contained in:
Petr Vobornik 2014-07-22 14:15:11 +02:00
parent 4059aa12a4
commit fb975bba20
2 changed files with 8 additions and 2 deletions

View File

@ -4,7 +4,7 @@
.global-activity-indicator {
bottom: initial;
bottom: auto;
height: auto;
background-color: rgba(0, 0, 0, 0.3);
color: white;

View File

@ -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();