Remove unneccessary getAttribute for windowId
This commit is contained in:
parent
c23e8c1a5c
commit
2c03ffc0a1
3
popup.js
3
popup.js
|
@ -121,10 +121,9 @@ function setupWindowElement(currentWindow,callback){
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
if(event.keyCode===13){
|
if(event.keyCode===13){
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var windowId = parseInt(input.parentNode.parentNode.getAttribute('windowId'));
|
|
||||||
windowName.textContent = input.value;
|
windowName.textContent = input.value;
|
||||||
input.parentNode.replaceChild(windowName,input);
|
input.parentNode.replaceChild(windowName,input);
|
||||||
changeWindowName(windowId, input.value);
|
changeWindowName(currentWindow.id, input.value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
windowName.parentNode.replaceChild(input,windowName);
|
windowName.parentNode.replaceChild(input,windowName);
|
||||||
|
|
Loading…
Reference in a new issue