mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 13:56:35 +00:00
Some fixes to get some parts working in IE10
This commit is contained in:
parent
df15796f18
commit
536c2bd5d2
@ -64,7 +64,7 @@ Polymer({
|
|||||||
var menuItems = this.querySelectorAll('.menu [data-panel]');
|
var menuItems = this.querySelectorAll('.menu [data-panel]');
|
||||||
|
|
||||||
for (var i = 0; i < menuItems.length; i++) {
|
for (var i = 0; i < menuItems.length; i++) {
|
||||||
if(menuItems[i].dataset.panel === newVal) {
|
if(menuItems[i].getAttribute('data-panel') === newVal) {
|
||||||
menuItems[i].classList.add('selected');
|
menuItems[i].classList.add('selected');
|
||||||
} else {
|
} else {
|
||||||
menuItems[i].classList.remove('selected');
|
menuItems[i].classList.remove('selected');
|
||||||
@ -77,13 +77,13 @@ Polymer({
|
|||||||
var checks = 5;
|
var checks = 5;
|
||||||
|
|
||||||
// find panel to select
|
// find panel to select
|
||||||
while(checks && !target.dataset.panel) {
|
while(checks && !target.getAttribute('data-panel')) {
|
||||||
target = target.parentElement;
|
target = target.parentElement;
|
||||||
checks--;
|
checks--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (checks) {
|
if (checks) {
|
||||||
this.selectPanel(target.dataset.panel);
|
this.selectPanel(target.getAttribute('data-panel'));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -32,7 +32,8 @@ export default Polymer({
|
|||||||
|
|
||||||
ready() {
|
ready() {
|
||||||
// remove the HTML init message
|
// remove the HTML init message
|
||||||
document.getElementById('init').remove();
|
var initMsg = document.getElementById('init');
|
||||||
|
initMsg.parentElement.removeChild(initMsg);
|
||||||
|
|
||||||
// if auth was given, tell the backend
|
// if auth was given, tell the backend
|
||||||
if(this.auth) {
|
if(this.auth) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user