forked from icstars/c35
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathref2
More file actions
93 lines (64 loc) · 1.85 KB
/
ref2
File metadata and controls
93 lines (64 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
trng_cors_typ
trng_cors_nm
trng_cors_nbr
trng_cors_strt_dt
trng_cors_end_dt
trng_cors_totl_nbr_hrs
trng_cors_locn
trng_cors_cost
Trng_cors_rltd_exp_amt
Trng_reqst_cors_bnft_tx
Trng_Cors_Budg_Pln_Flg
Trng_Cors_Not_Budg_Pln_Rsn_Tx
Vndr_nm
Vndr_Mail_Addr
Vndr_Mail_City
Vndr_Mail_St
Vndr_Mail_Zip_Cd
Trng_Reqst_Fwd_Actg_Paym_Flg
====================================================
EXTRACT( month FROM TIMESTAMP '2001-02-16 20:38:40')
, EXTRACT( year FROM TIMESTAMP
===================================================
$(document).ready(function(){
$('#approve').on('click',(function(){
var approve = {
trng_request_immed_supv_apv_flg : $approve.val()
};
$.ajax({
type: 'POST',
url: '/getApp',
data: approve,
success: function(newApp){
alert("successful submission");
}
});
}));
});
============================================================
$(document).ready(function() {
$('button[name="approve"]').click(function(){
//do stuff
$(this).addClass('clicked');
})
$('button[name="reject"]').click(function(){
//do stuff
$(this).addClass('clicked');
})
$('button[name="cancel"]').click(function(){
//do stuff
$(this).addClass('clicked');
})
$('approve').submit(function(event) {
var val = $("button.clicked[type=submit]").attr('name').removeClass('clicked');
alert(val);
if (val == 'approve') {
alert('approve');
} else if (val == 'reject') {
alert('reject');
} else if (val == 'cancel') {
alert('cancel');
}
return false;
});
});