Remove unused code.

1.10.x
Julio Montoya 10 years ago
parent 7d82db2dca
commit b253e61452
  1. 2
      main/admin/usergroups.php
  2. 1
      main/exercice/calculated_answer.class.php
  3. 1
      main/exercice/freeanswer.class.php
  4. 1
      main/newscorm/learnpath.class.php
  5. 3
      main/newscorm/lp_edit.php

@ -104,9 +104,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'add') {
// Setting the form elements
$form->addElement('header', get_lang('Add'));
$form->addElement('text', 'name', get_lang('Name'), array('size' => '70', 'id' => 'name'));
//$form->applyFilter('note_title', 'html_filter');
$form->addHtmlEditor('description', get_lang('Description'), false, false, array('Width' => '95%', 'Height' => '250'));
//$form->addElement('style_submit_button', 'submit', get_lang('Add'), 'class="add"');
$form->addButtonCreate(get_lang('Add'));
// Setting the rules

@ -162,7 +162,6 @@ class CalculatedAnswer extends Question
global $text, $class;
// setting the save button here and not in the question class.php
//$form->addElement('style_submit_button', 'submitQuestion', $text, 'class="'.$class.'"');
$form->addButtonSave($text, 'submitQuestion');
if (!empty($this->id)) {

@ -32,7 +32,6 @@ class FreeAnswer extends Question
$form->addElement('text', 'weighting', get_lang('Weighting'), array('class' => 'span1'));
global $text, $class;
// setting the save button here and not in the question class.php
//$form->addElement('style_submit_button', 'submitQuestion', $text, 'class="' . $class . '"');
$form->addButtonSave($text, 'submitQuestion');
if (!empty($this->id)) {
$form->setDefaults(array('weighting' => float_format($this->weighting, 1)));

@ -7572,7 +7572,6 @@ class learnpath
}
}
//$form->addElement('style_submit_button', 'submit_button', $text, 'class="' . $class . '"');
$form->addButtonSave($text, 'submit_button');
$renderer = $form->defaultRenderer();
$renderer->setElementTemplate('<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{label}<br />{element}', 'content_lp');

@ -188,8 +188,7 @@ if ($enableLpExtraFields) {
$extra = $extraField->addElements($form, $_SESSION['oLP']->get_id());
}
//Submit button
//$form->addElement('style_submit_button', 'Submit',get_lang('SaveLPSettings'),'class="save"');
// Submit button
$form->addButtonSave(get_lang('SaveLPSettings'));
// Hidden fields

Loading…
Cancel
Save