Changeset 7148
- Timestamp:
- 09/03/12 16:43:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/templates/default/js/edit_exmail.js
r7147 r7148 18 18 } 19 19 20 // Verifica vers ão do Firefox20 // Verifica versão do Firefox 21 21 var agt = navigator.userAgent.toLowerCase(); 22 22 var is_firefox_0 = agt.indexOf('firefox/1.0') != -1 && agt.indexOf('firefox/0.') ? true : false; … … 154 154 function submitValues(button){ 155 155 loadScript("expressoMail1_2/js/common_functions.js"); 156 button.disabled = true; //Desabilita Bot ão para evitar varios clicks156 button.disabled = true; //Desabilita Botão para evitar varios clicks 157 157 158 158 var typeField = document.getElementById('cal[type]'); … … 177 177 178 178 if( !isChecked && !document.getElementsByName( "cal[rpt_use_end]" )[0].checked && !(document.getElementsByName( "cal[recur_type]" )[0].value === "0")){ 179 alert("Agendamentos recorrentes precisam de data final da repeti ção");179 alert("Agendamentos recorrentes precisam de data final da repetição"); 180 180 button.disabled = false; 181 181 return false; … … 190 190 if(document.getElementsByName( "cal[rpt_use_end]" )[0].checked){ 191 191 if(!validate_date_order(document.getElementById('start[str]').value, document.getElementById('recur_enddate[str]').value)){ 192 alert("A data final n ão pode ser menor que a data inicial.");192 alert("A data final não pode ser menor que a data inicial."); 193 193 button.disabled = false; 194 194 return false; … … 197 197 //Valida data inicio nao nula 198 198 if(document.getElementById('start[str]').value == ''){ 199 alert("Necessario preencher a data de in Ãcio.");199 alert("Necessario preencher a data de início."); 200 200 document.getElementById('start[str]').focus(); 201 201 button.disabled = false; … … 207 207 document.getElementById('start[str]').value = ''; 208 208 document.getElementById('start[str]').focus(); 209 alert("A data de in Ãcio não é válida.");209 alert("A data de início não é válida."); 210 210 button.disabled = false; 211 211 return false; … … 217 217 document.getElementById('end[str]').value = ''; 218 218 document.getElementById('end[str]').focus(); 219 alert("A data de t érmino não é válida.");219 alert("A data de término não é válida."); 220 220 button.disabled = false; 221 221 return false; … … 227 227 document.getElementById('start_hour').value = ''; 228 228 document.getElementById('start_hour').focus(); 229 alert("A hora de in Ãcio deve ser números.");229 alert("A hora de início deve ser números."); 230 230 button.disabled = false; 231 231 return false; … … 235 235 document.getElementById('start_minute').value = ''; 236 236 document.getElementById('start_minute').focus(); 237 alert("A hora de in Ãcio deve ser números.");237 alert("A hora de início deve ser números."); 238 238 button.disabled = false; 239 239 return false; … … 243 243 document.getElementById('end_hour').value = ''; 244 244 document.getElementById('end_hour').focus(); 245 alert("A hora do t érmino deve ser números.");245 alert("A hora do término deve ser números."); 246 246 button.disabled = false; 247 247 return false; … … 251 251 document.getElementById('end_minute').value = ''; 252 252 document.getElementById('end_minute').focus(); 253 alert("A hora do t érmino deve ser números.");253 alert("A hora do término deve ser números."); 254 254 button.disabled = false; 255 255 return false; … … 265 265 document.getElementById('end_minute').value = ''; 266 266 document.getElementById('start_hour').focus(); 267 alert("A hora final n ão pode ser menor que a hora inicial.");267 alert("A hora final não pode ser menor que a hora inicial."); 268 268 button.disabled = false; 269 269 return false; … … 276 276 document.getElementById('end_minute').value = ''; 277 277 document.getElementById('start_hour').focus(); 278 alert("A hora final n ão pode ser menor que a hora inicial.");278 alert("A hora final não pode ser menor que a hora inicial."); 279 279 button.disabled = false; 280 280 return false; … … 328 328 } 329 329 330 //FECHA OS CONTATOS DIN ï¿œMICOS330 //FECHA OS CONTATOS DINÂMICOS 331 331 if( (e.keyCode == 27) && $( this ).data( "catcomplete" ).menu.active ){ 332 332 e.stopPropagation(); … … 405 405 var newList = ""; 406 406 if (mailList.val().indexOf(email) != -1){ 407 $.Zebra_Dialog('O email <b>'+ email +'</b> j áconsta na lista!');407 $.Zebra_Dialog('O email <b>'+ email +'</b> já consta na lista!'); 408 408 } 409 409 if (mailList.val().indexOf(',') > 0){ … … 491 491 }, 492 492 493 //EVENTO AO SELECIONAR UM CONTATO DIN ï¿œMICO493 //EVENTO AO SELECIONAR UM CONTATO DINÂMICO 494 494 select: function( event, ui ) { 495 495 event.preventDefault(); … … 503 503 }) 504 504 505 //MONTAGEM DA LISTA DE CONTATOS DIN ï¿œMICOS DO AUTO COMPLETE505 //MONTAGEM DA LISTA DE CONTATOS DINÂMICOS DO AUTO COMPLETE 506 506 .data( "catcomplete" )._renderItem = function( ul, item ) { 507 507 if($(ul).find("li").length < 50){ 508 508 var autocomplete = $(this)[0].element; 509 //c ï¿œlculo dinï¿œmico da largura da lista509 //cálculo dinâmico da largura da lista 510 510 var width = (item.label ? item.label.length : (item.value ? item.value.length : (item.email ? item.email.length : 20 ))); 511 511 width = width*5 + (is_ie ? 170 : 200) + 16; … … 527 527 'type': 'question', 528 528 'custom_class': (is_ie ? 'configure-zebra-dialog' : ''), 529 'title': 'Aten ção',530 'buttons': ['Sim','N ão'],529 'title': 'Atenção', 530 'buttons': ['Sim','Não'], 531 531 'overlay_opacity': '0.5', 532 532 'onClose': function(caption) { … … 536 536 updateDynamicContact(); 537 537 cache = new Array(); 538 }else if(caption == 'N ão'){538 }else if(caption == 'Não'){ 539 539 $(focusIn).focus(); 540 540 } … … 604 604 function fixBugInnerSelect(objeto,innerHTML){ 605 605 /****** 606 * select_innerHTML - altera o innerHTML de um select independente se éFF ou IE607 * Corrige o problema de n ão ser possÃvel usar o innerHTML no IE corretamente606 * select_innerHTML - altera o innerHTML de um select independente se é FF ou IE 607 * Corrige o problema de não ser possível usar o innerHTML no IE corretamente 608 608 * Veja o problema em: http://support.microsoft.com/default.aspx?scid=kb;en-us;276228 609 * Use a vontade mas coloque meu nome nos cr éditos. Dúvidas, me mande um email.610 * Vers ão: 1.0 - 06/04/2006611 * Autor: Micox - N áiron José C. Guimarães - micoxjcg@yahoo.com.br609 * Use a vontade mas coloque meu nome nos créditos. Dúvidas, me mande um email. 610 * Versão: 1.0 - 06/04/2006 611 * Autor: Micox - Náiron José C. Guimarães - micoxjcg@yahoo.com.br 612 612 * Parametros: 613 613 * objeto(tipo object): o select a ser alterado … … 621 621 selTemp = document.getElementById("micoxselect1") 622 622 selTemp.style.display="none" 623 if(innerHTML.toLowerCase().indexOf("<option")<0){//se n ão éoption eu converto623 if(innerHTML.toLowerCase().indexOf("<option")<0){//se não é option eu converto 624 624 innerHTML = "<option>" + innerHTML + "</option>" 625 625 }
Note: See TracChangeset
for help on using the changeset viewer.