Changeset 5683 in subversion


Ignore:
Timestamp:
Jan 1, 2012 2:10:53 PM (17 months ago)
Author:
alec
Message:
  • Fix so editor selector is hidden when 'htmleditor' is listed in 'dont_override'
Location:
branches/release-0.7
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/release-0.7/CHANGELOG

    r5681 r5683  
    22=========================== 
    33 
     4- Fix so editor selector is hidden when 'htmleditor' is listed in 'dont_override' 
    45- Fix wrong (long) label usage (#1488283) 
    56- Fix handling of INBOX's subfolders in special folders config (#1488279) 
  • branches/release-0.7/program/steps/mail/compose.inc

    r5545 r5683  
    12391239            'onclick' => sprintf("return %s.command('remove-attachment','rcmfile%s', this)", JS_OBJECT_NAME, $id)), 
    12401240          $button) . Q($a_prop['name'])); 
    1241          
     1241 
    12421242        $jslist['rcmfile'.$id] = array('name' => $a_prop['name'], 'complete' => true, 'mimetype' => $a_prop['mimetype']); 
    12431243    } 
     
    12531253  $OUTPUT->set_env('attachments', $jslist); 
    12541254  $OUTPUT->add_gui_object('attachmentlist', $attrib['id']); 
    1255      
     1255 
    12561256  return html::tag('ul', $attrib, $out, html::$common_attrib); 
    12571257} 
     
    12601260function rcmail_compose_attachment_form($attrib) 
    12611261{ 
    1262   global $RCMAIL, $OUTPUT; 
     1262  global $OUTPUT; 
    12631263 
    12641264  // add ID if not given 
     
    13011301{ 
    13021302  global $MESSAGE; 
    1303    
     1303 
    13041304  list($form_start, $form_end) = get_form_tags($attrib); 
    13051305  unset($attrib['form']); 
     
    13381338 
    13391339  if (!isset($attrib['id'])) 
    1340     $attrib['id'] = 'receipt';   
     1340    $attrib['id'] = 'receipt'; 
    13411341 
    13421342  $attrib['name'] = '_receipt'; 
     
    13811381function rcmail_editor_selector($attrib) 
    13821382{ 
    1383   global $CONFIG, $MESSAGE, $compose_mode; 
    1384  
    13851383  // determine whether HTML or plain text should be checked 
    13861384  $useHtml = rcmail_compose_editor_mode(); 
  • branches/release-0.7/skins/default/templates/compose.html

    r4328 r5683  
    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> 
Note: See TracChangeset for help on using the changeset viewer.