mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 04:23:42 +00:00
make viewsrc actually use colorbox
This commit is contained in:
parent
04ce026be2
commit
75660432d6
2 changed files with 3 additions and 1 deletions
BIN
viewsrc.tgz
BIN
viewsrc.tgz
Binary file not shown.
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue