# HG changeset patch # User bellierp # Date 1499333072 -7200 # Node ID fac490bffd45660b56b0dd3b9a0cb6b3e3428c37 # Parent 92d9f58eb6ad67b774b4a61b183a34a3ea07cf24 repared metadataplayer url sharing button diff -r 92d9f58eb6ad -r fac490bffd45 src/ldt/ldt/static/ldt/metadataplayer/Social.css --- a/src/ldt/ldt/static/ldt/metadataplayer/Social.css Wed Jul 05 13:00:28 2017 +0200 +++ b/src/ldt/ldt/static/ldt/metadataplayer/Social.css Thu Jul 06 11:24:32 2017 +0200 @@ -30,7 +30,7 @@ } .Ldt-Social-Input { - width: 150px; + width: 200px; } .Ldt-Social-CopyBtn { diff -r 92d9f58eb6ad -r fac490bffd45 src/ldt/ldt/static/ldt/metadataplayer/Social.js --- a/src/ldt/ldt/static/ldt/metadataplayer/Social.js Wed Jul 05 13:00:28 2017 +0200 +++ b/src/ldt/ldt/static/ldt/metadataplayer/Social.js Thu Jul 06 11:24:32 2017 +0200 @@ -2,7 +2,6 @@ IriSP.Widgets.Social = function(player, config) { IriSP.Widgets.Widget.call(this, player, config); - ZeroClipboard.setMoviePath( IriSP.getLib('zeroClipboardSwf') ); }; IriSP.Widgets.Social.prototype = new IriSP.Widgets.Widget(); @@ -19,7 +18,7 @@ IriSP.Widgets.Social.prototype.template = '{{#show_url}}
' - + '
{{l10n.copy}}
{{/show_url}}' + + '
{{/show_url}}' + '{{#show_fb}}{{/show_fb}}' + '{{#show_twitter}}{{/show_twitter}}' + '{{#show_gplus}}{{/show_gplus}}' @@ -68,23 +67,7 @@ IriSP.Widgets.Social.prototype.toggleCopy = function() { var _pop = this.$.find(".Ldt-Social-UrlPop"); _pop.toggle(); - if (_pop.is(":visible")) { - if (typeof this.clip == "undefined") { - this.clip = new ZeroClipboard.Client(); - this.clip.setHandCursor( true ); - this.clip.glue(this.clipId); - var _this = this; - this.clip.addEventListener( 'onMouseUp', function() { - _pop.hide(); - _this.clip.hide(); - }); - } - this.clip.show(); - this.clip.setText( this.url ); - this.$.find(".Ldt-Social-Input").val(this.url).focus(); - } else { - this.clip.hide(); - } + this.$.find(".Ldt-Social-Input").val(this.url).focus(); }; IriSP.Widgets.Social.prototype.updateUrls = function(_url, _text) {