src/js/utils.js
branchpopcorn-port
changeset 720 08b8b3ce30e4
parent 686 f1dbe6a6e740
child 820 7968346b9689
equal deleted inserted replaced
719:f2aa75a4d848 720:08b8b3ce30e4
   147   return "http://twitter.com/home?status=" + IriSP.encodeURI(text) + IriSP.shorten_url(url);
   147   return "http://twitter.com/home?status=" + IriSP.encodeURI(text) + IriSP.shorten_url(url);
   148 };
   148 };
   149 
   149 
   150 /** returns an url to share on google + */
   150 /** returns an url to share on google + */
   151 IriSP.mkGplusUrl = function(url, text) {
   151 IriSP.mkGplusUrl = function(url, text) {
   152   return "";
   152   return "https://plusone.google.com/_/+1/confirm?hl=en&url=" + IriSP.shorten_url(url);
   153 };
   153 };
   154 
   154 
   155 /** test if a value is null or undefined */
   155 /** test if a value is null or undefined */
   156 IriSP.null_or_undefined = function(val) {
   156 IriSP.null_or_undefined = function(val) {
   157   return (typeof(val) === "undefined" || val === null);
   157   return (typeof(val) === "undefined" || val === null);