From a97b09210e977d52a5bda1dee2b1eddc19afc013 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 1 Aug 2017 18:05:04 -0700 Subject: auto preview when inserting a media item or embed into a post. Since this unanticipated action could be alarming (some might think the post was actually submitted), also provide a visible preview indicator within the previewed content. Remove the css for the old striped background image which hasn't been available for previewed content for a year or two. --- view/theme/redbasic/css/style.css | 3 +-- view/tpl/conv_item.tpl | 1 + view/tpl/jot-header.tpl | 2 ++ view/tpl/search_item.tpl | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) (limited to 'view') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 2c881049e..17956ef31 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -251,8 +251,7 @@ footer { margin-top: 15px; } -.preview { - background: url('../img/gray_and_white_diagonal_stripes_background_seamless.gif'); +.preview-indicator { } #theme-preview { diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index 36cb4cc83..663b02890 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -39,6 +39,7 @@ {{/if}}
+ {{if $item.previewing}} {{/if}} {{$item.name}}{{if $item.owner_url}} {{$item.via}} {{$item.owner_name}}{{/if}}
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index d8f296aa4..8adef6427 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -126,6 +126,7 @@ function enableOnUser(){ $('#jot-media').val($('#jot-media').val() + data.result.message); }, stop: function(e,data) { + preview_post(); $('#profile-rotator').spin(false); }, }); @@ -175,6 +176,7 @@ function enableOnUser(){ $('#profile-rotator').spin('tiny'); $.get('{{$baseurl}}/linkinfo?f=&binurl=' + reply, function(data) { addeditortext(data); + preview_post(); $('#profile-rotator').spin(false); }); } diff --git a/view/tpl/search_item.tpl b/view/tpl/search_item.tpl index 4ca6378b8..28667eb58 100755 --- a/view/tpl/search_item.tpl +++ b/view/tpl/search_item.tpl @@ -32,6 +32,7 @@
{{/if}}
+ {{if $item.previewing}} {{/if}} {{$item.name}}{{if $item.owner_url}} {{$item.via}} {{$item.owner_name}}{{/if}}
-- cgit v1.2.3 From 01fc5909384035a62d5a733c973e442ade55cc4e Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 1 Aug 2017 18:58:06 -0700 Subject: auto preview comments also on media/link add --- view/js/main.js | 1 + 1 file changed, 1 insertion(+) (limited to 'view') diff --git a/view/js/main.js b/view/js/main.js index 54450858a..aaadff99b 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -149,6 +149,7 @@ function insertCommentURL(comment, id) { textarea = document.getElementById("comment-edit-text-" +id); textarea.value = textarea.value + data; + preview_comment(id); $('body').css('cursor', 'auto'); }); } -- cgit v1.2.3 From 01526a9a79294fe5f96b7c3bfbd362f91feec433 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 1 Aug 2017 19:02:42 -0700 Subject: add auto post preview to 'select photo from albums' --- view/tpl/jot-header.tpl | 1 + 1 file changed, 1 insertion(+) (limited to 'view') diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index 8adef6427..815d17c3c 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -423,6 +423,7 @@ function enableOnUser(){ function(ddata) { if (ddata['status']) { addeditortext(ddata['photolink']); + preview_post(); } else { window.console.log("{{$modalerrorlink}}" + ':' + ddata['errormsg']); } -- cgit v1.2.3 From 7b177be271c5ac2a87a5aadd36233bbe693800e0 Mon Sep 17 00:00:00 2001 From: git-marijus Date: Thu, 3 Aug 2017 15:30:40 +0200 Subject: fix attachment upload for private mail --- view/tpl/msg-header.tpl | 53 +++++++++++++++++++++++------------------------- view/tpl/prv_message.tpl | 1 + 2 files changed, 26 insertions(+), 28 deletions(-) (limited to 'view') diff --git a/view/tpl/msg-header.tpl b/view/tpl/msg-header.tpl index 013e1cfdc..0e8fb0389 100755 --- a/view/tpl/msg-header.tpl +++ b/view/tpl/msg-header.tpl @@ -1,34 +1,31 @@ - - + + +