]> git.mxchange.org Git - friendica-addons.git/commitdiff
make viewsrc actually use colorbox
authorfriendica <info@friendica.com>
Wed, 6 Feb 2013 05:02:33 +0000 (21:02 -0800)
committerfriendica <info@friendica.com>
Wed, 6 Feb 2013 05:02:33 +0000 (21:02 -0800)
viewsrc.tgz
viewsrc/viewsrc.php

index b75b6009bd69b552bf819ef679866db84df2f04a..16d587a7ddbeb485ea6c1080d049ef031ed4495a 100644 (file)
Binary files a/viewsrc.tgz and b/viewsrc.tgz differ
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;