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

Enable explicit box activation #450

Merged
merged 1 commit into from
May 23, 2015
Merged

Conversation

pbihler
Copy link
Contributor

@pbihler pbihler commented May 21, 2015

If you insert a box manually into the DOM (e.g. triggered by an ajax-event), you have to activate the box controls explicitly. This can now be done via .activateBox()

almasaeed2010 added a commit that referenced this pull request May 23, 2015
Enable explicit box activation
@almasaeed2010 almasaeed2010 merged commit 6f09c02 into ColorlibHQ:master May 23, 2015
@almasaeed2010
Copy link
Contributor

Thanks

@mortasoft
Copy link

How use it? I'm trying, but doesn't work. Do you have an example?

@pbihler
Copy link
Contributor Author

pbihler commented Jun 8, 2015

box = $('<div class="box">
      <div class="box-header with-border"><h3 class="box-title">Bla</h3></div>
      <div class="box-body">Blubb</div>
  </div>');

box.insertAfter('#anchor');
box.activateBox();

@almasaeed2010
Copy link
Contributor

@mortasoft please make sure that you update AdminLTE to latest release first. the release that support this feature will be 2.1.2

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

Successfully merging this pull request may close these issues.

3 participants