From 46f4352abecf5e78399da3ce6fe9a2f51600ef4b Mon Sep 17 00:00:00 2001 From: SandyDatatables Date: Thu, 12 Aug 2021 10:21:50 +0000 Subject: [PATCH] dev: Update examples to contain correct code at the base of the page Jira Issue DD-2070 --- features/fuzzySearch/rankColumn.html | 15 +++++++-------- features/fuzzySearch/returnSearch.html | 15 +++++++-------- features/fuzzySearch/stateSaving.html | 18 ++++++++++-------- features/fuzzySearch/threshold.html | 16 ++++++++-------- features/fuzzySearch/toggleSmart.html | 16 ++++++++-------- 5 files changed, 40 insertions(+), 40 deletions(-) diff --git a/features/fuzzySearch/rankColumn.html b/features/fuzzySearch/rankColumn.html index 2486805..bb5ac81 100644 --- a/features/fuzzySearch/rankColumn.html +++ b/features/fuzzySearch/rankColumn.html @@ -626,14 +626,13 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - var table = $('#example').DataTable({ - fuzzySearch: { - toggleSmart: true, - rankColumn: 6, - threshold: 0.5, - returnSearch: false - } - }); + $(document).ready(function() { + var table = $('#example').DataTable({ + fuzzySearch: { + rankColumn: 6 + } + }); + } ); } ); diff --git a/features/fuzzySearch/returnSearch.html b/features/fuzzySearch/returnSearch.html index 7a403fd..23bf060 100644 --- a/features/fuzzySearch/returnSearch.html +++ b/features/fuzzySearch/returnSearch.html @@ -567,14 +567,13 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - var table = $('#example').DataTable({ - fuzzySearch: { - toggleSmart: true, - rankColumn: 6, - threshold: 0.5, - returnSearch: false - } - }); + $(document).ready(function() { + var table = $('#example').DataTable({ + fuzzySearch: { + returnSearch: true + } + }); + } ); } ); diff --git a/features/fuzzySearch/stateSaving.html b/features/fuzzySearch/stateSaving.html index ba7a001..1d72e88 100644 --- a/features/fuzzySearch/stateSaving.html +++ b/features/fuzzySearch/stateSaving.html @@ -629,14 +629,16 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - var table = $('#example').DataTable({ - fuzzySearch: { - toggleSmart: true, - rankColumn: 6, - threshold: 0.5, - returnSearch: false - } - }); + $(document).ready(function() { + var table = $('#example').DataTable({ + fuzzySearch: { + rankColumn: 6, + threshold: true, + toggleSmart: true + }, + stateSave: true + }); + } ); } ); diff --git a/features/fuzzySearch/threshold.html b/features/fuzzySearch/threshold.html index ab61ab1..99fd6d2 100644 --- a/features/fuzzySearch/threshold.html +++ b/features/fuzzySearch/threshold.html @@ -627,14 +627,14 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - var table = $('#example').DataTable({ - fuzzySearch: { - toggleSmart: true, - rankColumn: 6, - threshold: 0.5, - returnSearch: false - } - }); + $(document).ready(function() { + var table = $('#example').DataTable({ + fuzzySearch: { + rankColumn: 6, + threshold: 0.1 + } + }); + } ); } ); diff --git a/features/fuzzySearch/toggleSmart.html b/features/fuzzySearch/toggleSmart.html index 17630b8..43a9c33 100644 --- a/features/fuzzySearch/toggleSmart.html +++ b/features/fuzzySearch/toggleSmart.html @@ -627,14 +627,14 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - var table = $('#example').DataTable({ - fuzzySearch: { - toggleSmart: true, - rankColumn: 6, - threshold: 0.5, - returnSearch: false - } - }); + $(document).ready(function() { + var table = $('#example').DataTable({ + fuzzySearch: { + rankColumn: 6, + toggleSmart: true + } + }); + } ); } );