]> git.mxchange.org Git - friendica-addons.git/blobdiff - viewsrc/viewsrc.php
make viewsrc actually use colorbox
[friendica-addons.git] / viewsrc / viewsrc.php
index 9e3658c168bfffafd5debe372a4b1c4c7faed513..9366930f00e133b21c2150d9575a4f06f619e57d 100644 (file)
@@ -25,7 +25,9 @@ function viewsrc_page_end(&$a, &$o){
        $a->page['htmlhead'] .= <<< EOS
        <script>
                $(function(){
-                       $('a[href*="/viewsrc/"]').colorbox();
+                       $('a[href*="/viewsrc/"]').each(function() {
+                               $(this).colorbox($(this).attr('href'));
+                       });
                });
        </script>
 EOS;