Changeset 1687 in ExiteCMS


Ignore:
Timestamp:
08/25/08 17:51:45 (3 years ago)
Author:
hverton
Message:

pass the name of the poster that is being replied to to the editor for inclusion in the quote bbcode tag
fixed missing getdata() calls on some submit buttons causing loss of message data

Location:
trunk/includes/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/templates/forum.post.tpl

    r1651 r1687  
    9191                                    var hoteditor_path = "{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/"; 
    9292                                    var hoteditor_theme_path = "{$smarty.const.THEME}hoteditor"; 
     93                                    var hoteditor_reply_to = "{$orgauthor|default:""}"; 
    9394                                </script> 
    9495                                <script language="javascript" type="text/javascript" src="{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/editor__0001.js?version=4.2"></script>              
     
    191192                            <textarea name='attach_comment' cols='50' rows='2' class='textbox'>{$comments}</textarea> 
    192193                            <br /> 
    193                             <input type='submit' name='upload' value='{$locale.471}' class='button' /> 
     194                            {if $settings.hoteditor_enabled == 0 || $userdata.user_hoteditor == 0} 
     195                                <input type='submit' name='upload' value='{$locale.471}' class='button' /> 
     196                            {else} 
     197                                <input type='submit' name='upload' value='{$locale.471}' class='button' onclick='javascript:get_hoteditor_data();' /> 
     198                            {/if} 
    194199                        </td> 
    195200                    </tr> 
     
    230235                        <input type='text' id='fpm_option_{$opt}' name='fpm[option][{$opt}]' value='{$option}' class='textbox' maxlength='200' style='width:250px' /> 
    231236                        {if $opt == $fpm.option_show && $opt != $fpm_settings.option_max} 
    232                             <input type='submit' name='fpm[add_options]' class='button' value='{$locale.FPM_104}' /> 
     237                            {if $settings.hoteditor_enabled == 0 || $userdata.user_hoteditor == 0} 
     238                                <input type='submit' name='fpm[add_options]' class='button' value='{$locale.FPM_104}' /> 
     239                            {else} 
     240                                <input type='submit' name='fpm[add_options]' class='button' value='{$locale.FPM_104}' onclick='javascript:get_hoteditor_data();' /> 
     241                            {/if} 
    233242                        {/if} 
    234243                    </td> 
     
    296305                {/if} 
    297306                <input type='submit' name='cancel' value='{$locale.417}' class='button' /> 
    298                 <input type='submit' name='preview' value='{$button_preview}' class='button' onclick='javascript:get_hoteditor_data();' /> 
    299                 <input type='submit' name='save' value='{$button_save}' class='button' onclick='javascript:get_hoteditor_data();' /> 
     307                {if $settings.hoteditor_enabled == 0 || $userdata.user_hoteditor == 0} 
     308                    <input type='submit' name='preview' value='{$button_preview}' class='button' /> 
     309                    <input type='submit' name='save' value='{$button_save}' class='button' /> 
     310                {else} 
     311                    <input type='submit' name='preview' value='{$button_preview}' class='button' onclick='javascript:get_hoteditor_data();' /> 
     312                    <input type='submit' name='save' value='{$button_save}' class='button' onclick='javascript:get_hoteditor_data();' /> 
     313                {/if} 
    300314                <input type='hidden' name='post_author' value='{$post_author}' /> 
    301315                <input type='hidden' name='random_id' value='{$random_id}' /> 
  • trunk/includes/templates/forum.viewthread.tpl

    r1680 r1687  
    288288                    var hoteditor_path = "{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/"; 
    289289                    var hoteditor_theme_path = "{$smarty.const.THEME}hoteditor"; 
     290                    var hoteditor_reply_to = ""; 
    290291                </script> 
    291292                <script language="javascript" type="text/javascript" src="{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/editor__0001.js?version=4.2"></script>              
Note: See TracChangeset for help on using the changeset viewer.