Changeset 76248c7 in github
- Timestamp:
- Apr 25, 2012 4:40:31 AM (13 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo
- Children:
- 1257a8e6
- Parents:
- fbe7b71
- Files:
-
- 5 edited
-
program/js/app.js (modified) (7 diffs)
-
program/steps/mail/func.inc (modified) (1 diff)
-
skins/default/mail.css (modified) (2 diffs)
-
skins/larry/mail.css (modified) (3 diffs)
-
skins/larry/ui.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/js/app.js
r390959b r76248c7 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') { … … 579 579 else if (this.task == 'addressbook') 580 580 this.list_contacts(props); 581 break;582 583 case 'load-headers':584 this.load_headers(obj);585 581 break; 586 582 … … 1110 1106 var func = command.replace(/-/g, '_'); 1111 1107 if (this[func] && typeof this[func] === 'function') { 1112 ret = this[func](props );1108 ret = this[func](props, obj); 1113 1109 } 1114 1110 break; … … 5851 5847 5852 5848 // display all-headers row and fetch raw message headers 5853 this. load_headers = function(elem)5849 this.show_headers = function(props, elem) 5854 5850 { 5855 5851 if (!this.gui_objects.all_headers_row || !this.gui_objects.all_headers_box || !this.env.uid) … … 5858 5854 $(elem).removeClass('show-headers').addClass('hide-headers'); 5859 5855 $(this.gui_objects.all_headers_row).show(); 5860 elem.onclick = function() { rcmail. hide_headers(elem); };5856 elem.onclick = function() { rcmail.command('hide-headers', '', elem); }; 5861 5857 5862 5858 // fetch headers only once … … 5868 5864 5869 5865 // hide all-headers row 5870 this.hide_headers = function( elem)5866 this.hide_headers = function(props, elem) 5871 5867 { 5872 5868 if (!this.gui_objects.all_headers_row || !this.gui_objects.all_headers_box) … … 5875 5871 $(elem).removeClass('hide-headers').addClass('show-headers'); 5876 5872 $(this.gui_objects.all_headers_row).hide(); 5877 elem.onclick = function() { rcmail. load_headers(elem); };5873 elem.onclick = function() { rcmail.command('show-headers', '', elem); }; 5878 5874 }; 5879 5875 -
program/steps/mail/func.inc
r0c25968 r76248c7 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'); -
skins/default/mail.css
r3d5240b7 r76248c7 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; -
skins/larry/mail.css
rce216f0 r76248c7 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; -
skins/larry/ui.js
r4dbc961 r76248c7 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();
Note: See TracChangeset
for help on using the changeset viewer.
