Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Commit

Permalink
Merge pull request #66 from Splaktar/removeClipBoardUse
Browse files Browse the repository at this point in the history
fix(footer): ClipboardEvent constructor throws exceptions
  • Loading branch information
tasomaniac committed Oct 2, 2015
2 parents 66102ce + 45cc95c commit 61b549c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
8 changes: 0 additions & 8 deletions client/components/footer/footer.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ angular.module('fireflyApp')
scope.url = document.URL;
scope.convertHex = convertHex;

scope.copyUrl = function(e) {
var clip = new ClipboardEvent('copy');
clip.clipboardData.setData('text/plain', 'test');
clip.preventDefault();

e.target.dispatchEvent(clip);
};

/**
* @param hex color
* @param opacity percentage
Expand Down
16 changes: 5 additions & 11 deletions client/components/footer/footer.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
<div class="footer" layout-fill ng-style="{'background-color': convertHex(tag.color, 20)}">
<div class="pull-right form-inline">
<input type="text" ng-model="url" class="form-control" readonly style="height:24px">
<md-button ng-click="copyUrl($event)" class="md-icon-button md-accent">
<md-icon aria-label="Copy URL to Clipboard">link</md-icon>
<md-tooltip md-direction="top">Copy URL to Clipboard</md-tooltip>
</md-button>
</div>
<div class="pull-left">
<p>&copy; 2015 <a href="https://plus.google.com/+GDGXProject/">GDG[x]</a> - <a href="https://github.com/gdg-x/firefly/">Project Firefly</a></p>
<i>GDG[x] is an independent group; our activities and the opinions expressed on this Page should in no way be linked to Google, the corporation.</i>
</div>
<p>&copy; 2015 <a href="https://plus.google.com/+GDGXProject/">GDG[x]</a> -
<a href="https://github.com/gdg-x/firefly/">Project Firefly</a></p>
<i>GDG[x] is an independent group; our activities and the opinions expressed on this
Page should in no way be linked to Google, the corporation.
</i>
</div>

0 comments on commit 61b549c

Please sign in to comment.