X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Ftemplates%2Fjot-header.tpl;h=d52f4b98dec41eac862d5ce3ebff8c0c937166f0;hb=7eb637c6ea391a462b1ac802348f9f7da0b2c5f9;hp=27fc608e7cc0d1bde2196d7f2b1c290bc57b2e8f;hpb=be7041c3e06ee5a799851ac3612849dde55a8198;p=friendica.git diff --git a/view/theme/frio/templates/jot-header.tpl b/view/theme/frio/templates/jot-header.tpl index 27fc608e7c..d52f4b98de 100644 --- a/view/theme/frio/templates/jot-header.tpl +++ b/view/theme/frio/templates/jot-header.tpl @@ -280,36 +280,14 @@ .modal.show; } - // the following functions show/hide the specific jot content - // in dependence of the selected nav - function aclActive() { - $(".modal-body #profile-jot-wrapper, .modal-body #jot-preview-content, .modal-body #jot-fbrowser-wrapper").hide(); - $(".modal-body #profile-jot-acl-wrapper").show(); - } - - - function previewActive() { - $(".modal-body #profile-jot-wrapper, .modal-body #profile-jot-acl-wrapper,.modal-body #jot-fbrowser-wrapper").hide(); - preview_post(); - } - + // Activate the jot text section in the jot modal function jotActive() { - $(".modal-body #profile-jot-acl-wrapper, .modal-body #jot-preview-content, .modal-body #jot-fbrowser-wrapper").hide(); - $(".modal-body #profile-jot-wrapper").show(); - - //make sure jot text does have really the active class (we do this because there are some - // other events which trigger jot text - toggleJotNav($("#jot-modal .jot-nav #jot-text-lnk")); + // Make sure jot text does have really the active class (we do this because there are some + // other events which trigger jot text (we need to do this for the desktop and mobile + // jot nav + var elem = $("#jot-modal .jot-nav #jot-text-lnk"); + var elemMobile = $("#jot-modal .jot-nav #jot-text-lnk-mobile") + toggleJotNav(elem[0]); + toggleJotNav(elemMobile[0]); } - - function fbrowserActive() { - $(".modal-body #profile-jot-wrapper, .modal-body #jot-preview-content, .modal-body #profile-jot-acl-wrapper").hide(); - - $(".modal-body #jot-fbrowser-wrapper").show(); - - $(function() {Dialog.showJot();}); - } - - -