Corrections

This commit is contained in:
Michael RICOIS 2012-05-14 13:28:58 +00:00
parent cf528a531a
commit 81f4059371
4 changed files with 5 additions and 14 deletions

View File

@ -145,7 +145,7 @@ class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
if ( $this->display===false ) {
$style = ' style="display:none;"';
}
$out.= '<div id="'.$this->name.'" '.$class.''.$style.'>';
$out.= '<div id="field_'.$this->name.'" '.$class.''.$style.'>';
$out.= $this->structureLabel($label);
$out.= '<div class="field">'.$html.'</div>';
$out.= '</div>';

View File

@ -1,4 +1,4 @@
<div id="<?=$this->key?>_dialog" class="jstree jstree-default" style="overflow:auto;"></div>
<div id="<?=$this->key?>" class="jstree jstree-default" style="overflow:auto;"></div>
<script>
$("div#<?=$this->key?>").jstree({
"themes" : {

View File

@ -708,7 +708,6 @@ class Scores_Fields
return;
}
if ( !is_array($value) ) {
//Remove all space in string value
$value = str_replace(' ', '', $value);
@ -718,15 +717,12 @@ class Scores_Fields
}
}
//Before to save the value
$types = array_keys($this->fields[$key]['fields']);
switch ( $types[0] ) {
case 'interval':
$value = explode(',', $value);
//@todo : Check Min Max
break;
case 'checkbox':
if ( $value==0 ) {
@ -736,11 +732,6 @@ class Scores_Fields
break;
}
//Save the value
if ($ex) {
$this->ciblage[$key]['ex'] = $value;

View File

@ -184,10 +184,10 @@ $(document).ready(function()
$('#tabs').delegate('a.text', 'click', function(e) {
e.preventDefault();
var id = $(this).attr('id');
if ($('div#'+id).css('display') == 'none') {
$('div#'+id).show('blind');
if ($('div#field_'+id).css('display') == 'none') {
$('div#field_'+id).show('blind');
} else {
$('div#'+id).hide('blind');
$('div#field_'+id).hide('blind');
}
});