4 * Paul Tiseo ptiseo@wasteconsultants.com
\r
6 * Dual licensed under the MIT and GPL licenses:
\r
7 * http://www.opensource.org/licenses/mit-license.php
\r
8 * http://www.gnu.org/licenses/gpl.html
\r
11 getPostData : function(){
\r
13 if(!$t.grid) { return; }
\r
14 return $t.p.postData;
\r
16 setPostData : function( newdata ) {
\r
18 if(!$t.grid) { return; }
\r
19 // check if newdata is correct type
\r
20 if ( typeof(newdata) === 'object' ) {
\r
21 $t.p.postData = newdata;
\r
24 alert("Error: cannot add a non-object postData value. postData unchanged.");
\r
27 appendPostData : function( newdata ) {
\r
29 if(!$t.grid) { return; }
\r
30 // check if newdata is correct type
\r
31 if ( typeof(newdata) === 'object' ) {
\r
32 $.extend($t.p.postData, newdata);
\r
35 alert("Error: cannot append a non-object postData value. postData unchanged.");
\r
38 setPostDataItem : function( key, val ) {
\r
40 if(!$t.grid) { return; }
\r
41 $t.p.postData[key] = val;
\r
43 getPostDataItem : function( key ) {
\r
45 if(!$t.grid) { return; }
\r
46 return $t.p.postData[key];
\r
48 removePostDataItem : function( key ) {
\r
50 if(!$t.grid) { return; }
\r
51 delete $t.p.postData[key];
\r
53 getUserData : function(){
\r
55 if(!$t.grid) { return; }
\r
56 return $t.p.userData;
\r
58 getUserDataItem : function( key ) {
\r
60 if(!$t.grid) { return; }
\r
61 return $t.p.userData[key];
\r