if (Drupal.jsEnabled) { $(document).ready(function () { //theme log /* $('span.thmr_call').each(function () { this.onclick = function () { if (themerEnabled) { id = $(this).attr('id'); console.log(id); } }; }); */ var themerEnabled = 0; var themerToggle = function () { themerEnabled = 1 - themerEnabled; $('input', this).attr('checked', themerEnabled ? 'checked' : ''); $('#themer-popup').css('display', themerEnabled ? 'block' : 'none'); if (themerEnabled) { document.onclick = themerEvent; } else { document.onclick = null; } }; $(Drupal.settings.thmr_popup) .appendTo($('body')); $('