Commit 3f5cde0279f2e34860729de2c480682ec50c0db8

Authored by Megan Watson
2 parents 9cbaf9d1 fc0932d3

Merge branch 'edge' of git@github.com:ktgit/knowledgetree into edge

setup/wizard/resources/js/wizard.js
... ... @@ -4,7 +4,8 @@ function wizard() {
4 4  
5 5 // Toggle Advance Database options
6 6 wizard.prototype.toggleClass = function(ele, option) { //adv_options|php_details|php_ext_details|php_con_details
7   - if($('.'+ele).attr('style') == 'display: none;') {
  7 + var state = $('.'+ele).attr('style');
  8 + if(state.match(/none/g) == 'none') {
8 9 $('.'+ele).attr('style', 'display: block;');
9 10 if($('#'+option).attr('innerHTML') != '  Advanced Options')
10 11 $('#'+option).attr('innerHTML', 'Hide Details');
... ... @@ -14,7 +15,7 @@ wizard.prototype.toggleClass = function(ele, option) { //adv_options|php_details
14 15 $('#'+option).attr('innerHTML', 'Show Details');
15 16 }
16 17 }
17   -
  18 + //alert($('.'+ele) + " " + $('.'+ele).attr('style'));
18 19 // Focus on element
19 20 wizard.prototype.focusElement = function(el) {
20 21 el.focus();
... ...