make viewsrc actually use colorbox

pull/96/merge
friendica 2013-02-05 21:02:33 -08:00
parent 04ce026be2
commit 75660432d6
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -25,7 +25,9 @@ function viewsrc_page_end(&$a, &$o){
$a->page['htmlhead'] .= <<< EOS $a->page['htmlhead'] .= <<< EOS
<script> <script>
$(function(){ $(function(){
$('a[href*="/viewsrc/"]').colorbox(); $('a[href*="/viewsrc/"]').each(function() {
$(this).colorbox($(this).attr('href'));
});
}); });
</script> </script>
EOS; EOS;