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

Ajax loaded box collapse broken again on 2.4 #1857

Closed
1 of 3 tasks
soullivaneuh opened this issue Apr 11, 2018 · 4 comments
Closed
1 of 3 tasks

Ajax loaded box collapse broken again on 2.4 #1857

soullivaneuh opened this issue Apr 11, 2018 · 4 comments

Comments

@soullivaneuh
Copy link
Contributor

soullivaneuh commented Apr 11, 2018

Issue type:

  • Feature request
  • Bug report
  • Documentation

Environment:

  • AdminLTE Version: 2.4
  • Operating System: Linux
  • Browser (Version): Chrome (Latest)

Description:

The issue was already reported in #302 and fixed.

Here again, on 2.4, the box can not be collapsed if they are loaded in ajax.

A automated test should be added to prevent this kind of bug in the future.

Current possible workaround waiting the fix, using the arrive component:

jQuery(document).arrive('div.box [data-widget]', (element) => {
  $(element).parents('.box').boxWidget();
});
@ranjangolden
Copy link

Where i need to put this code

@adrianrz
Copy link

adrianrz commented Oct 29, 2018

Is the issue remains unsolved?
Thanks

@ZackPK
Copy link

ZackPK commented Nov 16, 2018

All,

As a workaround, add "jquery.arrive" JS to your project, https://raw.githubusercontent.com/uzairfarooq/arrive/master/minified/arrive.min.js

then call "jQuery(document).arrive('div.box [data-widget]', (element) => { $(element).parents('.box').boxWidget(); });" after ajax request.

@schirrel schirrel mentioned this issue Jun 6, 2019
@REJack
Copy link
Collaborator

REJack commented Jul 11, 2019

If you add a complete box via a ajax call you need to init the boxWidget on the box to collapse it after insert.

@REJack REJack closed this as completed Jul 11, 2019
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

5 participants