put viewsrc back in a lightbox
This commit is contained in:
parent
5a0e135679
commit
224a2b9ddf
@ -909,7 +909,7 @@ function item_photo_menu($item){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if((local_user()) && local_user() == $item['uid']) {
|
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'])) {
|
if($item['parent'] == $item['id'] && $channel && ($channel_hash != $item['author_xchan'])) {
|
||||||
$sub_link = 'javascript:dosubthread(' . $item['id'] . '); return false;';
|
$sub_link = 'javascript:dosubthread(' . $item['id'] . '); return false;';
|
||||||
}
|
}
|
||||||
|
@ -112,8 +112,9 @@
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function viewsrc(id) {
|
||||||
|
$.colorbox({href: 'viewsrc/' + id });
|
||||||
|
}
|
||||||
|
|
||||||
function qCommentInsert(obj,id) {
|
function qCommentInsert(obj,id) {
|
||||||
var tmpStr = $("#comment-edit-text-" + id).val();
|
var tmpStr = $("#comment-edit-text-" + id).val();
|
||||||
|
Reference in New Issue
Block a user