Changeset 6768 for sandbox/2.4.2-expresso1/prototype/modules/calendar/js
- Timestamp:
- 07/12/12 14:40:42 (12 years ago)
- Location:
- sandbox/2.4.2-expresso1/prototype/modules/calendar/js
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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();
Note: See TracChangeset
for help on using the changeset viewer.