summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-12-05 23:54:18 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-12-05 23:54:18 +0000
commit6da711f6b15d5fb88f9ddeb2d3eff7375639b140 (patch)
treed94286bd2d154cb6ef3bbb4fa74eddec9b551d01 /js
parent10e9d3a1fbdd919213bfe8dd76b2b0c55065e7aa (diff)
downloadthemes-6da711f6b15d5fb88f9ddeb2d3eff7375639b140.tar.gz
themes-6da711f6b15d5fb88f9ddeb2d3eff7375639b140.tar.bz2
themes-6da711f6b15d5fb88f9ddeb2d3eff7375639b140.zip
merge recent changes into HEAD
Diffstat (limited to 'js')
-rw-r--r--js/bitweaver.js6
-rw-r--r--js/tabs/tabpane.js22
2 files changed, 14 insertions, 14 deletions
diff --git a/js/bitweaver.js b/js/bitweaver.js
index ebc2a6f..12399e4 100644
--- a/js/bitweaver.js
+++ b/js/bitweaver.js
@@ -1,4 +1,4 @@
-// $Header: /cvsroot/bitweaver/_bit_themes/js/Attic/bitweaver.js,v 1.2 2005/11/22 07:27:57 squareing Exp $
+// $Header: /cvsroot/bitweaver/_bit_themes/js/Attic/bitweaver.js,v 1.3 2005/12/05 23:54:18 squareing Exp $
//
// Set client offset (in minutes) to a cookie to avoid server-side DST issues
@@ -217,8 +217,8 @@ function setCookie(name, value, expire, path, domain, secure) {
var cookie_domain = escape(bitCookieDomain);
var curCookie = name + "=" + escape(value)
+ ((expire) ? "; expires=" + expire.toGMTString() : "; expires=" + expires.toGMTString())
- + ((path) ? "; path=" + path : cookie_path)
- + ((domain) ? "; domain=" + domain : cookie_domain)
+ + ((path) ? "; path=" + path : "; path=" + cookie_path)
+ + ((domain) ? "; domain=" + domain : "; domain=" + cookie_domain)
+ ((secure) ? "; secure" : "");
//alert(curCookie);
document.cookie = curCookie;
diff --git a/js/tabs/tabpane.js b/js/tabs/tabpane.js
index 133a086..76966fc 100644
--- a/js/tabs/tabpane.js
+++ b/js/tabs/tabpane.js
@@ -1,12 +1,12 @@
-/*----------------------------------------------------------------------------\
-| Tab Pane 1.02 |
-|-----------------------------------------------------------------------------|
-| Created by Erik Arvidsson |
-| (http://webfx.eae.net/contact.html#erik) |
-| For WebFX (http://webfx.eae.net/) |
-|-----------------------------------------------------------------------------|
-| Copyright (c) 1998 - 2003 Erik Arvidsson |
-\----------------------------------------------------------------------------*/
+/*--------------------------------------------------------------------------\
+| Tab Pane 1.02 |
+|---------------------------------------------------------------------------|
+| Created by Erik Arvidsson |
+| (http://webfx.eae.net/contact.html#erik) |
+| For WebFX (http://webfx.eae.net/) |
+|---------------------------------------------------------------------------|
+| Copyright (c) 1998 - 2003 Erik Arvidsson |
+\--------------------------------------------------------------------------*/
// This function is used to define if the browser supports the needed
// features
@@ -94,7 +94,7 @@ WebFXTabPane.prototype.setSelectedIndex = function ( n ) {
this.pages[ this.selectedIndex ].show();
if ( this.useCookie )
- WebFXTabPane.setCookie( "webfxtab_" + this.element.id, n ); // session cookie
+ WebFXTabPane.setCookie( "webfxtab_" + this.element.id, n, 1 ); // session cookie
}
};
@@ -146,7 +146,7 @@ WebFXTabPane.setCookie = function ( sName, sValue, nDays ) {
expires = "; expires=" + d.toGMTString();
}
- document.cookie = sName + "=" + sValue + expires + "; path=/";
+ document.cookie = sName + "=" + sValue + expires + "; path="+bitCookiePath;
};
WebFXTabPane.getCookie = function (sName) {