środa, czerwca 12, 2013

How to fix checkboxes in Grails Spring Security Management Console

Edit springSecurityUI.gsp, before the end of body add script block:

function fixInputs() {
 var container = document.getElementById("tab-roles");
 var inputs = container.getElementsByTagName("input");
 for (var i = 0; i < inputs.length; i++) {
  inputs[i].removeAttribute('style');   
 }
 var imgs = container.getElementsByTagName("img");
 for (var i = 0; i < imgs.length; i++) {
  imgs[i].setAttribute('style', 'display: none');  
 }
}
window.setTimeout(fixInputs, 500);

0 komentarze: