/* * Kendo UI v2011.3.1129 (http://kendoui.com) * Copyright 2011 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at http://kendoui.com/license. * If you do not own a commercial license, this file shall be governed by the * GNU General Public License (GPL) version 3. For GPL requirements, please * review: http://www.gnu.org/copyleft/gpl.html */ (function(a,b){function e(f){var g=[],h=f.logic||"and",i,j,k,l,m,n,o,p=f.filters;for(i=0,j=p.length;i3?f!=="substringof"?m="{0}({2},"+m+")":m="{0}("+m+",{2})":m="{2} {0} "+m,f=c.format(m,f,o,k))),g.push(f);f=g.join(" "+h+" "),g.length>1&&(f="("+f+")");return f}var c=window.kendo,d={eq:"eq",neq:"ne",gt:"gt",gte:"ge",lt:"lt",lte:"le",contains:"substringof",endswith:"endswith",startswith:"startswith"};a.extend(!0,c.data,{schemas:{odata:{type:"json",data:"d.results",total:"d.__count"}},transports:{odata:{read:{cache:!0,dataType:"jsonp",jsonpCallback:"callback",jsonp:!1},parameterMap:function(b){var c=["$format=json","$inlinecount=allpages","$callback=callback"],d=b||{};d.skip&&c.push("$skip="+d.skip),d.take&&c.push("$top="+d.take),d.sort&&c.push("$orderby="+a.map(d.sort,function(a){var b=a.field.replace(/\./g,"/");a.dir==="desc"&&(b+=" desc");return b}).join(",")),d.filter&&c.push("$filter="+e(d.filter));return c.join("&")}}}})})(jQuery)