From 7f7e049397fcd7526ca75dd91bd881369219f019 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 18 May 2018 21:30:07 +0200 Subject: an attempt to fix the new_channel validation situation --- view/tpl/new_channel.tpl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/new_channel.tpl b/view/tpl/new_channel.tpl index a89208228..51880e1f6 100755 --- a/view/tpl/new_channel.tpl +++ b/view/tpl/new_channel.tpl @@ -21,14 +21,11 @@ {{/if}} {{include file="field_input.tpl" field=$name}} -
{{include file="field_input.tpl" field=$nickname}} -
+ - -
-- cgit v1.2.3 From 7e99931733c75ded40c5c6bdd12a42213ccb7a2e Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 20 May 2018 09:23:44 +0200 Subject: implement jot reset button --- view/tpl/jot-header.tpl | 15 ++++++++++++--- view/tpl/jot.tpl | 6 ++++++ 2 files changed, 18 insertions(+), 3 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index f2b68ece0..39aa9d9c4 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -7,10 +7,11 @@ var pretext = '{{$pretext}}'; function initEditor(cb){ if (editor==false){ $("#profile-jot-text-loading").show(); + $("#profile-jot-reset").removeClass('d-none'); {{$geotag}} if(plaintext == 'none') { $("#profile-jot-text-loading").hide(); - $("#profile-jot-text").css({ 'height': 200 }); + //$("#profile-jot-text").css({ 'height': 200 }); {{if $bbco_autocomplete}} $("#profile-jot-text").bbco_autocomplete('{{$bbco_autocomplete}}'); // autocomplete bbcode {{/if}} @@ -361,8 +362,16 @@ var activeCommentText = ''; $("#jot-title").val(''); $("#profile-jot-text").val(''); $("#jot-category").val(''); - postSaveChanges('clean',''); + postSaveChanges('clean'); + + {{if $reset}} + $(".jothidden").hide(); + $("#profile-jot-text").removeClass('jot-expanded'); + $("#profile-jot-reset").addClass('d-none'); + editor = false; + {{else}} window.history.back(); + {{/if}} } function itemFiler(id) { @@ -573,7 +582,7 @@ $( document ).on( "click", ".wall-item-delete-link,.page-delete-link,.layout-del @@ -111,8 +51,7 @@ var activeCommentID = 0; var activeCommentText = ''; $(document).ready(function() { - - /* enable tinymce on focus and click */ + $("#profile-jot-text").focus(enableOnUser); $("#profile-jot-text").click(enableOnUser); @@ -361,7 +300,8 @@ var activeCommentText = ''; function itemCancel() { $("#jot-title").val(''); $("#profile-jot-text").val(''); - $("#jot-category").val(''); + $("#jot-category").tagsinput('removeAll'); + postSaveChanges('clean'); {{if $reset}} -- cgit v1.2.3 From a256195767786956011901c14f9813f7326b2576 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 20 May 2018 12:30:08 +0200 Subject: remove preview on jot reset --- view/tpl/jot-header.tpl | 1 + 1 file changed, 1 insertion(+) (limited to 'view/tpl') diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index fd1c8263a..22413f350 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -308,6 +308,7 @@ var activeCommentText = ''; $(".jothidden").hide(); $("#profile-jot-text").removeClass('jot-expanded'); $("#profile-jot-reset").addClass('d-none'); + $("#jot-preview-content").html('').hide(); editor = false; {{else}} window.history.back(); -- cgit v1.2.3 From 1061027071fac2eedd85d795445fb0b72aa942d6 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 21 May 2018 20:17:17 -0700 Subject: new_channel - make text strings translatable and use the name as a base for the nick if you try to create without entering a nick --- view/tpl/js_strings.tpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'view/tpl') diff --git a/view/tpl/js_strings.tpl b/view/tpl/js_strings.tpl index 4243c2ea5..01fc3f993 100755 --- a/view/tpl/js_strings.tpl +++ b/view/tpl/js_strings.tpl @@ -23,6 +23,18 @@ 'linkurl' : "{{$linkurl}}", 'leavethispage' : "{{$leavethispage}}", 'location' : "{{$location}}", + 'lovely' : "{{$lovely}}", + 'wonderful' : "{{$wonderful}}", + 'fantastic' : "{{$fantastic}}", + 'great' : "{{$great}}", + 'nick_invld1' : "{{$nick_invld1}}", + 'nick_invld2' : "{{$nick_invld2}}", + 'nick_valid' : "{{$nick_valid}}", + 'name_empty' : "{{$name_empty}}", + 'name_ok1' : "{{$name_ok1}}", + 'name_ok2' : "{{$name_ok2}}", + + 't01' : "{{$t01}}", 't02' : "{{$t02}}", -- cgit v1.2.3 From 9cf8931136c703c66d0bf83e4c6b8fb7f4d2cf0b Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 23 May 2018 22:11:13 +0200 Subject: paint the locks on private activitypub items red. their privacy model is "slightly" different from ours --- view/tpl/conv_item.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/tpl') diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index f72737d82..6baf06dda 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -43,7 +43,7 @@ {{if $item.lock}} {{/if}} -- cgit v1.2.3