diff -r 0c699d2767f8 -r 4857ac3892e3 integration/js/social.js --- a/integration/js/social.js Fri Nov 30 15:36:06 2012 +0100 +++ b/integration/js/social.js Fri Nov 30 16:48:37 2012 +0100 @@ -1,4 +1,8 @@ -IriSP.social = function(opts) { +(function() { + +var uid = 0; + +window.social = function(opts) { var opts = opts || {}; opts.sel = opts.sel || $(".Ldt-Social"); @@ -9,7 +13,7 @@ } var text = opts.sel.find("title").text(), - clipId = IriSP.Model.getUID(), + clipId = "Social-Clip-" + (++uid), clip; opts.sel.find(".Ldt-Social-CopyBtn").attr("id", clipId); @@ -52,5 +56,5 @@ opts.sel.find(".Ldt-Social-Gplus").attr("href", "https://plus.google.com/share?" + $.param({ url: opts.url, title: text })); opts.sel.find(".Ldt-Social-Mail").attr("href", "mailto:?" + $.param({ subject: text, body: text + ": " + opts.url })); } - +}()); /* END social.js */