Revision 6997,
1.1 KB
checked in by gustavo, 12 years ago
(diff) |
Ticket #2939 - Melhorias na exibicao das abas e da listagem de email
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Line | |
---|
1 | var BordersArray = new Array(); |
---|
2 | var countBorders = 0; |
---|
3 | var partMsgs = new Array(); |
---|
4 | var msgAttachments = new Array(); |
---|
5 | var uidsSave = new Array(); |
---|
6 | var zebraDiscardEventDialog = false; |
---|
7 | var saveBorderError = new Array(); |
---|
8 | var countID = 2; |
---|
9 | var tab_content = ""; |
---|
10 | |
---|
11 | var ptabs = $("#ptabs").tabs({ |
---|
12 | tabTemplate: "<li><a href='#{href}'>#{label}</a> <span class='ui-icon ui-icon-close'>Remover Aba</span></li>", |
---|
13 | add: function( event, ui ) { |
---|
14 | countID++; |
---|
15 | $(ptabs).tabs('select', '#' + ui.panel.id); |
---|
16 | $.cookie('open_tabs', ($.cookie('open_tabs') ? $.cookie('open_tabs')+"," : "") +ui.panel.id.substring(6)); |
---|
17 | $( ui.panel ).append("<p>"+tab_content+"</p>"); |
---|
18 | }, |
---|
19 | show: function(event, ui){ |
---|
20 | resizeWindow(); |
---|
21 | }, |
---|
22 | cookie: { |
---|
23 | expires: 1 |
---|
24 | } |
---|
25 | }); |
---|
26 | |
---|
27 | //CREATE A NEW TAB |
---|
28 | function createTab(href, label, conteudo, callback){ |
---|
29 | if( !$("#ptabs_"+href).length){ |
---|
30 | tab_content = conteudo; |
---|
31 | $(ptabs).tabs("add", "#ptabs_"+href, (label.length > 21 ? label.substring(0, 15)+"..." : label)); |
---|
32 | if(callback) |
---|
33 | callback(); |
---|
34 | }else{ |
---|
35 | var index = $( "li", $(ptabs) ).index( $('[href="#ptabs_'+ href +'"]').parent() ); |
---|
36 | $(ptabs).tabs( "select", index ); |
---|
37 | } |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.