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

linkeable error #72

Open
a3cortes opened this issue Mar 15, 2016 · 3 comments
Open

linkeable error #72

a3cortes opened this issue Mar 15, 2016 · 3 comments

Comments

@a3cortes
Copy link

I would like to include some plugins in my datatable.
but if I go to the second page of results, it stops displaying, the actions edit, delete, modified.

@tigrang
Copy link
Owner

tigrang commented Mar 15, 2016

I'm going to need some more info. What plugins are we talking about?

@a3cortes
Copy link
Author

I am using jquery Data table 1.10.11 and jquery 1.9.2 and i am trying to perform ajax call like this on click event.

(function($){
$(document).on('ready', function(){
// Código necesario para ejecutar las acciones usando los iconos
$('.action-icon').on('click', function(){
var $next = $(this).next();
// Si es action delete se dispara el on-click
if($next.next().hasClass('action-delete')){
$next.next().trigger('click');
}
// En otro caso, se toma el atributo href y se redirecciona
else{
var href = $next.attr('href');
window.location.href = href;
}
});
});
})(jQuery);

but if I go to the second page of results, it stops displaying, the actions edit, delete, modified.

@tigrang
Copy link
Owner

tigrang commented Apr 3, 2016

This plugin works with datatables version up to 1.9. You'll need to configure the compatibility layer in jquery datatables to send the request using the fields for the legacy version. See https://datatables.net/manual/server-side#Legacy

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

2 participants