Skip to content
Permalink
Browse files

netteForms: toggle back compatibility fix (#213)

  • Loading branch information...
solcik authored and dg committed Mar 10, 2019
1 parent 109f377 commit dbf9ff5f6f511d3e0eb26c48b47284a2c15feb71
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/assets/netteForms.js
@@ -640,7 +640,7 @@
* Displays or hides HTML element.
*/
Nette.toggle = function(selector, visible, srcElement) { // eslint-disable-line no-unused-vars
if (/^\w+$/.test(selector)) { // id
if (/^\w[\w.:-]*$/.test(selector)) { // id
selector = '#' + selector;
}
var elems = document.querySelectorAll(selector);

0 comments on commit dbf9ff5

Please sign in to comment.
You can’t perform that action at this time.