Changeset 7064 for sandbox/newExpressoMail/expressoMail1_2/js/main.js
- Timestamp:
- 08/17/12 16:48:33 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/newExpressoMail/expressoMail1_2/js/main.js
r7046 r7064 101 101 $( "#ptabs").find( ".ui-tabs-nav" ).sortable({ 102 102 items: "li:not(.ui-tab-disabled)", 103 helper : function( a, b){104 console.log(a);105 console.log(b);106 var oi = $(b).clone();107 oi.addClass("ui-corner-all").css("width", "auto").find("span.ui-icon-close").hide().end().find("a").html("Mover "+oi.find("a").html());108 return oi;109 }103 helper : function(e, drag){ 104 var helper = $(drag).clone(); 105 helper.addClass("ui-corner-all").css("width", "auto").find("span.ui-icon-close").hide().end().find("a").html("Mover "+helper.find("a").html()); 106 return helper; 107 }, 108 placeholder: 'ui-state-highlight', 109 forcePlaceholderSize: true 110 110 }).disableSelection(); 111 111 … … 569 569 else { 570 570 var sbj = msg_info.subject.length < 21 ? msg_info.subject : msg_info.subject.substr(0,21) + "..."; 571 var content = $(DataLayer.render("../prototype/modules/mail/templates/email.ejs", {info : msg_info }));571 var content = $(DataLayer.render("../prototype/modules/mail/templates/email.ejs", {info : msg_info, ID : id_msg_read})); 572 572 573 573 createTab(sbj, content.html(), id_msg_read, function(content){ 574 content.find(".message-flags").find(".message-important-flag").button({ 575 icons: { 576 primary: "ui-icon-notice" 577 }, 578 text: false 579 }).end().find(".message-unread-flag").button({ 580 icons: { 581 primary: "ui-icon-mail-closed" 582 }, 583 text: false 584 }).end().find(".message-spam-flag").button({ 585 icons: { 586 primary: "ui-icon-alert" 587 }, 588 text: false 589 }).end().find(".message-followup-flag").button({ 590 icons: { 591 primary: "ui-icon-flag" 592 }, 593 text: false 594 }); 574 595 content.find(".message-flags").buttonset(); 596 597 content.find(".messages-controll").find(".message-prev").button({ 598 icons: { 599 primary: "ui-icon-carat-1-w" 600 }, 601 text: false 602 }).next().button({ 603 icons: { 604 primary: "ui-icon-carat-1-e" 605 }, 606 text: false 607 }); 608 content.find(".messages-controll").buttonset(); 575 609 content.find(".message-tags").button({ 576 610 icons: { … … 589 623 }, 590 624 text: false 591 }).next().button({ 625 }); 626 content.find(".messages-preferences").button({ 592 627 icons: { 593 628 primary: "ui-icon-gear", … … 595 630 }, 596 631 text: false 597 }) ;632 }).css("width", "45px"); 598 633 }); 599 634
Note: See TracChangeset
for help on using the changeset viewer.