Added ability for post content to be gotten from a template variable.

This commit is contained in:
Doug Bell 2007-03-22 22:13:20 +00:00
parent 7fce9af117
commit cb3e36b180

View file

@ -1209,6 +1209,7 @@ sub www_edit {
value=>$content,
richEditId=>$self->getThread->getParent->get("richEditor")
});
$var{'content.value'} = $content;
$var{'form.submit'} = WebGUI::Form::submit($self->session, {
extras=>"onclick=\"this.value='".$i18n->get(452)."'; this.form.func.value='editSave'; this.form.submit();return false;\""
});