Added comments

This commit is contained in:
Godwin
2016-07-09 15:25:27 -07:00
parent 8d010eaf3b
commit c6f8d4ed58
21 changed files with 1206 additions and 27 deletions
+16
View File
@@ -184,6 +184,22 @@
}, false);
}
}, node || document);
forEachElement('[data-opens]', function(control) {
control.addEventListener('click', function(event) {
var opens = document.querySelector(control.getAttribute('data-opens'));
if (!opens.classList.contains('open')){
event.preventDefault();
opens.className += ' open';
if (control.getAttribute('data-focus')) {
var input = opens.querySelector(control.getAttribute('data-focus'));
if (input) {
input.focus();
}
}
return false;
}
});
});
} ];
window.initNode = function(node) {
forEach(initNodeFunctions, function(fn) {