Permalink
Browse files

Add copyable geometry to the host pages

  • Loading branch information...
1 parent e174731 commit b27501518364cc0ff0d6e2e19b85250e6cda52ca @rantav committed Apr 19, 2012
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -14,6 +14,7 @@
//= require best_in_place
//= require autocomplete-rails
//= require jquery_nested_form
+//= require jquery.zclip
$(document).ready(function() {
/* Activating Best In Place */
@@ -34,6 +35,13 @@ $(document).ready(function() {
insertFields(content, assoc, link);
$('.remove_nested_fields').addClass('btn btn-danger')
}
+
+ $('.copyable').zclip({
+ path:'/ZeroClipboard.swf',
+ copy:function(){return $(this).text();}
+ }).tooltip({
+ title: 'Click to copy'
+ });
});
Oops, something went wrong.

0 comments on commit b275015

Please sign in to comment.