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