summaryrefslogtreecommitdiff
path: root/javascript/libs
diff options
context:
space:
mode:
authorNick Palmer <nick@sluggardy.net>2007-06-28 19:07:08 +0000
committerNick Palmer <nick@sluggardy.net>2007-06-28 19:07:08 +0000
commitf9ddea3cfbc26b9cbe53ab01c6b76f756bbd23f8 (patch)
tree73212236581d51ed0d775257beacfc4bca5fc75e /javascript/libs
parent263fb9ebcf7753436613bfe4721715aa7339d750 (diff)
downloadutil-f9ddea3cfbc26b9cbe53ab01c6b76f756bbd23f8.tar.gz
util-f9ddea3cfbc26b9cbe53ab01c6b76f756bbd23f8.tar.bz2
util-f9ddea3cfbc26b9cbe53ab01c6b76f756bbd23f8.zip
Extend persistence hack to support anchored URLs as well.
Diffstat (limited to 'javascript/libs')
-rw-r--r--javascript/libs/tabpane.js2
-rw-r--r--javascript/libs/tabpane_original.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/javascript/libs/tabpane.js b/javascript/libs/tabpane.js
index d23da9f..4cc5a78 100644
--- a/javascript/libs/tabpane.js
+++ b/javascript/libs/tabpane.js
@@ -1 +1 @@
-eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('8 18(1h){4 i=0;7(h.1Y){y(i=0;i<1h.Y.v;i++){13=1h.Y.21(i);D=28.1W(13.19);7(D&&D.1Z&&D.1X==2e){D.1O();D.1O()}18(13)}}}8 o(){7(W o.T!="O"){j o.T}4 14=/23 5\\.[2b]/i.I(2a.27);o.T=(W h.1M!="O"&&h.1M.29("2f","1.0")||14);7(14){h.1m=h.12;h.12=8(17){7(17=="*"){j h.z}F{j h.1m(17)}}}j o.T}8 k(6,1i){7(!o()||6==9){j}2.c=6;2.c.m=2;2.t=[];2.q=9;4 1p=h.25.1u("?");4 1t=h.26.1N.1u("?");7(1t[0]!=1p[0]){k.S("1f"+2.c.1e,0)}2.1k=1i!=9?1i:2d;2.c.f=2.1s+" "+2.c.f;2.K=h.1P("2c");2.K.f="2g";6.22(2.K,6.1T);4 N=0;7(2.1k){N=1V(k.1w("1f"+2.c.1e));7(20(N)){N=0}}2.q=N;4 r=6.Y;4 n;y(4 i=0;i<r.v;i++){7(r[i].1l==1&&r[i].f=="B"){2.1d(r[i])}}}k.x.1s="2m";k.x.1E=8(n){7(2.q!=n){7(2.q!=9&&2.t[2.q]!=9){2.t[2.q].1g()}2.q=n;2.t[2.q].16();7(2.1k){k.S("1f"+2.c.1e,n,1)}}};k.x.2x=8(){j 2.q};k.x.1d=8(X){7(!o()){j}7(X.H==2){j X.H}4 n=2.t.v;4 C=2.t[n]=11 p(X,2,n);C.m=2;2.K.15(C.b);7(n==2.q){C.16()}F{C.1g()}j C};k.x.10=8(){2.c.m=9;2.c=9;2.K=9;y(4 i=0;i<2.t.v;i++){2.t[i].10();2.t[i]=9}2.t=9};k.S=8(V,1o,1j){4 U="";7(1j){4 d=11 2w();d.2v(d.2z()+1j*24*1q*1q*2B);U="; U="+d.2A()}h.1z=V+"="+1o+U+"; 2u="+2s};k.1w=8(V){4 1v=11 2t("(\\;|^)[^;]*("+V+")\\=([^;]*)(;|$)");4 1a=1v.2k(h.1z);j 1a!=9?1a[3]:9};k.2j=8(19){S(19,"",-1)};8 p(6,m,1n){7(!o()||6==9){j}2.c=6;2.c.H=2;2.1L=1n;4 r=6.Y;y(4 i=0;i<r.v;i++){7(r[i].1l==1&&r[i].f=="b"){2.b=r[i];2i}}4 a=h.1P("A");2.1b=a;a.1N="#";a.Q=8(){j 1U};2n(2.b.2h()){a.15(2.b.1T)}2.b.15(a);4 Z=2;2.b.Q=8(){Z.1K()};2.b.1I=8(){p.1F(Z)};2.b.1H=8(){p.1B(Z)}}p.x.16=8(){4 6=2.b;4 s=6.f+" b-1Q";s=s.P(/ +/g," ");6.f=s;18(2.c);2.c.E.R="1J"};p.x.1g=8(){4 6=2.b;4 s=6.f;s=s.P(/ b.1Q/g,"");6.f=s;2.c.E.R="1C"};p.x.1K=8(){2.m.1E(2.1L)};p.x.10=8(){7(2.c.E.R=="1C"){2.c.E.2r="2q";2.c.E.2p="-2o";2.c.E.R="1J"}2.1b.Q=9;2.1b=9;2.c.H=9;2.b.Q=9;2.b.1I=9;2.b.1H=9;2.b=9;2.m=9;2.c=9};p.1F=8(B){4 6=B.b;4 s=6.f+" b-1y";s=s.P(/ +/g," ");6.f=s};p.1B=8(B){4 6=B.b;4 s=6.f;s=s.P(/ b.1y/g,"");6.f=s};8 J(){7(!o()){j}4 z=h.12("*");4 l=z.v;4 M=/1x/;4 1S=/B/;4 w,6;4 2l;y(4 i=0;i<l;i++){6=z[i];w=6.f;7(w==""){1r}7(M.I(w)&&!6.m){11 k(6)}F 7(1S.I(w)&&!6.H&&M.I(6.1R.f)){6.1R.m.1d(6)}}}8 1D(){7(!o()){j}4 z=h.12("*");4 l=z.v;4 M=/1x/;4 w,6;4 G=[];y(4 i=0;i<l;i++){6=z[i];w=6.f;7(w==""){1r}7(M.I(w)&&6.m){G[G.v]=6.m}}y(4 i=G.v-1;i>=0;i--){G[i].10();G[i]=9}}7(W u.1G!="O"){u.1G("2C",J,1U)}F 7(W u.1c!="O"){u.1c("L",J);u.1c("2y",1D)}F{7(u.L!=9){4 1A=u.L;u.L=8(e){1A(e);J()}}F{u.L=J}}',62,163,'||this||var||el|if|function|null||tab|element|||className||document||return|WebFXTabPane||tabPane||hasSupport|WebFXTabPage|selectedIndex|cs||pages|window|length|cn|prototype|for|all||tabpage|tp|editor|style|else|tabPanes|tabPage|test|setupAllTabs|tabRow|onload|tabPaneRe|tabIndex|undefined|replace|onclick|display|setCookie|support|expires|sName|typeof|oElement|childNodes|oThis|dispose|new|getElementsByTagName|childNode|ie55|appendChild|show|sTagName|switchEditors|name|res|aElement|attachEvent|addTabPage|id|webfxtab_|hide|oNode|bUseCookie|nDays|useCookie|nodeType|_getElementsByTagName|nIndex|sValue|ref|60|continue|classNameTag|loc|split|re|getCookie|tabpane|hover|cookie|oldOnload|tabOut|none|disposeAllTabs|setSelectedIndex|tabOver|addEventListener|onmouseout|onmouseover|block|select|index|implementation|href|SwitchEditMode|createElement|active|parentNode|tabPageRe|firstChild|false|Number|GetInstance|EditMode|FCKEditorLoaded|EditorDocument|isNaN|item|insertBefore|msie||referrer|location|userAgent|FCKeditorAPI|hasFeature|navigator|56789|div|true|FCK_EDITMODE_WYSIWYG|html|tabcontainer|hasChildNodes|break|removeCookie|exec|parentTabPane|tabsystem|while|10000px|left|absolute|position|bitCookiePath|RegExp|path|setTime|Date|getSelectedIndex|onunload|getTime|toGMTString|1000|load'.split('|'),0,{}))
+eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('8 18(1h){4 i=0;7(h.1Y){y(i=0;i<1h.Y.v;i++){13=1h.Y.21(i);D=28.1W(13.19);7(D&&D.1Z&&D.1X==2e){D.1O();D.1O()}18(13)}}}8 o(){7(W o.T!="O"){j o.T}4 14=/23 5\\.[2b]/i.I(2a.27);o.T=(W h.1M!="O"&&h.1M.29("2f","1.0")||14);7(14){h.1m=h.12;h.12=8(17){7(17=="*"){j h.z}F{j h.1m(17)}}}j o.T}8 k(6,1i){7(!o()||6==9){j}2.c=6;2.c.m=2;2.t=[];2.q=9;4 1p=h.25.1u(/[#\\?]/);4 1t=h.26.1N.1u(/[#\\?]/);7(1t[0]!=1p[0]){k.S("1f"+2.c.1e,0)}2.1k=1i!=9?1i:2d;2.c.f=2.1s+" "+2.c.f;2.K=h.1P("2c");2.K.f="2g";6.22(2.K,6.1T);4 N=0;7(2.1k){N=1V(k.1w("1f"+2.c.1e));7(20(N)){N=0}}2.q=N;4 r=6.Y;4 n;y(4 i=0;i<r.v;i++){7(r[i].1l==1&&r[i].f=="B"){2.1d(r[i])}}}k.x.1s="2m";k.x.1E=8(n){7(2.q!=n){7(2.q!=9&&2.t[2.q]!=9){2.t[2.q].1g()}2.q=n;2.t[2.q].16();7(2.1k){k.S("1f"+2.c.1e,n,1)}}};k.x.2x=8(){j 2.q};k.x.1d=8(X){7(!o()){j}7(X.H==2){j X.H}4 n=2.t.v;4 C=2.t[n]=11 p(X,2,n);C.m=2;2.K.15(C.b);7(n==2.q){C.16()}F{C.1g()}j C};k.x.10=8(){2.c.m=9;2.c=9;2.K=9;y(4 i=0;i<2.t.v;i++){2.t[i].10();2.t[i]=9}2.t=9};k.S=8(V,1o,1j){4 U="";7(1j){4 d=11 2w();d.2v(d.2z()+1j*24*1q*1q*2B);U="; U="+d.2A()}h.1z=V+"="+1o+U+"; 2u="+2s};k.1w=8(V){4 1v=11 2t("(\\;|^)[^;]*("+V+")\\=([^;]*)(;|$)");4 1a=1v.2k(h.1z);j 1a!=9?1a[3]:9};k.2j=8(19){S(19,"",-1)};8 p(6,m,1n){7(!o()||6==9){j}2.c=6;2.c.H=2;2.1L=1n;4 r=6.Y;y(4 i=0;i<r.v;i++){7(r[i].1l==1&&r[i].f=="b"){2.b=r[i];2i}}4 a=h.1P("A");2.1b=a;a.1N="#";a.Q=8(){j 1U};2n(2.b.2h()){a.15(2.b.1T)}2.b.15(a);4 Z=2;2.b.Q=8(){Z.1K()};2.b.1I=8(){p.1F(Z)};2.b.1H=8(){p.1B(Z)}}p.x.16=8(){4 6=2.b;4 s=6.f+" b-1Q";s=s.P(/ +/g," ");6.f=s;18(2.c);2.c.E.R="1J"};p.x.1g=8(){4 6=2.b;4 s=6.f;s=s.P(/ b.1Q/g,"");6.f=s;2.c.E.R="1C"};p.x.1K=8(){2.m.1E(2.1L)};p.x.10=8(){7(2.c.E.R=="1C"){2.c.E.2r="2q";2.c.E.2p="-2o";2.c.E.R="1J"}2.1b.Q=9;2.1b=9;2.c.H=9;2.b.Q=9;2.b.1I=9;2.b.1H=9;2.b=9;2.m=9;2.c=9};p.1F=8(B){4 6=B.b;4 s=6.f+" b-1y";s=s.P(/ +/g," ");6.f=s};p.1B=8(B){4 6=B.b;4 s=6.f;s=s.P(/ b.1y/g,"");6.f=s};8 J(){7(!o()){j}4 z=h.12("*");4 l=z.v;4 M=/1x/;4 1S=/B/;4 w,6;4 2l;y(4 i=0;i<l;i++){6=z[i];w=6.f;7(w==""){1r}7(M.I(w)&&!6.m){11 k(6)}F 7(1S.I(w)&&!6.H&&M.I(6.1R.f)){6.1R.m.1d(6)}}}8 1D(){7(!o()){j}4 z=h.12("*");4 l=z.v;4 M=/1x/;4 w,6;4 G=[];y(4 i=0;i<l;i++){6=z[i];w=6.f;7(w==""){1r}7(M.I(w)&&6.m){G[G.v]=6.m}}y(4 i=G.v-1;i>=0;i--){G[i].10();G[i]=9}}7(W u.1G!="O"){u.1G("2C",J,1U)}F 7(W u.1c!="O"){u.1c("L",J);u.1c("2y",1D)}F{7(u.L!=9){4 1A=u.L;u.L=8(e){1A(e);J()}}F{u.L=J}}',62,163,'||this||var||el|if|function|null||tab|element|||className||document||return|WebFXTabPane||tabPane||hasSupport|WebFXTabPage|selectedIndex|cs||pages|window|length|cn|prototype|for|all||tabpage|tp|editor|style|else|tabPanes|tabPage|test|setupAllTabs|tabRow|onload|tabPaneRe|tabIndex|undefined|replace|onclick|display|setCookie|support|expires|sName|typeof|oElement|childNodes|oThis|dispose|new|getElementsByTagName|childNode|ie55|appendChild|show|sTagName|switchEditors|name|res|aElement|attachEvent|addTabPage|id|webfxtab_|hide|oNode|bUseCookie|nDays|useCookie|nodeType|_getElementsByTagName|nIndex|sValue|ref|60|continue|classNameTag|loc|split|re|getCookie|tabpane|hover|cookie|oldOnload|tabOut|none|disposeAllTabs|setSelectedIndex|tabOver|addEventListener|onmouseout|onmouseover|block|select|index|implementation|href|SwitchEditMode|createElement|active|parentNode|tabPageRe|firstChild|false|Number|GetInstance|EditMode|FCKEditorLoaded|EditorDocument|isNaN|item|insertBefore|msie||referrer|location|userAgent|FCKeditorAPI|hasFeature|navigator|56789|div|true|FCK_EDITMODE_WYSIWYG|html|tabcontainer|hasChildNodes|break|removeCookie|exec|parentTabPane|tabsystem|while|10000px|left|absolute|position|bitCookiePath|RegExp|path|setTime|Date|getSelectedIndex|onunload|getTime|toGMTString|1000|load'.split('|'),0,{}))
diff --git a/javascript/libs/tabpane_original.js b/javascript/libs/tabpane_original.js
index 824cf94..b1ceb2d 100644
--- a/javascript/libs/tabpane_original.js
+++ b/javascript/libs/tabpane_original.js
@@ -1,4 +1,4 @@
-// $Header: /cvsroot/bitweaver/_bit_util/javascript/libs/Attic/tabpane_original.js,v 1.8 2007/06/27 17:49:17 squareing Exp $
+// $Header: /cvsroot/bitweaver/_bit_util/javascript/libs/Attic/tabpane_original.js,v 1.9 2007/06/28 19:07:08 nickpalmer Exp $
//-------------------------------------------------------------------------
// Tab Pane 1.02
@@ -76,8 +76,8 @@ function WebFXTabPane( el, bUseCookie ) {
this.selectedIndex = null;
// <--- quick hack to set persistence only on pages where referrer == location
- var ref = document.referrer.split( "?" );
- var loc = document.location.href.split( "?" );
+ var ref = document.referrer.split( /[#\?]/ );
+ var loc = document.location.href.split( /[#\?]/ );
if( loc[0] != ref[0] ) {
WebFXTabPane.setCookie( "webfxtab_" + this.element.id, 0 );
}