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

Conditional Paging not working in Firefox (v63.0.3) #407

Open
Murphy1976 opened this issue Nov 29, 2018 · 1 comment
Open

Conditional Paging not working in Firefox (v63.0.3) #407

Murphy1976 opened this issue Nov 29, 2018 · 1 comment

Comments

@Murphy1976
Copy link

Murphy1976 commented Nov 29, 2018

I noticed that the plugin ConditionalPaging.js wasn't firing when I viewed my page in Firefox.

(https://github.com/DataTables/Plugins/blob/master/features/conditionalPaging/dataTables.conditionalPaging.js)

I thought it might be that I had conditionalPaging in quotes, but either way, when I initialize my DataTables, "conditionalPaging": true OR conditionalPaging: true wouldn't work.

I dove into the actual code and inserted a few console.logs and I found that the options variable is returning as undefined. I don't know how to resolve this. It's working fine in Chrome and Safari.

### Example JS:

$('#myTable').DataTable({
			"pageLength": 12,
			conditionalPaging: true,
			"pagingType": "simple_numbers",
			"searching": true,
			"dom": '<"top"fp<"clear">>rt<"bottom"p<"clear">>',
			"language": {
				"search": "",
				"searchPlaceholder": "Search Wish List",
				"paginate": {
					"first": "<<",
					"previous": "<",
					"next": ">",
					"last": ">>",
				}
			},
			"columnDefs": [{
				"targets": [0, 1],
				"orderable": false
			}],
			"order": [],
			"initComplete": function(settings, json) {
				
				$(".dataTables_wrapper .top").addClass("row mb-3");
				$(".dataTables_wrapper .bottom").addClass("row mb-3");
				$(".dataTables_wrapper .top .dataTables_filter").addClass("mt-0 col-8 col-md-6 text-left");
				$(".dataTables_wrapper .top .dataTables_filter input").addClass("form-control form-control-sm mx-0");
				$(".dataTables_wrapper .top .dataTables_paginate").addClass("mt-0 pl-0 col-4 col-md-6 text-right");
				$(".dataTables_wrapper .bottom .dataTables_paginate").addClass("pl-0 col-12 text-right");
			}
		});

edit: I am using DataTables 1.10.19

@DataTables
Copy link
Collaborator

Can you give a link to a page showing the issue please?

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