Changeset 6768
- Timestamp:
- 07/12/12 14:40:42 (11 years ago)
- Location:
- sandbox/2.4.2-expresso1
- Files:
-
- 5 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.2-expresso1/expressoMail1_2/index.php
r6665 r6768 72 72 <script type="text/javascript" src="../prototype/plugins/contextmenu/jquery.contextMenu.js"></script> 73 73 <!-- <script type="text/javascript" src="../prototype/plugins/contextmenu/jquery.ui.position.js"></script> --> 74 74 75 75 <script type="text/javascript" src="../prototype/modules/calendar/js/timezone.js"></script> 76 76 <script type="text/javascript" src="../prototype/plugins/dateFormat/dateFormat.js"></script> 77 77 <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.date.js"></script> 78 <script type="text/javascript" src="../prototype/modules/calendar/js/desktop.notification.js"></script> 78 79 <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.codecs.js"></script> 80 <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.alarms.js"></script> 79 81 <link rel="stylesheet" type="text/css" href="../prototype/plugins/freeow/style/freeow/freeow.css" > 80 82 <script type="text/javascript" src="../prototype/plugins/freeow/jquery.freeow.min.js"></script> -
sandbox/2.4.2-expresso1/expressoMail1_2/js/common_functions.js
r6707 r6768 1241 1241 return folderName; 1242 1242 } 1243 1244 function useDesktopNotification(){ 1245 //return preferences.notifications; 1246 return true; 1247 } -
sandbox/2.4.2-expresso1/prototype/modules/calendar/js/calendar.codecs.js
r6533 r6768 22 22 fontColor: "fff", 23 23 timezone: 'America/Sao_Paulo', 24 weekStart: 'SUN' 24 weekStart: 'SUN', 25 useDesktopNotification: 0 25 26 }; 26 27 -
sandbox/2.4.2-expresso1/prototype/modules/calendar/js/init.js
r6444 r6768 1 1 $(document).ready(function() { 2 2 3 //Remove o icone de configuraçõe padrão antigo do expresso 3 4 $('#sideboxdragarea').addClass('hidden'); … … 348 349 //listEvents(); 349 350 }); 351 352 353 function useDesktopNotification(){ 354 return !!parseInt(User.preferences.useDesktopNotification); 355 } -
sandbox/2.4.2-expresso1/prototype/modules/calendar/js/load.js
r6444 r6768 94 94 } 95 95 96 Alarms = {97 load: function(){98 var eventsDay = DataLayer.get('alarm:schedulable',['=', 'date', Date.today().getTime()]);99 if(eventsDay)100 for(var i = 0; i < eventsDay.length; i++){101 this.addAlarm( eventsDay[i] );102 }103 },104 105 addAlarm: function( eventDay ){106 if(!DataLayer.tasks[parseInt(eventDay.sendTime)]){107 DataLayer.task( parseInt(eventDay.sendTime) , function( timestamp ){108 var path = User.moduleName == 'expressoCalendar' ? '' : '../prototype/modules/calendar/';109 DataLayer.render(path+'templates/alarm.ejs',{110 event: eventDay111 }, function( html ){112 $.Zebra_Dialog(html , {113 'type': 'question',114 'overlay_opacity': '0.5',115 'buttons': ['Fechar'],116 'onClose': function(clicked) {}117 });118 });119 });120 }121 }122 }123 124 96 Calendar.load(); 125 Alarms.load(); -
sandbox/2.4.2-expresso1/prototype/modules/calendar/templates/index.ejs
r6525 r6768 92 92 <script type='text/javascript' src='<?= MODULESURL ?>/js/calendar.codecs.js'></script> 93 93 <script type='text/javascript' src='<?= MODULESURL ?>/js/load.js'></script> 94 <script type='text/javascript' src='<?= MODULESURL ?>/js/calendar.alarms.js'></script> 94 95 95 96 <script type='text/javascript' src='<?= MODULESURL ?>/js/I18n.js'></script> … … 97 98 <script type="text/javascript" src="<?= MODULESURL ?>/js/init.js"></script> 98 99 <script type="text/javascript" src="<?= MODULESURL ?>/js/drag_area.js"></script> 100 <script type="text/javascript" src="<?= MODULESURL ?>/js/desktop.notification.js"></script> 99 101 100 102 </head> -
sandbox/2.4.2-expresso1/prototype/modules/calendar/templates/preferences_calendar.ejs
r5510 r6768 72 72 73 73 <p class="input-group"> 74 <label for="defaultCalendar">Agenda padrão:</label> 75 <select name="defaultCalendar" > 76 <%for(var i = 0; i < data.calendars.length; i++){%> 77 <option value="<%=data.calendars[i].id%>"> <%= data.calendars[i].name %></option> 78 <%}%> 74 <label for="useDesktopNotification">Usar alarme desktop:</label> 75 <select name="useDesktopNotification" > 76 <option value="1" <%= data.preferences.useDesktopNotification == '1' ? 'selected="selected"' : '' %>>Sim</option> 77 <option value="0" <%= data.preferences.useDesktopNotification != '1' ? 'selected="selected"' : '' %>>Não</option> 79 78 </select> 80 79 </p>
Note: See TracChangeset
for help on using the changeset viewer.