|
|
@@ -205,10 +205,17 @@ const UtilsCookie = {
|
|
|
|
|
|
const applyCookieFilters = (element, filteredCookies) => {
|
|
|
filteredCookies.forEach(cookie => {
|
|
|
- if (cookie.text !== '' && element.tagName === 'INPUT') {
|
|
|
+ if (cookie.text === '' || (element.type === 'radio' && element.value.toString() !== cookie.text.toString())) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ if (element.tagName === 'INPUT' && element.type === 'radio' && element.value.toString() === cookie.text.toString()) {
|
|
|
+ element.checked = true
|
|
|
+ cachedFilters[cookie.field] = cookie.text
|
|
|
+ } else if (element.tagName === 'INPUT') {
|
|
|
element.value = cookie.text
|
|
|
cachedFilters[cookie.field] = cookie.text
|
|
|
- } else if (cookie.text !== '' && element.tagName === 'SELECT' && bootstrapTable.options.filterControlContainer) {
|
|
|
+ } else if (element.tagName === 'SELECT' && bootstrapTable.options.filterControlContainer) {
|
|
|
element.value = cookie.text
|
|
|
cachedFilters[cookie.field] = cookie.text
|
|
|
} else if (cookie.text !== '' && element.tagName === 'SELECT') {
|