Created
March 28, 2013 20:15
-
-
Save zstumgoren/5266424 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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