{"action":"created","issue":{"url":"https://api.github.com/repos/ignacionelson/ProjectSend/issues/438","repository_url":"https://api.github.com/repos/ignacionelson/ProjectSend","labels_url":"https://api.github.com/repos/ignacionelson/ProjectSend/issues/438/labels{/name}","comments_url":"https://api.github.com/repos/ignacionelson/ProjectSend/issues/438/comments","events_url":"https://api.github.com/repos/ignacionelson/ProjectSend/issues/438/events","html_url":"https://github.com/ignacionelson/ProjectSend/issues/438","id":242547648,"number":438,"title":"Javascript to highlight live link in side menu","user":{"login":"olimax","id":5392094,"avatar_url":"https://avatars4.githubusercontent.com/u/5392094?v=4","gravatar_id":"","url":"https://api.github.com/users/olimax","html_url":"https://github.com/olimax","followers_url":"https://api.github.com/users/olimax/followers","following_url":"https://api.github.com/users/olimax/following{/other_user}","gists_url":"https://api.github.com/users/olimax/gists{/gist_id}","starred_url":"https://api.github.com/users/olimax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olimax/subscriptions","organizations_url":"https://api.github.com/users/olimax/orgs","repos_url":"https://api.github.com/users/olimax/repos","events_url":"https://api.github.com/users/olimax/events{/privacy}","received_events_url":"https://api.github.com/users/olimax/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-12T23:49:13Z","updated_at":"2017-07-17T09:24:46Z","closed_at":"2017-07-17T06:45:55Z","body":"Snippet I put in custom.js to highlight active link in menu\r\n\r\n```\r\nset_activemenulink();\r\nfunction set_activemenulink()\r\n{\r\n\t\tvar disloc = window.location.pathname;\r\n\t\tdisloc = disloc.replace(/\\/$/, \"\");// remove trailing slash if any\r\n\t\t//console.log(disloc);\r\n\t\tvar daindex = disloc.lastIndexOf(\"/\") + 1;\r\n\t\tvar dafilename = disloc.substr(daindex);// get filename\r\n\t\t//console.log(dafilename);\r\n\t\t$('.current_nav .dropdown_content').find('a').each(function() \r\n\t\t{  \r\n\t\t\tlinkref = $(this).attr('href');\r\n\t\t\tdaindex = linkref.lastIndexOf(\"/\") + 1;\r\n\t\t\tlinkref = linkref.substr(daindex);\r\n\t\t  if(linkref == dafilename)\r\n\t\t  {  \t  \t\r\n\t\t  \t$(this).find('.submenu_label').toggleClass('activemenulink');\r\n\t\t  } \r\n\t\t});\r\n}// ends function \r\n```\r\n\r\nthen put this in custom.css\r\n```\r\nli.current_nav .nav_top_level .menu_label,\r\nli.current_nav .activemenulink\r\n{\r\n\tcolor: #f00;\r\n}\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ignacionelson/ProjectSend/issues/comments/315706023","html_url":"https://github.com/ignacionelson/ProjectSend/issues/438#issuecomment-315706023","issue_url":"https://api.github.com/repos/ignacionelson/ProjectSend/issues/438","id":315706023,"user":{"login":"olimax","id":5392094,"avatar_url":"https://avatars4.githubusercontent.com/u/5392094?v=4","gravatar_id":"","url":"https://api.github.com/users/olimax","html_url":"https://github.com/olimax","followers_url":"https://api.github.com/users/olimax/followers","following_url":"https://api.github.com/users/olimax/following{/other_user}","gists_url":"https://api.github.com/users/olimax/gists{/gist_id}","starred_url":"https://api.github.com/users/olimax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olimax/subscriptions","organizations_url":"https://api.github.com/users/olimax/orgs","repos_url":"https://api.github.com/users/olimax/repos","events_url":"https://api.github.com/users/olimax/events{/privacy}","received_events_url":"https://api.github.com/users/olimax/received_events","type":"User","site_admin":false},"created_at":"2017-07-17T09:24:46Z","updated_at":"2017-07-17T09:24:46Z","body":"Very true\r\nMuch easier in PHP\r\nThanks\r\n\r\nHowever you have given the  link the class 'active', which you use on any open dropdown header except the actual active header has the class 'current_nav'\r\nJust seems a bit odd but not that important\r\n"}}
{"actor":{"display_login":"olimax"}}