Changeset 10990

Show
Ignore:
Timestamp:
01/16/11 19:34:26 (2 years ago)
Author:
p_lindheimer
Message:

adds back some of the properties that the ajax was handling in the radio buttons, though from at least one test, on CFRINGTIMER, changing it resulted in setting ALL the settings to that value so more work to be done, so for now, also commenting out the upate ability (which anyhow needs to be changed to use the proper class functions) to keep from wiping out a system during testing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.9/core/functions.inc.php

    r10952 r10990  
    33553355function core_advancedsettings_set_keys($key, $value){ 
    33563356  global $db; 
     3357  /* disable for now and anyhow change to use proper class function 
    33573358  $sql = 'UPDATE freepbx_settings set value = ? where `keyword` = ?'; 
    33583359  $res = $db->query($sql, array($value, $key)); 
     
    33623363    return true; 
    33633364  } 
     3365  */ 
     3366  return true; 
    33643367} 
    33653368 
  • modules/branches/2.9/core/page.advancedsettings.php

    r10989 r10990  
    6161      case CONF_TYPE_BOOL: 
    6262?> 
    63   <input id="<?php echo $c['keyword'] ?>-true" type="radio" name="<?php echo $c['keyword'] ?>" value="1" tabindex="<?php echo ++$tabindex;?>"<?php echo $amp_conf[$c['keyword']]?"checked=\"yes\"":""?>/> 
     63  <input class="valueinput" data-valueinput-orig="<?php echo $amp_conf[$c['keyword']]?1:0 ?>" id="<?php echo $c['keyword'] ?>-true" type="radio" name="<?php echo $c['keyword'] ?>" value="1" tabindex="<?php echo ++$tabindex;?>"<?php echo $amp_conf[$c['keyword']]?"checked=\"yes\"":""?>/> 
    6464  <label for="<?php echo $c['keyword'] ?>-true"><?php echo _("True") ?></label> 
    65   <input id="<?php echo $c['keyword'] ?>-false" type="radio" name="<?php echo $c['keyword'] ?>" value="0" tabindex="<?php echo ++$tabindex;?>"<?php echo !$amp_conf[$c['keyword']]?"checked=\"yes\"":""?>/> 
     65  <input class="valueinput" data-valueinput-orig="<?php echo $amp_conf[$c['keyword']]?1:0 ?>" id="<?php echo $c['keyword'] ?>-false" type="radio" name="<?php echo $c['keyword'] ?>" value="0" tabindex="<?php echo ++$tabindex;?>"<?php echo !$amp_conf[$c['keyword']]?"checked=\"yes\"":""?>/> 
    6666  <label for="<?php echo $c['keyword'] ?>-false"><?php echo _("False") ?></label> 
    6767<?php