Changeset 7102 for trunk/prototype/modules/calendar/js
- Timestamp:
- 08/22/12 15:07:23 (12 years ago)
- Location:
- trunk/prototype/modules/calendar/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/js/helpers.js
r7022 r7102 942 942 timeFormat: "hh:mm tt", 943 943 onSelect: function (selectedDateTime){ 944 if(!(User.preferences.hourFormat.length == 5)) 945 $(this).val(selectedDateTime.replace(/[\.]/gi, "")); 946 updateMap(); 944 if ((selectedDateTime.value == '__:__') || (selectedDateTime.value == '__:__ __')) 945 selectedDateTime.value = ""; 946 if(!(User.preferences.hourFormat.length == 5)) 947 $(this).val(selectedDateTime.replace(/[\.]/gi, "")); 948 updateMap(); 947 949 }, 948 950 onClose : function (selectedDateTime){ 949 951 if(!(User.preferences.hourFormat.length == 5)) 950 952 $(this).val(selectedDateTime.replace(/[\.]/gi, "")); 953 }, 954 beforeShow: function (selectedDateTime) { 955 if ((selectedDateTime.value == '__:__') || (selectedDateTime.value == '__:__ __')) 956 selectedDateTime.value = ""; 951 957 } 952 958 }); -
trunk/prototype/modules/calendar/js/task.helpers.js
r7068 r7102 515 515 timeFormat: "hh:mm tt", 516 516 onSelect: function (selectedDateTime) { 517 if ((selectedDateTime.value == '__:__') || (selectedDateTime.value == '__:__ __')) 518 selectedDateTime.value = ""; 519 517 520 if (!(User.preferences.hourFormat.length == 5)) $(this).val(selectedDateTime.replace(/[\.]/gi, "")); 518 521 updateMap(); … … 520 523 onClose: function (selectedDateTime) { 521 524 if (!(User.preferences.hourFormat.length == 5)) $(this).val(selectedDateTime.replace(/[\.]/gi, "")); 525 }, 526 beforeShow: function (selectedDateTime) { 527 if ((selectedDateTime.value == '__:__') || (selectedDateTime.value == '__:__ __')) 528 selectedDateTime.value = ""; 522 529 } 523 530 });
Note: See TracChangeset
for help on using the changeset viewer.