Fixing weight update.

1.9.x
Julio Montoya 12 years ago
parent c5655c984e
commit ac1f53e4ac
  1. 2
      main/gradebook/lib/fe/evalform.class.php
  2. 9
      main/gradebook/lib/fe/linkaddeditform.class.php

@ -475,7 +475,7 @@ class EvalForm extends FormValidator
} }
} }
$this->add_textfield('weight_mask', array(get_lang('Weight'), null, ' [0 .. ' . $all_categories[0]->get_weight() . '] '), true, array( $this->add_textfield('weight_mask', array(get_lang('Weight'), null, ' [0 .. <span id="max_weight">' . $all_categories[0]->get_weight() . '</span>] '), true, array(
'size' => '4', 'size' => '4',
'maxlength' => '5', 'maxlength' => '5',
'class' => 'span1' 'class' => 'span1'

@ -92,11 +92,16 @@ class LinkAddEditForm extends FormValidator
} }
} }
$this->add_textfield('weight_mask', array(get_lang('Weight'), null, ' [0 .. '.$category_object[0]->get_weight().'] '), true, array ( $this->add_textfield(
'weight_mask',
array(get_lang('Weight'), null, ' [0 .. <span id="max_weight">'.$category_object[0]->get_weight().'</span>] '),
true,
array(
'size' => '4', 'size' => '4',
'maxlength' => '5', 'maxlength' => '5',
'class' => 'span1' 'class' => 'span1'
)); )
);
$this->addElement('hidden', 'weight'); $this->addElement('hidden', 'weight');

Loading…
Cancel
Save