diff --git a/setup/wizard/resources/js/wizard.js b/setup/wizard/resources/js/wizard.js index 3809f30..dff2bd0 100644 --- a/setup/wizard/resources/js/wizard.js +++ b/setup/wizard/resources/js/wizard.js @@ -4,7 +4,8 @@ function wizard() { // Toggle Advance Database options wizard.prototype.toggleClass = function(ele, option) { //adv_options|php_details|php_ext_details|php_con_details - if($('.'+ele).attr('style') == 'display: none;') { + var state = $('.'+ele).attr('style'); + if(state.match(/none/g) == 'none') { $('.'+ele).attr('style', 'display: block;'); if($('#'+option).attr('innerHTML') != '  Advanced Options') $('#'+option).attr('innerHTML', 'Hide Details'); @@ -14,7 +15,7 @@ wizard.prototype.toggleClass = function(ele, option) { //adv_options|php_details $('#'+option).attr('innerHTML', 'Show Details'); } } - + //alert($('.'+ele) + " " + $('.'+ele).attr('style')); // Focus on element wizard.prototype.focusElement = function(el) { el.focus();