Changeset 6788
- Timestamp:
- 07/16/12 14:34:56 (12 years ago)
- Location:
- sandbox/2.4.2-expresso1
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.2-expresso1/expressoMail1_2/js/main.js
r6777 r6788 7 7 var results_search_messages = ""; 8 8 var cabecalho = '<h4>ExpressoLivre - ExpressoMail</h4>'; 9 // Variavel para controle de atualização das mensagens listadas na modal de alerta de filtro por remetente10 var checkAlarmsFilter = false;11 9 12 10 var auxNotificationCriteriaVetor = []; … … 82 80 83 81 if(preferences.show_name_print_messages == "1") { 84 82 var getUserName = document.getElementById("user_info"); 85 83 var userName = getUserName.innerHTML; 86 84 var position = userName.indexOf("-"); … … 575 573 for(var i=data.length - differenceOfNewCriteria; i < data.length; i++){ 576 574 577 desktopNotification.sentNotification("",get_lang("Filter criteria"),data[i].from+" - "+data[i].subject); 578 575 desktopNotification.sentNotification("",get_lang("Filter criteria"), truncate(new Date(data[i].udate).toString('dd/MM HH:mm') + ' - ' + data[i].from+' - '+data[i].subject, 75)); 579 576 desktopNotification.showNotification(false, function(){ 580 577 window.focus(); … … 590 587 getFromAlertRules(); 591 588 var handler_refresh = function(data){ 592 handlerMessageFilter = function (data) { 593 notificationFilter(data, notifyPermission); 594 if(checkAlarmsFilter){ 595 alarmFollowupflagged('filtersAlarms', data); 596 } 597 checkAlarmsFilter = true; 598 589 handlerMessageFilter = function (data) { 590 notificationFilter(data, notifyPermission); 591 alarmFollowupflagged('filtersAlarms', data); 599 592 } 600 593 /* Busca nas pastas indexadas para ver se há novas mensagens com a flag $FilteredMessage */ -
sandbox/2.4.2-expresso1/expressoMail1_2/setup/phpgw_pt-br.lang
r6777 r6788 132 132 Do you really want to empty your trash folder? expressoMail1_2 pt-br Você tem certeza que deseja limpar sua lixeira? 133 133 Do you wanna receive an alert for new messages? expressoMail1_2 pt-br Você quer receber um alerta para mensagens novas? 134 135 134 Wish you receive notifications for: "New messages", "Filter criteria", "Event alerts"? expressoMail1_2 pt-br Exibir notificações de: "Nova mensagem", "Criterio atendido", "Alerta de evento"? 136 137 138 139 135 Do you want to automatically display the message header? expressoMail1_2 pt-br Você deseja exibir automaticamente o cabecalho da mensagem? 140 136 Do you want to block this e-mail? expressoMail1_2 pt-br Você gostaria de bloquear este e-mail? -
sandbox/2.4.2-expresso1/prototype/modules/calendar/interceptors/DBMapping.php
r6533 r6788 66 66 if (isset($params['type'])) 67 67 $params['type'] = self::codeAlarmType($params['type']); 68 else{ 69 $alarm = Controller::read( array('concept' => 'alarm' , 'id' => $params['id'] )); 70 71 $params['unit'] = $alarm['unit']; 72 } 73 $params['offset'] = $params['time'] * 1000; 74 75 76 switch( strtolower($params['unit']) ) 77 { 78 case 'd': $params['offset'] *= 24; 79 case 'h': $params['offset'] *= 60; 80 case 'm': $params['offset'] *= 60; 81 } 82 68 83 } 69 84 -
sandbox/2.4.2-expresso1/prototype/modules/calendar/js/calendar.alarms.js
r6782 r6788 27 27 */ 28 28 desktopNotification.showNotification(false, function(){ 29 console.log('nice'); 29 30 window.focus(); 30 31 this.cancel(); -
sandbox/2.4.2-expresso1/prototype/modules/calendar/js/desktop.notification.js
r6774 r6788 9 9 this.installDektopNotificationAddon(); 10 10 11 if(window.webkitNotifications && window.webkitNotifications.checkPermission()) 12 window.webkitNotifications.requestPermission(); 11 if(window.webkitNotifications && window.webkitNotifications.checkPermission()){ 12 if($.browser.safari){ 13 $.Zebra_Dialog('Deseja instalar o plugin de notificação desktop?', { 14 'custom_class': 'request-notification-permission', 15 'type': 'question', 16 'overlay_opacity': '0.5', 17 'buttons': ['Não', 'Sim'] 18 }); 13 19 20 $('div.ZebraDialog.request-notification-permission a').click(function() { 21 if($(this).html() == 'Sim') 22 window.webkitNotifications.requestPermission(); 23 }); 24 }else 25 window.webkitNotifications.requestPermission(); 26 } 14 27 } 15 28 }, … … 17 30 installDektopNotificationAddon: function(){ 18 31 19 var params = {20 "Foo": {21 URL: '../prototype/plugins/desktop.notification/html_desktop_notifications-1.0.7-fx.xpi' ,22 IconURL:'../prototype/plugins/desktop.notification/desktop-notification.png',23 //Hash:'sha1:28857e60d043447c5f4550853f2d40770b326a13',24 toString: function () {25 return this.URL;26 }27 }28 };32 var params = { 33 "Foo": { 34 URL: '../prototype/plugins/desktop.notification/html_desktop_notifications-1.0.7-fx.xpi' , 35 IconURL:'../prototype/plugins/desktop.notification/desktop-notification.png', 36 //Hash:'sha1:28857e60d043447c5f4550853f2d40770b326a13', 37 toString: function () { 38 return this.URL; 39 } 40 } 41 }; 29 42 30 InstallTrigger.install(params);43 InstallTrigger.install(params); 31 44 32 return false;45 return false; 33 46 }, 34 47 … … 73 86 .focus(function() { 74 87 activePage = true; 75 if( !desktopNotification.verifyComplement()){88 if(desktopNotification.verifyComplement()){ 76 89 setTimeout(function(){ 77 90
Note: See TracChangeset
for help on using the changeset viewer.