{"action":"created","issue":{"url":"https://api.github.com/repos/pixelhumain/communecter/issues/240","labels_url":"https://api.github.com/repos/pixelhumain/communecter/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/pixelhumain/communecter/issues/240/comments","events_url":"https://api.github.com/repos/pixelhumain/communecter/issues/240/events","html_url":"https://github.com/pixelhumain/communecter/issues/240","id":116390246,"number":240,"title":"pourquoi a t on besoin de openMainPanelFromPanel et pas faire ca direct dans showAjaxPanel ?","user":{"login":"oceatoon","id":192076,"avatar_url":"https://avatars.githubusercontent.com/u/192076?v=3","gravatar_id":"","url":"https://api.github.com/users/oceatoon","html_url":"https://github.com/oceatoon","followers_url":"https://api.github.com/users/oceatoon/followers","following_url":"https://api.github.com/users/oceatoon/following{/other_user}","gists_url":"https://api.github.com/users/oceatoon/gists{/gist_id}","starred_url":"https://api.github.com/users/oceatoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oceatoon/subscriptions","organizations_url":"https://api.github.com/users/oceatoon/orgs","repos_url":"https://api.github.com/users/oceatoon/repos","events_url":"https://api.github.com/users/oceatoon/events{/privacy}","received_events_url":"https://api.github.com/users/oceatoon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pixelhumain/communecter/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"Kgneo","id":7578166,"avatar_url":"https://avatars.githubusercontent.com/u/7578166?v=3","gravatar_id":"","url":"https://api.github.com/users/Kgneo","html_url":"https://github.com/Kgneo","followers_url":"https://api.github.com/users/Kgneo/followers","following_url":"https://api.github.com/users/Kgneo/following{/other_user}","gists_url":"https://api.github.com/users/Kgneo/gists{/gist_id}","starred_url":"https://api.github.com/users/Kgneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kgneo/subscriptions","organizations_url":"https://api.github.com/users/Kgneo/orgs","repos_url":"https://api.github.com/users/Kgneo/repos","events_url":"https://api.github.com/users/Kgneo/events{/privacy}","received_events_url":"https://api.github.com/users/Kgneo/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-11T18:13:09Z","updated_at":"2015-11-12T04:09:47Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/pixelhumain/communecter/issues/comments/155992914","html_url":"https://github.com/pixelhumain/communecter/issues/240#issuecomment-155992914","issue_url":"https://api.github.com/repos/pixelhumain/communecter/issues/240","id":155992914,"user":{"login":"Kgneo","id":7578166,"avatar_url":"https://avatars.githubusercontent.com/u/7578166?v=3","gravatar_id":"","url":"https://api.github.com/users/Kgneo","html_url":"https://github.com/Kgneo","followers_url":"https://api.github.com/users/Kgneo/followers","following_url":"https://api.github.com/users/Kgneo/following{/other_user}","gists_url":"https://api.github.com/users/Kgneo/gists{/gist_id}","starred_url":"https://api.github.com/users/Kgneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kgneo/subscriptions","organizations_url":"https://api.github.com/users/Kgneo/orgs","repos_url":"https://api.github.com/users/Kgneo/repos","events_url":"https://api.github.com/users/Kgneo/events{/privacy}","received_events_url":"https://api.github.com/users/Kgneo/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T04:09:47Z","updated_at":"2015-11-12T04:09:47Z","body":"       function openMainPanelFromPanel(url, title, icon, id){\r\n\t\t$(Sig.cssModuleName + \" .item_map_list_\" + id).click();\r\n\t\topenMainPanel(url, title, icon, id);\r\n\t}\r\n\r\n\tfunction openMainPanel(url, title, icon, id){\r\n\t\tshowAjaxPanel(url, title, icon);\r\n\t\tshowMap(false);\r\n\t\t\r\n\t\tif(Sig.currentMarkerPopupOpen == null) return;\r\n\t\tvar latlng = Sig.currentMarkerPopupOpen.getLatLng();\r\n\t\t\r\n\t\tSig.centerSimple(latlng, 14);\r\n\t\t\r\n\t\tSig.hidePopupContent(id);\r\n\t}\r\n\r\nEn passant par openMainPanelFromPanel, on centre la carte sur le marker correspondant, et on ouvre la popup du marker, puis on appel showAjaxPanel.\r\nOn peut peut-être faire ça autrement, en passant l'id de l'élément à showAjaxPanel, pour pouvoir centrer la carto depuis showAjaxPanel.\r\n\r\nJ'avais choisi cette solution pour ne pas modifier le fonctionnement de showAjaxPanel, mais je trouve que ce serait une bonne idée de le faire maintenant.\r\n\r\nwdyt ?"}}