Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking a tooltip anchor to open modal window issue - Firefox #340

Closed
rufhausen opened this issue Sep 29, 2011 · 6 comments
Closed

Clicking a tooltip anchor to open modal window issue - Firefox #340

rufhausen opened this issue Sep 29, 2011 · 6 comments
Labels

Comments

@rufhausen
Copy link

I have an anchor tag that shows a tooltip on hover. If you click on it, is should open a modal window. This works fine in Chrome, etc. but not in Firefox (Win or Mac). I'm assuming that FF has an issue with combining the two. The backdrop shows up but not the modal box. Here's the code:

Anchor:

<a class="label warning" href="##" id="newEventsToolTip" title="New Events Waiting" data-content="You have new events that need action. Click the <span class='label warning'>&nbsp#session.newEventsCount#&nbsp</span> icon to see these events.">&nbsp#session.newEventsCount#&nbsp</a>

JS:

$("#newEventsToolTip").popover({
    placement: 'below',
    offset: 30 ,
    html: true,
    show: true
});
$("#newEventsToolTip").click(function() {
        $("#newEventsModal").modal({
        show: true,
        backdrop: true
    });
});
@fat
Copy link
Member

fat commented Oct 3, 2011

Hmm.. bummer - i'll look into this

@fat
Copy link
Member

fat commented Oct 10, 2011

do you have html for newEventsModal?

@fat
Copy link
Member

fat commented Oct 10, 2011

I ask because I can't reproduce this with our demo markup

@rufhausen
Copy link
Author

Here's the HTML (with some CFML mixed in):

<div id="newEventsModal" class="modal hide fade">
     <div class="modal-header">
    <h3 class="red">There are new Events that need attention!<a href="##" class="close" id="closeNewEventsModal">x</a>              </h3>
  </div>
  <div class="modal-body">
    <table class="zebra-striped">
    <tr>
        <th>Title</th>
        <th>Received At</th>
        <th>Deadline Date</th>
    </tr>
    <cfloop query="newEvents">
    <tr>
        <td>#linkTo(text="#truncate(text="#title#", length="#get("maxTitleCharCount")#")#", controller="event", action="edit", key="#id#")#</a></td>
        <td>#dateFormat(createdAt,"MM/DD/YYYY")# @ #timeFormat(createdAt,"HH:MM tt")#</td>
        <td>#dateFormat(deliveryDate,"MM/DD/YYYY")#</td>
    </tr>
    </cfloop>
    </table>
  </div>
  <div class="modal-footer">
    <a href="##" class="btn secondary" id="closeNewEventsModalButton">Dismiss</a>
  </div>
</div>

@timokhin
Copy link

Same problem

@fat
Copy link
Member

fat commented Oct 30, 2011

http://jsfiddle.net/xh5C8/ works fine for me in firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants