aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-red/theme.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-09 16:55:06 -0700
committerfriendica <info@friendica.com>2012-04-09 16:55:06 -0700
commit9a8c69b024745bdabd8a83bc0e65951a82722127 (patch)
treef76f18f33b43da6071e6dd7a88b3a5c316c03aec /view/theme/diabook-red/theme.php
parent2072fabc7891a7c659e4e7c1bac926535c265a23 (diff)
parent2d23c8a246c2f9198d695c766c400bc1a621aab4 (diff)
downloadvolse-hubzilla-9a8c69b024745bdabd8a83bc0e65951a82722127.tar.gz
volse-hubzilla-9a8c69b024745bdabd8a83bc0e65951a82722127.tar.bz2
volse-hubzilla-9a8c69b024745bdabd8a83bc0e65951a82722127.zip
Merge branch 'pull'
Diffstat (limited to 'view/theme/diabook-red/theme.php')
-rwxr-xr-xview/theme/diabook-red/theme.php33
1 files changed, 30 insertions, 3 deletions
diff --git a/view/theme/diabook-red/theme.php b/view/theme/diabook-red/theme.php
index 85206baec..aec3ab95d 100755
--- a/view/theme/diabook-red/theme.php
+++ b/view/theme/diabook-red/theme.php
@@ -3,13 +3,13 @@
/*
* Name: Diabook-red
* Description: Diabook-red: report bugs and request here: http://pad.toktan.org/p/diabook or contact me : thomas_bierey@friendica.eu
- * Version: (Version: 1.015)
+ * Version: (Version: 1.016)
* Author:
*/
//print diabook-version for debugging
-$diabook_version = "Diabook-red (Version: 1.015)";
+$diabook_version = "Diabook-red (Version: 1.016)";
$a->page['htmlhead'] .= sprintf('<script "%s" ></script>', $diabook_version);
//change css on network and profilepages
@@ -509,4 +509,31 @@ function restore_boxes(){
$.cookie("close_lastlikes","2", { expires: 365, path: "/" });
alert("Right-hand column was restored. Please refresh your browser");
}
-</script>';} \ No newline at end of file
+</script>';}
+
+$a->page['htmlhead'] .= '
+
+<script type="text/javascript">
+function insertFormatting(BBcode,id) {
+
+ var tmpStr = $("#comment-edit-text-" + id).val();
+ if(tmpStr == "Kommentar") {
+ tmpStr = "";
+ $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
+ $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
+ openMenu("comment-edit-submit-wrapper-" + id);
+ }
+
+ textarea = document.getElementById("comment-edit-text-" +id);
+ if (document.selection) {
+ textarea.focus();
+ selected = document.selection.createRange();
+ selected.text = "["+BBcode+"]" + selected.text + "[/"+BBcode+"]";
+ } else if (textarea.selectionStart || textarea.selectionStart == "0") {
+ var start = textarea.selectionStart;
+ var end = textarea.selectionEnd;
+ textarea.value = textarea.value.substring(0, start) + "["+BBcode+"]" + textarea.value.substring(start, end) + "[/"+BBcode+"]" + textarea.value.substring(end, textarea.value.length);
+ }
+ return true;
+}
+</script> '; \ No newline at end of file