Changeset 3834 for branches/2.2/expressoMail1_2/js
- Timestamp:
- 03/01/11 11:37:42 (13 years ago)
- Location:
- branches/2.2/expressoMail1_2/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/js/common_functions.js
r3742 r3834 989 989 } 990 990 } 991 992 function dateMask(inputData, e){ 993 if(document.all) // Internet Explorer 994 var tecla = event.keyCode; 995 else //Outros Browsers 996 var tecla = e.which; 997 998 if(tecla >= 47 && tecla < 58){ // numeros de 0 a 9 e "/" 999 var data = inputData.value; 1000 if (data.length == 2 || data.length == 5){ 1001 data += '/'; 1002 inputData.value = data; 1003 } 1004 } else { 1005 if(tecla == 8 || tecla == 0) // Backspace, Delete e setas direcionais(para mover o cursor, apenas para FF) 1006 return true; 1007 else 1008 return false; 1009 } 1010 } -
branches/2.2/expressoMail1_2/js/search.js
r3802 r3834 131 131 + ' <br style="margin-bottom:30px"/>' 132 132 + ' <label>'+get_lang("Since Date")+':</label>' 133 + ' <input style="margin-left: 6px;" type="text" id="since_date" size="8" >'133 + ' <input style="margin-left: 6px;" type="text" id="since_date" size="8" maxlength="10" onkeypress="return dateMask(this, event);">' 134 134 + ' <img id="since_date-trigger" src="/phpgwapi/templates/default/images/datepopup.gif" title="'+get_lang("Select Date")+'" style="cursor:pointer; cursor:hand;"/>' 135 135 + ' <label style="margin-left: 20px;">'+get_lang('Before Date')+':</label>' 136 + ' <input style="margin-left: 6px;" type="text" id="before_date" size="8" >'136 + ' <input style="margin-left: 6px;" type="text" id="before_date" size="8" maxlength="10" onkeypress="return dateMask(this, event);">' 137 137 + ' <img id="before_date-trigger" src="/phpgwapi/templates/default/images/datepopup.gif" title="'+get_lang("Select Date")+'" style="cursor:pointer; cursor:hand;"/>' 138 138 + ' <br style="margin-bottom:15px"/>' 139 139 140 140 + ' <label>'+get_lang('On Date')+':</label>' 141 + ' <input style="margin-left: 6px;" type="text" id="on_date" size="8" >'142 + ' <img style="margin-right: -8px" id="on_date-trigger" src="/phpgwapi/templates/default/images/datepopup.gif" title="'+get_lang("Select Date")+'" style="cursor:pointer; cursor:hand;"/> </spam>'141 + ' <input style="margin-left: 6px;" type="text" id="on_date" size="8" maxlength="10" onkeypress="return dateMask(this, event);">' 142 + ' <img style="margin-right: -8px" id="on_date-trigger" src="/phpgwapi/templates/default/images/datepopup.gif" title="'+get_lang("Select Date")+'" style="cursor:pointer; cursor:hand;"/><span> </span>' 143 143 + ' <br style="margin-bottom:30px"/>' 144 144
Note: See TracChangeset
for help on using the changeset viewer.