Changeset 7152f59 in github


Ignore:
Timestamp:
Jan 1, 2012 1:52:30 PM (17 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
543ccbb
Parents:
1c029b9
Message:
  • Fix so editor selector is hidden when 'htmleditor' is listed in 'dont_override'
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • program/steps/mail/compose.inc

    r89c30a0 r7152f59  
    12421242            'class' => 'delete'), 
    12431243          $button) . Q($a_prop['name'])); 
    1244          
     1244 
    12451245        $jslist['rcmfile'.$id] = array('name' => $a_prop['name'], 'complete' => true, 'mimetype' => $a_prop['mimetype']); 
    12461246    } 
     
    12561256  $OUTPUT->set_env('attachments', $jslist); 
    12571257  $OUTPUT->add_gui_object('attachmentlist', $attrib['id']); 
    1258      
     1258 
    12591259  return html::tag('ul', $attrib, $out, html::$common_attrib); 
    12601260} 
     
    12631263function rcmail_compose_attachment_form($attrib) 
    12641264{ 
    1265   global $RCMAIL, $OUTPUT; 
     1265  global $OUTPUT; 
    12661266 
    12671267  // set defaults 
     
    13031303{ 
    13041304  global $MESSAGE; 
    1305    
     1305 
    13061306  list($form_start, $form_end) = get_form_tags($attrib); 
    13071307  unset($attrib['form']); 
     
    13401340 
    13411341  if (!isset($attrib['id'])) 
    1342     $attrib['id'] = 'receipt';   
     1342    $attrib['id'] = 'receipt'; 
    13431343 
    13441344  $attrib['name'] = '_receipt'; 
     
    13831383function rcmail_editor_selector($attrib) 
    13841384{ 
    1385   global $CONFIG, $MESSAGE, $compose_mode; 
    1386  
    13871385  // determine whether HTML or plain text should be checked 
    13881386  $useHtml = rcmail_compose_editor_mode(); 
  • skins/default/templates/compose.html

    r3ee5a72 r7152f59  
    113113            <div id="compose-editorfooter"> 
    114114                <span id="spellcheck-control" style="margin-right:10px"></span> 
     115                <roundcube:if condition="!in_array('htmleditor', (array)config:dont_override)" /> 
    115116                <span> 
    116117                    <label><roundcube:label name="editortype" /></label> 
    117118                    <roundcube:object name="editorSelector" editorid="compose-body" tabindex="12" /> 
    118119                </span> 
     120                <roundcube:endif /> 
    119121            </div> 
    120122        </div> 
  • skins/larry/templates/compose.html

    rbab0433 r7152f59  
    110110         
    111111        <div id="composeoptions"> 
     112                <roundcube:if condition="!in_array('htmleditor', (array)config:dont_override)" /> 
    112113                <span class="composeoption"> 
    113114                        <label><roundcube:label name="editortype" /> 
    114115                                <roundcube:object name="editorSelector" editorid="composebody" tabindex="12" /></label> 
    115116                </span> 
     117                <roundcube:endif /> 
    116118                <span class="composeoption"> 
    117119                        <label><label for="rcmcomposepriority"><roundcube:label name="priority" /> 
Note: See TracChangeset for help on using the changeset viewer.