Skip to content

Instantly share code, notes, and snippets.

@zstumgoren
Created March 28, 2013 20:15
Show Gist options
  • Save zstumgoren/5266424 to your computer and use it in GitHub Desktop.
Save zstumgoren/5266424 to your computer and use it in GitHub Desktop.
1 (function($) {
2 $(document).ready(function() {
3 //$.fn.opelec_inline = function() {
4 /*
5 return this.each(function(elemIndex) {
6 var inline = $(this);
7 var copy_anchor = inline.find("a.grp-copy-handler");
8 copyButtonHandler(copy_anchor);
9 console.log(elemIndex);
10 });
11
12 copyButtonHandler = function(elem) {
13 elem.bind("click", OPELEC.inlines.copy);
14 };
15 })
16 */
17 $('a.grp-copy-handler').each(function() {
18 var copy_anchor = $(this);
19 copy_anchor.bind("click", OPELEC.inlines.copy);
20 });
21 });
22
23 })(grp.jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment