equal
deleted
inserted
replaced
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) { |