Changeset 6443 for trunk/prototype/api/datalayer.js
- Timestamp:
- 06/06/12 19:52:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/api/datalayer.js
r6412 r6443 1 2 (function($){$.parseQuery=function(options){var config={query:window.location.search||""},params={};if(typeof options==='string'){options={query:options};} 3 $.extend(config,$.parseQuery,options);config.query=config.query.replace(/^\?/,'');$.each(config.query.split(config.separator),function(i,param){var pair=param.split('='),key=config.decode(pair.shift(),null).toString(),value=config.decode(pair.length?pair.join('='):null,key);if(config.array_keys(key)){params[key]=params[key]||[];params[key].push(value);}else{params[key]=value;}});return params;};$.parseQuery.decode=$.parseQuery.default_decode=function(string){return decodeURIComponent((string||"").replace('+',' '));};$.parseQuery.array_keys=function(){return false;};$.parseQuery.separator="&";}(jQuery)); 4 1 5 internalUrl = /^([A-z0-9-_]+)(:[A-z0-9-_]+)?$/; 2 6 internalUri = /^([a-zA-Z0-9-_]+)\(([a-zA-Z0-9-_]+)\):\/\/(.*)|([a-zA-Z0-9-_]+):\/\/(.*)$/; … … 57 61 58 62 jqXHR.abort(); 63 64 if( typeof options.data === "string" ) 65 options.data = $.parseQuery( options.data ); 59 66 60 67 switch( options.type.toUpperCase() ) … … 1392 1399 properties: criteria.properties || '' 1393 1400 1394 } );1401 }, false, true ); 1395 1402 }, 1396 1403
Note: See TracChangeset
for help on using the changeset viewer.