integration/js/common.js
changeset 154 60ca7678f074
parent 115 e48bb5d43ac2
equal deleted inserted replaced
153:0b710028f3d3 154:60ca7678f074
    41 
    41 
    42 window.social = function(opts) {
    42 window.social = function(opts) {
    43     
    43     
    44     var opts = opts || {};
    44     var opts = opts || {};
    45     opts.sel = opts.sel || $(".Ldt-Social");
    45     opts.sel = opts.sel || $(".Ldt-Social");
    46     opts.url = opts.url || document.location.href
    46     opts.url = opts.url || document.location.href;
    47     opts.text = opts.text || $("title").text();
    47     opts.text = opts.text || $("title").text();
    48     
    48     
    49     if (!opts.sel.length) {
    49     if (!opts.sel.length) {
    50         return;
    50         return;
    51     }
    51     }
   114             opts.sel.find(this).attr("href"),
   114             opts.sel.find(this).attr("href"),
   115             "_blank",
   115             "_blank",
   116             "height=300,width=450,left=100,top=100,toolbar=0,menubar=0,status=0,location=0");
   116             "height=300,width=450,left=100,top=100,toolbar=0,menubar=0,status=0,location=0");
   117         return false;
   117         return false;
   118     });
   118     });
   119 }
   119 };
   120 }());
   120 }());