Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

function update or destroy? #17

Closed
my-instantcms opened this issue Jun 14, 2019 · 1 comment
Closed

function update or destroy? #17

my-instantcms opened this issue Jun 14, 2019 · 1 comment

Comments

@my-instantcms
Copy link

Hello.
Thanks for the script.
Is there a function to update or destroy?
I add a new block for ajax and the script does not see it.
I tried to announce the script again after the ajax, but then everything breaks down.
There is a lack of a function to update or destroy, so that after the Ajax you can call again

@Barrior
Copy link
Owner

Barrior commented Jun 15, 2019

Hi.
Thanks for your use.
Excuse my understanding is not very clear.
You could resolve the problem with either of the two ways below.

  1. Your can tigger again the method ($('.wrapper').DDSort(...)) after the new block was rendered on the DOM tree.
  2. You can set a higher level delegate element maybe ( like this$('.parent-element').DDSort(...)).

@Barrior Barrior closed this as completed Jul 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants