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

Bootstrap Modal not working in ContextMenu #106

Open
sathyaprakash94 opened this issue Jun 8, 2017 · 0 comments
Open

Bootstrap Modal not working in ContextMenu #106

sathyaprakash94 opened this issue Jun 8, 2017 · 0 comments

Comments

@sathyaprakash94
Copy link

sathyaprakash94 commented Jun 8, 2017

Hi there,

I'm trying to open a bootstrap modal when click on the item inside contextMenu. But it fails to open modal.

The code is as appended below,

<div class="portlet-body">
  <div id="context" data-toggle="context" data-target="#context-menu">
    <p> Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras.
      </p>
  </div>
  <!-- Your custom menu with dropdown-menu as default styling -->
  <div id="context-menu">
    <ul class="dropdown-menu" role="menu">
      <li>
        <a data-target="#demographicmodal" data-toggle="modal">
          <i class="icon-user"></i> New User </a>
      </li>
      <li>
        <a href="javascript:;">
          <i class="icon-present"></i> New Event
          <span class="badge badge-success">4</span>
        </a>
      </li>
    </ul>
  </div>
</div>

<!-- Modal Content -->
<div id="demographicmodal" class="modal fade" tabindex="-1" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-body">
        <div class="row">
          <label data-dismiss="modal" onclick="reloadallergies()" class="fa fa-times pull-right"></label>
        </div>
      </div>
    </div>
  </div>
</div>

I could not able to figure out, why the modal is not working. Pls help me to solve this.

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

No branches or pull requests

1 participant