mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 13:26:34 +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]');
|
||||
|
||||
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');
|
||||
} else {
|
||||
menuItems[i].classList.remove('selected');
|
||||
@ -77,13 +77,13 @@ Polymer({
|
||||
var checks = 5;
|
||||
|
||||
// find panel to select
|
||||
while(checks && !target.dataset.panel) {
|
||||
while(checks && !target.getAttribute('data-panel')) {
|
||||
target = target.parentElement;
|
||||
checks--;
|
||||
}
|
||||
|
||||
if (checks) {
|
||||
this.selectPanel(target.dataset.panel);
|
||||
this.selectPanel(target.getAttribute('data-panel'));
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -32,7 +32,8 @@ export default Polymer({
|
||||
|
||||
ready() {
|
||||
// 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(this.auth) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user