aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-06-18 20:33:28 -0700
committerfriendica <info@friendica.com>2014-06-18 20:33:28 -0700
commit224a2b9ddf38b6fa52fef3f0d8cbe4299e651c47 (patch)
tree0b9f6e4b0af7435b8b7abe4e3f3357eb7a57f277
parent5a0e135679d1e7d557a43c89dc2e2bfa4d5afa67 (diff)
downloadvolse-hubzilla-224a2b9ddf38b6fa52fef3f0d8cbe4299e651c47.tar.gz
volse-hubzilla-224a2b9ddf38b6fa52fef3f0d8cbe4299e651c47.tar.bz2
volse-hubzilla-224a2b9ddf38b6fa52fef3f0d8cbe4299e651c47.zip
put viewsrc back in a lightbox
-rw-r--r--include/conversation.php2
-rw-r--r--view/js/main.js5
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();