Changeset 6130 in subversion
- Timestamp:
- Apr 27, 2012 3:13:19 AM (13 months ago)
- Location:
- branches/release-0.8
- Files:
-
- 8 edited
-
index.php (modified) (1 diff)
-
program/js/app.js (modified) (8 diffs)
-
program/steps/mail/func.inc (modified) (1 diff)
-
skins/default/mail.css (modified) (2 diffs)
-
skins/larry/iehacks.css (modified) (2 diffs)
-
skins/larry/mail.css (modified) (3 diffs)
-
skins/larry/svggradients.css (modified) (1 diff)
-
skins/larry/ui.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-0.8/index.php
r6078 r6130 130 130 if ($query['_task'] == 'login') 131 131 unset($query['_task']); 132 133 // prevent redirect to compose with specified ID (#1488226) 134 if ($query['_action'] == 'compose' && !empty($query['_id'])) 135 $query = array(); 132 136 } 133 137 -
branches/release-0.8/program/js/app.js
r6119 r6130 225 225 this.env.message_commands = ['show', 'reply', 'reply-all', 'reply-list', 'forward', 226 226 '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']; 228 228 229 229 if (this.env.action == 'show' || this.env.action == 'preview') { … … 578 578 else if (this.task == 'addressbook') 579 579 this.list_contacts(props); 580 break;581 582 case 'load-headers':583 this.load_headers(obj);584 580 break; 585 581 … … 1109 1105 var func = command.replace(/-/g, '_'); 1110 1106 if (this[func] && typeof this[func] === 'function') { 1111 ret = this[func](props );1107 ret = this[func](props, obj); 1112 1108 } 1113 1109 break; … … 1857 1853 html = expando; 1858 1854 else if (c == 'subject') { 1859 if (bw.ie) 1855 if (bw.ie) { 1860 1856 col.onmouseover = function() { rcube_webmail.long_subject_title_ie(this, message.depth+1); }; 1857 if (bw.ie8) 1858 tree = '<span></span>' + tree; // #1487821 1859 } 1861 1860 html = tree + cols[c]; 1862 1861 } … … 5830 5829 5831 5830 // display all-headers row and fetch raw message headers 5832 this. load_headers = function(elem)5831 this.show_headers = function(props, elem) 5833 5832 { 5834 5833 if (!this.gui_objects.all_headers_row || !this.gui_objects.all_headers_box || !this.env.uid) … … 5837 5836 $(elem).removeClass('show-headers').addClass('hide-headers'); 5838 5837 $(this.gui_objects.all_headers_row).show(); 5839 elem.onclick = function() { rcmail. hide_headers(elem); };5838 elem.onclick = function() { rcmail.command('hide-headers', '', elem); }; 5840 5839 5841 5840 // fetch headers only once … … 5847 5846 5848 5847 // hide all-headers row 5849 this.hide_headers = function( elem)5848 this.hide_headers = function(props, elem) 5850 5849 { 5851 5850 if (!this.gui_objects.all_headers_row || !this.gui_objects.all_headers_box) … … 5854 5853 $(elem).removeClass('hide-headers').addClass('show-headers'); 5855 5854 $(this.gui_objects.all_headers_row).hide(); 5856 elem.onclick = function() { rcmail. load_headers(elem); };5855 elem.onclick = function() { rcmail.command('show-headers', '', elem); }; 5857 5856 }; 5858 5857 -
branches/release-0.8/program/steps/mail/func.inc
r6052 r6130 987 987 global $OUTPUT; 988 988 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)"), ''); 991 991 992 992 $OUTPUT->add_gui_object('all_headers_row', 'all-headers'); -
branches/release-0.8/skins/default/mail.css
r6062 r6130 1287 1287 #headers-source 1288 1288 { 1289 margin: 0 02px 0;1289 margin: 2px 0; 1290 1290 padding: 0.5em; 1291 1291 height: 145px; … … 1293 1293 overflow: auto; 1294 1294 font-size: 11px; 1295 border: 1px solid # 999999;1295 border: 1px solid #CCC; 1296 1296 display: none; 1297 1297 text-align: left; -
branches/release-0.8/skins/larry/iehacks.css
r6040 r6130 144 144 } 145 145 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 154 146 #composeoptionsbox { 155 147 border-top: 1px solid #999; … … 160 152 height: 18px; 161 153 } 162 163 -
branches/release-0.8/skins/larry/mail.css
r6087 r6130 735 735 } 736 736 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 749 737 div.more-headers { 750 738 cursor: pointer; … … 758 746 759 747 #all-headers { 760 position: absolute; 761 top: 11px; 762 left: 10px; 763 right: 10px; 748 position: relative; 749 margin: 0 10px; 750 padding: 0; 764 751 height: 180px; 765 z-index: 500;766 752 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; 772 754 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;782 755 } 783 756 … … 785 758 display: none; 786 759 position: absolute; 787 top: 8px;760 top: 0; 788 761 left: 0; 789 762 right: 0; 790 bottom: 8px;791 padding: 0 10px;763 bottom: 0; 764 padding: 2px 5px; 792 765 overflow: auto; 793 766 text-align: left; -
branches/release-0.8/skins/larry/svggradients.css
r5810 r6130 138 138 } 139 139 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 148 140 149 141 /*** jqueryui theme ***/ -
branches/release-0.8/skins/larry/ui.js
r6061 r6130 77 77 if (rcmail.env.action == 'show' || rcmail.env.action == 'preview') { 78 78 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(); }); 80 81 $('#previewheaderstoggle').click(function(e){ toggle_preview_headers(this); return false }); 81 82 } … … 292 293 $('#messagecontent').css('top', ($('#messageheader').outerHeight() + 10) + 'px'); 293 294 $('#message-objects div a').addClass('button'); 294 295 295 296 if (!$('#attachment-list li').length) { 296 297 $('div.rightcol').hide(); … … 550 551 for (i in rcmail.env.spell_langs) { 551 552 li = $('<li>'); 552 link = $('<a href="#"> ').text(rcmail.env.spell_langs[i])553 link = $('<a href="#"></a>').text(rcmail.env.spell_langs[i]) 553 554 .addClass('active').data('lang', i) 554 555 .click(function() {
Note: See TracChangeset
for help on using the changeset viewer.
