]> git.mxchange.org Git - friendica.git/commitdiff
make share button visivle via theme js. Avoid illegal multiple use of html id
authorJonny Tischbein <jonny_tischbein@systemli.org>
Thu, 20 Sep 2018 15:09:39 +0000 (17:09 +0200)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Thu, 20 Sep 2018 15:09:39 +0000 (17:09 +0200)
view/theme/frio/js/modal.js
view/theme/frio/templates/jot.tpl

index 2b3059eaf1693fd3acf9fe38a13ea6cbfefe0db4..3f96eeca7de28f805ddfeaea9bf374a4f10f2269 100644 (file)
@@ -332,6 +332,8 @@ function toggleJotNav (elm) {
        // For some some tab panels we need to execute other js functions.
        if (tabpanel === "jot-preview-content") {
                preview_post();
+               // Make Share button visivle in preview
+               $('#jot-preview-share').removeClass("minimize").attr("aria-hidden" ,"false");
        } else if (tabpanel === "jot-fbrowser-wrapper") {
                $(function() {
                        Dialog.showJot();
index 7a4854ce44898882473424afc4ce524c9c6642fe..0430eef64666467f9b6fce6307bc799f80b2ce83 100644 (file)
                                <div id="jot-preview-content" class="minimize" aria-labelledby="jot-preview-lnk" role="tabpanel" aria-hidden="true"></div>
 
                                <!-- TODO: better workaround than using id multiple for share button in preview-->
-                               <div id="jot-preview-content" class="minimize" aria-labelledby="jot-preview-lnk" role="tabpanel" aria-hidden="true">
+                               <div id="jot-preview-share" class="minimize" aria-labelledby="jot-preview-lnk" role="tabpanel" aria-hidden="true">
                                        <ul id="profile-jot-submit-wrapper" class="jothidden nav nav-pills">
                                                <li role="presentation" class="pull-right"><button class="btn btn-primary" type="submit" id="profile-jot-submit" name="submit" ><i class="fa fa-slideshare fa-fw" aria-hidden="true"></i> {{$share}}</button></li>
                                        </ul>