List:Eventum General Discussion« Previous MessageNext Message »
From:bart Date:July 5 2005 7:46am
Subject:Relace Empty Title by truncated note message
View as plain text  
Hi world,

I was too lazy to write Title in Internal Notes.
For now after my modifications, in case of Empty Title, eventum places truncated
note message in Title.

1. Disable alert message
In post_note.tpl.html, remark

function validate(f)
{
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//    if (isWhitespace(f.title.value)) {
//        alert('Please enter the title of this note.');
//        selectField(f, 'title');
//        return false;
//    }
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2. In view_note.tpl.html, remove * after "Title:"

<td width="120" bgcolor="{$internal_color}" class="default_white">
<b>Title:</b>
</td>

2.1
In view_note.tpl.html, find <Empty Title> and replace the code

<td bgcolor="{$light_color}" class="default">
{$note.not_title|escape:"html"}
{if $note.not_title === ''}{$note.message|truncate:30|escape:"html"}{/if}
</td>

3. In notes.tpl.html, find <Empty Title>

there should be like

<a title="view note details" href="javascript:void(null);"
onClick="javascript:viewNote({$notes[i].not_id});"
class="link">{$notes[i].not_title|escape:"html"}</a>
{if $notes[i].has_blocked_message} (<a href="javascript:void(null);"
onClick="javascript:convertNote({$notes[i].not_id});" class="link">convert
note</a>){/if}
{if $notes[i].not_title ===
''}{$notes[i].not_note|truncate:30|escape:"html"}{/if}

but section {$notes[i].not_note|truncate:30|escape:"html"} is incorrect. Due to
eventum does not understand the value $notes[i].not_note


Any ideas?
Thread
Relace Empty Title by truncated note messagebart5 Jul
Re: Relace Empty Title by truncated note messagebart14 Jul
Re: Relace Empty Title by truncated note messagebart14 Jul
  • Re: Send notification Mails in HTML-Formabart14 Jul