Changeset 6130 in subversion


Ignore:
Timestamp:
Apr 27, 2012 3:13:19 AM (13 months ago)
Author:
alec
Message:
  • Applied fixes from trunk up to r6129
Location:
branches/release-0.8
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/release-0.8/index.php

    r6078 r6130  
    130130      if ($query['_task'] == 'login') 
    131131        unset($query['_task']); 
     132 
     133      // prevent redirect to compose with specified ID (#1488226) 
     134      if ($query['_action'] == 'compose' && !empty($query['_id'])) 
     135        $query = array(); 
    132136    } 
    133137 
  • branches/release-0.8/program/js/app.js

    r6119 r6130  
    225225        this.env.message_commands = ['show', 'reply', 'reply-all', 'reply-list', 'forward', 
    226226          'moveto', 'copy', 'delete', 'open', 'mark', 'edit', 'viewsource', 'download', 
    227           'print', 'load-attachment', 'load-headers', 'forward-attachment']; 
     227          'print', 'load-attachment', 'show-headers', 'hide-headers', 'forward-attachment']; 
    228228 
    229229        if (this.env.action == 'show' || this.env.action == 'preview') { 
     
    578578        else if (this.task == 'addressbook') 
    579579          this.list_contacts(props); 
    580         break; 
    581  
    582       case 'load-headers': 
    583         this.load_headers(obj); 
    584580        break; 
    585581 
     
    11091105        var func = command.replace(/-/g, '_'); 
    11101106        if (this[func] && typeof this[func] === 'function') { 
    1111           ret = this[func](props); 
     1107          ret = this[func](props, obj); 
    11121108        } 
    11131109        break; 
     
    18571853        html = expando; 
    18581854      else if (c == 'subject') { 
    1859         if (bw.ie) 
     1855        if (bw.ie) { 
    18601856          col.onmouseover = function() { rcube_webmail.long_subject_title_ie(this, message.depth+1); }; 
     1857          if (bw.ie8) 
     1858            tree = '<span></span>' + tree; // #1487821 
     1859        } 
    18611860        html = tree + cols[c]; 
    18621861      } 
     
    58305829 
    58315830  // display all-headers row and fetch raw message headers 
    5832   this.load_headers = function(elem) 
     5831  this.show_headers = function(props, elem) 
    58335832  { 
    58345833    if (!this.gui_objects.all_headers_row || !this.gui_objects.all_headers_box || !this.env.uid) 
     
    58375836    $(elem).removeClass('show-headers').addClass('hide-headers'); 
    58385837    $(this.gui_objects.all_headers_row).show(); 
    5839     elem.onclick = function() { rcmail.hide_headers(elem); }; 
     5838    elem.onclick = function() { rcmail.command('hide-headers', '', elem); }; 
    58405839 
    58415840    // fetch headers only once 
     
    58475846 
    58485847  // hide all-headers row 
    5849   this.hide_headers = function(elem) 
     5848  this.hide_headers = function(props, elem) 
    58505849  { 
    58515850    if (!this.gui_objects.all_headers_row || !this.gui_objects.all_headers_box) 
     
    58545853    $(elem).removeClass('hide-headers').addClass('show-headers'); 
    58555854    $(this.gui_objects.all_headers_row).hide(); 
    5856     elem.onclick = function() { rcmail.load_headers(elem); }; 
     5855    elem.onclick = function() { rcmail.command('show-headers', '', elem); }; 
    58575856  }; 
    58585857 
  • branches/release-0.8/program/steps/mail/func.inc

    r6052 r6130  
    987987  global $OUTPUT; 
    988988 
    989   $html = html::div(array('class' => "more-headers show-headers", 'onclick' => "return ".JS_OBJECT_NAME.".command('load-headers','',this)"), ''); 
    990   $html .= html::div(array('id' => "all-headers", 'class' => "all", 'style' => 'display:none'), html::div(array('id' => 'headers-source'), '')); 
     989  $html = html::div(array('id' => "all-headers", 'class' => "all", 'style' => 'display:none'), html::div(array('id' => 'headers-source'), '')); 
     990  $html .= html::div(array('class' => "more-headers show-headers", 'onclick' => "return ".JS_OBJECT_NAME.".command('show-headers','',this)"), ''); 
    991991 
    992992  $OUTPUT->add_gui_object('all_headers_row', 'all-headers'); 
  • branches/release-0.8/skins/default/mail.css

    r6062 r6130  
    12871287#headers-source 
    12881288{ 
    1289   margin: 0 0 2px 0; 
     1289  margin: 2px 0; 
    12901290  padding: 0.5em; 
    12911291  height: 145px; 
     
    12931293  overflow: auto; 
    12941294  font-size: 11px; 
    1295   border: 1px solid #999999; 
     1295  border: 1px solid #CCC; 
    12961296  display: none; 
    12971297  text-align: left; 
  • branches/release-0.8/skins/larry/iehacks.css

    r6040 r6130  
    144144} 
    145145 
    146 #full-headers { 
    147         filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eaeaea', endColorstr='#e9e9e9', GradientType=0); 
    148 } 
    149  
    150 #all-headers { 
    151         filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3f3f3', endColorstr='#ffffff', GradientType=0); 
    152 } 
    153  
    154146#composeoptionsbox { 
    155147        border-top: 1px solid #999; 
     
    160152        height: 18px; 
    161153} 
    162  
    163  
  • branches/release-0.8/skins/larry/mail.css

    r6087 r6130  
    735735} 
    736736 
    737 #full-headers { 
    738         position: relative; 
    739         color: #666; 
    740         text-align: center; 
    741         background-color: #f9f9f9; 
    742         background: -moz-linear-gradient(top, #eaeaea 0%, #e9e9e9 100%); 
    743         background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eaeaea), color-stop(100%,#e9e9e9)); 
    744         background: -o-linear-gradient(top, #eaeaea 0%, #e9e9e9 100%); 
    745         background: -ms-linear-gradient(top, #eaeaea 0%, #e9e9e9 100%); 
    746         background: linear-gradient(top, #eaeaea 0%, #e9e9e9 100%); 
    747 } 
    748  
    749737div.more-headers { 
    750738        cursor: pointer; 
     
    758746 
    759747#all-headers { 
    760         position: absolute; 
    761         top: 11px; 
    762         left: 10px; 
    763         right: 10px; 
     748    position: relative; 
     749        margin: 0 10px; 
     750        padding: 0; 
    764751        height: 180px; 
    765         z-index: 500; 
    766752        border: 1px solid #bbb; 
    767         border-top: 0; 
    768         border-radius: 0 0 4px 4px; 
    769         -webkit-box-shadow: 0px 3px 4px 0px rgba(80, 80, 80, 0.6); 
    770         -moz-box-shadow: 0px 3px 4px 0px rgba(80, 80, 80, 0.6); 
    771         box-shadow: 0px 3px 4px 0px rgba(80, 80, 80, 0.6); 
     753        border-radius: 4px; 
    772754        background: #fff; 
    773         background: -moz-linear-gradient(top, #f0f0f0 0%, #fff 8%, #fff 100%); 
    774         background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f0f0f0), color-stop(8%,#fff), color-stop(100%,#fff)); 
    775         background: -o-linear-gradient(top, #f0f0f0 0%, #fff 8%, #fff 100%); 
    776         background: -ms-linear-gradient(top, #f0f0f0 0%, #fff 8%, #fff 100%); 
    777         background: linear-gradient(top,  #f0f0f0 0%, #fff 8%, #fff 100%); 
    778 } 
    779  
    780 #all-headers .ui-resizable-s { 
    781         bottom: -2px; 
    782755} 
    783756 
     
    785758        display: none; 
    786759        position: absolute; 
    787         top: 8px; 
     760        top: 0; 
    788761        left: 0; 
    789762        right: 0; 
    790         bottom: 8px; 
    791         padding: 0 10px; 
     763        bottom: 0; 
     764        padding: 2px 5px; 
    792765        overflow: auto; 
    793766        text-align: left; 
  • branches/release-0.8/skins/larry/svggradients.css

    r5810 r6130  
    138138} 
    139139 
    140 #full-headers { 
    141         background-image: url(svggradient.php?c=eaeaea;e9e9e9); 
    142 } 
    143  
    144 #all-headers { 
    145         background-image: url(svggradient.php?c=f3f3f3;ffffff); 
    146 } 
    147  
    148140 
    149141/*** jqueryui theme ***/ 
  • branches/release-0.8/skins/larry/ui.js

    r6061 r6130  
    7777      if (rcmail.env.action == 'show' || rcmail.env.action == 'preview') { 
    7878        layout_messageview(); 
    79         $("#all-headers").resizable({ handles: 's', minHeight: 50 }); 
     79        rcmail.addEventListener('aftershow-headers', function() { layout_messageview(); }); 
     80        rcmail.addEventListener('afterhide-headers', function() { layout_messageview(); }); 
    8081        $('#previewheaderstoggle').click(function(e){ toggle_preview_headers(this); return false }); 
    8182      } 
     
    292293    $('#messagecontent').css('top', ($('#messageheader').outerHeight() + 10) + 'px'); 
    293294    $('#message-objects div a').addClass('button'); 
    294      
     295 
    295296    if (!$('#attachment-list li').length) { 
    296297      $('div.rightcol').hide(); 
     
    550551      for (i in rcmail.env.spell_langs) { 
    551552        li = $('<li>'); 
    552         link = $('<a href="#">').text(rcmail.env.spell_langs[i]) 
     553        link = $('<a href="#"></a>').text(rcmail.env.spell_langs[i]) 
    553554          .addClass('active').data('lang', i) 
    554555          .click(function() { 
Note: See TracChangeset for help on using the changeset viewer.