src/js/utils.js
changeset 852 eefb64f74a3f
parent 840 ac66e2240e1e
child 870 2c025db10a10
equal deleted inserted replaced
846:a6de16e6a3a3 852:eefb64f74a3f
   180     return null;
   180     return null;
   181 }
   181 }
   182 
   182 
   183 /** issue a call to an url shortener and return the shortened url */
   183 /** issue a call to an url shortener and return the shortened url */
   184 IriSP.shorten_url = function(url) {
   184 IriSP.shorten_url = function(url) {
   185   if (IriSP.config.shortener.hasOwnProperty("shortening_function"))
   185   return encodeURIComponent(url);
   186     return IriSP.config.shortener.shortening_function(url);
       
   187     
       
   188   return url;
       
   189 };
   186 };
   190 
   187 
   191 
   188 
   192 /* for ie compatibility
   189 /* for ie compatibility
   193 if (Object.prototype.__defineGetter__&&!Object.defineProperty) {
   190 if (Object.prototype.__defineGetter__&&!Object.defineProperty) {