mirror of
https://github.com/friendica/friendica
synced 2024-11-14 05:02:54 +00:00
make share button visivle via theme js. Avoid illegal multiple use of html id
This commit is contained in:
parent
4c56724715
commit
5edb124660
2 changed files with 3 additions and 1 deletions
|
@ -332,6 +332,8 @@ function toggleJotNav (elm) {
|
||||||
// For some some tab panels we need to execute other js functions.
|
// For some some tab panels we need to execute other js functions.
|
||||||
if (tabpanel === "jot-preview-content") {
|
if (tabpanel === "jot-preview-content") {
|
||||||
preview_post();
|
preview_post();
|
||||||
|
// Make Share button visivle in preview
|
||||||
|
$('#jot-preview-share').removeClass("minimize").attr("aria-hidden" ,"false");
|
||||||
} else if (tabpanel === "jot-fbrowser-wrapper") {
|
} else if (tabpanel === "jot-fbrowser-wrapper") {
|
||||||
$(function() {
|
$(function() {
|
||||||
Dialog.showJot();
|
Dialog.showJot();
|
||||||
|
|
|
@ -120,7 +120,7 @@
|
||||||
<div id="jot-preview-content" class="minimize" aria-labelledby="jot-preview-lnk" role="tabpanel" aria-hidden="true"></div>
|
<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-->
|
<!-- 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">
|
<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>
|
<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>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue