[svn r20158] Adding applyfilter to some forms see FS#4116

skala
Julio Montoya 16 years ago
parent b87a3f5c30
commit 3c4d4a07de
  1. 1
      main/glossary/index.php
  2. 1
      main/notebook/index.php

@ -99,6 +99,7 @@ if (api_is_allowed_to_edit())
$form->addElement('header', '', get_lang('TermEdit'));
$form->addElement('hidden', 'glossary_id');
$form->addElement('text', 'glossary_title', get_lang('TermName'),array('size'=>'100'));
$form->applyFilter('glossary_title', 'html_filter');
$form->addElement('html_editor', 'glossary_comment', get_lang('TermDefinition'));
$form->addElement('style_submit_button', 'SubmitGlossary', get_lang('TermUpdateButton'), 'class="save"');

@ -109,6 +109,7 @@ else if (isset($_GET['action']) && $_GET['action'] == 'editnote' && is_numeric($
// settting the form elements
$form->addElement('hidden', 'notebook_id');
$form->addElement('text', 'note_title', get_lang('NoteTitle'),array('size'=>'100'));
$form->applyFilter('note_title', 'html_filter');
$form->addElement('html_editor', 'note_comment', get_lang('NoteComment'));
$form->addElement('style_submit_button', 'SubmitNote', get_lang('ModifyNote'), 'class="save"');

Loading…
Cancel
Save