From 94380b8cb5e362a073a5f1445291a4634065310c Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Wed, 5 Sep 2007 16:57:04 +0000 Subject: [PATCH] Comment system updates: editor and private comments now functional. --- application/views/request/view.xhtml | 2 +- document_root/css/request/view.oss | 7 ++++++- document_root/javascript/request/view.js | 10 ++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/application/views/request/view.xhtml b/application/views/request/view.xhtml index 9e22c6cc..05327aa8 100644 --- a/application/views/request/view.xhtml +++ b/application/views/request/view.xhtml @@ -90,7 +90,7 @@ <div id="comments"> <div class="tabBar"> - <a href="#" id="commentsTab">Comments</a> + <a href="#" id="commentsTab" class="selected">Comments</a> <a href="#" id="editorCommentsTab">Editor Comments</a> <a href="#" id="privateCommentsTab">Private Comments</a> </div> diff --git a/document_root/css/request/view.oss b/document_root/css/request/view.oss index 0e197dda..06f55f1b 100644 --- a/document_root/css/request/view.oss +++ b/document_root/css/request/view.oss @@ -68,7 +68,12 @@ div#comments { } a:hover { - color: #f00; + color: #c00; + } + + a.selected { + color: #c00; + background-color: #222; } } diff --git a/document_root/javascript/request/view.js b/document_root/javascript/request/view.js index b0d01824..f458b12d 100644 --- a/document_root/javascript/request/view.js +++ b/document_root/javascript/request/view.js @@ -17,10 +17,20 @@ function viewRequestSelectTab() var editorCommentsContent = document.getElementById('editorCommentsContent'); var privateCommentsContent = document.getElementById('privateCommentsContent'); + var commentsTab = document.getElementById('commentsTab'); + var editorCommentsTab = document.getElementById('editorCommentsTab'); + var privateCommentsTab = document.getElementById('privateCommentsTab'); + commentsContent.style.display = 'none'; editorCommentsContent.style.display = 'none'; privateCommentsContent.style.display = 'none'; + commentsTab.className = ''; + editorCommentsTab.className = ''; + privateCommentsTab.className = ''; + + this.className = 'selected'; + if (this.id == 'commentsTab') { commentsContent.style.display = 'block'; } else if (this.id == 'editorCommentsTab') { -- GitLab