Sha256: 0592b6a3dc047e5ab0745360d5e80acabeaa405ffcd7680c9a51d63eca850975

Contents?: true

Size: 1.15 KB

Versions: 16

Compression:

Stored size: 1.15 KB

Contents

/*! ng-clip 16-12-2014 */
!function(a,b){"use strict";b.module("ngClipboard",[]).provider("ngClip",function(){var a=this;return this.path="//cdnjs.cloudflare.com/ajax/libs/zeroclipboard/2.1.6/ZeroClipboard.swf",{setPath:function(b){a.path=b},setConfig:function(b){a.config=b},$get:function(){return{path:a.path,config:a.config}}}}).run(["ngClip",function(a){var c={swfPath:a.path,trustedDomains:["*"],allowScriptAccess:"always",forceHandCursor:!0};ZeroClipboard.config(b.extend(c,a.config||{}))}]).directive("clipCopy",["ngClip",function(){return{scope:{clipCopy:"&",clipClick:"&",clipClickFallback:"&"},restrict:"A",link:function(a,c,d){if(ZeroClipboard.isFlashUnusable())return void c.bind("click",function(b){a.$apply(a.clipClickFallback({$event:b,copy:a.$eval(a.clipCopy)}))});var e=new ZeroClipboard(c);""===d.clipCopy&&(a.clipCopy=function(){return c[0].previousElementSibling.innerText}),e.on("ready",function(){e.on("copy",function(b){var c=b.clipboardData;c.setData(d.clipCopyMimeType||"text/plain",a.$eval(a.clipCopy))}),e.on("aftercopy",function(){b.isDefined(d.clipClick)&&a.$apply(a.clipClick)}),a.$on("$destroy",function(){e.destroy()})})}}}])}(window,window.angular);

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sw2at-ui-0.0.16 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.15 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.14 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.13 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.12 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.11 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.10 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.9 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.8 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.7 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.6 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.5 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.4 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.3 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.2 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js
sw2at-ui-0.0.1 app/assets/javascripts/swat/bower_components/ng-clip/dest/ng-clip.min.js