source: sandbox/2.4.2-expresso1/prototype/modules/mail/templates/followupflag_alarm_list.ejs @ 6751

Revision 6751, 1.5 KB checked in by marcieli, 10 years ago (diff)

Ticket #2952 - Commit dos arquivos da implementação da nova funcionalidade.

Line 
1<div class="content-alarm">
2        <span class="subtitle-alarm">
3                <strong><%=data.caption %></strong>
4        </span>
5        <ul class="message-list" style="float: left;">
6        <%
7        for(var i=0; i<data.alarms.length; i++){
8                if(data.type == 'filtersDeadline')
9                        var openMessageScript = "$(this).parent().remove(); var msgs_count = $('.filtersDeadline').find('li.message-item').length; if(msgs_count == 0){ $('.filtersDeadline').remove(); } $('.subtitle-alarm').find('strong').html((msgs_count == 1)?get_lang('"+data.captions.singular+"'):get_lang('"+data.captions.plural+"', msgs_count)); cExecute('$this.imap_functions.open_flagged_msg&msg_number="+data.alarms[i].msg_number+"&msg_folder="+data.alarms[i].msg_folder+"&alarm=true', show_msg);";
10                else   
11                        var openMessageScript = "cExecute('$this.imap_functions.get_info_msg&msg_number="+data.alarms[i].msg_number+"&msg_folder="+data.alarms[i].msg_folder+"&alarm=true', show_msg);";
12        %>
13                <li class="message-item <%= data.alarms[i].id %>">
14                        <a onclick="<%=openMessageScript%>">
15                                <%= data.alarms[i].a %>
16                        </a>
17                        <%if( data.type == 'alarmDeadline'){%>
18                                <a onclick='cancelAlarm(this, "<%= data.alarms[i].id %>", "<%= data.alarms[i].msg_number %>", "<%= data.alarms[i].msg_folder %>");' class="tiny button delete">close</a>
19                        <%}%>
20                </li>
21        <%
22        }
23        %>
24        </ul>
25        <fieldset class="alert-options">
26                <input type="checkbox" class="stop-alert-alarm" name="stopAlert"> <label><%= get_lang("Don't show this window anymore today.")%></label>
27                <button class="confirm-alarm">Ok</button>
28        </fieldset>
29</div>
Note: See TracBrowser for help on using the repository browser.