Scarab commit: svn commit: r10681 - trunk/src/webapp/scripts/scarabutil.js
Hussayn Dabbous <[email protected]>
| Newsgroups | gmane.comp.java.scarab.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: dabbous
Date: 2009-01-15 02:41:55-0800
New Revision: 10681
Modified:
trunk/src/webapp/scripts/scarabutil.js
Log:
- merged the banner styles into one single style definition.
- fixed a bug: banner was not any more clickable
Modified: trunk/src/webapp/scripts/scarabutil.js
Url: http://scarab.tigris.org/source/browse/scarab/trunk/src/webapp/scripts/scarabutil.js?view=diff&pathrev=10681&r1=10680&r2=10681
==============================================================================
--- trunk/src/webapp/scripts/scarabutil.js (original)
+++ trunk/src/webapp/scripts/scarabutil.js 2009-01-15 02:41:55-0800
@@ -1,3 +1,5 @@
+var BANNER_ID = "scb_banner";
+
function setCookieScarableftNav(name, value) {
var Mycookie = name + "=" + escape(value) + "; path=" + "/";
document.cookie = Mycookie;
@@ -29,11 +31,11 @@
return cookie.substring(tag + 7, tag + 8)
}
function hideBanner() {
- document.getElementById('banner').style.display="none"
+ document.getElementById(BANNER_ID).style.display="none"
setCookieBanner("Banner","0")
}
function showBanner() {
- document.getElementById('banner').style.display=""
+ document.getElementById(BANNER_ID).style.display=""
setCookieBanner("Banner","1")
}
------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3577&dsMessageId=1026222