diff options
-rw-r--r-- | include/conversation.php | 2 | ||||
-rw-r--r-- | view/js/main.js | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/conversation.php b/include/conversation.php index 5c3933788..a2cca1c77 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -909,7 +909,7 @@ function item_photo_menu($item){ } if((local_user()) && local_user() == $item['uid']) { - $vsrc_link = $a->get_baseurl() . '/viewsrc/' . $item['id']; + $vsrc_link = 'javascript:viewsrc(' . $item['id'] . '); return false;'; if($item['parent'] == $item['id'] && $channel && ($channel_hash != $item['author_xchan'])) { $sub_link = 'javascript:dosubthread(' . $item['id'] . '); return false;'; } diff --git a/view/js/main.js b/view/js/main.js index e2a265a1c..f43ae4d1b 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -112,8 +112,9 @@ return true; } - - + function viewsrc(id) { + $.colorbox({href: 'viewsrc/' + id }); + } function qCommentInsert(obj,id) { var tmpStr = $("#comment-edit-text-" + id).val(); |