source: sandbox/2.4.2-expresso2/prototype/modules/mail/templates/float_folder_menu.ejs @ 6875

Revision 6875, 1.8 KB checked in by gustavo, 10 years ago (diff)

Ticket #2954 - Corrigidos alguns bugs de anexos e selecao de mensagens

  • Property svn:executable set to *
Line 
1<%
2        var specialFolders = {
3                        INBOX: {name:'Caixa de Entrada'},
4                        Inbox: {name:'Caixa de Entrada'},
5                        Root : {name:'root'}
6                };
7        specialFolders[trashfolder] = {name:'Lixeira', classe:'trash'};
8        specialFolders[draftsfolder] = {name:'Rascunhos', classe:'drafts'};
9        specialFolders[spamfolder] = {name:'Spam', classe:'spam'};
10        specialFolders[sentfolder] = {name:'Enviados', classe:'sent'};
11%>
12
13<span class="float-menu">
14        <%if(!data.flag.valid){ %>
15                <span class="ui-icon ui-icon-document float-menu-new floating-default" title="Nova Pasta"></span> 
16                <%if(!specialFolders[data.name_folder]){ %>
17                        <span class="ui-icon ui-icon-pencil float-menu-edit floating-default" title="Editar Pasta"></span> 
18                        <span class="ui-icon ui-icon-close float-menu-remove floating-default" title="Excluir Pasta"></span> 
19                <%}
20                else if(data.name_folder == trashfolder){%>
21                        <span class="ui-icon ui-icon-trash float-menu-clean floating-default" onclick="empty_trash_imap();" title="Limpar Pasta"></span> 
22                <%}
23                else if(data.name_folder == spamfolder){%>
24                        <span class="ui-icon ui-icon-trash float-menu-clean floating-default" onclick="empty_spam_imap();" title="Limpar Pasta"></span> 
25                <%}%>
26        <%}else{ %>
27        <%      if(parseInt(data.acl.create)){%>
28                        <span class="ui-icon ui-icon-document float-menu-new floating-default" title="Nova Pasta"></span>
29        <%              if(parseInt(data.acl.delete) && parseInt(data.acl.rename) && !specialFolders[data.name_folder] && !data.flag.head){ %>
30                                <span class="ui-icon ui-icon-pencil float-menu-edit floating-default" title="Editar Pasta"></span> 
31        <%              } %>
32
33        <%      } %>
34        <%      if(parseInt(data.acl.delete) && !specialFolders[data.name_folder] && !data.flag.head){ %>
35                        <span class="ui-icon ui-icon-close float-menu-remove floating-default" title="Excluir Pasta"></span>
36                <%}%>
37        <%}%>
38 </span>
Note: See TracBrowser for help on using the repository browser.