2 * jqGrid 3.3 - jQuery Grid
\r
3 * Copyright (c) 2008, Tony Tomov, tony@trirand.com
\r
4 * Dual licensed under the MIT and GPL licenses
\r
5 * http://www.opensource.org/licenses/mit-license.php
\r
6 * http://www.gnu.org/licenses/gpl.html
\r
7 * Date: 2008-10-14 rev 64
\r
10 ;(function($){$.fn.extend({getPostData:function(){var $t=this[0];if(!$t.grid){return;}
11 return $t.p.postData;},setPostData:function(newdata){var $t=this[0];if(!$t.grid){return;}
12 if(typeof(newdata)==='object'){$t.p.postData=newdata;}
13 else{alert("Error: cannot add a non-object postData value. postData unchanged.");}},appendPostData:function(newdata){var $t=this[0];if(!$t.grid){return;}
14 if(typeof(newdata)==='object'){$.extend($t.p.postData,newdata);}
15 else{alert("Error: cannot append a non-object postData value. postData unchanged.");}},setPostDataItem:function(key,val){var $t=this[0];if(!$t.grid){return;}
16 $t.p.postData[key]=val;},getPostDataItem:function(key){var $t=this[0];if(!$t.grid){return;}
17 return $t.p.postData[key];},removePostDataItem:function(key){var $t=this[0];if(!$t.grid){return;}
18 delete $t.p.postData[key];},getUserData:function(){var $t=this[0];if(!$t.grid){return;}
19 return $t.p.userData;},getUserDataItem:function(key){var $t=this[0];if(!$t.grid){return;}
20 return $t.p.userData[key];}});})(jQuery);