Ignore:
Timestamp:
05/28/10 09:36:15 (14 years ago)
Author:
rodsouza
Message:

Ticket #663 - Atualizando o ckeditor do módulo admin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/templates/classic/config.tpl

    r2802 r2876  
    11<!-- BEGIN header --> 
    22<script> 
    3 function FCKeditor_OnComplete( editorInstance ) 
     3function send_form( pForm ) 
    44{ 
    5         editorInstance.LinkedField.form.onsubmit = function( ) 
     5        ExpressoLivre.events.fire.onunload( ); 
     6        return ExpressoLivre.form( pForm ); 
     7} 
     8 
     9ExpressoLivre.events.onload( function( ) 
     10{ 
     11        CKEDITOR.replace( "agree_term", 
    612        { 
    7                 document.getElementById( 'newsettings[agree_term]' ).value = FCKeditorAPI.GetInstance( editorInstance.Name ).GetHTML( ); 
    8                 return ExpressoLivre.form( editorInstance.LinkedField.form ); 
    9         }; 
    10 } 
     13                toolbar : 
     14                [ 
     15                        [ 'Styles', 'Format' ], 
     16                        [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList' ] 
     17                ] 
     18        } ); 
     19} ); 
     20 
     21ExpressoLivre.events.onunload( function( ) 
     22{ 
     23        CKEDITOR.instances.agree_term.destroy( ); 
     24} ); 
    1125</script> 
    12 <form method="POST" action="{action_url}"> 
     26<form method="POST" action="{action_url}" onsubmit="return send_form( this );"> 
    1327<table align="center" width="85%" callspacing="0" style="{ border: 1px solid #000000; }"> 
    1428   <tr class="th"> 
     
    197211    <td colspan="2" align="center"> 
    198212      <input type="submit" name="submit" value="{lang_submit}"> 
    199       <input type="submit" name="cancel" value="{lang_cancel}"> 
     213      <input type="button" name="cancel" value="{lang_cancel}" onclick="ExpressoLivre.link( '{cancel_button}' )" /> 
    200214                  <br> 
    201215    </td> 
Note: See TracChangeset for help on using the changeset viewer.