cakephp-datatable icon indicating copy to clipboard operation
cakephp-datatable copied to clipboard

linkeable error

Open a3cortes opened this issue 9 years ago • 3 comments

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.

a3cortes avatar Mar 15 '16 02:03 a3cortes

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

tigrang avatar Mar 15 '16 02:03 tigrang

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.

a3cortes avatar Mar 15 '16 02:03 a3cortes

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

tigrang avatar Apr 03 '16 02:04 tigrang