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

Append (loadRows) with problem in predraw (jQuery 3.x) #861

Open
stenioanibal opened this issue Sep 25, 2019 · 0 comments
Open

Append (loadRows) with problem in predraw (jQuery 3.x) #861

stenioanibal opened this issue Sep 25, 2019 · 0 comments

Comments

@stenioanibal
Copy link

stenioanibal commented Sep 25, 2019

In case of append, with jQuery 3.x, footable makes a rewrite in existent rows.

I fixed this editing these lines:

load: function(data, append){
      var self = this, rows = $.map(data, function(r){
          return new F.Row(self.ft, self.ft.columns.array, r);
      });
      F.arr.each(append ? rows : this.array, function(row){
          row.predraw();
      });
      this.all = (F.is.boolean(append) ? append : false) ? this.all.concat(rows) : rows;
      this.array = this.all.slice(0);
      this.ft.draw();
},
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