Changeset 3137 in subversion


Ignore:
Timestamp:
Nov 25, 2009 10:01:49 AM (3 years ago)
Author:
alec
Message:
  • disable threads switch if server doesn't support THREADS
Location:
branches/devel-threads
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/devel-threads/program/steps/mail/func.inc

    r3135 r3137  
    9999  $OUTPUT->set_env('delimiter', $IMAP->get_hierarchy_delimiter()); 
    100100  $OUTPUT->set_env('threading', (bool) $IMAP->threading); 
     101  $OUTPUT->set_env('threads', $IMAP->threading 
     102        || $IMAP->get_capability('thread=references') 
     103        || $IMAP->get_capability('thread=orderedsubject') 
     104        || $IMAP->get_capability('thread=refs')   
     105  ); 
    101106 
    102107  if ($CONFIG['flag_for_deletion']) 
  • branches/devel-threads/skins/default/common.css

    r3023 r3137  
    598598  padding-top: 2px; 
    599599} 
     600 
     601.disabled 
     602{ 
     603  color: #999; 
     604} 
  • branches/devel-threads/skins/default/templates/mail.html

    r3120 r3137  
    155155<div><roundcube:label name="listcolumns" /></div> 
    156156  <ul class="toolbarmenu"> 
    157     <li><input type="checkbox" name="list_col[]" value="subject" id="cols_subject" checked="checked" disabled="disabled" /><label for="cols_subject"><roundcube:label name="subject" /></label></li> 
     157    <li><input type="checkbox" name="list_col[]" value="subject" id="cols_subject" checked="checked" disabled="disabled" /><label for="cols_subject" class="disabled"><roundcube:label name="subject" /></label></li> 
    158158    <li><input type="checkbox" name="list_col[]" value="from" id="cols_fromto" /><label for="cols_fromto"><roundcube:label name="fromto" /></label></li> 
    159159    <li><input type="checkbox" name="list_col[]" value="replyto" id="cols_replyto" /><label for="cols_replyto"><roundcube:label name="replyto" /></label></li> 
     
    183183  <ul class="toolbarmenu"> 
    184184    <li><input type="radio" name="view" value="list" id="view_default" /><label for="view_default"><roundcube:label name="nonedefault" /></label></li> 
     185    <roundcube:if condition="env:threads" /> 
    185186    <li><input type="radio" name="view" value="thread" id="view_thread" /><label for="view_thread"><roundcube:label name="threaded" /></label></li> 
     187    <roundcube:else /> 
     188    <li><input type="radio" name="view" value="thread" id="view_thread" disabled="disabled" /><label for="view_thread" class="disabled"><roundcube:label name="threaded" /></label></li> 
     189    <roundcube:endif /> 
    186190  </ul> 
    187191<a href="javascript:rcmail_ui.save_listmenu()"><roundcube:label name="save" /></a> 
Note: See TracChangeset for help on using the changeset viewer.