Changeset 17483 for schedule/js/function.js
- Timestamp:
- 01/04/14 15:55:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/js/function.js
r17482 r17483 3 3 4 4 var currentDate; 5 var count; 5 6 6 7 function GetDate(d,m,y) 7 8 { 8 9 currentDate = y+'-'+m+'-'+d; 10 count = 1; 9 11 $('document').ready(function(){ 10 12 var Gdate = y+'-'+m+'-'+d; 11 13 $('#save').click(function(){ 12 if( $('#save').val()=='SAVE')14 if(($('#save').val()=='SAVE') && count==1) 13 15 { 16 count = 0; 14 17 Gdate = currentDate; 15 18 alert("Save: " + Gdate); … … 27 30 }); 28 31 } 29 else 32 else if(($('#save').val()=='SAVE') && count==1) 30 33 { 34 count = 0; 31 35 Gdate = currentDate; 32 36 alert("Update: " + Gdate);
Note:
See TracChangeset
for help on using the changeset viewer.