Ignore:
Timestamp:
07/11/12 11:45:10 (12 years ago)
Author:
niltonneto
Message:

Ticket #0000 - Copiadas as alterações do Trunk. Versão final da 2.4.1.

Location:
branches/2.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4

  • branches/2.4/prototype/api/datalayer.js

    r6453 r6754  
     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 
    15internalUrl = /^([A-z0-9-_]+)(:[A-z0-9-_]+)?$/; 
    26internalUri = /^([a-zA-Z0-9-_]+)\(([a-zA-Z0-9-_]+)\):\/\/(.*)|([a-zA-Z0-9-_]+):\/\/(.*)$/; 
     
    5761 
    5862          jqXHR.abort(); 
     63           
     64          if( typeof options.data === "string" ) 
     65              options.data = $.parseQuery( options.data ); 
    5966 
    6067          switch( options.type.toUpperCase() ) 
     
    624631     
    625632    rollback: function( concept, ids ){ 
    626        
    627     if(!DataLayer.storage.cache[':diff'])  
    628                 return false;  
     633    if(!DataLayer.storage.cache[':diff']) 
     634                return false; 
    629635        if(concept){ 
    630636                if(ids){ 
     
    13941400          properties: criteria.properties || '' 
    13951401 
    1396       } ); 
     1402      }, false, true ); 
    13971403    }, 
    13981404 
Note: See TracChangeset for help on using the changeset viewer.