make viewsrc actually use colorbox
This commit is contained in:
BIN
viewsrc.tgz
BIN
viewsrc.tgz
Binary file not shown.
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user