{"action":"created","issue":{"url":"https://api.github.com/repos/almasaeed2010/AdminLTE/issues/1345","repository_url":"https://api.github.com/repos/almasaeed2010/AdminLTE","labels_url":"https://api.github.com/repos/almasaeed2010/AdminLTE/issues/1345/labels{/name}","comments_url":"https://api.github.com/repos/almasaeed2010/AdminLTE/issues/1345/comments","events_url":"https://api.github.com/repos/almasaeed2010/AdminLTE/issues/1345/events","html_url":"https://github.com/almasaeed2010/AdminLTE/issues/1345","id":202783459,"number":1345,"title":"Save box state, for default collapsed and expanded boxes.","user":{"login":"lenamtl","id":2241324,"avatar_url":"https://avatars.githubusercontent.com/u/2241324?v=3","gravatar_id":"","url":"https://api.github.com/users/lenamtl","html_url":"https://github.com/lenamtl","followers_url":"https://api.github.com/users/lenamtl/followers","following_url":"https://api.github.com/users/lenamtl/following{/other_user}","gists_url":"https://api.github.com/users/lenamtl/gists{/gist_id}","starred_url":"https://api.github.com/users/lenamtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenamtl/subscriptions","organizations_url":"https://api.github.com/users/lenamtl/orgs","repos_url":"https://api.github.com/users/lenamtl/repos","events_url":"https://api.github.com/users/lenamtl/events{/privacy}","received_events_url":"https://api.github.com/users/lenamtl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-01-24T10:47:59Z","updated_at":"2017-01-26T00:34:53Z","closed_at":null,"body":"Hi,\r\n\r\nI'm using this solution from @BlueTeck for saving box state with localstorage\r\nhttps://github.com/almasaeed2010/AdminLTE/issues/1064\r\n\r\nIt's working great as long as all the boxes on a page have the same default state, all collapsed or all expanded.\r\nI'm wondering if anyone have modified it to use it \r\nwhen the box is collapsed by default with collapsed-box class and expanded box.\r\n<div class=\"box box-primary collapsed-box\" id=\"filters\" data-name=\"filters\">\r\n\r\nIf boxes are all collapsed on the  page\r\nI can use\r\nif(box.state == 1)\r\ninstead of\r\nif(box.state == 0)\r\n\r\nI also tried this with no luck\r\n\r\n```\r\nif(box.state == 0){\r\n$('.box[data-name=\"'+box.boxname+'\"]').find($.AdminLTE.options.boxWidgetOptions.boxWidgetSelectors.collapse).trigger( \"click\" );\r\n}                         \r\nelse {\r\n  $('.box[data-name=\"'+box.boxname+'\"]').removeClass(\"collapsed-box\");\r\n\t} \r\n```\r\n\r\nAny solution is welcome\r\nThanks"},"comment":{"url":"https://api.github.com/repos/almasaeed2010/AdminLTE/issues/comments/275276971","html_url":"https://github.com/almasaeed2010/AdminLTE/issues/1345#issuecomment-275276971","issue_url":"https://api.github.com/repos/almasaeed2010/AdminLTE/issues/1345","id":275276971,"user":{"login":"REJack","id":1554582,"avatar_url":"https://avatars.githubusercontent.com/u/1554582?v=3","gravatar_id":"","url":"https://api.github.com/users/REJack","html_url":"https://github.com/REJack","followers_url":"https://api.github.com/users/REJack/followers","following_url":"https://api.github.com/users/REJack/following{/other_user}","gists_url":"https://api.github.com/users/REJack/gists{/gist_id}","starred_url":"https://api.github.com/users/REJack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/REJack/subscriptions","organizations_url":"https://api.github.com/users/REJack/orgs","repos_url":"https://api.github.com/users/REJack/repos","events_url":"https://api.github.com/users/REJack/events{/privacy}","received_events_url":"https://api.github.com/users/REJack/received_events","type":"User","site_admin":false},"created_at":"2017-01-26T00:34:53Z","updated_at":"2017-01-26T00:34:53Z","body":"it should work. \r\ni have 2 default collapsed and 2 expanded and it works normal."}}
{"actor":{"display_login":"REJack"}}