put viewsrc back in a lightbox

This commit is contained in:
friendica 2014-06-18 20:33:28 -07:00
parent 5a0e135679
commit 224a2b9ddf
2 changed files with 4 additions and 3 deletions

View File

@ -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;';
}

View File

@ -112,8 +112,9 @@
return true;
}
function viewsrc(id) {
$.colorbox({href: 'viewsrc/' + id });
}
function qCommentInsert(obj,id) {
var tmpStr = $("#comment-edit-text-" + id).val();