From 05050381d3d662fd880cd04142cf6ba399cbf104 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 5 Oct 2015 12:26:04 +0200 Subject: bring our bbcode tools to private mail --- view/js/main.js | 4 +-- view/tpl/jot.tpl | 10 +++---- view/tpl/msg-header.tpl | 15 +++++++++- view/tpl/prv_message.tpl | 72 +++++++++++++++++++++++++++++++++++++----------- 4 files changed, 77 insertions(+), 24 deletions(-) diff --git a/view/js/main.js b/view/js/main.js index d3c7175d0..34d6bf475 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -112,12 +112,12 @@ function insertbbcomment(comment, BBcode, id) { return true; } -function inserteditortag(BBcode) { +function inserteditortag(BBcode, id) { // allow themes to override this if(typeof(insertEditorFormatting) != 'undefined') return(insertEditorFormatting(BBcode)); - textarea = document.getElementById('profile-jot-text'); + textarea = document.getElementById(id); if (document.selection) { textarea.focus(); selected = document.selection.createRange(); diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index 100dd15b9..ea68368aa 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -47,19 +47,19 @@
- - - - -
diff --git a/view/tpl/msg-header.tpl b/view/tpl/msg-header.tpl index 593b3652e..3407e152c 100755 --- a/view/tpl/msg-header.tpl +++ b/view/tpl/msg-header.tpl @@ -57,10 +57,23 @@ else onComplete: function(file,response) { addmailtext(response); $('#prvmail-rotator').spin(false); - } + } + } + ); + + var file_uploader_sub = new window.AjaxUpload( + 'prvmail-attach-sub', + { action: 'wall_attach/{{$nickname}}', + name: 'userfile', + onSubmit: function(file,ext) { $('#prvmail-rotator').spin('tiny'); }, + onComplete: function(file,response) { + addmailtext(response); + $('#prvmail-rotator').spin(false); + } } ); + }); function prvmailJotGetLink() { diff --git a/view/tpl/prv_message.tpl b/view/tpl/prv_message.tpl index c31c311cc..b0ea8b753 100755 --- a/view/tpl/prv_message.tpl +++ b/view/tpl/prv_message.tpl @@ -38,23 +38,63 @@
-
- - - {{if $feature_expire}} - - {{/if}} - {{if $feature_encrypt}} - +
+
+ + + + + +
+ + {{if $feature_expire || $feature_encrypt}} + {{/if}} + +
+ + +
+ +
-- cgit v1.2.3