{"action":"created","issue":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/2483","repository_url":"https://api.github.com/repos/wenzhixin/bootstrap-table","labels_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/2483/labels{/name}","comments_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/2483/comments","events_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/2483/events","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/2483","id":166309614,"number":2483,"title":"Problem with cookie extension ","user":{"login":"turigeza","id":9335740,"avatar_url":"https://avatars.githubusercontent.com/u/9335740?v=3","gravatar_id":"","url":"https://api.github.com/users/turigeza","html_url":"https://github.com/turigeza","followers_url":"https://api.github.com/users/turigeza/followers","following_url":"https://api.github.com/users/turigeza/following{/other_user}","gists_url":"https://api.github.com/users/turigeza/gists{/gist_id}","starred_url":"https://api.github.com/users/turigeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turigeza/subscriptions","organizations_url":"https://api.github.com/users/turigeza/orgs","repos_url":"https://api.github.com/users/turigeza/repos","events_url":"https://api.github.com/users/turigeza/events{/privacy}","received_events_url":"https://api.github.com/users/turigeza/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/labels/cookie","name":"cookie","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-19T11:34:48Z","updated_at":"2016-08-07T20:46:47Z","closed_at":null,"body":"I can not get the cookie extension to work it will not call queryParams. But maybe it is its default behaviour ?\r\n\r\nMy code looks like this. \r\n\r\n```\r\n$('#reorderingProductsTable').bootstrapTable({\r\n        url: '{{path('gecorg_reordering_supplier_products_json')}}',\r\n        classes: 'table table-no-bordered',\r\n        showExport:true,\r\n        clickToSelect:true,\r\n        toolbar:'#reorderingProductsTableToolbar',\r\n        showColumns: true,\r\n        pageSize: 50,\r\n        showMultiSort: true,\r\n        filterControl: true,\r\n\r\n       // if you uncomment the following three lines everything works fine\r\n        cookie:true,\r\n        cookieIdTable:'reorderingProductsTable',\r\n        cookieStorage: 'localStorage',\r\n\r\n        responseHandler:function responseHandler(res) {\r\n            log('responseHandler');\r\n            return res.rows;\r\n        },\r\n\r\n        queryParams:function queryParams(params) {\r\n            log('yes');\r\n            $('#reorderingProductsTableToolbar').find('input[name]').each(function () {\r\n                params[$(this).attr('name')] = $(this).val();\r\n            });\r\n            log(params);\r\n            return params;\r\n        },\r\n\r\n        columns: [\r\n            {\r\n                field: 'state',\r\n                checkbox: true,\r\n            },\r\n            {\r\n                field: 'id',\r\n                sortable: 'true',\r\n                title: 'ID',\r\n                filterControl :'input'\r\n            },\r\n            {\r\n```\r\n\r\nAnd if cookies disabled everything works fine. But if \r\n\r\n```\r\n        cookie:true,\r\n        cookieIdTable:'reorderingProductsTable',\r\n        cookieStorage: 'localStorage',\r\n\r\n```\r\n\r\nThen queryParams will never get called. Is this normal ?\r\n\r\nGeza"},"comment":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/comments/238107413","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/2483#issuecomment-238107413","issue_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/2483","id":238107413,"user":{"login":"turigeza","id":9335740,"avatar_url":"https://avatars.githubusercontent.com/u/9335740?v=3","gravatar_id":"","url":"https://api.github.com/users/turigeza","html_url":"https://github.com/turigeza","followers_url":"https://api.github.com/users/turigeza/followers","following_url":"https://api.github.com/users/turigeza/following{/other_user}","gists_url":"https://api.github.com/users/turigeza/gists{/gist_id}","starred_url":"https://api.github.com/users/turigeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turigeza/subscriptions","organizations_url":"https://api.github.com/users/turigeza/orgs","repos_url":"https://api.github.com/users/turigeza/repos","events_url":"https://api.github.com/users/turigeza/events{/privacy}","received_events_url":"https://api.github.com/users/turigeza/received_events","type":"User","site_admin":false},"created_at":"2016-08-07T20:46:47Z","updated_at":"2016-08-07T20:46:47Z","body":"@bolom no I was not able to use the plugin after all. I have wrote a small plug in to save some of the settings in the server side instead as table views but it is rather bodged : )"}}
{"actor":{"display_login":"turigeza"}}