Revision 5984
Added by ben leinfelder almost 14 years ago
lib/style/skins/esa/header.jsp | ||
---|---|---|
97 | 97 |
var modSearch = document.getElementById('modSearch'); |
98 | 98 |
login_block.innerHTML=""; |
99 | 99 |
submission_block.innerHTML=""; |
100 |
if(response.indexOf("public") > 0) { |
|
100 |
if(response.indexOf("public") > 0 || response.indexOf("null") > 0) {
|
|
101 | 101 |
login_block.innerHTML = "<a href='<%=CGI_URL%>/register-dataset.cgi?cfg=esa&stage=loginform' target='_top' onMouseOut='MM_swapImgRestore();' onMouseOver='MM_swapImage(\"Login\",\"\",\"ESAHeaderSlices/RollOvers/LoginR.gif\",1);'><img name='Login' src='ESAHeaderSlices/Login.gif' width='62' height='18' border='0' title='Login' alt='Login'></a>"; |
102 | 102 |
submission_block.innerHTML = "<a href='<%=CGI_URL%>/register-dataset.cgi?cfg=esa&stage=loginform&submission=true' target='_top' onMouseOut='MM_swapImgRestore();' onMouseOver='MM_swapImage(\"MySubmissions\",\"\",\"ESAHeaderSlices/RollOvers/MySubmissionsR.gif\",1);'><img name='MySubmissions' src='ESAHeaderSlices/MySubmissions.gif' width='114' height='18' border='0' title='My Submissions - Before you can view your submissions you must login.' alt='My Submissions'></a>"; |
103 | 103 |
} else { |
Also available in: Unified diff
check for 'null' as well as 'public' user when rendering the header Login/Logout option