Ignore:
Timestamp:
08/17/12 11:30:46 (12 years ago)
Author:
gustavo
Message:

Ticket #2911 - Melhoria na disposição e exibição das abas

Location:
sandbox/newExpressoMail
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sandbox/newExpressoMail/expressoMail1_2/index.php

    r6997 r7046  
    6868                <script type="text/javascript" src="../prototype/plugins/fileupload/jquery.fileupload.js"></script> 
    6969                <script type="text/javascript" src="../prototype/plugins/fileupload/jquery.iframe-transport.js"></script> 
    70                  
     70                <script type="text/javascript" src="../prototype/plugins/scrollable-tabs/jquery.scrollabletab.js"></script> 
    7171                <script type="text/javascript" src="../prototype/plugins/qtip/jquery.qtip-1.0.0-rc3.min.js"></script> 
    7272                <script type="text/javascript" src="../prototype/plugins/contextmenu/jquery.contextMenu.js"></script> 
  • sandbox/newExpressoMail/expressoMail1_2/js/abas.js

    r7043 r7046  
    1111 
    1212var ptabs = $("#ptabs").tabs({  
    13         tabTemplate: "<li><a href='#{href}'>#{label}</a> <span class='ui-icon ui-icon-close' title='Fechar Aba'>Fechar Aba</span></li>",  
     13        tabTemplate: "<li role='tab'><a href='#{href}'>#{label}</a> <span class='ui-icon ui-icon-close' title='Fechar Aba'>Fechar Aba</span></li>",  
    1414        add: function( event, ui ) {  
    1515                countID++;  
     
    3030});  
    3131 
     32//$(ptabs).find(".ui-tabs-nav").wrap("<div class='scroll-tabs'></div>"); 
    3233/*  
    3334        method : createTab 
     
    5152                $(ptabs).tabs("add", "#ptabs_"+(href ? href : countID), (label.length > 21 ? label.substring(0, 18)+"..." : label)); 
    5253                if(typeof(callback) == 'function')  
    53                         callback(); 
     54                        callback($("#ptabs_"+(href ? href : countID))); 
    5455        }else{ 
    5556                $(ptabs).tabs( "select", indexTab(href) ); 
  • sandbox/newExpressoMail/expressoMail1_2/js/main.js

    r7043 r7046  
    100100 
    101101                $( "#ptabs").find( ".ui-tabs-nav" ).sortable({  
    102                         axis: "x",  
    103102                        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                        } 
    104110                }).disableSelection(); 
    105111 
     
    565571                        var content = $(DataLayer.render("../prototype/modules/mail/templates/email.ejs", {info : msg_info})); 
    566572 
    567                         createTab(sbj, content.html(), id_msg_read); 
    568  
    569                         content.find(".message-flags").buttonset(); 
     573                        createTab(sbj, content.html(), id_msg_read, function(content){ 
     574                content.find(".message-flags").buttonset(); 
     575                content.find(".message-tags").button({ 
     576                    icons: { 
     577                        primary: "ui-icon-tag", 
     578                        secondary: "ui-icon-triangle-1-s" 
     579                    }, 
     580                    text: false 
     581                }).next().button({ 
     582                    icons: { 
     583                        secondary: "ui-icon-triangle-1-s" 
     584                    }, 
     585                    text: true 
     586                }).next().button({ 
     587                    icons: { 
     588                        primary: "ui-icon-trash" 
     589                    }, 
     590                    text: false 
     591                }).next().button({ 
     592                    icons: { 
     593                        primary: "ui-icon-gear", 
     594                        secondary: "ui-icon-triangle-1-s" 
     595                    }, 
     596                    text: false 
     597                }); 
     598            }); 
     599 
    570600                        //$(".message-flags").buttonset(); 
    571601                        //$(".button").button(); 
  • sandbox/newExpressoMail/prototype/modules/mail/templates/detailedfoldertree.ejs

    r6773 r7046  
    2222                  } 
    2323 
    24                   %><li id="<%= array_trees[i].id %>" class="closed"><span class="folder <%= folder_class %>" title="<%= folder_name %>" style="text-align : left; position : static;"><%= folder_name %> 
     24                  %><li id="<%= array_trees[i].id %>" class="closed" role="folder"><span class="folder <%= folder_class %>" title="<%= folder_name %>" style="text-align : left; position : static;"><%= folder_name %> 
    2525                  <% if(array_trees[i].messageCount.unseen > 0){        %> 
    2626                        <span style="text-align : left;">[<label id="dftree_<%= array_trees[i].id%>_unseen" class="folder_unseen" style="color : red; text-align : left;"><%= array_trees[i].messageCount.unseen %></label>]</span> 
Note: See TracChangeset for help on using the changeset viewer.