Show More
The requested changes are too big and content was truncated. Show full diff
@@ -0,0 +1,138 | |||||
|
1 | /** | |||
|
2 | RhodeCode JS Files | |||
|
3 | **/ | |||
|
4 | ||||
|
5 | if (typeof console == "undefined" || typeof console.log == "undefined"){ | |||
|
6 | console = { log: function() {} } | |||
|
7 | } | |||
|
8 | ||||
|
9 | ||||
|
10 | function str_repeat(i, m) { | |||
|
11 | for (var o = []; m > 0; o[--m] = i); | |||
|
12 | return o.join(''); | |||
|
13 | } | |||
|
14 | ||||
|
15 | /** | |||
|
16 | * INJECT .format function into String | |||
|
17 | * Usage: "My name is {0} {1}".format("Johny","Bravo") | |||
|
18 | * Return "My name is Johny Bravo" | |||
|
19 | * Inspired by https://gist.github.com/1049426 | |||
|
20 | */ | |||
|
21 | String.prototype.format = function() { | |||
|
22 | ||||
|
23 | function format() { | |||
|
24 | var str = this; | |||
|
25 | var len = arguments.length+1; | |||
|
26 | var safe = undefined; | |||
|
27 | var arg = undefined; | |||
|
28 | ||||
|
29 | // For each {0} {1} {n...} replace with the argument in that position. If | |||
|
30 | // the argument is an object or an array it will be stringified to JSON. | |||
|
31 | for (var i=0; i < len; arg = arguments[i++]) { | |||
|
32 | safe = typeof arg === 'object' ? JSON.stringify(arg) : arg; | |||
|
33 | str = str.replace(RegExp('\\{'+(i-1)+'\\}', 'g'), safe); | |||
|
34 | } | |||
|
35 | return str; | |||
|
36 | } | |||
|
37 | ||||
|
38 | // Save a reference of what may already exist under the property native. | |||
|
39 | // Allows for doing something like: if("".format.native) { /* use native */ } | |||
|
40 | format.native = String.prototype.format; | |||
|
41 | ||||
|
42 | // Replace the prototype property | |||
|
43 | return format; | |||
|
44 | ||||
|
45 | }(); | |||
|
46 | ||||
|
47 | /** | |||
|
48 | * GLOBAL YUI Shortcuts | |||
|
49 | */ | |||
|
50 | var YUC = YAHOO.util.Connect; | |||
|
51 | var YUD = YAHOO.util.Dom; | |||
|
52 | var YUE = YAHOO.util.Event; | |||
|
53 | var YUQ = YAHOO.util.Selector.query; | |||
|
54 | ||||
|
55 | // defines if push state is enabled for this browser ? | |||
|
56 | var push_state_enabled = Boolean( | |||
|
57 | window.history && window.history.pushState && window.history.replaceState | |||
|
58 | && !( /* disable for versions of iOS before version 4.3 (8F190) */ | |||
|
59 | (/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i).test(navigator.userAgent) | |||
|
60 | /* disable for the mercury iOS browser, or at least older versions of the webkit engine */ | |||
|
61 | || (/AppleWebKit\/5([0-2]|3[0-2])/i).test(navigator.userAgent) | |||
|
62 | ) | |||
|
63 | ) | |||
|
64 | ||||
|
65 | /** | |||
|
66 | * Partial Ajax Implementation | |||
|
67 | * | |||
|
68 | * @param url: defines url to make partial request | |||
|
69 | * @param container: defines id of container to input partial result | |||
|
70 | * @param s_call: success callback function that takes o as arg | |||
|
71 | * o.tId | |||
|
72 | * o.status | |||
|
73 | * o.statusText | |||
|
74 | * o.getResponseHeader[ ] | |||
|
75 | * o.getAllResponseHeaders | |||
|
76 | * o.responseText | |||
|
77 | * o.responseXML | |||
|
78 | * o.argument | |||
|
79 | * @param f_call: failure callback | |||
|
80 | * @param args arguments | |||
|
81 | */ | |||
|
82 | function ypjax(url,container,s_call,f_call,args){ | |||
|
83 | var method='GET'; | |||
|
84 | if(args===undefined){ | |||
|
85 | args=null; | |||
|
86 | } | |||
|
87 | ||||
|
88 | // Set special header for partial ajax == HTTP_X_PARTIAL_XHR | |||
|
89 | YUC.initHeader('X-PARTIAL-XHR',true); | |||
|
90 | ||||
|
91 | // wrapper of passed callback | |||
|
92 | var s_wrapper = (function(o){ | |||
|
93 | return function(o){ | |||
|
94 | YUD.get(container).innerHTML=o.responseText; | |||
|
95 | YUD.setStyle(container,'opacity','1.0'); | |||
|
96 | //execute the given original callback | |||
|
97 | if (s_call !== undefined){ | |||
|
98 | s_call(o); | |||
|
99 | } | |||
|
100 | } | |||
|
101 | })() | |||
|
102 | YUD.setStyle(container,'opacity','0.3'); | |||
|
103 | YUC.asyncRequest(method,url,{ | |||
|
104 | success:s_wrapper, | |||
|
105 | failure:function(o){ | |||
|
106 | //failure | |||
|
107 | window.location = url; | |||
|
108 | } | |||
|
109 | },args); | |||
|
110 | ||||
|
111 | } | |||
|
112 | ||||
|
113 | /** | |||
|
114 | * tooltip activate | |||
|
115 | */ | |||
|
116 | function tooltip_activate(){ | |||
|
117 | function toolTipsId(){ | |||
|
118 | var ids = []; | |||
|
119 | var tts = YUQ('.tooltip'); | |||
|
120 | for (var i = 0; i < tts.length; i++) { | |||
|
121 | // if element doesn't not have and id | |||
|
122 | // autogenerate one for tooltip | |||
|
123 | if (!tts[i].id){ | |||
|
124 | tts[i].id='tt'+((i*100)+tts.length); | |||
|
125 | } | |||
|
126 | ids.push(tts[i].id); | |||
|
127 | } | |||
|
128 | return ids | |||
|
129 | }; | |||
|
130 | var myToolTips = new YAHOO.widget.Tooltip("tooltip", { | |||
|
131 | context: [[toolTipsId()],"tl","bl",null,[0,5]], | |||
|
132 | monitorresize:false, | |||
|
133 | xyoffset :[0,0], | |||
|
134 | autodismissdelay:300000, | |||
|
135 | hidedelay:5, | |||
|
136 | showdelay:20, | |||
|
137 | }); | |||
|
138 | } |
@@ -0,0 +1,104 | |||||
|
1 | /* | |||
|
2 | Copyright (c) 2011, Yahoo! Inc. All rights reserved. | |||
|
3 | Code licensed under the BSD License: | |||
|
4 | http://developer.yahoo.com/yui/license.html | |||
|
5 | version: 2.9.0 | |||
|
6 | */ | |||
|
7 | if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e<b.length;e=e+1){f=(""+b[e]).split(".");g=YAHOO;for(c=(f[0]=="YAHOO")?1:0;c<f.length;c=c+1){g[f[c]]=g[f[c]]||{};g=g[f[c]];}}return g;};YAHOO.log=function(d,a,c){var b=YAHOO.widget.Logger;if(b&&b.log){return b.log(d,a,c);}else{return false;}};YAHOO.register=function(a,f,e){var k=YAHOO.env.modules,c,j,h,g,d;if(!k[a]){k[a]={versions:[],builds:[]};}c=k[a];j=e.version;h=e.build;g=YAHOO.env.listeners;c.name=a;c.version=j;c.build=h;c.versions.push(j);c.builds.push(h);c.mainClass=f;for(d=0;d<g.length;d=d+1){g[d](c);}if(f){f.VERSION=j;f.BUILD=h;}else{YAHOO.log("mainClass is undefined for module "+a,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(a){return YAHOO.env.modules[a]||null;};YAHOO.env.parseUA=function(d){var e=function(i){var j=0;return parseFloat(i.replace(/\./g,function(){return(j++==1)?"":".";}));},h=navigator,g={ie:0,opera:0,gecko:0,webkit:0,chrome:0,mobile:null,air:0,ipad:0,iphone:0,ipod:0,ios:null,android:0,webos:0,caja:h&&h.cajaVersion,secure:false,os:null},c=d||(navigator&&navigator.userAgent),f=window&&window.location,b=f&&f.href,a;g.secure=b&&(b.toLowerCase().indexOf("https")===0);if(c){if((/windows|win32/i).test(c)){g.os="windows";}else{if((/macintosh/i).test(c)){g.os="macintosh";}else{if((/rhino/i).test(c)){g.os="rhino";}}}if((/KHTML/).test(c)){g.webkit=1;}a=c.match(/AppleWebKit\/([^\s]*)/);if(a&&a[1]){g.webkit=e(a[1]);if(/ Mobile\//.test(c)){g.mobile="Apple";a=c.match(/OS ([^\s]*)/);if(a&&a[1]){a=e(a[1].replace("_","."));}g.ios=a;g.ipad=g.ipod=g.iphone=0;a=c.match(/iPad|iPod|iPhone/);if(a&&a[0]){g[a[0].toLowerCase()]=g.ios;}}else{a=c.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/);if(a){g.mobile=a[0];}if(/webOS/.test(c)){g.mobile="WebOS";a=c.match(/webOS\/([^\s]*);/);if(a&&a[1]){g.webos=e(a[1]);}}if(/ Android/.test(c)){g.mobile="Android";a=c.match(/Android ([^\s]*);/);if(a&&a[1]){g.android=e(a[1]);}}}a=c.match(/Chrome\/([^\s]*)/);if(a&&a[1]){g.chrome=e(a[1]);}else{a=c.match(/AdobeAIR\/([^\s]*)/);if(a){g.air=a[0];}}}if(!g.webkit){a=c.match(/Opera[\s\/]([^\s]*)/);if(a&&a[1]){g.opera=e(a[1]);a=c.match(/Version\/([^\s]*)/);if(a&&a[1]){g.opera=e(a[1]);}a=c.match(/Opera Mini[^;]*/);if(a){g.mobile=a[0];}}else{a=c.match(/MSIE\s([^;]*)/);if(a&&a[1]){g.ie=e(a[1]);}else{a=c.match(/Gecko\/([^\s]*)/);if(a){g.gecko=1;a=c.match(/rv:([^\s\)]*)/);if(a&&a[1]){g.gecko=e(a[1]);}}}}}}return g;};YAHOO.env.ua=YAHOO.env.parseUA();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var b=YAHOO_config.listener,a=YAHOO.env.listeners,d=true,c;if(b){for(c=0;c<a.length;c++){if(a[c]==b){d=false;break;}}if(d){a.push(b);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var f=YAHOO.lang,a=Object.prototype,c="[object Array]",h="[object Function]",i="[object Object]",b=[],g={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`"},d=["toString","valueOf"],e={isArray:function(j){return a.toString.apply(j)===c;},isBoolean:function(j){return typeof j==="boolean";},isFunction:function(j){return(typeof j==="function")||a.toString.apply(j)===h;},isNull:function(j){return j===null;},isNumber:function(j){return typeof j==="number"&&isFinite(j);},isObject:function(j){return(j&&(typeof j==="object"||f.isFunction(j)))||false;},isString:function(j){return typeof j==="string";},isUndefined:function(j){return typeof j==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(l,k){var j,n,m;for(j=0;j<d.length;j=j+1){n=d[j];m=k[n];if(f.isFunction(m)&&m!=a[n]){l[n]=m;}}}:function(){},escapeHTML:function(j){return j.replace(/[&<>"'\/`]/g,function(k){return g[k];});},extend:function(m,n,l){if(!n||!m){throw new Error("extend failed, please check that "+"all dependencies are included.");}var k=function(){},j;k.prototype=n.prototype;m.prototype=new k();m.prototype.constructor=m;m.superclass=n.prototype;if(n.prototype.constructor==a.constructor){n.prototype.constructor=n;}if(l){for(j in l){if(f.hasOwnProperty(l,j)){m.prototype[j]=l[j];}}f._IEEnumFix(m.prototype,l);}},augmentObject:function(n,m){if(!m||!n){throw new Error("Absorb failed, verify dependencies.");}var j=arguments,l,o,k=j[2];if(k&&k!==true){for(l=2;l<j.length;l=l+1){n[j[l]]=m[j[l]];}}else{for(o in m){if(k||!(o in n)){n[o]=m[o];}}f._IEEnumFix(n,m);}return n;},augmentProto:function(m,l){if(!l||!m){throw new Error("Augment failed, verify dependencies.");}var j=[m.prototype,l.prototype],k;for(k=2;k<arguments.length;k=k+1){j.push(arguments[k]);}f.augmentObject.apply(this,j);return m;},dump:function(j,p){var l,n,r=[],t="{...}",k="f(){...}",q=", ",m=" => ";if(!f.isObject(j)){return j+"";}else{if(j instanceof Date||("nodeType" in j&&"tagName" in j)){return j;}else{if(f.isFunction(j)){return k;}}}p=(f.isNumber(p))?p:3;if(f.isArray(j)){r.push("[");for(l=0,n=j.length;l<n;l=l+1){if(f.isObject(j[l])){r.push((p>0)?f.dump(j[l],p-1):t);}else{r.push(j[l]);}r.push(q);}if(r.length>1){r.pop();}r.push("]");}else{r.push("{");for(l in j){if(f.hasOwnProperty(j,l)){r.push(l+m);if(f.isObject(j[l])){r.push((p>0)?f.dump(j[l],p-1):t);}else{r.push(j[l]);}r.push(q);}}if(r.length>1){r.pop();}r.push("}");}return r.join("");},substitute:function(x,y,E,l){var D,C,B,G,t,u,F=[],p,z=x.length,A="dump",r=" ",q="{",m="}",n,w;for(;;){D=x.lastIndexOf(q,z);if(D<0){break;}C=x.indexOf(m,D);if(D+1>C){break;}p=x.substring(D+1,C);G=p;u=null;B=G.indexOf(r);if(B>-1){u=G.substring(B+1);G=G.substring(0,B);}t=y[G];if(E){t=E(G,t,u);}if(f.isObject(t)){if(f.isArray(t)){t=f.dump(t,parseInt(u,10));}else{u=u||"";n=u.indexOf(A);if(n>-1){u=u.substring(4);}w=t.toString();if(w===i||n>-1){t=f.dump(t,parseInt(u,10));}else{t=w;}}}else{if(!f.isString(t)&&!f.isNumber(t)){t="~-"+F.length+"-~";F[F.length]=p;}}x=x.substring(0,D)+t+x.substring(C+1);if(l===false){z=D-1;}}for(D=F.length-1;D>=0;D=D-1){x=x.replace(new RegExp("~-"+D+"-~"),"{"+F[D]+"}","g");}return x;},trim:function(j){try{return j.replace(/^\s+|\s+$/g,"");}catch(k){return j; | |||
|
8 | }},merge:function(){var n={},k=arguments,j=k.length,m;for(m=0;m<j;m=m+1){f.augmentObject(n,k[m],true);}return n;},later:function(t,k,u,n,p){t=t||0;k=k||{};var l=u,s=n,q,j;if(f.isString(u)){l=k[u];}if(!l){throw new TypeError("method undefined");}if(!f.isUndefined(n)&&!f.isArray(s)){s=[n];}q=function(){l.apply(k,s||b);};j=(p)?setInterval(q,t):setTimeout(q,t);return{interval:p,cancel:function(){if(this.interval){clearInterval(j);}else{clearTimeout(j);}}};},isValue:function(j){return(f.isObject(j)||f.isString(j)||f.isNumber(j)||f.isBoolean(j));}};f.hasOwnProperty=(a.hasOwnProperty)?function(j,k){return j&&j.hasOwnProperty&&j.hasOwnProperty(k);}:function(j,k){return !f.isUndefined(j[k])&&j.constructor.prototype[k]!==j[k];};e.augmentObject(f,e,true);YAHOO.util.Lang=f;f.augment=f.augmentProto;YAHOO.augment=f.augmentProto;YAHOO.extend=f.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.9.0",build:"2800"});YAHOO.util.Get=function(){var m={},k=0,r=0,l=false,n=YAHOO.env.ua,s=YAHOO.lang,q,d,e,i=function(x,t,y){var u=y||window,z=u.document,A=z.createElement(x),v;for(v in t){if(t.hasOwnProperty(v)){A.setAttribute(v,t[v]);}}return A;},h=function(u,v,t){var w={id:"yui__dyn_"+(r++),type:"text/css",rel:"stylesheet",href:u};if(t){s.augmentObject(w,t);}return i("link",w,v);},p=function(u,v,t){var w={id:"yui__dyn_"+(r++),type:"text/javascript",src:u};if(t){s.augmentObject(w,t);}return i("script",w,v);},a=function(t,u){return{tId:t.tId,win:t.win,data:t.data,nodes:t.nodes,msg:u,purge:function(){d(this.tId);}};},b=function(t,w){var u=m[w],v=(s.isString(t))?u.win.document.getElementById(t):t;if(!v){q(w,"target node not found: "+t);}return v;},c=function(w){YAHOO.log("Finishing transaction "+w);var u=m[w],v,t;u.finished=true;if(u.aborted){v="transaction "+w+" was aborted";q(w,v);return;}if(u.onSuccess){t=u.scope||u.win;u.onSuccess.call(t,a(u));}},o=function(v){YAHOO.log("Timeout "+v,"info","get");var u=m[v],t;if(u.onTimeout){t=u.scope||u;u.onTimeout.call(t,a(u));}},f=function(v,A){YAHOO.log("_next: "+v+", loaded: "+A,"info","Get");var u=m[v],D=u.win,C=D.document,B=C.getElementsByTagName("head")[0],x,y,t,E,z;if(u.timer){u.timer.cancel();}if(u.aborted){y="transaction "+v+" was aborted";q(v,y);return;}if(A){u.url.shift();if(u.varName){u.varName.shift();}}else{u.url=(s.isString(u.url))?[u.url]:u.url;if(u.varName){u.varName=(s.isString(u.varName))?[u.varName]:u.varName;}}if(u.url.length===0){if(u.type==="script"&&n.webkit&&n.webkit<420&&!u.finalpass&&!u.varName){z=p(null,u.win,u.attributes);z.innerHTML='YAHOO.util.Get._finalize("'+v+'");';u.nodes.push(z);B.appendChild(z);}else{c(v);}return;}t=u.url[0];if(!t){u.url.shift();YAHOO.log("skipping empty url");return f(v);}YAHOO.log("attempting to load "+t,"info","Get");if(u.timeout){u.timer=s.later(u.timeout,u,o,v);}if(u.type==="script"){x=p(t,D,u.attributes);}else{x=h(t,D,u.attributes);}e(u.type,x,v,t,D,u.url.length);u.nodes.push(x);if(u.insertBefore){E=b(u.insertBefore,v);if(E){E.parentNode.insertBefore(x,E);}}else{B.appendChild(x);}YAHOO.log("Appending node: "+t,"info","Get");if((n.webkit||n.gecko)&&u.type==="css"){f(v,t);}},j=function(){if(l){return;}l=true;var t,u;for(t in m){if(m.hasOwnProperty(t)){u=m[t];if(u.autopurge&&u.finished){d(u.tId);delete m[t];}}}l=false;},g=function(u,t,v){var x="q"+(k++),w;v=v||{};if(k%YAHOO.util.Get.PURGE_THRESH===0){j();}m[x]=s.merge(v,{tId:x,type:u,url:t,finished:false,aborted:false,nodes:[]});w=m[x];w.win=w.win||window;w.scope=w.scope||w.win;w.autopurge=("autopurge" in w)?w.autopurge:(u==="script")?true:false;w.attributes=w.attributes||{};w.attributes.charset=v.charset||w.attributes.charset||"utf-8";s.later(0,w,f,x);return{tId:x};};e=function(H,z,x,u,D,E,G){var F=G||f,B,t,I,v,J,A,C,y;if(n.ie){z.onreadystatechange=function(){B=this.readyState;if("loaded"===B||"complete"===B){YAHOO.log(x+" onload "+u,"info","Get");z.onreadystatechange=null;F(x,u);}};}else{if(n.webkit){if(H==="script"){if(n.webkit>=420){z.addEventListener("load",function(){YAHOO.log(x+" DOM2 onload "+u,"info","Get");F(x,u);});}else{t=m[x];if(t.varName){v=YAHOO.util.Get.POLL_FREQ;YAHOO.log("Polling for "+t.varName[0]);t.maxattempts=YAHOO.util.Get.TIMEOUT/v;t.attempts=0;t._cache=t.varName[0].split(".");t.timer=s.later(v,t,function(w){I=this._cache;A=I.length;J=this.win;for(C=0;C<A;C=C+1){J=J[I[C]];if(!J){this.attempts++;if(this.attempts++>this.maxattempts){y="Over retry limit, giving up";t.timer.cancel();q(x,y);}else{YAHOO.log(I[C]+" failed, retrying");}return;}}YAHOO.log("Safari poll complete");t.timer.cancel();F(x,u);},null,true);}else{s.later(YAHOO.util.Get.POLL_FREQ,null,F,[x,u]);}}}}else{z.onload=function(){YAHOO.log(x+" onload "+u,"info","Get");F(x,u);};}}};q=function(w,v){YAHOO.log("get failure: "+v,"warn","Get");var u=m[w],t;if(u.onFailure){t=u.scope||u.win;u.onFailure.call(t,a(u,v));}};d=function(z){if(m[z]){var t=m[z],u=t.nodes,x=u.length,C=t.win.document,A=C.getElementsByTagName("head")[0],v,y,w,B;if(t.insertBefore){v=b(t.insertBefore,z);if(v){A=v.parentNode;}}for(y=0;y<x;y=y+1){w=u[y];if(w.clearAttributes){w.clearAttributes();}else{for(B in w){if(w.hasOwnProperty(B)){delete w[B];}}}A.removeChild(w);}t.nodes=[];}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(t){YAHOO.log(t+" finalized ","info","Get");s.later(0,null,c,t);},abort:function(u){var v=(s.isString(u))?u:u.tId,t=m[v];if(t){YAHOO.log("Aborting "+v,"info","Get");t.aborted=true;}},script:function(t,u){return g("script",t,u);},css:function(t,u){return g("css",t,u);}};}();YAHOO.register("get",YAHOO.util.Get,{version:"2.9.0",build:"2800"});(function(){var Y=YAHOO,util=Y.util,lang=Y.lang,env=Y.env,PROV="_provides",SUPER="_supersedes",REQ="expanded",AFTER="_after",VERSION="2.9.0";var YUI={dupsAllowed:{"yahoo":true,"get":true},info:{"root":VERSION+"/build/","base":"http://yui.yahooapis.com/"+VERSION+"/build/","comboBase":"http://yui.yahooapis.com/combo?","skin":{"defaultSkin":"sam","base":"assets/skins/","path":"skin.css","after":["reset","fonts","grids","base"],"rollup":3},dupsAllowed:["yahoo","get"],"moduleInfo":{"animation":{"type":"js","path":"animation/animation-min.js","requires":["dom","event"]},"autocomplete":{"type":"js","path":"autocomplete/autocomplete-min.js","requires":["dom","event","datasource"],"optional":["connection","animation"],"skinnable":true},"base":{"type":"css","path":"base/base-min.css","after":["reset","fonts","grids"]},"button":{"type":"js","path":"button/button-min.js","requires":["element"],"optional":["menu"],"skinnable":true},"calendar":{"type":"js","path":"calendar/calendar-min.js","requires":["event","dom"],supersedes:["datemath"],"skinnable":true},"carousel":{"type":"js","path":"carousel/carousel-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"charts":{"type":"js","path":"charts/charts-min.js","requires":["element","json","datasource","swf"]},"colorpicker":{"type":"js","path":"colorpicker/colorpicker-min.js","requires":["slider","element"],"optional":["animation"],"skinnable":true},"connection":{"type":"js","path":"connection/connection-min.js","requires":["event"],"supersedes":["connectioncore"]},"connectioncore":{"type":"js","path":"connection/connection_core-min.js","requires":["event"],"pkg":"connection"},"container":{"type":"js","path":"container/container-min.js","requires":["dom","event"],"optional":["dragdrop","animation","connection"],"supersedes":["containercore"],"skinnable":true},"containercore":{"type":"js","path":"container/container_core-min.js","requires":["dom","event"],"pkg":"container"},"cookie":{"type":"js","path":"cookie/cookie-min.js","requires":["yahoo"]},"datasource":{"type":"js","path":"datasource/datasource-min.js","requires":["event"],"optional":["connection"]},"datatable":{"type":"js","path":"datatable/datatable-min.js","requires":["element","datasource"],"optional":["calendar","dragdrop","paginator"],"skinnable":true},datemath:{"type":"js","path":"datemath/datemath-min.js","requires":["yahoo"]},"dom":{"type":"js","path":"dom/dom-min.js","requires":["yahoo"]},"dragdrop":{"type":"js","path":"dragdrop/dragdrop-min.js","requires":["dom","event"]},"editor":{"type":"js","path":"editor/editor-min.js","requires":["menu","element","button"],"optional":["animation","dragdrop"],"supersedes":["simpleeditor"],"skinnable":true},"element":{"type":"js","path":"element/element-min.js","requires":["dom","event"],"optional":["event-mouseenter","event-delegate"]},"element-delegate":{"type":"js","path":"element-delegate/element-delegate-min.js","requires":["element"]},"event":{"type":"js","path":"event/event-min.js","requires":["yahoo"]},"event-simulate":{"type":"js","path":"event-simulate/event-simulate-min.js","requires":["event"]},"event-delegate":{"type":"js","path":"event-delegate/event-delegate-min.js","requires":["event"],"optional":["selector"]},"event-mouseenter":{"type":"js","path":"event-mouseenter/event-mouseenter-min.js","requires":["dom","event"]},"fonts":{"type":"css","path":"fonts/fonts-min.css"},"get":{"type":"js","path":"get/get-min.js","requires":["yahoo"]},"grids":{"type":"css","path":"grids/grids-min.css","requires":["fonts"],"optional":["reset"]},"history":{"type":"js","path":"history/history-min.js","requires":["event"]},"imagecropper":{"type":"js","path":"imagecropper/imagecropper-min.js","requires":["dragdrop","element","resize"],"skinnable":true},"imageloader":{"type":"js","path":"imageloader/imageloader-min.js","requires":["event","dom"]},"json":{"type":"js","path":"json/json-min.js","requires":["yahoo"]},"layout":{"type":"js","path":"layout/layout-min.js","requires":["element"],"optional":["animation","dragdrop","resize","selector"],"skinnable":true},"logger":{"type":"js","path":"logger/logger-min.js","requires":["event","dom"],"optional":["dragdrop"],"skinnable":true},"menu":{"type":"js","path":"menu/menu-min.js","requires":["containercore"],"skinnable":true},"paginator":{"type":"js","path":"paginator/paginator-min.js","requires":["element"],"skinnable":true},"profiler":{"type":"js","path":"profiler/profiler-min.js","requires":["yahoo"]},"profilerviewer":{"type":"js","path":"profilerviewer/profilerviewer-min.js","requires":["profiler","yuiloader","element"],"skinnable":true},"progressbar":{"type":"js","path":"progressbar/progressbar-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"reset":{"type":"css","path":"reset/reset-min.css"},"reset-fonts-grids":{"type":"css","path":"reset-fonts-grids/reset-fonts-grids.css","supersedes":["reset","fonts","grids","reset-fonts"],"rollup":4},"reset-fonts":{"type":"css","path":"reset-fonts/reset-fonts.css","supersedes":["reset","fonts"],"rollup":2},"resize":{"type":"js","path":"resize/resize-min.js","requires":["dragdrop","element"],"optional":["animation"],"skinnable":true},"selector":{"type":"js","path":"selector/selector-min.js","requires":["yahoo","dom"]},"simpleeditor":{"type":"js","path":"editor/simpleeditor-min.js","requires":["element"],"optional":["containercore","menu","button","animation","dragdrop"],"skinnable":true,"pkg":"editor"},"slider":{"type":"js","path":"slider/slider-min.js","requires":["dragdrop"],"optional":["animation"],"skinnable":true},"storage":{"type":"js","path":"storage/storage-min.js","requires":["yahoo","event","cookie"],"optional":["swfstore"]},"stylesheet":{"type":"js","path":"stylesheet/stylesheet-min.js","requires":["yahoo"]},"swf":{"type":"js","path":"swf/swf-min.js","requires":["element"],"supersedes":["swfdetect"]},"swfdetect":{"type":"js","path":"swfdetect/swfdetect-min.js","requires":["yahoo"]},"swfstore":{"type":"js","path":"swfstore/swfstore-min.js","requires":["element","cookie","swf"]},"tabview":{"type":"js","path":"tabview/tabview-min.js","requires":["element"],"optional":["connection"],"skinnable":true},"treeview":{"type":"js","path":"treeview/treeview-min.js","requires":["event","dom"],"optional":["json","animation","calendar"],"skinnable":true},"uploader":{"type":"js","path":"uploader/uploader-min.js","requires":["element"]},"utilities":{"type":"js","path":"utilities/utilities.js","supersedes":["yahoo","event","dragdrop","animation","dom","connection","element","yahoo-dom-event","get","yuiloader","yuiloader-dom-event"],"rollup":8},"yahoo":{"type":"js","path":"yahoo/yahoo-min.js"},"yahoo-dom-event":{"type":"js","path":"yahoo-dom-event/yahoo-dom-event.js","supersedes":["yahoo","event","dom"],"rollup":3},"yuiloader":{"type":"js","path":"yuiloader/yuiloader-min.js","supersedes":["yahoo","get"]},"yuiloader-dom-event":{"type":"js","path":"yuiloader-dom-event/yuiloader-dom-event.js","supersedes":["yahoo","dom","event","get","yuiloader","yahoo-dom-event"],"rollup":5},"yuitest":{"type":"js","path":"yuitest/yuitest-min.js","requires":["logger"],"optional":["event-simulate"],"skinnable":true}}},ObjectUtil:{appendArray:function(o,a){if(a){for(var i=0; | |||
|
9 | i<a.length;i=i+1){o[a[i]]=true;}}},keys:function(o,ordered){var a=[],i;for(i in o){if(lang.hasOwnProperty(o,i)){a.push(i);}}return a;}},ArrayUtil:{appendArray:function(a1,a2){Array.prototype.push.apply(a1,a2);},indexOf:function(a,val){for(var i=0;i<a.length;i=i+1){if(a[i]===val){return i;}}return -1;},toObject:function(a){var o={};for(var i=0;i<a.length;i=i+1){o[a[i]]=true;}return o;},uniq:function(a){return YUI.ObjectUtil.keys(YUI.ArrayUtil.toObject(a));}}};YAHOO.util.YUILoader=function(o){this._internalCallback=null;this._useYahooListener=false;this.onSuccess=null;this.onFailure=Y.log;this.onProgress=null;this.onTimeout=null;this.scope=this;this.data=null;this.insertBefore=null;this.charset=null;this.varName=null;this.base=YUI.info.base;this.comboBase=YUI.info.comboBase;this.combine=false;this.root=YUI.info.root;this.timeout=0;this.ignore=null;this.force=null;this.allowRollup=true;this.filter=null;this.required={};this.moduleInfo=lang.merge(YUI.info.moduleInfo);this.rollups=null;this.loadOptional=false;this.sorted=[];this.loaded={};this.dirty=true;this.inserted={};var self=this;env.listeners.push(function(m){if(self._useYahooListener){self.loadNext(m.name);}});this.skin=lang.merge(YUI.info.skin);this._config(o);};Y.util.YUILoader.prototype={FILTERS:{RAW:{"searchExp":"-min\\.js","replaceStr":".js"},DEBUG:{"searchExp":"-min\\.js","replaceStr":"-debug.js"}},SKIN_PREFIX:"skin-",_config:function(o){if(o){for(var i in o){if(lang.hasOwnProperty(o,i)){if(i=="require"){this.require(o[i]);}else{this[i]=o[i];}}}}var f=this.filter;if(lang.isString(f)){f=f.toUpperCase();if(f==="DEBUG"){this.require("logger");}if(!Y.widget.LogWriter){Y.widget.LogWriter=function(){return Y;};}this.filter=this.FILTERS[f];}},addModule:function(o){if(!o||!o.name||!o.type||(!o.path&&!o.fullpath)){return false;}o.ext=("ext" in o)?o.ext:true;o.requires=o.requires||[];this.moduleInfo[o.name]=o;this.dirty=true;return true;},require:function(what){var a=(typeof what==="string")?arguments:what;this.dirty=true;YUI.ObjectUtil.appendArray(this.required,a);},_addSkin:function(skin,mod){var name=this.formatSkin(skin),info=this.moduleInfo,sinf=this.skin,ext=info[mod]&&info[mod].ext;if(!info[name]){this.addModule({"name":name,"type":"css","path":sinf.base+skin+"/"+sinf.path,"after":sinf.after,"rollup":sinf.rollup,"ext":ext});}if(mod){name=this.formatSkin(skin,mod);if(!info[name]){var mdef=info[mod],pkg=mdef.pkg||mod;this.addModule({"name":name,"type":"css","after":sinf.after,"path":pkg+"/"+sinf.base+skin+"/"+mod+".css","ext":ext});}}return name;},getRequires:function(mod){if(!mod){return[];}if(!this.dirty&&mod.expanded){return mod.expanded;}mod.requires=mod.requires||[];var i,d=[],r=mod.requires,o=mod.optional,info=this.moduleInfo,m;for(i=0;i<r.length;i=i+1){d.push(r[i]);m=info[r[i]];YUI.ArrayUtil.appendArray(d,this.getRequires(m));}if(o&&this.loadOptional){for(i=0;i<o.length;i=i+1){d.push(o[i]);YUI.ArrayUtil.appendArray(d,this.getRequires(info[o[i]]));}}mod.expanded=YUI.ArrayUtil.uniq(d);return mod.expanded;},getProvides:function(name,notMe){var addMe=!(notMe),ckey=(addMe)?PROV:SUPER,m=this.moduleInfo[name],o={};if(!m){return o;}if(m[ckey]){return m[ckey];}var s=m.supersedes,done={},me=this;var add=function(mm){if(!done[mm]){done[mm]=true;lang.augmentObject(o,me.getProvides(mm));}};if(s){for(var i=0;i<s.length;i=i+1){add(s[i]);}}m[SUPER]=o;m[PROV]=lang.merge(o);m[PROV][name]=true;return m[ckey];},calculate:function(o){if(o||this.dirty){this._config(o);this._setup();this._explode();if(this.allowRollup){this._rollup();}this._reduce();this._sort();this.dirty=false;}},_setup:function(){var info=this.moduleInfo,name,i,j;for(name in info){if(lang.hasOwnProperty(info,name)){var m=info[name];if(m&&m.skinnable){var o=this.skin.overrides,smod;if(o&&o[name]){for(i=0;i<o[name].length;i=i+1){smod=this._addSkin(o[name][i],name);}}else{smod=this._addSkin(this.skin.defaultSkin,name);}if(YUI.ArrayUtil.indexOf(m.requires,smod)==-1){m.requires.push(smod);}}}}var l=lang.merge(this.inserted);if(!this._sandbox){l=lang.merge(l,env.modules);}if(this.ignore){YUI.ObjectUtil.appendArray(l,this.ignore);}if(this.force){for(i=0;i<this.force.length;i=i+1){if(this.force[i] in l){delete l[this.force[i]];}}}for(j in l){if(lang.hasOwnProperty(l,j)){lang.augmentObject(l,this.getProvides(j));}}this.loaded=l;},_explode:function(){var r=this.required,i,mod;for(i in r){if(lang.hasOwnProperty(r,i)){mod=this.moduleInfo[i];if(mod){var req=this.getRequires(mod);if(req){YUI.ObjectUtil.appendArray(r,req);}}}}},_skin:function(){},formatSkin:function(skin,mod){var s=this.SKIN_PREFIX+skin;if(mod){s=s+"-"+mod;}return s;},parseSkin:function(mod){if(mod.indexOf(this.SKIN_PREFIX)===0){var a=mod.split("-");return{skin:a[1],module:a[2]};}return null;},_rollup:function(){var i,j,m,s,rollups={},r=this.required,roll,info=this.moduleInfo;if(this.dirty||!this.rollups){for(i in info){if(lang.hasOwnProperty(info,i)){m=info[i];if(m&&m.rollup){rollups[i]=m;}}}this.rollups=rollups;}for(;;){var rolled=false;for(i in rollups){if(!r[i]&&!this.loaded[i]){m=info[i];s=m.supersedes;roll=false;if(!m.rollup){continue;}var skin=(m.ext)?false:this.parseSkin(i),c=0;if(skin){for(j in r){if(lang.hasOwnProperty(r,j)){if(i!==j&&this.parseSkin(j)){c++;roll=(c>=m.rollup);if(roll){break;}}}}}else{for(j=0;j<s.length;j=j+1){if(this.loaded[s[j]]&&(!YUI.dupsAllowed[s[j]])){roll=false;break;}else{if(r[s[j]]){c++;roll=(c>=m.rollup);if(roll){break;}}}}}if(roll){r[i]=true;rolled=true;this.getRequires(m);}}}if(!rolled){break;}}},_reduce:function(){var i,j,s,m,r=this.required;for(i in r){if(i in this.loaded){delete r[i];}else{var skinDef=this.parseSkin(i);if(skinDef){if(!skinDef.module){var skin_pre=this.SKIN_PREFIX+skinDef.skin;for(j in r){if(lang.hasOwnProperty(r,j)){m=this.moduleInfo[j];var ext=m&&m.ext;if(!ext&&j!==i&&j.indexOf(skin_pre)>-1){delete r[j];}}}}}else{m=this.moduleInfo[i];s=m&&m.supersedes;if(s){for(j=0;j<s.length;j=j+1){if(s[j] in r){delete r[s[j]];}}}}}}},_onFailure:function(msg){YAHOO.log("Failure","info","loader"); | |||
|
10 | var f=this.onFailure;if(f){f.call(this.scope,{msg:"failure: "+msg,data:this.data,success:false});}},_onTimeout:function(){YAHOO.log("Timeout","info","loader");var f=this.onTimeout;if(f){f.call(this.scope,{msg:"timeout",data:this.data,success:false});}},_sort:function(){var s=[],info=this.moduleInfo,loaded=this.loaded,checkOptional=!this.loadOptional,me=this;var requires=function(aa,bb){var mm=info[aa];if(loaded[bb]||!mm){return false;}var ii,rr=mm.expanded,after=mm.after,other=info[bb],optional=mm.optional;if(rr&&YUI.ArrayUtil.indexOf(rr,bb)>-1){return true;}if(after&&YUI.ArrayUtil.indexOf(after,bb)>-1){return true;}if(checkOptional&&optional&&YUI.ArrayUtil.indexOf(optional,bb)>-1){return true;}var ss=info[bb]&&info[bb].supersedes;if(ss){for(ii=0;ii<ss.length;ii=ii+1){if(requires(aa,ss[ii])){return true;}}}if(mm.ext&&mm.type=="css"&&!other.ext&&other.type=="css"){return true;}return false;};for(var i in this.required){if(lang.hasOwnProperty(this.required,i)){s.push(i);}}var p=0;for(;;){var l=s.length,a,b,j,k,moved=false;for(j=p;j<l;j=j+1){a=s[j];for(k=j+1;k<l;k=k+1){if(requires(a,s[k])){b=s.splice(k,1);s.splice(j,0,b[0]);moved=true;break;}}if(moved){break;}else{p=p+1;}}if(!moved){break;}}this.sorted=s;},toString:function(){var o={type:"YUILoader",base:this.base,filter:this.filter,required:this.required,loaded:this.loaded,inserted:this.inserted};lang.dump(o,1);},_combine:function(){this._combining=[];var self=this,s=this.sorted,len=s.length,js=this.comboBase,css=this.comboBase,target,startLen=js.length,i,m,type=this.loadType;YAHOO.log("type "+type);for(i=0;i<len;i=i+1){m=this.moduleInfo[s[i]];if(m&&!m.ext&&(!type||type===m.type)){target=this.root+m.path;target+="&";if(m.type=="js"){js+=target;}else{css+=target;}this._combining.push(s[i]);}}if(this._combining.length){YAHOO.log("Attempting to combine: "+this._combining,"info","loader");var callback=function(o){var c=this._combining,len=c.length,i,m;for(i=0;i<len;i=i+1){this.inserted[c[i]]=true;}this.loadNext(o.data);},loadScript=function(){if(js.length>startLen){YAHOO.util.Get.script(self._filter(js),{data:self._loading,onSuccess:callback,onFailure:self._onFailure,onTimeout:self._onTimeout,insertBefore:self.insertBefore,charset:self.charset,timeout:self.timeout,scope:self});}else{this.loadNext();}};if(css.length>startLen){YAHOO.util.Get.css(this._filter(css),{data:this._loading,onSuccess:loadScript,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,scope:self});}else{loadScript();}return;}else{this.loadNext(this._loading);}},insert:function(o,type){this.calculate(o);this._loading=true;this.loadType=type;if(this.combine){return this._combine();}if(!type){var self=this;this._internalCallback=function(){self._internalCallback=null;self.insert(null,"js");};this.insert(null,"css");return;}this.loadNext();},sandbox:function(o,type){var self=this,success=function(o){var idx=o.argument[0],name=o.argument[2];self._scriptText[idx]=o.responseText;if(self.onProgress){self.onProgress.call(self.scope,{name:name,scriptText:o.responseText,xhrResponse:o,data:self.data});}self._loadCount++;if(self._loadCount>=self._stopCount){var v=self.varName||"YAHOO";var t="(function() {\n";var b="\nreturn "+v+";\n})();";var ref=eval(t+self._scriptText.join("\n")+b);self._pushEvents(ref);if(ref){self.onSuccess.call(self.scope,{reference:ref,data:self.data});}else{self._onFailure.call(self.varName+" reference failure");}}},failure=function(o){self.onFailure.call(self.scope,{msg:"XHR failure",xhrResponse:o,data:self.data});};self._config(o);if(!self.onSuccess){throw new Error("You must supply an onSuccess handler for your sandbox");}self._sandbox=true;if(!type||type!=="js"){self._internalCallback=function(){self._internalCallback=null;self.sandbox(null,"js");};self.insert(null,"css");return;}if(!util.Connect){var ld=new YAHOO.util.YUILoader();ld.insert({base:self.base,filter:self.filter,require:"connection",insertBefore:self.insertBefore,charset:self.charset,onSuccess:function(){self.sandbox(null,"js");},scope:self},"js");return;}self._scriptText=[];self._loadCount=0;self._stopCount=self.sorted.length;self._xhr=[];self.calculate();var s=self.sorted,l=s.length,i,m,url;for(i=0;i<l;i=i+1){m=self.moduleInfo[s[i]];if(!m){self._onFailure("undefined module "+m);for(var j=0;j<self._xhr.length;j=j+1){self._xhr[j].abort();}return;}if(m.type!=="js"){self._loadCount++;continue;}url=m.fullpath;url=(url)?self._filter(url):self._url(m.path);var xhrData={success:success,failure:failure,scope:self,argument:[i,url,s[i]]};self._xhr.push(util.Connect.asyncRequest("GET",url,xhrData));}},loadNext:function(mname){if(!this._loading){return;}var self=this,donext=function(o){self.loadNext(o.data);},successfn,s=this.sorted,len=s.length,i,fn,m,url;if(mname){if(mname!==this._loading){return;}this.inserted[mname]=true;if(this.onProgress){this.onProgress.call(this.scope,{name:mname,data:this.data});}}for(i=0;i<len;i=i+1){if(s[i] in this.inserted){continue;}if(s[i]===this._loading){return;}m=this.moduleInfo[s[i]];if(!m){this.onFailure.call(this.scope,{msg:"undefined module "+m,data:this.data});return;}if(!this.loadType||this.loadType===m.type){successfn=donext;this._loading=s[i];fn=(m.type==="css")?util.Get.css:util.Get.script;url=m.fullpath;url=(url)?this._filter(url):this._url(m.path);if(env.ua.webkit&&env.ua.webkit<420&&m.type==="js"&&!m.varName){successfn=null;this._useYahooListener=true;}fn(url,{data:s[i],onSuccess:successfn,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,varName:m.varName,scope:self});return;}}this._loading=null;if(this._internalCallback){var f=this._internalCallback;this._internalCallback=null;f.call(this);}else{if(this.onSuccess){this._pushEvents();this.onSuccess.call(this.scope,{data:this.data});}}},_pushEvents:function(ref){var r=ref||YAHOO;if(r.util&&r.util.Event){r.util.Event._load();}},_filter:function(str){var f=this.filter;return(f)?str.replace(new RegExp(f.searchExp,"g"),f.replaceStr):str; | |||
|
11 | },_url:function(path){return this._filter((this.base||"")+path);}};})();YAHOO.register("yuiloader",YAHOO.util.YUILoader,{version:"2.9.0",build:"2800"});(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var e=YAHOO.util,k=YAHOO.lang,L=YAHOO.env.ua,a=YAHOO.lang.trim,B={},F={},m=/^t(?:able|d|h)$/i,w=/color$/i,j=window.document,v=j.documentElement,C="ownerDocument",M="defaultView",U="documentElement",S="compatMode",z="offsetLeft",o="offsetTop",T="offsetParent",x="parentNode",K="nodeType",c="tagName",n="scrollLeft",H="scrollTop",p="getBoundingClientRect",V="getComputedStyle",y="currentStyle",l="CSS1Compat",A="BackCompat",E="class",f="className",i="",b=" ",R="(?:^|\\s)",J="(?= |$)",t="g",O="position",D="fixed",u="relative",I="left",N="top",Q="medium",P="borderLeftWidth",q="borderTopWidth",d=L.opera,h=L.webkit,g=L.gecko,s=L.ie;e.Dom={CUSTOM_ATTRIBUTES:(!v.hasAttribute)?{"for":"htmlFor","class":f}:{"htmlFor":"for","className":E},DOT_ATTRIBUTES:{checked:true},get:function(aa){var ac,X,ab,Z,W,G,Y=null;if(aa){if(typeof aa=="string"||typeof aa=="number"){ac=aa+"";aa=j.getElementById(aa);G=(aa)?aa.attributes:null;if(aa&&G&&G.id&&G.id.value===ac){return aa;}else{if(aa&&j.all){aa=null;X=j.all[ac];if(X&&X.length){for(Z=0,W=X.length;Z<W;++Z){if(X[Z].id===ac){return X[Z];}}}}}}else{if(e.Element&&aa instanceof e.Element){aa=aa.get("element");}else{if(!aa.nodeType&&"length" in aa){ab=[];for(Z=0,W=aa.length;Z<W;++Z){ab[ab.length]=e.Dom.get(aa[Z]);}aa=ab;}}}Y=aa;}return Y;},getComputedStyle:function(G,W){if(window[V]){return G[C][M][V](G,null)[W];}else{if(G[y]){return e.Dom.IE_ComputedStyle.get(G,W);}}},getStyle:function(G,W){return e.Dom.batch(G,e.Dom._getStyle,W);},_getStyle:function(){if(window[V]){return function(G,Y){Y=(Y==="float")?Y="cssFloat":e.Dom._toCamel(Y);var X=G.style[Y],W;if(!X){W=G[C][M][V](G,null);if(W){X=W[Y];}}return X;};}else{if(v[y]){return function(G,Y){var X;switch(Y){case"opacity":X=100;try{X=G.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(Z){try{X=G.filters("alpha").opacity;}catch(W){}}return X/100;case"float":Y="styleFloat";default:Y=e.Dom._toCamel(Y);X=G[y]?G[y][Y]:null;return(G.style[Y]||X);}};}}}(),setStyle:function(G,W,X){e.Dom.batch(G,e.Dom._setStyle,{prop:W,val:X});},_setStyle:function(){if(!window.getComputedStyle&&j.documentElement.currentStyle){return function(W,G){var X=e.Dom._toCamel(G.prop),Y=G.val;if(W){switch(X){case"opacity":if(Y===""||Y===null||Y===1){W.style.removeAttribute("filter");}else{if(k.isString(W.style.filter)){W.style.filter="alpha(opacity="+Y*100+")";if(!W[y]||!W[y].hasLayout){W.style.zoom=1;}}}break;case"float":X="styleFloat";default:W.style[X]=Y;}}else{}};}else{return function(W,G){var X=e.Dom._toCamel(G.prop),Y=G.val;if(W){if(X=="float"){X="cssFloat";}W.style[X]=Y;}else{}};}}(),getXY:function(G){return e.Dom.batch(G,e.Dom._getXY);},_canPosition:function(G){return(e.Dom._getStyle(G,"display")!=="none"&&e.Dom._inDoc(G));},_getXY:function(W){var X,G,Z,ab,Y,aa,ac=Math.round,ad=false;if(e.Dom._canPosition(W)){Z=W[p]();ab=W[C];X=e.Dom.getDocumentScrollLeft(ab);G=e.Dom.getDocumentScrollTop(ab);ad=[Z[I],Z[N]];if(Y||aa){ad[0]-=aa;ad[1]-=Y;}if((G||X)){ad[0]+=X;ad[1]+=G;}ad[0]=ac(ad[0]);ad[1]=ac(ad[1]);}else{}return ad;},getX:function(G){var W=function(X){return e.Dom.getXY(X)[0];};return e.Dom.batch(G,W,e.Dom,true);},getY:function(G){var W=function(X){return e.Dom.getXY(X)[1];};return e.Dom.batch(G,W,e.Dom,true);},setXY:function(G,X,W){e.Dom.batch(G,e.Dom._setXY,{pos:X,noRetry:W});},_setXY:function(G,Z){var aa=e.Dom._getStyle(G,O),Y=e.Dom.setStyle,ad=Z.pos,W=Z.noRetry,ab=[parseInt(e.Dom.getComputedStyle(G,I),10),parseInt(e.Dom.getComputedStyle(G,N),10)],ac,X;ac=e.Dom._getXY(G);if(!ad||ac===false){return false;}if(aa=="static"){aa=u;Y(G,O,aa);}if(isNaN(ab[0])){ab[0]=(aa==u)?0:G[z];}if(isNaN(ab[1])){ab[1]=(aa==u)?0:G[o];}if(ad[0]!==null){Y(G,I,ad[0]-ac[0]+ab[0]+"px");}if(ad[1]!==null){Y(G,N,ad[1]-ac[1]+ab[1]+"px");}if(!W){X=e.Dom._getXY(G);if((ad[0]!==null&&X[0]!=ad[0])||(ad[1]!==null&&X[1]!=ad[1])){e.Dom._setXY(G,{pos:ad,noRetry:true});}}},setX:function(W,G){e.Dom.setXY(W,[G,null]);},setY:function(G,W){e.Dom.setXY(G,[null,W]);},getRegion:function(G){var W=function(X){var Y=false;if(e.Dom._canPosition(X)){Y=e.Region.getRegion(X);}else{}return Y;};return e.Dom.batch(G,W,e.Dom,true);},getClientWidth:function(){return e.Dom.getViewportWidth();},getClientHeight:function(){return e.Dom.getViewportHeight();},getElementsByClassName:function(ab,af,ac,ae,X,ad){af=af||"*";ac=(ac)?e.Dom.get(ac):null||j;if(!ac){return[];}var W=[],G=ac.getElementsByTagName(af),Z=e.Dom.hasClass;for(var Y=0,aa=G.length;Y<aa;++Y){if(Z(G[Y],ab)){W[W.length]=G[Y];}}if(ae){e.Dom.batch(W,ae,X,ad);}return W;},hasClass:function(W,G){return e.Dom.batch(W,e.Dom._hasClass,G);},_hasClass:function(X,W){var G=false,Y;if(X&&W){Y=e.Dom._getAttribute(X,f)||i;if(Y){Y=Y.replace(/\s+/g,b);}if(W.exec){G=W.test(Y);}else{G=W&&(b+Y+b).indexOf(b+W+b)>-1;}}else{}return G;},addClass:function(W,G){return e.Dom.batch(W,e.Dom._addClass,G);},_addClass:function(X,W){var G=false,Y;if(X&&W){Y=e.Dom._getAttribute(X,f)||i;if(!e.Dom._hasClass(X,W)){e.Dom.setAttribute(X,f,a(Y+b+W));G=true;}}else{}return G;},removeClass:function(W,G){return e.Dom.batch(W,e.Dom._removeClass,G);},_removeClass:function(Y,X){var W=false,aa,Z,G;if(Y&&X){aa=e.Dom._getAttribute(Y,f)||i;e.Dom.setAttribute(Y,f,aa.replace(e.Dom._getClassRegex(X),i));Z=e.Dom._getAttribute(Y,f);if(aa!==Z){e.Dom.setAttribute(Y,f,a(Z));W=true;if(e.Dom._getAttribute(Y,f)===""){G=(Y.hasAttribute&&Y.hasAttribute(E))?E:f;Y.removeAttribute(G);}}}else{}return W;},replaceClass:function(X,W,G){return e.Dom.batch(X,e.Dom._replaceClass,{from:W,to:G});},_replaceClass:function(Y,X){var W,ab,aa,G=false,Z;if(Y&&X){ab=X.from;aa=X.to;if(!aa){G=false;}else{if(!ab){G=e.Dom._addClass(Y,X.to);}else{if(ab!==aa){Z=e.Dom._getAttribute(Y,f)||i;W=(b+Z.replace(e.Dom._getClassRegex(ab),b+aa).replace(/\s+/g,b)).split(e.Dom._getClassRegex(aa));W.splice(1,0,b+aa);e.Dom.setAttribute(Y,f,a(W.join(i)));G=true;}}}}else{}return G;},generateId:function(G,X){X=X||"yui-gen";var W=function(Y){if(Y&&Y.id){return Y.id;}var Z=X+YAHOO.env._id_counter++; | |||
|
12 | if(Y){if(Y[C]&&Y[C].getElementById(Z)){return e.Dom.generateId(Y,Z+X);}Y.id=Z;}return Z;};return e.Dom.batch(G,W,e.Dom,true)||W.apply(e.Dom,arguments);},isAncestor:function(W,X){W=e.Dom.get(W);X=e.Dom.get(X);var G=false;if((W&&X)&&(W[K]&&X[K])){if(W.contains&&W!==X){G=W.contains(X);}else{if(W.compareDocumentPosition){G=!!(W.compareDocumentPosition(X)&16);}}}else{}return G;},inDocument:function(G,W){return e.Dom._inDoc(e.Dom.get(G),W);},_inDoc:function(W,X){var G=false;if(W&&W[c]){X=X||W[C];G=e.Dom.isAncestor(X[U],W);}else{}return G;},getElementsBy:function(W,af,ab,ad,X,ac,ae){af=af||"*";ab=(ab)?e.Dom.get(ab):null||j;var aa=(ae)?null:[],G;if(ab){G=ab.getElementsByTagName(af);for(var Y=0,Z=G.length;Y<Z;++Y){if(W(G[Y])){if(ae){aa=G[Y];break;}else{aa[aa.length]=G[Y];}}}if(ad){e.Dom.batch(aa,ad,X,ac);}}return aa;},getElementBy:function(X,G,W){return e.Dom.getElementsBy(X,G,W,null,null,null,true);},batch:function(X,ab,aa,Z){var Y=[],W=(Z)?aa:null;X=(X&&(X[c]||X.item))?X:e.Dom.get(X);if(X&&ab){if(X[c]||X.length===undefined){return ab.call(W,X,aa);}for(var G=0;G<X.length;++G){Y[Y.length]=ab.call(W||X[G],X[G],aa);}}else{return false;}return Y;},getDocumentHeight:function(){var W=(j[S]!=l||h)?j.body.scrollHeight:v.scrollHeight,G=Math.max(W,e.Dom.getViewportHeight());return G;},getDocumentWidth:function(){var W=(j[S]!=l||h)?j.body.scrollWidth:v.scrollWidth,G=Math.max(W,e.Dom.getViewportWidth());return G;},getViewportHeight:function(){var G=self.innerHeight,W=j[S];if((W||s)&&!d){G=(W==l)?v.clientHeight:j.body.clientHeight;}return G;},getViewportWidth:function(){var G=self.innerWidth,W=j[S];if(W||s){G=(W==l)?v.clientWidth:j.body.clientWidth;}return G;},getAncestorBy:function(G,W){while((G=G[x])){if(e.Dom._testElement(G,W)){return G;}}return null;},getAncestorByClassName:function(W,G){W=e.Dom.get(W);if(!W){return null;}var X=function(Y){return e.Dom.hasClass(Y,G);};return e.Dom.getAncestorBy(W,X);},getAncestorByTagName:function(W,G){W=e.Dom.get(W);if(!W){return null;}var X=function(Y){return Y[c]&&Y[c].toUpperCase()==G.toUpperCase();};return e.Dom.getAncestorBy(W,X);},getPreviousSiblingBy:function(G,W){while(G){G=G.previousSibling;if(e.Dom._testElement(G,W)){return G;}}return null;},getPreviousSibling:function(G){G=e.Dom.get(G);if(!G){return null;}return e.Dom.getPreviousSiblingBy(G);},getNextSiblingBy:function(G,W){while(G){G=G.nextSibling;if(e.Dom._testElement(G,W)){return G;}}return null;},getNextSibling:function(G){G=e.Dom.get(G);if(!G){return null;}return e.Dom.getNextSiblingBy(G);},getFirstChildBy:function(G,X){var W=(e.Dom._testElement(G.firstChild,X))?G.firstChild:null;return W||e.Dom.getNextSiblingBy(G.firstChild,X);},getFirstChild:function(G,W){G=e.Dom.get(G);if(!G){return null;}return e.Dom.getFirstChildBy(G);},getLastChildBy:function(G,X){if(!G){return null;}var W=(e.Dom._testElement(G.lastChild,X))?G.lastChild:null;return W||e.Dom.getPreviousSiblingBy(G.lastChild,X);},getLastChild:function(G){G=e.Dom.get(G);return e.Dom.getLastChildBy(G);},getChildrenBy:function(W,Y){var X=e.Dom.getFirstChildBy(W,Y),G=X?[X]:[];e.Dom.getNextSiblingBy(X,function(Z){if(!Y||Y(Z)){G[G.length]=Z;}return false;});return G;},getChildren:function(G){G=e.Dom.get(G);if(!G){}return e.Dom.getChildrenBy(G);},getDocumentScrollLeft:function(G){G=G||j;return Math.max(G[U].scrollLeft,G.body.scrollLeft);},getDocumentScrollTop:function(G){G=G||j;return Math.max(G[U].scrollTop,G.body.scrollTop);},insertBefore:function(W,G){W=e.Dom.get(W);G=e.Dom.get(G);if(!W||!G||!G[x]){return null;}return G[x].insertBefore(W,G);},insertAfter:function(W,G){W=e.Dom.get(W);G=e.Dom.get(G);if(!W||!G||!G[x]){return null;}if(G.nextSibling){return G[x].insertBefore(W,G.nextSibling);}else{return G[x].appendChild(W);}},getClientRegion:function(){var X=e.Dom.getDocumentScrollTop(),W=e.Dom.getDocumentScrollLeft(),Y=e.Dom.getViewportWidth()+W,G=e.Dom.getViewportHeight()+X;return new e.Region(X,Y,G,W);},setAttribute:function(W,G,X){e.Dom.batch(W,e.Dom._setAttribute,{attr:G,val:X});},_setAttribute:function(X,W){var G=e.Dom._toCamel(W.attr),Y=W.val;if(X&&X.setAttribute){if(e.Dom.DOT_ATTRIBUTES[G]&&X.tagName&&X.tagName!="BUTTON"){X[G]=Y;}else{G=e.Dom.CUSTOM_ATTRIBUTES[G]||G;X.setAttribute(G,Y);}}else{}},getAttribute:function(W,G){return e.Dom.batch(W,e.Dom._getAttribute,G);},_getAttribute:function(W,G){var X;G=e.Dom.CUSTOM_ATTRIBUTES[G]||G;if(e.Dom.DOT_ATTRIBUTES[G]){X=W[G];}else{if(W&&"getAttribute" in W){if(/^(?:href|src)$/.test(G)){X=W.getAttribute(G,2);}else{X=W.getAttribute(G);}}else{}}return X;},_toCamel:function(W){var X=B;function G(Y,Z){return Z.toUpperCase();}return X[W]||(X[W]=W.indexOf("-")===-1?W:W.replace(/-([a-z])/gi,G));},_getClassRegex:function(W){var G;if(W!==undefined){if(W.exec){G=W;}else{G=F[W];if(!G){W=W.replace(e.Dom._patterns.CLASS_RE_TOKENS,"\\$1");W=W.replace(/\s+/g,b);G=F[W]=new RegExp(R+W+J,t);}}}return G;},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g},_testElement:function(G,W){return G&&G[K]==1&&(!W||W(G));},_calcBorders:function(X,Y){var W=parseInt(e.Dom[V](X,q),10)||0,G=parseInt(e.Dom[V](X,P),10)||0;if(g){if(m.test(X[c])){W=0;G=0;}}Y[0]+=G;Y[1]+=W;return Y;}};var r=e.Dom[V];if(L.opera){e.Dom[V]=function(W,G){var X=r(W,G);if(w.test(G)){X=e.Dom.Color.toRGB(X);}return X;};}if(L.webkit){e.Dom[V]=function(W,G){var X=r(W,G);if(X==="rgba(0, 0, 0, 0)"){X="transparent";}return X;};}if(L.ie&&L.ie>=8){e.Dom.DOT_ATTRIBUTES.type=true;}})();YAHOO.util.Region=function(d,e,a,c){this.top=d;this.y=d;this[1]=d;this.right=e;this.bottom=a;this.left=c;this.x=c;this[0]=c;this.width=this.right-this.left;this.height=this.bottom-this.top;};YAHOO.util.Region.prototype.contains=function(a){return(a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(f){var d=Math.max(this.top,f.top),e=Math.min(this.right,f.right),a=Math.min(this.bottom,f.bottom),c=Math.max(this.left,f.left); | |||
|
13 | if(a>=d&&e>=c){return new YAHOO.util.Region(d,e,a,c);}else{return null;}};YAHOO.util.Region.prototype.union=function(f){var d=Math.min(this.top,f.top),e=Math.max(this.right,f.right),a=Math.max(this.bottom,f.bottom),c=Math.min(this.left,f.left);return new YAHOO.util.Region(d,e,a,c);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}");};YAHOO.util.Region.getRegion=function(e){var g=YAHOO.util.Dom.getXY(e),d=g[1],f=g[0]+e.offsetWidth,a=g[1]+e.offsetHeight,c=g[0];return new YAHOO.util.Region(d,f,a,c);};YAHOO.util.Point=function(a,b){if(YAHOO.lang.isArray(a)){b=a[1];a=a[0];}YAHOO.util.Point.superclass.constructor.call(this,b,a,b,a);};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var b=YAHOO.util,a="clientTop",f="clientLeft",j="parentNode",k="right",w="hasLayout",i="px",u="opacity",l="auto",d="borderLeftWidth",g="borderTopWidth",p="borderRightWidth",v="borderBottomWidth",s="visible",q="transparent",n="height",e="width",h="style",t="currentStyle",r=/^width|height$/,o=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,m={get:function(x,z){var y="",A=x[t][z];if(z===u){y=b.Dom.getStyle(x,u);}else{if(!A||(A.indexOf&&A.indexOf(i)>-1)){y=A;}else{if(b.Dom.IE_COMPUTED[z]){y=b.Dom.IE_COMPUTED[z](x,z);}else{if(o.test(A)){y=b.Dom.IE.ComputedStyle.getPixel(x,z);}else{y=A;}}}}return y;},getOffset:function(z,E){var B=z[t][E],x=E.charAt(0).toUpperCase()+E.substr(1),C="offset"+x,y="pixel"+x,A="",D;if(B==l){D=z[C];if(D===undefined){A=0;}A=D;if(r.test(E)){z[h][E]=D;if(z[C]>D){A=D-(z[C]-D);}z[h][E]=l;}}else{if(!z[h][y]&&!z[h][E]){z[h][E]=B;}A=z[h][y];}return A+i;},getBorderWidth:function(x,z){var y=null;if(!x[t][w]){x[h].zoom=1;}switch(z){case g:y=x[a];break;case v:y=x.offsetHeight-x.clientHeight-x[a];break;case d:y=x[f];break;case p:y=x.offsetWidth-x.clientWidth-x[f];break;}return y+i;},getPixel:function(y,x){var A=null,B=y[t][k],z=y[t][x];y[h][k]=z;A=y[h].pixelRight;y[h][k]=B;return A+i;},getMargin:function(y,x){var z;if(y[t][x]==l){z=0+i;}else{z=b.Dom.IE.ComputedStyle.getPixel(y,x);}return z;},getVisibility:function(y,x){var z;while((z=y[t])&&z[x]=="inherit"){y=y[j];}return(z)?z[x]:s;},getColor:function(y,x){return b.Dom.Color.toRGB(y[t][x])||q;},getBorderColor:function(y,x){var z=y[t],A=z[x]||z.color;return b.Dom.Color.toRGB(b.Dom.Color.toHex(A));}},c={};c.top=c.right=c.bottom=c.left=c[e]=c[n]=m.getOffset;c.color=m.getColor;c[g]=c[p]=c[v]=c[d]=m.getBorderWidth;c.marginTop=c.marginRight=c.marginBottom=c.marginLeft=m.getMargin;c.visibility=m.getVisibility;c.borderColor=c.borderTopColor=c.borderRightColor=c.borderBottomColor=c.borderLeftColor=m.getBorderColor;b.Dom.IE_COMPUTED=c;b.Dom.IE_ComputedStyle=m;})();(function(){var c="toString",a=parseInt,b=RegExp,d=YAHOO.util;d.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(e){if(!d.Dom.Color.re_RGB.test(e)){e=d.Dom.Color.toHex(e);}if(d.Dom.Color.re_hex.exec(e)){e="rgb("+[a(b.$1,16),a(b.$2,16),a(b.$3,16)].join(", ")+")";}return e;},toHex:function(f){f=d.Dom.Color.KEYWORDS[f]||f;if(d.Dom.Color.re_RGB.exec(f)){f=[Number(b.$1).toString(16),Number(b.$2).toString(16),Number(b.$3).toString(16)];for(var e=0;e<f.length;e++){if(f[e].length<2){f[e]="0"+f[e];}}f=f.join("");}if(f.length<6){f=f.replace(d.Dom.Color.re_hex3,"$1$1");}if(f!=="transparent"&&f.indexOf("#")<0){f="#"+f;}return f.toUpperCase();}};}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.9.0",build:"2800"});YAHOO.util.CustomEvent=function(d,c,b,a,e){this.type=d;this.scope=c||window;this.silent=b;this.fireOnce=e;this.fired=false;this.firedWith=null;this.signature=a||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var f="_YUICEOnSubscribe";if(d!==f){this.subscribeEvent=new YAHOO.util.CustomEvent(f,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(b,c,d){if(!b){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(b,c,d);}var a=new YAHOO.util.Subscriber(b,c,d);if(this.fireOnce&&this.fired){this.notify(a,this.firedWith);}else{this.subscribers.push(a);}},unsubscribe:function(d,f){if(!d){return this.unsubscribeAll();}var e=false;for(var b=0,a=this.subscribers.length;b<a;++b){var c=this.subscribers[b];if(c&&c.contains(d,f)){this._delete(b);e=true;}}return e;},fire:function(){this.lastError=null;var h=[],a=this.subscribers.length;var d=[].slice.call(arguments,0),c=true,f,b=false;if(this.fireOnce){if(this.fired){return true;}else{this.firedWith=d;}}this.fired=true;if(!a&&this.silent){return true;}if(!this.silent){}var e=this.subscribers.slice();for(f=0;f<a;++f){var g=e[f];if(!g||!g.fn){b=true;}else{c=this.notify(g,d);if(false===c){if(!this.silent){}break;}}}return(c!==false);},notify:function(g,c){var b,i=null,f=g.getScope(this.scope),a=YAHOO.util.Event.throwErrors;if(!this.silent){}if(this.signature==YAHOO.util.CustomEvent.FLAT){if(c.length>0){i=c[0];}try{b=g.fn.call(f,i,g.obj);}catch(h){this.lastError=h;if(a){throw h;}}}else{try{b=g.fn.call(f,this.type,c,g.obj);}catch(d){this.lastError=d;if(a){throw d;}}}return b;},unsubscribeAll:function(){var a=this.subscribers.length,b;for(b=a-1;b>-1;b--){this._delete(b);}this.subscribers=[];return a;},_delete:function(a){var b=this.subscribers[a];if(b){delete b.fn;delete b.obj;}this.subscribers.splice(a,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"context: "+this.scope;}};YAHOO.util.Subscriber=function(a,b,c){this.fn=a;this.obj=YAHOO.lang.isUndefined(b)?null:b;this.overrideContext=c;};YAHOO.util.Subscriber.prototype.getScope=function(a){if(this.overrideContext){if(this.overrideContext===true){return this.obj;}else{return this.overrideContext;}}return a;};YAHOO.util.Subscriber.prototype.contains=function(a,b){if(b){return(this.fn==a&&this.obj==b);}else{return(this.fn==a);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var g=false,h=[],j=[],a=0,e=[],b=0,c={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},d=YAHOO.env.ua.ie,f="focusin",i="focusout";return{POLL_RETRYS:500,POLL_INTERVAL:40,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:d,_interval:null,_dri:null,_specialTypes:{focusin:(d?"focusin":"focus"),focusout:(d?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=YAHOO.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true);}},onAvailable:function(q,m,o,p,n){var k=(YAHOO.lang.isString(q))?[q]:q;for(var l=0;l<k.length;l=l+1){e.push({id:k[l],fn:m,obj:o,overrideContext:p,checkReady:n});}a=this.POLL_RETRYS;this.startInterval();},onContentReady:function(n,k,l,m){this.onAvailable(n,k,l,m,true);},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments);},_addListener:function(m,k,v,p,t,y){if(!v||!v.call){return false;}if(this._isValidCollection(m)){var w=true;for(var q=0,s=m.length;q<s;++q){w=this.on(m[q],k,v,p,t)&&w;}return w;}else{if(YAHOO.lang.isString(m)){var o=this.getEl(m);if(o){m=o;}else{this.onAvailable(m,function(){YAHOO.util.Event._addListener(m,k,v,p,t,y);});return true;}}}if(!m){return false;}if("unload"==k&&p!==this){j[j.length]=[m,k,v,p,t];return true;}var l=m;if(t){if(t===true){l=p;}else{l=t;}}var n=function(z){return v.call(l,YAHOO.util.Event.getEvent(z,m),p);};var x=[m,k,v,n,l,p,t,y];var r=h.length;h[r]=x;try{this._simpleAdd(m,k,n,y);}catch(u){this.lastError=u;this.removeListener(m,k,v);return false;}return true;},_getType:function(k){return this._specialTypes[k]||k;},addListener:function(m,p,l,n,o){var k=((p==f||p==i)&&!YAHOO.env.ua.ie)?true:false;return this._addListener(m,this._getType(p),l,n,o,k);},addFocusListener:function(l,k,m,n){return this.on(l,f,k,m,n);},removeFocusListener:function(l,k){return this.removeListener(l,f,k);},addBlurListener:function(l,k,m,n){return this.on(l,i,k,m,n);},removeBlurListener:function(l,k){return this.removeListener(l,i,k);},removeListener:function(l,k,r){var m,p,u;k=this._getType(k);if(typeof l=="string"){l=this.getEl(l);}else{if(this._isValidCollection(l)){var s=true;for(m=l.length-1;m>-1;m--){s=(this.removeListener(l[m],k,r)&&s);}return s;}}if(!r||!r.call){return this.purgeElement(l,false,k);}if("unload"==k){for(m=j.length-1;m>-1;m--){u=j[m];if(u&&u[0]==l&&u[1]==k&&u[2]==r){j.splice(m,1);return true;}}return false;}var n=null;var o=arguments[3];if("undefined"===typeof o){o=this._getCacheIndex(h,l,k,r);}if(o>=0){n=h[o];}if(!l||!n){return false;}var t=n[this.CAPTURE]===true?true:false;try{this._simpleRemove(l,k,n[this.WFN],t);}catch(q){this.lastError=q;return false;}delete h[o][this.WFN];delete h[o][this.FN];h.splice(o,1);return true;},getTarget:function(m,l){var k=m.target||m.srcElement;return this.resolveTextNode(k);},resolveTextNode:function(l){try{if(l&&3==l.nodeType){return l.parentNode;}}catch(k){return null;}return l;},getPageX:function(l){var k=l.pageX;if(!k&&0!==k){k=l.clientX||0;if(this.isIE){k+=this._getScrollLeft();}}return k;},getPageY:function(k){var l=k.pageY;if(!l&&0!==l){l=k.clientY||0;if(this.isIE){l+=this._getScrollTop();}}return l;},getXY:function(k){return[this.getPageX(k),this.getPageY(k)];},getRelatedTarget:function(l){var k=l.relatedTarget; | |||
|
14 | if(!k){if(l.type=="mouseout"){k=l.toElement;}else{if(l.type=="mouseover"){k=l.fromElement;}}}return this.resolveTextNode(k);},getTime:function(m){if(!m.time){var l=new Date().getTime();try{m.time=l;}catch(k){this.lastError=k;return l;}}return m.time;},stopEvent:function(k){this.stopPropagation(k);this.preventDefault(k);},stopPropagation:function(k){if(k.stopPropagation){k.stopPropagation();}else{k.cancelBubble=true;}},preventDefault:function(k){if(k.preventDefault){k.preventDefault();}else{k.returnValue=false;}},getEvent:function(m,k){var l=m||window.event;if(!l){var n=this.getEvent.caller;while(n){l=n.arguments[0];if(l&&Event==l.constructor){break;}n=n.caller;}}return l;},getCharCode:function(l){var k=l.keyCode||l.charCode||0;if(YAHOO.env.ua.webkit&&(k in c)){k=c[k];}return k;},_getCacheIndex:function(n,q,r,p){for(var o=0,m=n.length;o<m;o=o+1){var k=n[o];if(k&&k[this.FN]==p&&k[this.EL]==q&&k[this.TYPE]==r){return o;}}return -1;},generateId:function(k){var l=k.id;if(!l){l="yuievtautoid-"+b;++b;k.id=l;}return l;},_isValidCollection:function(l){try{return(l&&typeof l!=="string"&&l.length&&!l.tagName&&!l.alert&&typeof l[0]!=="undefined");}catch(k){return false;}},elCache:{},getEl:function(k){return(typeof k==="string")?document.getElementById(k):k;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",YAHOO,0,0,1),_load:function(l){if(!g){g=true;var k=YAHOO.util.Event;k._ready();k._tryPreloadAttach();}},_ready:function(l){var k=YAHOO.util.Event;if(!k.DOMReady){k.DOMReady=true;k.DOMReadyEvent.fire();k._simpleRemove(document,"DOMContentLoaded",k._ready);}},_tryPreloadAttach:function(){if(e.length===0){a=0;if(this._interval){this._interval.cancel();this._interval=null;}return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();return;}}this.locked=true;var q=!g;if(!q){q=(a>0&&e.length>0);}var p=[];var r=function(t,u){var s=t;if(u.overrideContext){if(u.overrideContext===true){s=u.obj;}else{s=u.overrideContext;}}u.fn.call(s,u.obj);};var l,k,o,n,m=[];for(l=0,k=e.length;l<k;l=l+1){o=e[l];if(o){n=this.getEl(o.id);if(n){if(o.checkReady){if(g||n.nextSibling||!q){m.push(o);e[l]=null;}}else{r(n,o);e[l]=null;}}else{p.push(o);}}}for(l=0,k=m.length;l<k;l=l+1){o=m[l];r(this.getEl(o.id),o);}a--;if(q){for(l=e.length-1;l>-1;l--){o=e[l];if(!o||!o.id){e.splice(l,1);}}this.startInterval();}else{if(this._interval){this._interval.cancel();this._interval=null;}}this.locked=false;},purgeElement:function(p,q,s){var n=(YAHOO.lang.isString(p))?this.getEl(p):p;var r=this.getListeners(n,s),o,k;if(r){for(o=r.length-1;o>-1;o--){var m=r[o];this.removeListener(n,m.type,m.fn);}}if(q&&n&&n.childNodes){for(o=0,k=n.childNodes.length;o<k;++o){this.purgeElement(n.childNodes[o],q,s);}}},getListeners:function(n,k){var q=[],m;if(!k){m=[h,j];}else{if(k==="unload"){m=[j];}else{k=this._getType(k);m=[h];}}var s=(YAHOO.lang.isString(n))?this.getEl(n):n;for(var p=0;p<m.length;p=p+1){var u=m[p];if(u){for(var r=0,t=u.length;r<t;++r){var o=u[r];if(o&&o[this.EL]===s&&(!k||k===o[this.TYPE])){q.push({type:o[this.TYPE],fn:o[this.FN],obj:o[this.OBJ],adjust:o[this.OVERRIDE],scope:o[this.ADJ_SCOPE],index:r});}}}}return(q.length)?q:null;},_unload:function(s){var m=YAHOO.util.Event,p,o,n,r,q,t=j.slice(),k;for(p=0,r=j.length;p<r;++p){n=t[p];if(n){try{k=window;if(n[m.ADJ_SCOPE]){if(n[m.ADJ_SCOPE]===true){k=n[m.UNLOAD_OBJ];}else{k=n[m.ADJ_SCOPE];}}n[m.FN].call(k,m.getEvent(s,n[m.EL]),n[m.UNLOAD_OBJ]);}catch(w){}t[p]=null;}}n=null;k=null;j=null;if(h){for(o=h.length-1;o>-1;o--){n=h[o];if(n){try{m.removeListener(n[m.EL],n[m.TYPE],n[m.FN],o);}catch(v){}}}n=null;}try{m._simpleRemove(window,"unload",m._unload);m._simpleRemove(window,"load",m._load);}catch(u){}},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var k=document.documentElement,l=document.body;if(k&&(k.scrollTop||k.scrollLeft)){return[k.scrollTop,k.scrollLeft];}else{if(l){return[l.scrollTop,l.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(m,n,l,k){m.addEventListener(n,l,(k));};}else{if(window.attachEvent){return function(m,n,l,k){m.attachEvent("on"+n,l);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(m,n,l,k){m.removeEventListener(n,l,(k));};}else{if(window.detachEvent){return function(l,m,k){l.detachEvent("on"+m,k);};}else{return function(){};}}}()};}();(function(){var a=YAHOO.util.Event;a.on=a.addListener;a.onFocus=a.addFocusListener;a.onBlur=a.addBlurListener; | |||
|
15 | /*! DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */ | |||
|
16 | if(a.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;a._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var b=document.createElement("p");a._dri=setInterval(function(){try{b.doScroll("left");clearInterval(a._dri);a._dri=null;a._ready();b=null;}catch(c){}},a.POLL_INTERVAL);}}else{if(a.webkit&&a.webkit<525){a._dri=setInterval(function(){var c=document.readyState;if("loaded"==c||"complete"==c){clearInterval(a._dri);a._dri=null;a._ready();}},a.POLL_INTERVAL);}else{a._simpleAdd(document,"DOMContentLoaded",a._ready);}}a._simpleAdd(window,"load",a._load);a._simpleAdd(window,"unload",a._unload);a._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(a,c,f,e){this.__yui_events=this.__yui_events||{};var d=this.__yui_events[a];if(d){d.subscribe(c,f,e);}else{this.__yui_subscribers=this.__yui_subscribers||{};var b=this.__yui_subscribers;if(!b[a]){b[a]=[];}b[a].push({fn:c,obj:f,overrideContext:e});}},unsubscribe:function(c,e,g){this.__yui_events=this.__yui_events||{};var a=this.__yui_events;if(c){var f=a[c];if(f){return f.unsubscribe(e,g);}}else{var b=true;for(var d in a){if(YAHOO.lang.hasOwnProperty(a,d)){b=b&&a[d].unsubscribe(e,g); | |||
|
17 | }}return b;}return false;},unsubscribeAll:function(a){return this.unsubscribe(a);},createEvent:function(b,g){this.__yui_events=this.__yui_events||{};var e=g||{},d=this.__yui_events,f;if(d[b]){}else{f=new YAHOO.util.CustomEvent(b,e.scope||this,e.silent,YAHOO.util.CustomEvent.FLAT,e.fireOnce);d[b]=f;if(e.onSubscribeCallback){f.subscribeEvent.subscribe(e.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var a=this.__yui_subscribers[b];if(a){for(var c=0;c<a.length;++c){f.subscribe(a[c].fn,a[c].obj,a[c].overrideContext);}}}return d[b];},fireEvent:function(b){this.__yui_events=this.__yui_events||{};var d=this.__yui_events[b];if(!d){return null;}var a=[];for(var c=1;c<arguments.length;++c){a.push(arguments[c]);}return d.fire.apply(d,a);},hasEvent:function(a){if(this.__yui_events){if(this.__yui_events[a]){return true;}}return false;}};(function(){var a=YAHOO.util.Event,c=YAHOO.lang;YAHOO.util.KeyListener=function(d,i,e,f){if(!d){}else{if(!i){}else{if(!e){}}}if(!f){f=YAHOO.util.KeyListener.KEYDOWN;}var g=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(c.isString(d)){d=document.getElementById(d);}if(c.isFunction(e)){g.subscribe(e);}else{g.subscribe(e.fn,e.scope,e.correctScope);}function h(o,n){if(!i.shift){i.shift=false;}if(!i.alt){i.alt=false;}if(!i.ctrl){i.ctrl=false;}if(o.shiftKey==i.shift&&o.altKey==i.alt&&o.ctrlKey==i.ctrl){var j,m=i.keys,l;if(YAHOO.lang.isArray(m)){for(var k=0;k<m.length;k++){j=m[k];l=a.getCharCode(o);if(j==l){g.fire(l,o);break;}}}else{l=a.getCharCode(o);if(m==l){g.fire(l,o);}}}}this.enable=function(){if(!this.enabled){a.on(d,f,h);this.enabledEvent.fire(i);}this.enabled=true;};this.disable=function(){if(this.enabled){a.removeListener(d,f,h);this.disabledEvent.fire(i);}this.enabled=false;};this.toString=function(){return"KeyListener ["+i.keys+"] "+d.tagName+(d.id?"["+d.id+"]":"");};};var b=YAHOO.util.KeyListener;b.KEYDOWN="keydown";b.KEYUP="keyup";b.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};})();YAHOO.register("event",YAHOO.util.Event,{version:"2.9.0",build:"2800"});YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_isFormSubmit:false,_default_headers:{},_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(a){this._msxml_progid.unshift(a);},setDefaultPostHeader:function(a){if(typeof a=="string"){this._default_post_header=a;this._use_default_post_header=true;}else{if(typeof a=="boolean"){this._use_default_post_header=a;}}},setDefaultXhrHeader:function(a){if(typeof a=="string"){this._default_xhr_header=a;}else{this._use_default_xhr_header=a;}},setPollingInterval:function(a){if(typeof a=="number"&&isFinite(a)){this._polling_interval=a;}},createXhrObject:function(g){var d,a,b;try{a=new XMLHttpRequest();d={conn:a,tId:g,xhr:true};}catch(c){for(b=0;b<this._msxml_progid.length;++b){try{a=new ActiveXObject(this._msxml_progid[b]);d={conn:a,tId:g,xhr:true};break;}catch(f){}}}finally{return d;}},getConnectionObject:function(a){var c,d=this._transaction_id;try{if(!a){c=this.createXhrObject(d);}else{c={tId:d};if(a==="xdr"){c.conn=this._transport;c.xdr=true;}else{if(a==="upload"){c.upload=true;}}}if(c){this._transaction_id++;}}catch(b){}return c;},asyncRequest:function(h,d,g,a){var b=g&&g.argument?g.argument:null,e=this,f,c;if(this._isFileUpload){c="upload";}else{if(g&&g.xdr){c="xdr";}}f=this.getConnectionObject(c);if(!f){return null;}else{if(g&&g.customevents){this.initCustomEvents(f,g);}if(this._isFormSubmit){if(this._isFileUpload){window.setTimeout(function(){e.uploadFile(f,g,d,a);},10);return f;}if(h.toUpperCase()=="GET"){if(this._sFormData.length!==0){d+=((d.indexOf("?")==-1)?"?":"&")+this._sFormData;}}else{if(h.toUpperCase()=="POST"){a=a?this._sFormData+"&"+a:this._sFormData;}}}if(h.toUpperCase()=="GET"&&(g&&g.cache===false)){d+=((d.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString();}if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true);}}if((h.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header);}if(f.xdr){this.xdr(f,h,d,g,a);return f;}f.conn.open(h,d,true);if(this._has_default_headers||this._has_http_headers){this.setHeader(f);}this.handleReadyState(f,g);f.conn.send(a||"");if(this._isFormSubmit===true){this.resetFormState();}this.startEvent.fire(f,b);if(f.startEvent){f.startEvent.fire(f,b);}return f;}},initCustomEvents:function(a,c){var b;for(b in c.customevents){if(this._customEvents[b][0]){a[this._customEvents[b][0]]=new YAHOO.util.CustomEvent(this._customEvents[b][1],(c.scope)?c.scope:null);a[this._customEvents[b][0]].subscribe(c.customevents[b]);}}},handleReadyState:function(c,d){var b=this,a=(d&&d.argument)?d.argument:null;if(d&&d.timeout){this._timeOut[c.tId]=window.setTimeout(function(){b.abort(c,d,true);},d.timeout);}this._poll[c.tId]=window.setInterval(function(){if(c.conn&&c.conn.readyState===4){window.clearInterval(b._poll[c.tId]);delete b._poll[c.tId];if(d&&d.timeout){window.clearTimeout(b._timeOut[c.tId]);delete b._timeOut[c.tId];}b.completeEvent.fire(c,a);if(c.completeEvent){c.completeEvent.fire(c,a);}b.handleTransactionResponse(c,d);}},this._polling_interval);},handleTransactionResponse:function(b,j,d){var f,a,h=(j&&j.argument)?j.argument:null,c=(b.r&&b.r.statusText==="xdr:success")?true:false,i=(b.r&&b.r.statusText==="xdr:failure")?true:false,k=d;try{if((b.conn.status!==undefined&&b.conn.status!==0)||c){f=b.conn.status;}else{if(i&&!k){f=0;}else{f=13030;}}}catch(g){f=13030;}if((f>=200&&f<300)||f===1223||c){a=b.xdr?b.r:this.createResponseObject(b,h);if(j&&j.success){if(!j.scope){j.success(a);}else{j.success.apply(j.scope,[a]);}}this.successEvent.fire(a);if(b.successEvent){b.successEvent.fire(a);}}else{switch(f){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:a=this.createExceptionObject(b.tId,h,(d?d:false));if(j&&j.failure){if(!j.scope){j.failure(a);}else{j.failure.apply(j.scope,[a]);}}break;default:a=(b.xdr)?b.response:this.createResponseObject(b,h);if(j&&j.failure){if(!j.scope){j.failure(a);}else{j.failure.apply(j.scope,[a]);}}}this.failureEvent.fire(a);if(b.failureEvent){b.failureEvent.fire(a);}}this.releaseObject(b);a=null;},createResponseObject:function(a,h){var d={},k={},f,c,g,b;try{c=a.conn.getAllResponseHeaders();g=c.split("\n");for(f=0;f<g.length;f++){b=g[f].indexOf(":");if(b!=-1){k[g[f].substring(0,b)]=YAHOO.lang.trim(g[f].substring(b+2));}}}catch(j){}d.tId=a.tId;d.status=(a.conn.status==1223)?204:a.conn.status;d.statusText=(a.conn.status==1223)?"No Content":a.conn.statusText;d.getResponseHeader=k;d.getAllResponseHeaders=c;d.responseText=a.conn.responseText;d.responseXML=a.conn.responseXML;if(h){d.argument=h;}return d;},createExceptionObject:function(h,d,a){var f=0,g="communication failure",c=-1,b="transaction aborted",e={};e.tId=h;if(a){e.status=c;e.statusText=b;}else{e.status=f;e.statusText=g;}if(d){e.argument=d;}return e;},initHeader:function(a,d,c){var b=(c)?this._default_headers:this._http_headers;b[a]=d;if(c){this._has_default_headers=true;}else{this._has_http_headers=true;}},setHeader:function(a){var b;if(this._has_default_headers){for(b in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,b)){a.conn.setRequestHeader(b,this._default_headers[b]); | |||
|
18 | }}}if(this._has_http_headers){for(b in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,b)){a.conn.setRequestHeader(b,this._http_headers[b]);}}this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){this._default_headers={};this._has_default_headers=false;},abort:function(e,g,a){var d,b=(g&&g.argument)?g.argument:null;e=e||{};if(e.conn){if(e.xhr){if(this.isCallInProgress(e)){e.conn.abort();window.clearInterval(this._poll[e.tId]);delete this._poll[e.tId];if(a){window.clearTimeout(this._timeOut[e.tId]);delete this._timeOut[e.tId];}d=true;}}else{if(e.xdr){e.conn.abort(e.tId);d=true;}}}else{if(e.upload){var c="yuiIO"+e.tId;var f=document.getElementById(c);if(f){YAHOO.util.Event.removeListener(f,"load");document.body.removeChild(f);if(a){window.clearTimeout(this._timeOut[e.tId]);delete this._timeOut[e.tId];}d=true;}}else{d=false;}}if(d===true){this.abortEvent.fire(e,b);if(e.abortEvent){e.abortEvent.fire(e,b);}this.handleTransactionResponse(e,g,true);}return d;},isCallInProgress:function(a){a=a||{};if(a.xhr&&a.conn){return a.conn.readyState!==4&&a.conn.readyState!==0;}else{if(a.xdr&&a.conn){return a.conn.isCallInProgress(a.tId);}else{if(a.upload===true){return document.getElementById("yuiIO"+a.tId)?true:false;}else{return false;}}}},releaseObject:function(a){if(a&&a.conn){a.conn=null;a=null;}}};(function(){var g=YAHOO.util.Connect,h={};function d(i){var j='<object id="YUIConnectionSwf" type="application/x-shockwave-flash" data="'+i+'" width="0" height="0">'+'<param name="movie" value="'+i+'">'+'<param name="allowScriptAccess" value="always">'+"</object>",k=document.createElement("div");document.body.appendChild(k);k.innerHTML=j;}function b(l,i,j,n,k){h[parseInt(l.tId)]={"o":l,"c":n};if(k){n.method=i;n.data=k;}l.conn.send(j,n,l.tId);}function e(i){d(i);g._transport=document.getElementById("YUIConnectionSwf");}function c(){g.xdrReadyEvent.fire();}function a(j,i){if(j){g.startEvent.fire(j,i.argument);if(j.startEvent){j.startEvent.fire(j,i.argument);}}}function f(j){var k=h[j.tId].o,i=h[j.tId].c;if(j.statusText==="xdr:start"){a(k,i);return;}j.responseText=decodeURI(j.responseText);k.r=j;if(i.argument){k.r.argument=i.argument;}this.handleTransactionResponse(k,i,j.statusText==="xdr:abort"?true:false);delete h[j.tId];}g.xdr=b;g.swf=d;g.transport=e;g.xdrReadyEvent=new YAHOO.util.CustomEvent("xdrReady");g.xdrReady=c;g.handleXdrResponse=f;})();(function(){var e=YAHOO.util.Connect,g=YAHOO.util.Event,a=document.documentMode?document.documentMode:false;e._isFileUpload=false;e._formNode=null;e._sFormData=null;e._submitElementValue=null;e.uploadEvent=new YAHOO.util.CustomEvent("upload");e._hasSubmitListener=function(){if(g){g.addListener(document,"click",function(k){var j=g.getTarget(k),i=j.nodeName.toLowerCase();if((i==="input"||i==="button")&&(j.type&&j.type.toLowerCase()=="submit")){e._submitElementValue=encodeURIComponent(j.name)+"="+encodeURIComponent(j.value);}});return true;}return false;}();function h(w,r,m){var v,l,u,s,z,t=false,p=[],y=0,o,q,n,x,k;this.resetFormState();if(typeof w=="string"){v=(document.getElementById(w)||document.forms[w]);}else{if(typeof w=="object"){v=w;}else{return;}}if(r){this.createFrame(m?m:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=v;return;}for(o=0,q=v.elements.length;o<q;++o){l=v.elements[o];z=l.disabled;u=l.name;if(!z&&u){u=encodeURIComponent(u)+"=";s=encodeURIComponent(l.value);switch(l.type){case"select-one":if(l.selectedIndex>-1){k=l.options[l.selectedIndex];p[y++]=u+encodeURIComponent((k.attributes.value&&k.attributes.value.specified)?k.value:k.text);}break;case"select-multiple":if(l.selectedIndex>-1){for(n=l.selectedIndex,x=l.options.length;n<x;++n){k=l.options[n];if(k.selected){p[y++]=u+encodeURIComponent((k.attributes.value&&k.attributes.value.specified)?k.value:k.text);}}}break;case"radio":case"checkbox":if(l.checked){p[y++]=u+s;}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(t===false){if(this._hasSubmitListener&&this._submitElementValue){p[y++]=this._submitElementValue;}t=true;}break;default:p[y++]=u+s;}}}this._isFormSubmit=true;this._sFormData=p.join("&");this.initHeader("Content-Type",this._default_form_header);return this._sFormData;}function d(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";}function c(i){var j="yuiIO"+this._transaction_id,l=(a===9)?true:false,k;if(YAHOO.env.ua.ie&&!l){k=document.createElement('<iframe id="'+j+'" name="'+j+'" />');if(typeof i=="boolean"){k.src="javascript:false";}}else{k=document.createElement("iframe");k.id=j;k.name=j;}k.style.position="absolute";k.style.top="-1000px";k.style.left="-1000px";document.body.appendChild(k);}function f(j){var m=[],k=j.split("&"),l,n;for(l=0;l<k.length;l++){n=k[l].indexOf("=");if(n!=-1){m[l]=document.createElement("input");m[l].type="hidden";m[l].name=decodeURIComponent(k[l].substring(0,n));m[l].value=decodeURIComponent(k[l].substring(n+1));this._formNode.appendChild(m[l]);}}return m;}function b(m,y,n,l){var t="yuiIO"+m.tId,u="multipart/form-data",w=document.getElementById(t),p=(a>=8)?true:false,z=this,v=(y&&y.argument)?y.argument:null,x,s,k,r,j,q;j={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",n);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",t);if(YAHOO.env.ua.ie&&!p){this._formNode.setAttribute("encoding",u);}else{this._formNode.setAttribute("enctype",u);}if(l){x=this.appendPostData(l);}this._formNode.submit();this.startEvent.fire(m,v);if(m.startEvent){m.startEvent.fire(m,v);}if(y&&y.timeout){this._timeOut[m.tId]=window.setTimeout(function(){z.abort(m,y,true);},y.timeout);}if(x&&x.length>0){for(s=0;s<x.length;s++){this._formNode.removeChild(x[s]);}}for(k in j){if(YAHOO.lang.hasOwnProperty(j,k)){if(j[k]){this._formNode.setAttribute(k,j[k]);}else{this._formNode.removeAttribute(k);}}}this.resetFormState(); | |||
|
19 | q=function(){var i,A,B;if(y&&y.timeout){window.clearTimeout(z._timeOut[m.tId]);delete z._timeOut[m.tId];}z.completeEvent.fire(m,v);if(m.completeEvent){m.completeEvent.fire(m,v);}r={tId:m.tId,argument:v};try{i=w.contentWindow.document.getElementsByTagName("body")[0];A=w.contentWindow.document.getElementsByTagName("pre")[0];if(i){if(A){B=A.textContent?A.textContent:A.innerText;}else{B=i.textContent?i.textContent:i.innerText;}}r.responseText=B;r.responseXML=w.contentWindow.document.XMLDocument?w.contentWindow.document.XMLDocument:w.contentWindow.document;}catch(o){}if(y&&y.upload){if(!y.scope){y.upload(r);}else{y.upload.apply(y.scope,[r]);}}z.uploadEvent.fire(r);if(m.uploadEvent){m.uploadEvent.fire(r);}g.removeListener(w,"load",q);setTimeout(function(){document.body.removeChild(w);z.releaseObject(m);},100);};g.addListener(w,"load",q);}e.setForm=h;e.resetFormState=d;e.createFrame=c;e.appendPostData=f;e.uploadFile=b;})();YAHOO.register("connection",YAHOO.util.Connect,{version:"2.9.0",build:"2800"});(function(){var b=YAHOO.util;var a=function(d,c,e,f){if(!d){}this.init(d,c,e,f);};a.NAME="Anim";a.prototype={toString:function(){var c=this.getEl()||{};var d=c.id||c.tagName;return(this.constructor.NAME+": "+d);},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(c,e,d){return this.method(this.currentFrame,e,d-e,this.totalFrames);},setAttribute:function(c,f,e){var d=this.getEl();if(this.patterns.noNegatives.test(c)){f=(f>0)?f:0;}if(c in d&&!("style" in d&&c in d.style)){d[c]=f;}else{b.Dom.setStyle(d,c,f+e);}},getAttribute:function(c){var e=this.getEl();var g=b.Dom.getStyle(e,c);if(g!=="auto"&&!this.patterns.offsetUnit.test(g)){return parseFloat(g);}var d=this.patterns.offsetAttribute.exec(c)||[];var h=!!(d[3]);var f=!!(d[2]);if("style" in e){if(f||(b.Dom.getStyle(e,"position")=="absolute"&&h)){g=e["offset"+d[0].charAt(0).toUpperCase()+d[0].substr(1)];}else{g=0;}}else{if(c in e){g=e[c];}}return g;},getDefaultUnit:function(c){if(this.patterns.defaultUnit.test(c)){return"px";}return"";},setRuntimeAttribute:function(d){var j;var e;var f=this.attributes;this.runtimeAttributes[d]={};var h=function(i){return(typeof i!=="undefined");};if(!h(f[d]["to"])&&!h(f[d]["by"])){return false;}j=(h(f[d]["from"]))?f[d]["from"]:this.getAttribute(d);if(h(f[d]["to"])){e=f[d]["to"];}else{if(h(f[d]["by"])){if(j.constructor==Array){e=[];for(var g=0,c=j.length;g<c;++g){e[g]=j[g]+f[d]["by"][g]*1;}}else{e=j+f[d]["by"]*1;}}}this.runtimeAttributes[d].start=j;this.runtimeAttributes[d].end=e;this.runtimeAttributes[d].unit=(h(f[d].unit))?f[d]["unit"]:this.getDefaultUnit(d);return true;},init:function(f,c,h,i){var d=false;var e=null;var g=0;f=b.Dom.get(f);this.attributes=c||{};this.duration=!YAHOO.lang.isUndefined(h)?h:1;this.method=i||b.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=b.AnimMgr.fps;this.setEl=function(j){f=b.Dom.get(j);};this.getEl=function(){return f;};this.isAnimated=function(){return d;};this.getStartTime=function(){return e;};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false;}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(b.AnimMgr.fps*this.duration):this.duration;if(this.duration===0&&this.useSeconds){this.totalFrames=1;}b.AnimMgr.registerElement(this);return true;};this.stop=function(j){if(!this.isAnimated()){return false;}if(j){this.currentFrame=this.totalFrames;this._onTween.fire();}b.AnimMgr.stop(this);};this._handleStart=function(){this.onStart.fire();this.runtimeAttributes={};for(var j in this.attributes){if(this.attributes.hasOwnProperty(j)){this.setRuntimeAttribute(j);}}d=true;g=0;e=new Date();};this._handleTween=function(){var l={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};l.toString=function(){return("duration: "+l.duration+", currentFrame: "+l.currentFrame);};this.onTween.fire(l);var k=this.runtimeAttributes;for(var j in k){if(k.hasOwnProperty(j)){this.setAttribute(j,this.doMethod(j,k[j].start,k[j].end),k[j].unit);}}this.afterTween.fire(l);g+=1;};this._handleComplete=function(){var j=(new Date()-e)/1000;var k={duration:j,frames:g,fps:g/j};k.toString=function(){return("duration: "+k.duration+", frames: "+k.frames+", fps: "+k.fps);};d=false;g=0;this.onComplete.fire(k);};this._onStart=new b.CustomEvent("_start",this,true);this.onStart=new b.CustomEvent("start",this);this.onTween=new b.CustomEvent("tween",this);this.afterTween=new b.CustomEvent("afterTween",this);this._onTween=new b.CustomEvent("_tween",this,true);this.onComplete=new b.CustomEvent("complete",this);this._onComplete=new b.CustomEvent("_complete",this,true);this._onStart.subscribe(this._handleStart);this._onTween.subscribe(this._handleTween);this._onComplete.subscribe(this._handleComplete);}};b.Anim=a;})();YAHOO.util.AnimMgr=new function(){var e=null;var c=[];var g=0;this.fps=1000;this.delay=20;this.registerElement=function(j){c[c.length]=j;g+=1;j._onStart.fire();this.start();};var f=[];var d=false;var h=function(){var j=f.shift();b.apply(YAHOO.util.AnimMgr,j);if(f.length){arguments.callee();}};var b=function(k,j){j=j||a(k);if(!k.isAnimated()||j===-1){return false;}k._onComplete.fire();c.splice(j,1);g-=1;if(g<=0){this.stop();}return true;};this.unRegister=function(){f.push(arguments);if(!d){d=true;h();d=false;}};this.start=function(){if(e===null){e=setInterval(this.run,this.delay);}};this.stop=function(l){if(!l){clearInterval(e);for(var k=0,j=c.length;k<j;++k){this.unRegister(c[0],0);}c=[];e=null;g=0;}else{this.unRegister(l);}};this.run=function(){for(var l=0,j=c.length;l<j;++l){var k=c[l];if(!k||!k.isAnimated()){continue;}if(k.currentFrame<k.totalFrames||k.totalFrames===null){k.currentFrame+=1;if(k.useSeconds){i(k);}k._onTween.fire();}else{YAHOO.util.AnimMgr.stop(k,l);}}};var a=function(l){for(var k=0,j=c.length;k<j;++k){if(c[k]===l){return k;}}return -1;};var i=function(k){var n=k.totalFrames;var m=k.currentFrame;var l=(k.currentFrame*k.duration*1000/k.totalFrames);var j=(new Date()-k.getStartTime());var o=0;if(j<k.duration*1000){o=Math.round((j/l-1)*k.currentFrame);}else{o=n-(m+1);}if(o>0&&isFinite(o)){if(k.currentFrame+o>=n){o=n-(m+1);}k.currentFrame+=o;}};this._queue=c;this._getIndex=a;};YAHOO.util.Bezier=new function(){this.getPosition=function(e,d){var f=e.length;var c=[];for(var b=0;b<f;++b){c[b]=[e[b][0],e[b][1]];}for(var a=1;a<f;++a){for(b=0;b<f-a;++b){c[b][0]=(1-d)*c[b][0]+d*c[parseInt(b+1,10)][0];c[b][1]=(1-d)*c[b][1]+d*c[parseInt(b+1,10)][1];}}return[c[0][0],c[0][1]];};};(function(){var a=function(f,e,g,h){a.superclass.constructor.call(this,f,e,g,h);};a.NAME="ColorAnim";a.DEFAULT_BGCOLOR="#fff";var c=YAHOO.util;YAHOO.extend(a,c.Anim);var d=a.superclass;var b=a.prototype;b.patterns.color=/color$/i;b.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;b.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;b.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i; | |||
|
20 | b.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;b.parseColor=function(e){if(e.length==3){return e;}var f=this.patterns.hex.exec(e);if(f&&f.length==4){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)];}f=this.patterns.rgb.exec(e);if(f&&f.length==4){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)];}f=this.patterns.hex3.exec(e);if(f&&f.length==4){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)];}return null;};b.getAttribute=function(e){var g=this.getEl();if(this.patterns.color.test(e)){var i=YAHOO.util.Dom.getStyle(g,e);var h=this;if(this.patterns.transparent.test(i)){var f=YAHOO.util.Dom.getAncestorBy(g,function(j){return !h.patterns.transparent.test(i);});if(f){i=c.Dom.getStyle(f,e);}else{i=a.DEFAULT_BGCOLOR;}}}else{i=d.getAttribute.call(this,e);}return i;};b.doMethod=function(f,k,g){var j;if(this.patterns.color.test(f)){j=[];for(var h=0,e=k.length;h<e;++h){j[h]=d.doMethod.call(this,f,k[h],g[h]);}j="rgb("+Math.floor(j[0])+","+Math.floor(j[1])+","+Math.floor(j[2])+")";}else{j=d.doMethod.call(this,f,k,g);}return j;};b.setRuntimeAttribute=function(f){d.setRuntimeAttribute.call(this,f);if(this.patterns.color.test(f)){var h=this.attributes;var k=this.parseColor(this.runtimeAttributes[f].start);var g=this.parseColor(this.runtimeAttributes[f].end);if(typeof h[f]["to"]==="undefined"&&typeof h[f]["by"]!=="undefined"){g=this.parseColor(h[f].by);for(var j=0,e=k.length;j<e;++j){g[j]=k[j]+g[j];}}this.runtimeAttributes[f].start=k;this.runtimeAttributes[f].end=g;}};c.ColorAnim=a;})(); | |||
|
21 | /*! | |||
|
22 | TERMS OF USE - EASING EQUATIONS | |||
|
23 | Open source under the BSD License. | |||
|
24 | Copyright 2001 Robert Penner All rights reserved. | |||
|
25 | ||||
|
26 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |||
|
27 | ||||
|
28 | * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | |||
|
29 | * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | |||
|
30 | * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. | |||
|
31 | ||||
|
32 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
|
33 | */ | |||
|
34 | YAHOO.util.Easing={easeNone:function(e,a,g,f){return g*e/f+a;},easeIn:function(e,a,g,f){return g*(e/=f)*e+a;},easeOut:function(e,a,g,f){return -g*(e/=f)*(e-2)+a;},easeBoth:function(e,a,g,f){if((e/=f/2)<1){return g/2*e*e+a;}return -g/2*((--e)*(e-2)-1)+a;},easeInStrong:function(e,a,g,f){return g*(e/=f)*e*e*e+a;},easeOutStrong:function(e,a,g,f){return -g*((e=e/f-1)*e*e*e-1)+a;},easeBothStrong:function(e,a,g,f){if((e/=f/2)<1){return g/2*e*e*e*e+a;}return -g/2*((e-=2)*e*e*e-2)+a;},elasticIn:function(g,e,k,j,f,i){if(g==0){return e;}if((g/=j)==1){return e+k;}if(!i){i=j*0.3;}if(!f||f<Math.abs(k)){f=k;var h=i/4;}else{var h=i/(2*Math.PI)*Math.asin(k/f);}return -(f*Math.pow(2,10*(g-=1))*Math.sin((g*j-h)*(2*Math.PI)/i))+e;},elasticOut:function(g,e,k,j,f,i){if(g==0){return e;}if((g/=j)==1){return e+k;}if(!i){i=j*0.3;}if(!f||f<Math.abs(k)){f=k;var h=i/4;}else{var h=i/(2*Math.PI)*Math.asin(k/f);}return f*Math.pow(2,-10*g)*Math.sin((g*j-h)*(2*Math.PI)/i)+k+e;},elasticBoth:function(g,e,k,j,f,i){if(g==0){return e;}if((g/=j/2)==2){return e+k;}if(!i){i=j*(0.3*1.5);}if(!f||f<Math.abs(k)){f=k;var h=i/4;}else{var h=i/(2*Math.PI)*Math.asin(k/f);}if(g<1){return -0.5*(f*Math.pow(2,10*(g-=1))*Math.sin((g*j-h)*(2*Math.PI)/i))+e;}return f*Math.pow(2,-10*(g-=1))*Math.sin((g*j-h)*(2*Math.PI)/i)*0.5+k+e;},backIn:function(e,a,h,g,f){if(typeof f=="undefined"){f=1.70158;}return h*(e/=g)*e*((f+1)*e-f)+a;},backOut:function(e,a,h,g,f){if(typeof f=="undefined"){f=1.70158;}return h*((e=e/g-1)*e*((f+1)*e+f)+1)+a;},backBoth:function(e,a,h,g,f){if(typeof f=="undefined"){f=1.70158;}if((e/=g/2)<1){return h/2*(e*e*(((f*=(1.525))+1)*e-f))+a;}return h/2*((e-=2)*e*(((f*=(1.525))+1)*e+f)+2)+a;},bounceIn:function(e,a,g,f){return g-YAHOO.util.Easing.bounceOut(f-e,0,g,f)+a;},bounceOut:function(e,a,g,f){if((e/=f)<(1/2.75)){return g*(7.5625*e*e)+a;}else{if(e<(2/2.75)){return g*(7.5625*(e-=(1.5/2.75))*e+0.75)+a;}else{if(e<(2.5/2.75)){return g*(7.5625*(e-=(2.25/2.75))*e+0.9375)+a;}}}return g*(7.5625*(e-=(2.625/2.75))*e+0.984375)+a;},bounceBoth:function(e,a,g,f){if(e<f/2){return YAHOO.util.Easing.bounceIn(e*2,0,g,f)*0.5+a;}return YAHOO.util.Easing.bounceOut(e*2-f,0,g,f)*0.5+g*0.5+a;}};(function(){var a=function(h,g,i,j){if(h){a.superclass.constructor.call(this,h,g,i,j);}};a.NAME="Motion";var e=YAHOO.util;YAHOO.extend(a,e.ColorAnim);var f=a.superclass;var c=a.prototype;c.patterns.points=/^points$/i;c.setAttribute=function(g,i,h){if(this.patterns.points.test(g)){h=h||"px";f.setAttribute.call(this,"left",i[0],h);f.setAttribute.call(this,"top",i[1],h);}else{f.setAttribute.call(this,g,i,h);}};c.getAttribute=function(g){if(this.patterns.points.test(g)){var h=[f.getAttribute.call(this,"left"),f.getAttribute.call(this,"top")];}else{h=f.getAttribute.call(this,g);}return h;};c.doMethod=function(g,k,h){var j=null;if(this.patterns.points.test(g)){var i=this.method(this.currentFrame,0,100,this.totalFrames)/100;j=e.Bezier.getPosition(this.runtimeAttributes[g],i); | |||
|
35 | }else{j=f.doMethod.call(this,g,k,h);}return j;};c.setRuntimeAttribute=function(q){if(this.patterns.points.test(q)){var h=this.getEl();var k=this.attributes;var g;var m=k["points"]["control"]||[];var j;var n,p;if(m.length>0&&!(m[0] instanceof Array)){m=[m];}else{var l=[];for(n=0,p=m.length;n<p;++n){l[n]=m[n];}m=l;}if(e.Dom.getStyle(h,"position")=="static"){e.Dom.setStyle(h,"position","relative");}if(d(k["points"]["from"])){e.Dom.setXY(h,k["points"]["from"]);}else{e.Dom.setXY(h,e.Dom.getXY(h));}g=this.getAttribute("points");if(d(k["points"]["to"])){j=b.call(this,k["points"]["to"],g);var o=e.Dom.getXY(this.getEl());for(n=0,p=m.length;n<p;++n){m[n]=b.call(this,m[n],g);}}else{if(d(k["points"]["by"])){j=[g[0]+k["points"]["by"][0],g[1]+k["points"]["by"][1]];for(n=0,p=m.length;n<p;++n){m[n]=[g[0]+m[n][0],g[1]+m[n][1]];}}}this.runtimeAttributes[q]=[g];if(m.length>0){this.runtimeAttributes[q]=this.runtimeAttributes[q].concat(m);}this.runtimeAttributes[q][this.runtimeAttributes[q].length]=j;}else{f.setRuntimeAttribute.call(this,q);}};var b=function(g,i){var h=e.Dom.getXY(this.getEl());g=[g[0]-h[0]+i[0],g[1]-h[1]+i[1]];return g;};var d=function(g){return(typeof g!=="undefined");};e.Motion=a;})();(function(){var d=function(f,e,g,h){if(f){d.superclass.constructor.call(this,f,e,g,h);}};d.NAME="Scroll";var b=YAHOO.util;YAHOO.extend(d,b.ColorAnim);var c=d.superclass;var a=d.prototype;a.doMethod=function(e,h,f){var g=null;if(e=="scroll"){g=[this.method(this.currentFrame,h[0],f[0]-h[0],this.totalFrames),this.method(this.currentFrame,h[1],f[1]-h[1],this.totalFrames)];}else{g=c.doMethod.call(this,e,h,f);}return g;};a.getAttribute=function(e){var g=null;var f=this.getEl();if(e=="scroll"){g=[f.scrollLeft,f.scrollTop];}else{g=c.getAttribute.call(this,e);}return g;};a.setAttribute=function(e,h,g){var f=this.getEl();if(e=="scroll"){f.scrollLeft=h[0];f.scrollTop=h[1];}else{c.setAttribute.call(this,e,h,g);}};b.Scroll=d;})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.9.0",build:"2800"});if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var A=YAHOO.util.Event,B=YAHOO.util.Dom;return{useShim:false,_shimActive:false,_shimState:false,_debugShim:false,_createShim:function(){var C=document.createElement("div");C.id="yui-ddm-shim";if(document.body.firstChild){document.body.insertBefore(C,document.body.firstChild);}else{document.body.appendChild(C);}C.style.display="none";C.style.backgroundColor="red";C.style.position="absolute";C.style.zIndex="99999";B.setStyle(C,"opacity","0");this._shim=C;A.on(C,"mouseup",this.handleMouseUp,this,true);A.on(C,"mousemove",this.handleMouseMove,this,true);A.on(window,"scroll",this._sizeShim,this,true);},_sizeShim:function(){if(this._shimActive){var C=this._shim;C.style.height=B.getDocumentHeight()+"px";C.style.width=B.getDocumentWidth()+"px";C.style.top="0";C.style.left="0";}},_activateShim:function(){if(this.useShim){if(!this._shim){this._createShim();}this._shimActive=true;var C=this._shim,D="0";if(this._debugShim){D=".5";}B.setStyle(C,"opacity",D);this._sizeShim();C.style.display="block";}},_deactivateShim:function(){this._shim.style.display="none";this._shimActive=false;},_shim:null,ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,interactionInfo:null,init:function(){this.initialized=true;},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(E,D){for(var F in this.ids){for(var C in this.ids[F]){var G=this.ids[F][C];if(!this.isTypeOfDD(G)){continue;}G[E].apply(G,D);}}},_onLoad:function(){this.init();A.on(document,"mouseup",this.handleMouseUp,this,true);A.on(document,"mousemove",this.handleMouseMove,this,true);A.on(window,"unload",this._onUnload,this,true);A.on(window,"resize",this._onResize,this,true);},_onResize:function(C){this._execOnAll("resetConstraints",[]);},lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isLocked:function(){return this.locked;},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,fromTimeout:false,regDragDrop:function(D,C){if(!this.initialized){this.init();}if(!this.ids[C]){this.ids[C]={};}this.ids[C][D.id]=D;},removeDDFromGroup:function(E,C){if(!this.ids[C]){this.ids[C]={};}var D=this.ids[C];if(D&&D[E.id]){delete D[E.id];}},_remove:function(E){for(var D in E.groups){if(D){var C=this.ids[D];if(C&&C[E.id]){delete C[E.id];}}}delete this.handleIds[E.id];},regHandle:function(D,C){if(!this.handleIds[D]){this.handleIds[D]={};}this.handleIds[D][C]=C;},isDragDrop:function(C){return(this.getDDById(C))?true:false;},getRelated:function(H,D){var G=[];for(var F in H.groups){for(var E in this.ids[F]){var C=this.ids[F][E];if(!this.isTypeOfDD(C)){continue;}if(!D||C.isTarget){G[G.length]=C;}}}return G;},isLegalTarget:function(G,F){var D=this.getRelated(G,true);for(var E=0,C=D.length;E<C;++E){if(D[E].id==F.id){return true;}}return false;},isTypeOfDD:function(C){return(C&&C.__ygDragDrop);},isHandle:function(D,C){return(this.handleIds[D]&&this.handleIds[D][C]);},getDDById:function(D){for(var C in this.ids){if(this.ids[C][D]){return this.ids[C][D];}}return null;},handleMouseDown:function(E,D){this.currentTarget=YAHOO.util.Event.getTarget(E);this.dragCurrent=D;var C=D.getEl();this.startX=YAHOO.util.Event.getPageX(E);this.startY=YAHOO.util.Event.getPageY(E);this.deltaX=this.startX-C.offsetLeft;this.deltaY=this.startY-C.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var F=YAHOO.util.DDM;F.startDrag(F.startX,F.startY);F.fromTimeout=true;},this.clickTimeThresh);},startDrag:function(C,E){if(this.dragCurrent&&this.dragCurrent.useShim){this._shimState=this.useShim;this.useShim=true;}this._activateShim();clearTimeout(this.clickTimeout);var D=this.dragCurrent;if(D&&D.events.b4StartDrag){D.b4StartDrag(C,E);D.fireEvent("b4StartDragEvent",{x:C,y:E});}if(D&&D.events.startDrag){D.startDrag(C,E);D.fireEvent("startDragEvent",{x:C,y:E});}this.dragThreshMet=true;},handleMouseUp:function(C){if(this.dragCurrent){clearTimeout(this.clickTimeout);if(this.dragThreshMet){if(this.fromTimeout){this.fromTimeout=false;this.handleMouseMove(C);}this.fromTimeout=false;this.fireEvents(C,true);}else{}this.stopDrag(C);this.stopEvent(C);}},stopEvent:function(C){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(C);}if(this.preventDefault){YAHOO.util.Event.preventDefault(C);}},stopDrag:function(E,D){var C=this.dragCurrent;if(C&&!D){if(this.dragThreshMet){if(C.events.b4EndDrag){C.b4EndDrag(E);C.fireEvent("b4EndDragEvent",{e:E});}if(C.events.endDrag){C.endDrag(E);C.fireEvent("endDragEvent",{e:E});}}if(C.events.mouseUp){C.onMouseUp(E);C.fireEvent("mouseUpEvent",{e:E});}}if(this._shimActive){this._deactivateShim();if(this.dragCurrent&&this.dragCurrent.useShim){this.useShim=this._shimState;this._shimState=false;}}this.dragCurrent=null;this.dragOvers={};},handleMouseMove:function(F){var C=this.dragCurrent;if(C){if(YAHOO.env.ua.ie&&(YAHOO.env.ua.ie<9)&&!F.button){this.stopEvent(F);return this.handleMouseUp(F);}else{if(F.clientX<0||F.clientY<0){}}if(!this.dragThreshMet){var E=Math.abs(this.startX-YAHOO.util.Event.getPageX(F));var D=Math.abs(this.startY-YAHOO.util.Event.getPageY(F));if(E>this.clickPixelThresh||D>this.clickPixelThresh){this.startDrag(this.startX,this.startY);}}if(this.dragThreshMet){if(C&&C.events.b4Drag){C.b4Drag(F);C.fireEvent("b4DragEvent",{e:F});}if(C&&C.events.drag){C.onDrag(F);C.fireEvent("dragEvent",{e:F});}if(C){this.fireEvents(F,false);}}this.stopEvent(F);}},fireEvents:function(W,M){var c=this.dragCurrent;if(!c||c.isLocked()||c.dragOnly){return;}var O=YAHOO.util.Event.getPageX(W),N=YAHOO.util.Event.getPageY(W),Q=new YAHOO.util.Point(O,N),K=c.getTargetCoord(Q.x,Q.y),F=c.getDragEl(),E=["out","over","drop","enter"],V=new YAHOO.util.Region(K.y,K.x+F.offsetWidth,K.y+F.offsetHeight,K.x),I=[],D={},L={},R=[],d={outEvts:[],overEvts:[],dropEvts:[],enterEvts:[]};for(var T in this.dragOvers){var f=this.dragOvers[T];if(!this.isTypeOfDD(f)){continue; | |||
|
36 | }if(!this.isOverTarget(Q,f,this.mode,V)){d.outEvts.push(f);}I[T]=true;delete this.dragOvers[T];}for(var S in c.groups){if("string"!=typeof S){continue;}for(T in this.ids[S]){var G=this.ids[S][T];if(!this.isTypeOfDD(G)){continue;}if(G.isTarget&&!G.isLocked()&&G!=c){if(this.isOverTarget(Q,G,this.mode,V)){D[S]=true;if(M){d.dropEvts.push(G);}else{if(!I[G.id]){d.enterEvts.push(G);}else{d.overEvts.push(G);}this.dragOvers[G.id]=G;}}}}}this.interactionInfo={out:d.outEvts,enter:d.enterEvts,over:d.overEvts,drop:d.dropEvts,point:Q,draggedRegion:V,sourceRegion:this.locationCache[c.id],validDrop:M};for(var C in D){R.push(C);}if(M&&!d.dropEvts.length){this.interactionInfo.validDrop=false;if(c.events.invalidDrop){c.onInvalidDrop(W);c.fireEvent("invalidDropEvent",{e:W});}}for(T=0;T<E.length;T++){var Z=null;if(d[E[T]+"Evts"]){Z=d[E[T]+"Evts"];}if(Z&&Z.length){var H=E[T].charAt(0).toUpperCase()+E[T].substr(1),Y="onDrag"+H,J="b4Drag"+H,P="drag"+H+"Event",X="drag"+H;if(this.mode){if(c.events[J]){c[J](W,Z,R);L[Y]=c.fireEvent(J+"Event",{event:W,info:Z,group:R});}if(c.events[X]&&(L[Y]!==false)){c[Y](W,Z,R);c.fireEvent(P,{event:W,info:Z,group:R});}}else{for(var a=0,U=Z.length;a<U;++a){if(c.events[J]){c[J](W,Z[a].id,R[0]);L[Y]=c.fireEvent(J+"Event",{event:W,info:Z[a].id,group:R[0]});}if(c.events[X]&&(L[Y]!==false)){c[Y](W,Z[a].id,R[0]);c.fireEvent(P,{event:W,info:Z[a].id,group:R[0]});}}}}}},getBestMatch:function(E){var G=null;var D=E.length;if(D==1){G=E[0];}else{for(var F=0;F<D;++F){var C=E[F];if(this.mode==this.INTERSECT&&C.cursorIsOver){G=C;break;}else{if(!G||!G.overlap||(C.overlap&&G.overlap.getArea()<C.overlap.getArea())){G=C;}}}}return G;},refreshCache:function(D){var F=D||this.ids;for(var C in F){if("string"!=typeof C){continue;}for(var E in this.ids[C]){var G=this.ids[C][E];if(this.isTypeOfDD(G)){var H=this.getLocation(G);if(H){this.locationCache[G.id]=H;}else{delete this.locationCache[G.id];}}}}},verifyEl:function(D){try{if(D){var C=D.offsetParent;if(C){return true;}}}catch(E){}return false;},getLocation:function(H){if(!this.isTypeOfDD(H)){return null;}var F=H.getEl(),K,E,D,M,L,N,C,J,G;try{K=YAHOO.util.Dom.getXY(F);}catch(I){}if(!K){return null;}E=K[0];D=E+F.offsetWidth;M=K[1];L=M+F.offsetHeight;N=M-H.padding[0];C=D+H.padding[1];J=L+H.padding[2];G=E-H.padding[3];return new YAHOO.util.Region(N,C,J,G);},isOverTarget:function(K,C,E,F){var G=this.locationCache[C.id];if(!G||!this.useCache){G=this.getLocation(C);this.locationCache[C.id]=G;}if(!G){return false;}C.cursorIsOver=G.contains(K);var J=this.dragCurrent;if(!J||(!E&&!J.constrainX&&!J.constrainY)){return C.cursorIsOver;}C.overlap=null;if(!F){var H=J.getTargetCoord(K.x,K.y);var D=J.getDragEl();F=new YAHOO.util.Region(H.y,H.x+D.offsetWidth,H.y+D.offsetHeight,H.x);}var I=F.intersect(G);if(I){C.overlap=I;return(E)?true:C.cursorIsOver;}else{return false;}},_onUnload:function(D,C){this.unregAll();},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null;}this._execOnAll("unreg",[]);this.ids={};},elementCache:{},getElWrapper:function(D){var C=this.elementCache[D];if(!C||!C.el){C=this.elementCache[D]=new this.ElementWrapper(YAHOO.util.Dom.get(D));}return C;},getElement:function(C){return YAHOO.util.Dom.get(C);},getCss:function(D){var C=YAHOO.util.Dom.get(D);return(C)?C.style:null;},ElementWrapper:function(C){this.el=C||null;this.id=this.el&&C.id;this.css=this.el&&C.style;},getPosX:function(C){return YAHOO.util.Dom.getX(C);},getPosY:function(C){return YAHOO.util.Dom.getY(C);},swapNode:function(E,C){if(E.swapNode){E.swapNode(C);}else{var F=C.parentNode;var D=C.nextSibling;if(D==E){F.insertBefore(E,C);}else{if(C==E.nextSibling){F.insertBefore(C,E);}else{E.parentNode.replaceChild(C,E);F.insertBefore(E,D);}}}},getScroll:function(){var E,C,F=document.documentElement,D=document.body;if(F&&(F.scrollTop||F.scrollLeft)){E=F.scrollTop;C=F.scrollLeft;}else{if(D){E=D.scrollTop;C=D.scrollLeft;}else{}}return{top:E,left:C};},getStyle:function(D,C){return YAHOO.util.Dom.getStyle(D,C);},getScrollTop:function(){return this.getScroll().top;},getScrollLeft:function(){return this.getScroll().left;},moveToEl:function(C,E){var D=YAHOO.util.Dom.getXY(E);YAHOO.util.Dom.setXY(C,D);},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight();},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth();},numericSort:function(D,C){return(D-C);},_timeoutCount:0,_addListeners:function(){var C=YAHOO.util.DDM;if(YAHOO.util.Event&&document){C._onLoad();}else{if(C._timeoutCount>2000){}else{setTimeout(C._addListeners,10);if(document&&document.body){C._timeoutCount+=1;}}}},handleWasClicked:function(C,E){if(this.isHandle(E,C.id)){return true;}else{var D=C.parentNode;while(D){if(this.isHandle(E,D.id)){return true;}else{D=D.parentNode;}}}return false;}};}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners();}(function(){var A=YAHOO.util.Event;var B=YAHOO.util.Dom;YAHOO.util.DragDrop=function(E,C,D){if(E){this.init(E,C,D);}};YAHOO.util.DragDrop.prototype={events:null,on:function(){this.subscribe.apply(this,arguments);},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isTarget:true,padding:null,dragOnly:false,useShim:false,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,deltaX:0,deltaY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,cursorIsOver:false,overlap:null,b4StartDrag:function(C,D){},startDrag:function(C,D){},b4Drag:function(C){},onDrag:function(C){},onDragEnter:function(C,D){},b4DragOver:function(C){},onDragOver:function(C,D){},b4DragOut:function(C){},onDragOut:function(C,D){},b4DragDrop:function(C){},onDragDrop:function(C,D){},onInvalidDrop:function(C){},b4EndDrag:function(C){},endDrag:function(C){},b4MouseDown:function(C){},onMouseDown:function(C){},onMouseUp:function(C){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=B.get(this.id); | |||
|
37 | }return this._domRef;},getDragEl:function(){return B.get(this.dragElId);},init:function(F,C,D){this.initTarget(F,C,D);A.on(this._domRef||this.id,"mousedown",this.handleMouseDown,this,true);for(var E in this.events){this.createEvent(E+"Event");}},initTarget:function(E,C,D){this.config=D||{};this.events={};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof E!=="string"){this._domRef=E;E=B.generateId(E);}this.id=E;this.addToGroup((C)?C:"default");this.handleElId=E;A.onAvailable(E,this.handleOnAvailable,this,true);this.setDragElId(E);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();},applyConfig:function(){this.events={mouseDown:true,b4MouseDown:true,mouseUp:true,b4StartDrag:true,startDrag:true,b4EndDrag:true,endDrag:true,drag:true,b4Drag:true,invalidDrop:true,b4DragOut:true,dragOut:true,dragEnter:true,b4DragOver:true,dragOver:true,b4DragDrop:true,dragDrop:true};if(this.config.events){for(var C in this.config.events){if(this.config.events[C]===false){this.events[C]=false;}}}this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);this.dragOnly=((this.config.dragOnly===true)?true:false);this.useShim=((this.config.useShim===true)?true:false);},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable();},setPadding:function(E,C,F,D){if(!C&&0!==C){this.padding=[E,E,E,E];}else{if(!F&&0!==F){this.padding=[E,C,E,C];}else{this.padding=[E,C,F,D];}}},setInitPosition:function(F,E){var G=this.getEl();if(!this.DDM.verifyEl(G)){if(G&&G.style&&(G.style.display=="none")){}else{}return;}var D=F||0;var C=E||0;var H=B.getXY(G);this.initPageX=H[0]-D;this.initPageY=H[1]-C;this.lastPageX=H[0];this.lastPageY=H[1];this.setStartPosition(H);},setStartPosition:function(D){var C=D||B.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=C[0];this.startPageY=C[1];},addToGroup:function(C){this.groups[C]=true;this.DDM.regDragDrop(this,C);},removeFromGroup:function(C){if(this.groups[C]){delete this.groups[C];}this.DDM.removeDDFromGroup(this,C);},setDragElId:function(C){this.dragElId=C;},setHandleElId:function(C){if(typeof C!=="string"){C=B.generateId(C);}this.handleElId=C;this.DDM.regHandle(this.id,C);},setOuterHandleElId:function(C){if(typeof C!=="string"){C=B.generateId(C);}A.on(C,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(C);this.hasOuterHandles=true;},unreg:function(){A.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this);},isLocked:function(){return(this.DDM.isLocked()||this.locked);},handleMouseDown:function(J,I){var D=J.which||J.button;if(this.primaryButtonOnly&&D>1){return;}if(this.isLocked()){return;}var C=this.b4MouseDown(J),F=true;if(this.events.b4MouseDown){F=this.fireEvent("b4MouseDownEvent",J);}var E=this.onMouseDown(J),H=true;if(this.events.mouseDown){if(E===false){H=false;}else{H=this.fireEvent("mouseDownEvent",J);}}if((C===false)||(E===false)||(F===false)||(H===false)){return;}this.DDM.refreshCache(this.groups);var G=new YAHOO.util.Point(A.getPageX(J),A.getPageY(J));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(G,this)){}else{if(this.clickValidator(J)){this.setStartPosition();this.DDM.handleMouseDown(J,this);this.DDM.stopEvent(J);}else{}}},clickValidator:function(D){var C=YAHOO.util.Event.getTarget(D);return(this.isValidHandleChild(C)&&(this.id==this.handleElId||this.DDM.handleWasClicked(C,this.id)));},getTargetCoord:function(E,D){var C=E-this.deltaX;var F=D-this.deltaY;if(this.constrainX){if(C<this.minX){C=this.minX;}if(C>this.maxX){C=this.maxX;}}if(this.constrainY){if(F<this.minY){F=this.minY;}if(F>this.maxY){F=this.maxY;}}C=this.getTick(C,this.xTicks);F=this.getTick(F,this.yTicks);return{x:C,y:F};},addInvalidHandleType:function(C){var D=C.toUpperCase();this.invalidHandleTypes[D]=D;},addInvalidHandleId:function(C){if(typeof C!=="string"){C=B.generateId(C);}this.invalidHandleIds[C]=C;},addInvalidHandleClass:function(C){this.invalidHandleClasses.push(C);},removeInvalidHandleType:function(C){var D=C.toUpperCase();delete this.invalidHandleTypes[D];},removeInvalidHandleId:function(C){if(typeof C!=="string"){C=B.generateId(C);}delete this.invalidHandleIds[C];},removeInvalidHandleClass:function(D){for(var E=0,C=this.invalidHandleClasses.length;E<C;++E){if(this.invalidHandleClasses[E]==D){delete this.invalidHandleClasses[E];}}},isValidHandleChild:function(F){var E=true;var H;try{H=F.nodeName.toUpperCase();}catch(G){H=F.nodeName;}E=E&&!this.invalidHandleTypes[H];E=E&&!this.invalidHandleIds[F.id];for(var D=0,C=this.invalidHandleClasses.length;E&&D<C;++D){E=!B.hasClass(F,this.invalidHandleClasses[D]);}return E;},setXTicks:function(F,C){this.xTicks=[];this.xTickSize=C;var E={};for(var D=this.initPageX;D>=this.minX;D=D-C){if(!E[D]){this.xTicks[this.xTicks.length]=D;E[D]=true;}}for(D=this.initPageX;D<=this.maxX;D=D+C){if(!E[D]){this.xTicks[this.xTicks.length]=D;E[D]=true;}}this.xTicks.sort(this.DDM.numericSort);},setYTicks:function(F,C){this.yTicks=[];this.yTickSize=C;var E={};for(var D=this.initPageY;D>=this.minY;D=D-C){if(!E[D]){this.yTicks[this.yTicks.length]=D;E[D]=true;}}for(D=this.initPageY;D<=this.maxY;D=D+C){if(!E[D]){this.yTicks[this.yTicks.length]=D;E[D]=true;}}this.yTicks.sort(this.DDM.numericSort);},setXConstraint:function(E,D,C){this.leftConstraint=parseInt(E,10);this.rightConstraint=parseInt(D,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(C){this.setXTicks(this.initPageX,C);}this.constrainX=true;},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks();},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0;},setYConstraint:function(C,E,D){this.topConstraint=parseInt(C,10);this.bottomConstraint=parseInt(E,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint; | |||
|
38 | if(D){this.setYTicks(this.initPageY,D);}this.constrainY=true;},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var D=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var C=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(D,C);}else{this.setInitPosition();}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize);}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize);}},getTick:function(I,F){if(!F){return I;}else{if(F[0]>=I){return F[0];}else{for(var D=0,C=F.length;D<C;++D){var E=D+1;if(F[E]&&F[E]>=I){var H=I-F[D];var G=F[E]-I;return(G>H)?F[D]:F[E];}}return F[F.length-1];}}},toString:function(){return("DragDrop "+this.id);}};YAHOO.augment(YAHOO.util.DragDrop,YAHOO.util.EventProvider);})();YAHOO.util.DD=function(C,A,B){if(C){this.init(C,A,B);}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(C,B){var A=C-this.startPageX;var D=B-this.startPageY;this.setDelta(A,D);},setDelta:function(B,A){this.deltaX=B;this.deltaY=A;},setDragElPos:function(C,B){var A=this.getDragEl();this.alignElWithMouse(A,C,B);},alignElWithMouse:function(C,G,F){var E=this.getTargetCoord(G,F);if(!this.deltaSetXY){var H=[E.x,E.y];YAHOO.util.Dom.setXY(C,H);var D=parseInt(YAHOO.util.Dom.getStyle(C,"left"),10);var B=parseInt(YAHOO.util.Dom.getStyle(C,"top"),10);this.deltaSetXY=[D-E.x,B-E.y];}else{YAHOO.util.Dom.setStyle(C,"left",(E.x+this.deltaSetXY[0])+"px");YAHOO.util.Dom.setStyle(C,"top",(E.y+this.deltaSetXY[1])+"px");}this.cachePosition(E.x,E.y);var A=this;setTimeout(function(){A.autoScroll.call(A,E.x,E.y,C.offsetHeight,C.offsetWidth);},0);},cachePosition:function(B,A){if(B){this.lastPageX=B;this.lastPageY=A;}else{var C=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=C[0];this.lastPageY=C[1];}},autoScroll:function(J,I,E,K){if(this.scroll){var L=this.DDM.getClientHeight();var B=this.DDM.getClientWidth();var N=this.DDM.getScrollTop();var D=this.DDM.getScrollLeft();var H=E+I;var M=K+J;var G=(L+N-I-this.deltaY);var F=(B+D-J-this.deltaX);var C=40;var A=(document.all)?80:30;if(H>L&&G<C){window.scrollTo(D,N+A);}if(I<N&&N>0&&I-N<C){window.scrollTo(D,N-A);}if(M>B&&F<C){window.scrollTo(D+A,N);}if(J<D&&D>0&&J-D<C){window.scrollTo(D-A,N);}}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false);},b4MouseDown:function(A){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(A),YAHOO.util.Event.getPageY(A));},b4Drag:function(A){this.setDragElPos(YAHOO.util.Event.getPageX(A),YAHOO.util.Event.getPageY(A));},toString:function(){return("DD "+this.id);}});YAHOO.util.DDProxy=function(C,A,B){if(C){this.init(C,A,B);this.initFrame();}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var B=this,A=document.body;if(!A||!A.firstChild){setTimeout(function(){B.createFrame();},50);return;}var F=this.getDragEl(),E=YAHOO.util.Dom;if(!F){F=document.createElement("div");F.id=this.dragElId;var D=F.style;D.position="absolute";D.visibility="hidden";D.cursor="move";D.border="2px solid #aaa";D.zIndex=999;D.height="25px";D.width="25px";var C=document.createElement("div");E.setStyle(C,"height","100%");E.setStyle(C,"width","100%");E.setStyle(C,"background-color","#ccc");E.setStyle(C,"opacity","0");F.appendChild(C);A.insertBefore(F,A.firstChild);}},initFrame:function(){this.createFrame();},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId);},showFrame:function(E,D){var C=this.getEl();var A=this.getDragEl();var B=A.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(B.width,10)/2),Math.round(parseInt(B.height,10)/2));}this.setDragElPos(E,D);YAHOO.util.Dom.setStyle(A,"visibility","visible");},_resizeProxy:function(){if(this.resizeFrame){var H=YAHOO.util.Dom;var B=this.getEl();var C=this.getDragEl();var G=parseInt(H.getStyle(C,"borderTopWidth"),10);var I=parseInt(H.getStyle(C,"borderRightWidth"),10);var F=parseInt(H.getStyle(C,"borderBottomWidth"),10);var D=parseInt(H.getStyle(C,"borderLeftWidth"),10);if(isNaN(G)){G=0;}if(isNaN(I)){I=0;}if(isNaN(F)){F=0;}if(isNaN(D)){D=0;}var E=Math.max(0,B.offsetWidth-I-D);var A=Math.max(0,B.offsetHeight-G-F);H.setStyle(C,"width",E+"px");H.setStyle(C,"height",A+"px");}},b4MouseDown:function(B){this.setStartPosition();var A=YAHOO.util.Event.getPageX(B);var C=YAHOO.util.Event.getPageY(B);this.autoOffset(A,C);},b4StartDrag:function(A,B){this.showFrame(A,B);},b4EndDrag:function(A){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden");},endDrag:function(D){var C=YAHOO.util.Dom;var B=this.getEl();var A=this.getDragEl();C.setStyle(A,"visibility","");C.setStyle(B,"visibility","hidden");YAHOO.util.DDM.moveToEl(B,A);C.setStyle(A,"visibility","hidden");C.setStyle(B,"visibility","");},toString:function(){return("DDProxy "+this.id);}});YAHOO.util.DDTarget=function(C,A,B){if(C){this.initTarget(C,A,B);}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return("DDTarget "+this.id);}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.9.0",build:"2800"});YAHOO.util.Attribute=function(b,a){if(a){this.owner=a;this.configure(b,true);}};YAHOO.util.Attribute.INVALID_VALUE={};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,setter:null,getter:null,validator:null,getValue:function(){var a=this.value;if(this.getter){a=this.getter.call(this.owner,this.name,a);}return a;},setValue:function(f,b){var e,a=this.owner,c=this.name,g=YAHOO.util.Attribute.INVALID_VALUE,d={type:c,prevValue:this.getValue(),newValue:f};if(this.readOnly||(this.writeOnce&&this._written)){return false;}if(this.validator&&!this.validator.call(a,f)){return false;}if(!b){e=a.fireBeforeChangeEvent(d);if(e===false){return false;}}if(this.setter){f=this.setter.call(a,f,this.name);if(f===undefined){}if(f===g){return false;}}if(this.method){if(this.method.call(a,f,this.name)===g){return false;}}this.value=f;this._written=true;d.type=c;if(!b){this.owner.fireChangeEvent(d);}return true;},configure:function(b,c){b=b||{};if(c){this._written=false;}this._initialConfig=this._initialConfig||{};for(var a in b){if(b.hasOwnProperty(a)){this[a]=b[a];if(c){this._initialConfig[a]=b[a];}}}},resetValue:function(){return this.setValue(this._initialConfig.value);},resetConfig:function(){this.configure(this._initialConfig,true);},refresh:function(a){this.setValue(this.value,a);}};(function(){var a=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(c){this._configs=this._configs||{};var b=this._configs[c];if(!b||!this._configs.hasOwnProperty(c)){return null;}return b.getValue();},set:function(d,e,b){this._configs=this._configs||{};var c=this._configs[d];if(!c){return false;}return c.setValue(e,b);},getAttributeKeys:function(){this._configs=this._configs;var c=[],b;for(b in this._configs){if(a.hasOwnProperty(this._configs,b)&&!a.isUndefined(this._configs[b])){c[c.length]=b;}}return c;},setAttributes:function(d,b){for(var c in d){if(a.hasOwnProperty(d,c)){this.set(c,d[c],b);}}},resetValue:function(c,b){this._configs=this._configs||{};if(this._configs[c]){this.set(c,this._configs[c]._initialConfig.value,b);return true;}return false;},refresh:function(e,c){this._configs=this._configs||{};var f=this._configs;e=((a.isString(e))?[e]:e)||this.getAttributeKeys();for(var d=0,b=e.length;d<b;++d){if(f.hasOwnProperty(e[d])){this._configs[e[d]].refresh(c);}}},register:function(b,c){this.setAttributeConfig(b,c);},getAttributeConfig:function(c){this._configs=this._configs||{};var b=this._configs[c]||{};var d={};for(c in b){if(a.hasOwnProperty(b,c)){d[c]=b[c];}}return d;},setAttributeConfig:function(b,c,d){this._configs=this._configs||{};c=c||{};if(!this._configs[b]){c.name=b;this._configs[b]=this.createAttribute(c);}else{this._configs[b].configure(c,d);}},configureAttribute:function(b,c,d){this.setAttributeConfig(b,c,d);},resetAttributeConfig:function(b){this._configs=this._configs||{};this._configs[b].resetConfig();},subscribe:function(b,c){this._events=this._events||{};if(!(b in this._events)){this._events[b]=this.createEvent(b);}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){this.subscribe.apply(this,arguments);},addListener:function(){this.subscribe.apply(this,arguments);},fireBeforeChangeEvent:function(c){var b="before";b+=c.type.charAt(0).toUpperCase()+c.type.substr(1)+"Change";c.type=b;return this.fireEvent(c.type,c);},fireChangeEvent:function(b){b.type+="Change";return this.fireEvent(b.type,b);},createAttribute:function(b){return new YAHOO.util.Attribute(b,this);}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider);})();(function(){var b=YAHOO.util.Dom,d=YAHOO.util.AttributeProvider,c={mouseenter:true,mouseleave:true};var a=function(e,f){this.init.apply(this,arguments);};a.DOM_EVENTS={"click":true,"dblclick":true,"keydown":true,"keypress":true,"keyup":true,"mousedown":true,"mousemove":true,"mouseout":true,"mouseover":true,"mouseup":true,"mouseenter":true,"mouseleave":true,"focus":true,"blur":true,"submit":true,"change":true};a.prototype={DOM_EVENTS:null,DEFAULT_HTML_SETTER:function(g,e){var f=this.get("element");if(f){f[e]=g;}return g;},DEFAULT_HTML_GETTER:function(e){var f=this.get("element"),g;if(f){g=f[e];}return g;},appendChild:function(e){e=e.get?e.get("element"):e;return this.get("element").appendChild(e);},getElementsByTagName:function(e){return this.get("element").getElementsByTagName(e);},hasChildNodes:function(){return this.get("element").hasChildNodes();},insertBefore:function(e,f){e=e.get?e.get("element"):e;f=(f&&f.get)?f.get("element"):f;return this.get("element").insertBefore(e,f);},removeChild:function(e){e=e.get?e.get("element"):e;return this.get("element").removeChild(e);},replaceChild:function(e,f){e=e.get?e.get("element"):e;f=f.get?f.get("element"):f;return this.get("element").replaceChild(e,f);},initAttributes:function(e){},addListener:function(j,i,k,h){h=h||this;var e=YAHOO.util.Event,g=this.get("element")||this.get("id"),f=this;if(c[j]&&!e._createMouseDelegate){return false;}if(!this._events[j]){if(g&&this.DOM_EVENTS[j]){e.on(g,j,function(m,l){if(m.srcElement&&!m.target){m.target=m.srcElement;}if((m.toElement&&!m.relatedTarget)||(m.fromElement&&!m.relatedTarget)){m.relatedTarget=e.getRelatedTarget(m);}if(!m.currentTarget){m.currentTarget=g;}f.fireEvent(j,m,l);},k,h);}this.createEvent(j,{scope:this});}return YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){return this.addListener.apply(this,arguments);},subscribe:function(){return this.addListener.apply(this,arguments);},removeListener:function(f,e){return this.unsubscribe.apply(this,arguments);},addClass:function(e){b.addClass(this.get("element"),e);},getElementsByClassName:function(f,e){return b.getElementsByClassName(f,e,this.get("element"));},hasClass:function(e){return b.hasClass(this.get("element"),e);},removeClass:function(e){return b.removeClass(this.get("element"),e);},replaceClass:function(f,e){return b.replaceClass(this.get("element"),f,e); | |||
|
39 | },setStyle:function(f,e){return b.setStyle(this.get("element"),f,e);},getStyle:function(e){return b.getStyle(this.get("element"),e);},fireQueue:function(){var f=this._queue;for(var g=0,e=f.length;g<e;++g){this[f[g][0]].apply(this,f[g][1]);}},appendTo:function(f,g){f=(f.get)?f.get("element"):b.get(f);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:f});g=(g&&g.get)?g.get("element"):b.get(g);var e=this.get("element");if(!e){return false;}if(!f){return false;}if(e.parent!=f){if(g){f.insertBefore(e,g);}else{f.appendChild(e);}}this.fireEvent("appendTo",{type:"appendTo",target:f});return e;},get:function(e){var g=this._configs||{},f=g.element;if(f&&!g[e]&&!YAHOO.lang.isUndefined(f.value[e])){this._setHTMLAttrConfig(e);}return d.prototype.get.call(this,e);},setAttributes:function(l,h){var f={},j=this._configOrder;for(var k=0,e=j.length;k<e;++k){if(l[j[k]]!==undefined){f[j[k]]=true;this.set(j[k],l[j[k]],h);}}for(var g in l){if(l.hasOwnProperty(g)&&!f[g]){this.set(g,l[g],h);}}},set:function(f,h,e){var g=this.get("element");if(!g){this._queue[this._queue.length]=["set",arguments];if(this._configs[f]){this._configs[f].value=h;}return;}if(!this._configs[f]&&!YAHOO.lang.isUndefined(g[f])){this._setHTMLAttrConfig(f);}return d.prototype.set.apply(this,arguments);},setAttributeConfig:function(e,f,g){this._configOrder.push(e);d.prototype.setAttributeConfig.apply(this,arguments);},createEvent:function(f,e){this._events[f]=true;return d.prototype.createEvent.apply(this,arguments);},init:function(f,e){this._initElement(f,e);},destroy:function(){var e=this.get("element");YAHOO.util.Event.purgeElement(e,true);this.unsubscribeAll();if(e&&e.parentNode){e.parentNode.removeChild(e);}this._queue=[];this._events={};this._configs={};this._configOrder=[];},_initElement:function(g,f){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];f=f||{};f.element=f.element||g||null;var i=false;var e=a.DOM_EVENTS;this.DOM_EVENTS=this.DOM_EVENTS||{};for(var h in e){if(e.hasOwnProperty(h)){this.DOM_EVENTS[h]=e[h];}}if(typeof f.element==="string"){this._setHTMLAttrConfig("id",{value:f.element});}if(b.get(f.element)){i=true;this._initHTMLElement(f);this._initContent(f);}YAHOO.util.Event.onAvailable(f.element,function(){if(!i){this._initHTMLElement(f);}this.fireEvent("available",{type:"available",target:b.get(f.element)});},this,true);YAHOO.util.Event.onContentReady(f.element,function(){if(!i){this._initContent(f);}this.fireEvent("contentReady",{type:"contentReady",target:b.get(f.element)});},this,true);},_initHTMLElement:function(e){this.setAttributeConfig("element",{value:b.get(e.element),readOnly:true});},_initContent:function(e){this.initAttributes(e);this.setAttributes(e,true);this.fireQueue();},_setHTMLAttrConfig:function(e,g){var f=this.get("element");g=g||{};g.name=e;g.setter=g.setter||this.DEFAULT_HTML_SETTER;g.getter=g.getter||this.DEFAULT_HTML_GETTER;g.value=g.value||f[e];this._configs[e]=new YAHOO.util.Attribute(g,this);}};YAHOO.augment(a,d);YAHOO.util.Element=a;})();YAHOO.register("element",YAHOO.util.Element,{version:"2.9.0",build:"2800"});YAHOO.register("utilities", YAHOO, {version: "2.9.0", build: "2800"});/* | |||
|
40 | Copyright (c) 2011, Yahoo! Inc. All rights reserved. | |||
|
41 | Code licensed under the BSD License: | |||
|
42 | http://developer.yahoo.com/yui/license.html | |||
|
43 | version: 2.9.0 | |||
|
44 | */ | |||
|
45 | (function(){var lang=YAHOO.lang,util=YAHOO.util,Ev=util.Event;util.DataSourceBase=function(oLiveData,oConfigs){if(oLiveData===null||oLiveData===undefined){return;}this.liveData=oLiveData;this._oQueue={interval:null,conn:null,requests:[]};this.responseSchema={};if(oConfigs&&(oConfigs.constructor==Object)){for(var sConfig in oConfigs){if(sConfig){this[sConfig]=oConfigs[sConfig];}}}var maxCacheEntries=this.maxCacheEntries;if(!lang.isNumber(maxCacheEntries)||(maxCacheEntries<0)){maxCacheEntries=0;}this._aIntervals=[];this.createEvent("cacheRequestEvent");this.createEvent("cacheResponseEvent");this.createEvent("requestEvent");this.createEvent("responseEvent");this.createEvent("responseParseEvent");this.createEvent("responseCacheEvent");this.createEvent("dataErrorEvent");this.createEvent("cacheFlushEvent");var DS=util.DataSourceBase;this._sName="DataSource instance"+DS._nIndex;DS._nIndex++;};var DS=util.DataSourceBase;lang.augmentObject(DS,{TYPE_UNKNOWN:-1,TYPE_JSARRAY:0,TYPE_JSFUNCTION:1,TYPE_XHR:2,TYPE_JSON:3,TYPE_XML:4,TYPE_TEXT:5,TYPE_HTMLTABLE:6,TYPE_SCRIPTNODE:7,TYPE_LOCAL:8,ERROR_DATAINVALID:"Invalid data",ERROR_DATANULL:"Null data",_nIndex:0,_nTransactionId:0,_cloneObject:function(o){if(!lang.isValue(o)){return o;}var copy={};if(Object.prototype.toString.apply(o)==="[object RegExp]"){copy=o;}else{if(lang.isFunction(o)){copy=o;}else{if(lang.isArray(o)){var array=[];for(var i=0,len=o.length;i<len;i++){array[i]=DS._cloneObject(o[i]);}copy=array;}else{if(lang.isObject(o)){for(var x in o){if(lang.hasOwnProperty(o,x)){if(lang.isValue(o[x])&&lang.isObject(o[x])||lang.isArray(o[x])){copy[x]=DS._cloneObject(o[x]);}else{copy[x]=o[x];}}}}else{copy=o;}}}}return copy;},_getLocationValue:function(field,context){var locator=field.locator||field.key||field,xmldoc=context.ownerDocument||context,result,res,value=null;try{if(!lang.isUndefined(xmldoc.evaluate)){result=xmldoc.evaluate(locator,context,xmldoc.createNSResolver(!context.ownerDocument?context.documentElement:context.ownerDocument.documentElement),0,null);while(res=result.iterateNext()){value=res.textContent;}}else{xmldoc.setProperty("SelectionLanguage","XPath");result=context.selectNodes(locator)[0];value=result.value||result.text||null;}return value;}catch(e){}},issueCallback:function(callback,params,error,scope){if(lang.isFunction(callback)){callback.apply(scope,params);}else{if(lang.isObject(callback)){scope=callback.scope||scope||window;var callbackFunc=callback.success;if(error){callbackFunc=callback.failure;}if(callbackFunc){callbackFunc.apply(scope,params.concat([callback.argument]));}}}},parseString:function(oData){if(!lang.isValue(oData)){return null;}var string=oData+"";if(lang.isString(string)){return string;}else{return null;}},parseNumber:function(oData){if(!lang.isValue(oData)||(oData==="")){return null;}var number=oData*1;if(lang.isNumber(number)){return number;}else{return null;}},convertNumber:function(oData){return DS.parseNumber(oData);},parseDate:function(oData){var date=null;if(lang.isValue(oData)&&!(oData instanceof Date)){date=new Date(oData);}else{return oData;}if(date instanceof Date){return date;}else{return null;}},convertDate:function(oData){return DS.parseDate(oData);}});DS.Parser={string:DS.parseString,number:DS.parseNumber,date:DS.parseDate};DS.prototype={_sName:null,_aCache:null,_oQueue:null,_aIntervals:null,maxCacheEntries:0,liveData:null,dataType:DS.TYPE_UNKNOWN,responseType:DS.TYPE_UNKNOWN,responseSchema:null,useXPath:false,cloneBeforeCaching:false,toString:function(){return this._sName;},getCachedResponse:function(oRequest,oCallback,oCaller){var aCache=this._aCache;if(this.maxCacheEntries>0){if(!aCache){this._aCache=[];}else{var nCacheLength=aCache.length;if(nCacheLength>0){var oResponse=null;this.fireEvent("cacheRequestEvent",{request:oRequest,callback:oCallback,caller:oCaller});for(var i=nCacheLength-1;i>=0;i--){var oCacheElem=aCache[i];if(this.isCacheHit(oRequest,oCacheElem.request)){oResponse=oCacheElem.response;this.fireEvent("cacheResponseEvent",{request:oRequest,response:oResponse,callback:oCallback,caller:oCaller});if(i<nCacheLength-1){aCache.splice(i,1);this.addToCache(oRequest,oResponse);}oResponse.cached=true;break;}}return oResponse;}}}else{if(aCache){this._aCache=null;}}return null;},isCacheHit:function(oRequest,oCachedRequest){return(oRequest===oCachedRequest);},addToCache:function(oRequest,oResponse){var aCache=this._aCache;if(!aCache){return;}while(aCache.length>=this.maxCacheEntries){aCache.shift();}oResponse=(this.cloneBeforeCaching)?DS._cloneObject(oResponse):oResponse;var oCacheElem={request:oRequest,response:oResponse};aCache[aCache.length]=oCacheElem;this.fireEvent("responseCacheEvent",{request:oRequest,response:oResponse});},flushCache:function(){if(this._aCache){this._aCache=[];this.fireEvent("cacheFlushEvent");}},setInterval:function(nMsec,oRequest,oCallback,oCaller){if(lang.isNumber(nMsec)&&(nMsec>=0)){var oSelf=this;var nId=setInterval(function(){oSelf.makeConnection(oRequest,oCallback,oCaller);},nMsec);this._aIntervals.push(nId);return nId;}else{}},clearInterval:function(nId){var tracker=this._aIntervals||[];for(var i=tracker.length-1;i>-1;i--){if(tracker[i]===nId){tracker.splice(i,1);clearInterval(nId);}}},clearAllIntervals:function(){var tracker=this._aIntervals||[];for(var i=tracker.length-1;i>-1;i--){clearInterval(tracker[i]);}tracker=[];},sendRequest:function(oRequest,oCallback,oCaller){var oCachedResponse=this.getCachedResponse(oRequest,oCallback,oCaller);if(oCachedResponse){DS.issueCallback(oCallback,[oRequest,oCachedResponse],false,oCaller);return null;}return this.makeConnection(oRequest,oCallback,oCaller);},makeConnection:function(oRequest,oCallback,oCaller){var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});var oRawResponse=this.liveData;this.handleResponse(oRequest,oRawResponse,oCallback,oCaller,tId);return tId;},handleResponse:function(oRequest,oRawResponse,oCallback,oCaller,tId){this.fireEvent("responseEvent",{tId:tId,request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller}); | |||
|
46 | var xhr=(this.dataType==DS.TYPE_XHR)?true:false;var oParsedResponse=null;var oFullResponse=oRawResponse;if(this.responseType===DS.TYPE_UNKNOWN){var ctype=(oRawResponse&&oRawResponse.getResponseHeader)?oRawResponse.getResponseHeader["Content-Type"]:null;if(ctype){if(ctype.indexOf("text/xml")>-1){this.responseType=DS.TYPE_XML;}else{if(ctype.indexOf("application/json")>-1){this.responseType=DS.TYPE_JSON;}else{if(ctype.indexOf("text/plain")>-1){this.responseType=DS.TYPE_TEXT;}}}}else{if(YAHOO.lang.isArray(oRawResponse)){this.responseType=DS.TYPE_JSARRAY;}else{if(oRawResponse&&oRawResponse.nodeType&&(oRawResponse.nodeType===9||oRawResponse.nodeType===1||oRawResponse.nodeType===11)){this.responseType=DS.TYPE_XML;}else{if(oRawResponse&&oRawResponse.nodeName&&(oRawResponse.nodeName.toLowerCase()=="table")){this.responseType=DS.TYPE_HTMLTABLE;}else{if(YAHOO.lang.isObject(oRawResponse)){this.responseType=DS.TYPE_JSON;}else{if(YAHOO.lang.isString(oRawResponse)){this.responseType=DS.TYPE_TEXT;}}}}}}}switch(this.responseType){case DS.TYPE_JSARRAY:if(xhr&&oRawResponse&&oRawResponse.responseText){oFullResponse=oRawResponse.responseText;}try{if(lang.isString(oFullResponse)){var parseArgs=[oFullResponse].concat(this.parseJSONArgs);if(lang.JSON){oFullResponse=lang.JSON.parse.apply(lang.JSON,parseArgs);}else{if(window.JSON&&JSON.parse){oFullResponse=JSON.parse.apply(JSON,parseArgs);}else{if(oFullResponse.parseJSON){oFullResponse=oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));}else{while(oFullResponse.length>0&&(oFullResponse.charAt(0)!="{")&&(oFullResponse.charAt(0)!="[")){oFullResponse=oFullResponse.substring(1,oFullResponse.length);}if(oFullResponse.length>0){var arrayEnd=Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));oFullResponse=oFullResponse.substring(0,arrayEnd+1);oFullResponse=eval("("+oFullResponse+")");}}}}}}catch(e1){}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseArrayData(oRequest,oFullResponse);break;case DS.TYPE_JSON:if(xhr&&oRawResponse&&oRawResponse.responseText){oFullResponse=oRawResponse.responseText;}try{if(lang.isString(oFullResponse)){var parseArgs=[oFullResponse].concat(this.parseJSONArgs);if(lang.JSON){oFullResponse=lang.JSON.parse.apply(lang.JSON,parseArgs);}else{if(window.JSON&&JSON.parse){oFullResponse=JSON.parse.apply(JSON,parseArgs);}else{if(oFullResponse.parseJSON){oFullResponse=oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));}else{while(oFullResponse.length>0&&(oFullResponse.charAt(0)!="{")&&(oFullResponse.charAt(0)!="[")){oFullResponse=oFullResponse.substring(1,oFullResponse.length);}if(oFullResponse.length>0){var objEnd=Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));oFullResponse=oFullResponse.substring(0,objEnd+1);oFullResponse=eval("("+oFullResponse+")");}}}}}}catch(e){}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseJSONData(oRequest,oFullResponse);break;case DS.TYPE_HTMLTABLE:if(xhr&&oRawResponse.responseText){var el=document.createElement("div");el.innerHTML=oRawResponse.responseText;oFullResponse=el.getElementsByTagName("table")[0];}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseHTMLTableData(oRequest,oFullResponse);break;case DS.TYPE_XML:if(xhr&&oRawResponse.responseXML){oFullResponse=oRawResponse.responseXML;}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseXMLData(oRequest,oFullResponse);break;case DS.TYPE_TEXT:if(xhr&&lang.isString(oRawResponse.responseText)){oFullResponse=oRawResponse.responseText;}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseTextData(oRequest,oFullResponse);break;default:oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseData(oRequest,oFullResponse);break;}oParsedResponse=oParsedResponse||{};if(!oParsedResponse.results){oParsedResponse.results=[];}if(!oParsedResponse.meta){oParsedResponse.meta={};}if(!oParsedResponse.error){oParsedResponse=this.doBeforeCallback(oRequest,oFullResponse,oParsedResponse,oCallback);this.fireEvent("responseParseEvent",{request:oRequest,response:oParsedResponse,callback:oCallback,caller:oCaller});this.addToCache(oRequest,oParsedResponse);}else{oParsedResponse.error=true;this.fireEvent("dataErrorEvent",{request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller,message:DS.ERROR_DATANULL});}oParsedResponse.tId=tId;DS.issueCallback(oCallback,[oRequest,oParsedResponse],oParsedResponse.error,oCaller);},doBeforeParseData:function(oRequest,oFullResponse,oCallback){return oFullResponse;},doBeforeCallback:function(oRequest,oFullResponse,oParsedResponse,oCallback){return oParsedResponse;},parseData:function(oRequest,oFullResponse){if(lang.isValue(oFullResponse)){var oParsedResponse={results:oFullResponse,meta:{}};return oParsedResponse;}return null;},parseArrayData:function(oRequest,oFullResponse){if(lang.isArray(oFullResponse)){var results=[],i,j,rec,field,data;if(lang.isArray(this.responseSchema.fields)){var fields=this.responseSchema.fields;for(i=fields.length-1;i>=0;--i){if(typeof fields[i]!=="object"){fields[i]={key:fields[i]};}}var parsers={},p;for(i=fields.length-1;i>=0;--i){p=(typeof fields[i].parser==="function"?fields[i].parser:DS.Parser[fields[i].parser+""])||fields[i].converter;if(p){parsers[fields[i].key]=p;}}var arrType=lang.isArray(oFullResponse[0]);for(i=oFullResponse.length-1;i>-1;i--){var oResult={};rec=oFullResponse[i];if(typeof rec==="object"){for(j=fields.length-1;j>-1;j--){field=fields[j];data=arrType?rec[j]:rec[field.key];if(parsers[field.key]){data=parsers[field.key].call(this,data);}if(data===undefined){data=null;}oResult[field.key]=data;}}else{if(lang.isString(rec)){for(j=fields.length-1;j>-1;j--){field=fields[j];data=rec;if(parsers[field.key]){data=parsers[field.key].call(this,data);}if(data===undefined){data=null;}oResult[field.key]=data; | |||
|
47 | }}}results[i]=oResult;}}else{results=oFullResponse;}var oParsedResponse={results:results};return oParsedResponse;}return null;},parseTextData:function(oRequest,oFullResponse){if(lang.isString(oFullResponse)){if(lang.isString(this.responseSchema.recordDelim)&&lang.isString(this.responseSchema.fieldDelim)){var oParsedResponse={results:[]};var recDelim=this.responseSchema.recordDelim;var fieldDelim=this.responseSchema.fieldDelim;if(oFullResponse.length>0){var newLength=oFullResponse.length-recDelim.length;if(oFullResponse.substr(newLength)==recDelim){oFullResponse=oFullResponse.substr(0,newLength);}if(oFullResponse.length>0){var recordsarray=oFullResponse.split(recDelim);for(var i=0,len=recordsarray.length,recIdx=0;i<len;++i){var bError=false,sRecord=recordsarray[i];if(lang.isString(sRecord)&&(sRecord.length>0)){var fielddataarray=recordsarray[i].split(fieldDelim);var oResult={};if(lang.isArray(this.responseSchema.fields)){var fields=this.responseSchema.fields;for(var j=fields.length-1;j>-1;j--){try{var data=fielddataarray[j];if(lang.isString(data)){if(data.charAt(0)=='"'){data=data.substr(1);}if(data.charAt(data.length-1)=='"'){data=data.substr(0,data.length-1);}var field=fields[j];var key=(lang.isValue(field.key))?field.key:field;if(!field.parser&&field.converter){field.parser=field.converter;}var parser=(typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""];if(parser){data=parser.call(this,data);}if(data===undefined){data=null;}oResult[key]=data;}else{bError=true;}}catch(e){bError=true;}}}else{oResult=fielddataarray;}if(!bError){oParsedResponse.results[recIdx++]=oResult;}}}}}return oParsedResponse;}}return null;},parseXMLResult:function(result){var oResult={},schema=this.responseSchema;try{for(var m=schema.fields.length-1;m>=0;m--){var field=schema.fields[m];var key=(lang.isValue(field.key))?field.key:field;var data=null;if(this.useXPath){data=YAHOO.util.DataSource._getLocationValue(field,result);}else{var xmlAttr=result.attributes.getNamedItem(key);if(xmlAttr){data=xmlAttr.value;}else{var xmlNode=result.getElementsByTagName(key);if(xmlNode&&xmlNode.item(0)){var item=xmlNode.item(0);data=(item)?((item.text)?item.text:(item.textContent)?item.textContent:null):null;if(!data){var datapieces=[];for(var j=0,len=item.childNodes.length;j<len;j++){if(item.childNodes[j].nodeValue){datapieces[datapieces.length]=item.childNodes[j].nodeValue;}}if(datapieces.length>0){data=datapieces.join("");}}}}}if(data===null){data="";}if(!field.parser&&field.converter){field.parser=field.converter;}var parser=(typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""];if(parser){data=parser.call(this,data);}if(data===undefined){data=null;}oResult[key]=data;}}catch(e){}return oResult;},parseXMLData:function(oRequest,oFullResponse){var bError=false,schema=this.responseSchema,oParsedResponse={meta:{}},xmlList=null,metaNode=schema.metaNode,metaLocators=schema.metaFields||{},i,k,loc,v;try{if(this.useXPath){for(k in metaLocators){oParsedResponse.meta[k]=YAHOO.util.DataSource._getLocationValue(metaLocators[k],oFullResponse);}}else{metaNode=metaNode?oFullResponse.getElementsByTagName(metaNode)[0]:oFullResponse;if(metaNode){for(k in metaLocators){if(lang.hasOwnProperty(metaLocators,k)){loc=metaLocators[k];v=metaNode.getElementsByTagName(loc)[0];if(v){v=v.firstChild.nodeValue;}else{v=metaNode.attributes.getNamedItem(loc);if(v){v=v.value;}}if(lang.isValue(v)){oParsedResponse.meta[k]=v;}}}}}xmlList=(schema.resultNode)?oFullResponse.getElementsByTagName(schema.resultNode):null;}catch(e){}if(!xmlList||!lang.isArray(schema.fields)){bError=true;}else{oParsedResponse.results=[];for(i=xmlList.length-1;i>=0;--i){var oResult=this.parseXMLResult(xmlList.item(i));oParsedResponse.results[i]=oResult;}}if(bError){oParsedResponse.error=true;}else{}return oParsedResponse;},parseJSONData:function(oRequest,oFullResponse){var oParsedResponse={results:[],meta:{}};if(lang.isObject(oFullResponse)&&this.responseSchema.resultsList){var schema=this.responseSchema,fields=schema.fields,resultsList=oFullResponse,results=[],metaFields=schema.metaFields||{},fieldParsers=[],fieldPaths=[],simpleFields=[],bError=false,i,len,j,v,key,parser,path;var buildPath=function(needle){var path=null,keys=[],i=0;if(needle){needle=needle.replace(/\[(['"])(.*?)\1\]/g,function(x,$1,$2){keys[i]=$2;return".@"+(i++);}).replace(/\[(\d+)\]/g,function(x,$1){keys[i]=parseInt($1,10)|0;return".@"+(i++);}).replace(/^\./,"");if(!/[^\w\.\$@]/.test(needle)){path=needle.split(".");for(i=path.length-1;i>=0;--i){if(path[i].charAt(0)==="@"){path[i]=keys[parseInt(path[i].substr(1),10)];}}}else{}}return path;};var walkPath=function(path,origin){var v=origin,i=0,len=path.length;for(;i<len&&v;++i){v=v[path[i]];}return v;};path=buildPath(schema.resultsList);if(path){resultsList=walkPath(path,oFullResponse);if(resultsList===undefined){bError=true;}}else{bError=true;}if(!resultsList){resultsList=[];}if(!lang.isArray(resultsList)){resultsList=[resultsList];}if(!bError){if(schema.fields){var field;for(i=0,len=fields.length;i<len;i++){field=fields[i];key=field.key||field;parser=((typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""])||field.converter;path=buildPath(key);if(parser){fieldParsers[fieldParsers.length]={key:key,parser:parser};}if(path){if(path.length>1){fieldPaths[fieldPaths.length]={key:key,path:path};}else{simpleFields[simpleFields.length]={key:key,path:path[0]};}}else{}}for(i=resultsList.length-1;i>=0;--i){var r=resultsList[i],rec={};if(r){for(j=simpleFields.length-1;j>=0;--j){rec[simpleFields[j].key]=(r[simpleFields[j].path]!==undefined)?r[simpleFields[j].path]:r[j];}for(j=fieldPaths.length-1;j>=0;--j){rec[fieldPaths[j].key]=walkPath(fieldPaths[j].path,r);}for(j=fieldParsers.length-1;j>=0;--j){var p=fieldParsers[j].key;rec[p]=fieldParsers[j].parser.call(this,rec[p]);if(rec[p]===undefined){rec[p]=null;}}}results[i]=rec;}}else{results=resultsList;}for(key in metaFields){if(lang.hasOwnProperty(metaFields,key)){path=buildPath(metaFields[key]); | |||
|
48 | if(path){v=walkPath(path,oFullResponse);oParsedResponse.meta[key]=v;}}}}else{oParsedResponse.error=true;}oParsedResponse.results=results;}else{oParsedResponse.error=true;}return oParsedResponse;},parseHTMLTableData:function(oRequest,oFullResponse){var bError=false;var elTable=oFullResponse;var fields=this.responseSchema.fields;var oParsedResponse={results:[]};if(lang.isArray(fields)){for(var i=0;i<elTable.tBodies.length;i++){var elTbody=elTable.tBodies[i];for(var j=elTbody.rows.length-1;j>-1;j--){var elRow=elTbody.rows[j];var oResult={};for(var k=fields.length-1;k>-1;k--){var field=fields[k];var key=(lang.isValue(field.key))?field.key:field;var data=elRow.cells[k].innerHTML;if(!field.parser&&field.converter){field.parser=field.converter;}var parser=(typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""];if(parser){data=parser.call(this,data);}if(data===undefined){data=null;}oResult[key]=data;}oParsedResponse.results[j]=oResult;}}}else{bError=true;}if(bError){oParsedResponse.error=true;}else{}return oParsedResponse;}};lang.augmentProto(DS,util.EventProvider);util.LocalDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_LOCAL;if(oLiveData){if(YAHOO.lang.isArray(oLiveData)){this.responseType=DS.TYPE_JSARRAY;}else{if(oLiveData.nodeType&&oLiveData.nodeType==9){this.responseType=DS.TYPE_XML;}else{if(oLiveData.nodeName&&(oLiveData.nodeName.toLowerCase()=="table")){this.responseType=DS.TYPE_HTMLTABLE;oLiveData=oLiveData.cloneNode(true);}else{if(YAHOO.lang.isString(oLiveData)){this.responseType=DS.TYPE_TEXT;}else{if(YAHOO.lang.isObject(oLiveData)){this.responseType=DS.TYPE_JSON;}}}}}}else{oLiveData=[];this.responseType=DS.TYPE_JSARRAY;}util.LocalDataSource.superclass.constructor.call(this,oLiveData,oConfigs);};lang.extend(util.LocalDataSource,DS);lang.augmentObject(util.LocalDataSource,DS);util.FunctionDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_JSFUNCTION;oLiveData=oLiveData||function(){};util.FunctionDataSource.superclass.constructor.call(this,oLiveData,oConfigs);};lang.extend(util.FunctionDataSource,DS,{scope:null,makeConnection:function(oRequest,oCallback,oCaller){var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});var oRawResponse=(this.scope)?this.liveData.call(this.scope,oRequest,this,oCallback):this.liveData(oRequest,oCallback);if(this.responseType===DS.TYPE_UNKNOWN){if(YAHOO.lang.isArray(oRawResponse)){this.responseType=DS.TYPE_JSARRAY;}else{if(oRawResponse&&oRawResponse.nodeType&&oRawResponse.nodeType==9){this.responseType=DS.TYPE_XML;}else{if(oRawResponse&&oRawResponse.nodeName&&(oRawResponse.nodeName.toLowerCase()=="table")){this.responseType=DS.TYPE_HTMLTABLE;}else{if(YAHOO.lang.isObject(oRawResponse)){this.responseType=DS.TYPE_JSON;}else{if(YAHOO.lang.isString(oRawResponse)){this.responseType=DS.TYPE_TEXT;}}}}}}this.handleResponse(oRequest,oRawResponse,oCallback,oCaller,tId);return tId;}});lang.augmentObject(util.FunctionDataSource,DS);util.ScriptNodeDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_SCRIPTNODE;oLiveData=oLiveData||"";util.ScriptNodeDataSource.superclass.constructor.call(this,oLiveData,oConfigs);};lang.extend(util.ScriptNodeDataSource,DS,{getUtility:util.Get,asyncMode:"allowAll",scriptCallbackParam:"callback",generateRequestCallback:function(id){return"&"+this.scriptCallbackParam+"=YAHOO.util.ScriptNodeDataSource.callbacks["+id+"]";},doBeforeGetScriptNode:function(sUri){return sUri;},makeConnection:function(oRequest,oCallback,oCaller){var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});if(util.ScriptNodeDataSource._nPending===0){util.ScriptNodeDataSource.callbacks=[];util.ScriptNodeDataSource._nId=0;}var id=util.ScriptNodeDataSource._nId;util.ScriptNodeDataSource._nId++;var oSelf=this;util.ScriptNodeDataSource.callbacks[id]=function(oRawResponse){if((oSelf.asyncMode!=="ignoreStaleResponses")||(id===util.ScriptNodeDataSource.callbacks.length-1)){if(oSelf.responseType===DS.TYPE_UNKNOWN){if(YAHOO.lang.isArray(oRawResponse)){oSelf.responseType=DS.TYPE_JSARRAY;}else{if(oRawResponse.nodeType&&oRawResponse.nodeType==9){oSelf.responseType=DS.TYPE_XML;}else{if(oRawResponse.nodeName&&(oRawResponse.nodeName.toLowerCase()=="table")){oSelf.responseType=DS.TYPE_HTMLTABLE;}else{if(YAHOO.lang.isObject(oRawResponse)){oSelf.responseType=DS.TYPE_JSON;}else{if(YAHOO.lang.isString(oRawResponse)){oSelf.responseType=DS.TYPE_TEXT;}}}}}}oSelf.handleResponse(oRequest,oRawResponse,oCallback,oCaller,tId);}else{}delete util.ScriptNodeDataSource.callbacks[id];};util.ScriptNodeDataSource._nPending++;var sUri=this.liveData+oRequest+this.generateRequestCallback(id);sUri=this.doBeforeGetScriptNode(sUri);this.getUtility.script(sUri,{autopurge:true,onsuccess:util.ScriptNodeDataSource._bumpPendingDown,onfail:util.ScriptNodeDataSource._bumpPendingDown});return tId;}});lang.augmentObject(util.ScriptNodeDataSource,DS);lang.augmentObject(util.ScriptNodeDataSource,{_nId:0,_nPending:0,callbacks:[]});util.XHRDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_XHR;this.connMgr=this.connMgr||util.Connect;oLiveData=oLiveData||"";util.XHRDataSource.superclass.constructor.call(this,oLiveData,oConfigs);};lang.extend(util.XHRDataSource,DS,{connMgr:null,connXhrMode:"allowAll",connMethodPost:false,connTimeout:0,makeConnection:function(oRequest,oCallback,oCaller){var oRawResponse=null;var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});var oSelf=this;var oConnMgr=this.connMgr;var oQueue=this._oQueue;var _xhrSuccess=function(oResponse){if(oResponse&&(this.connXhrMode=="ignoreStaleResponses")&&(oResponse.tId!=oQueue.conn.tId)){return null;}else{if(!oResponse){this.fireEvent("dataErrorEvent",{request:oRequest,response:null,callback:oCallback,caller:oCaller,message:DS.ERROR_DATANULL});DS.issueCallback(oCallback,[oRequest,{error:true}],true,oCaller);return null; | |||
|
49 | }else{if(this.responseType===DS.TYPE_UNKNOWN){var ctype=(oResponse.getResponseHeader)?oResponse.getResponseHeader["Content-Type"]:null;if(ctype){if(ctype.indexOf("text/xml")>-1){this.responseType=DS.TYPE_XML;}else{if(ctype.indexOf("application/json")>-1){this.responseType=DS.TYPE_JSON;}else{if(ctype.indexOf("text/plain")>-1){this.responseType=DS.TYPE_TEXT;}}}}}this.handleResponse(oRequest,oResponse,oCallback,oCaller,tId);}}};var _xhrFailure=function(oResponse){this.fireEvent("dataErrorEvent",{request:oRequest,response:oResponse,callback:oCallback,caller:oCaller,message:DS.ERROR_DATAINVALID});if(lang.isString(this.liveData)&&lang.isString(oRequest)&&(this.liveData.lastIndexOf("?")!==this.liveData.length-1)&&(oRequest.indexOf("?")!==0)){}oResponse=oResponse||{};oResponse.error=true;DS.issueCallback(oCallback,[oRequest,oResponse],true,oCaller);return null;};var _xhrCallback={success:_xhrSuccess,failure:_xhrFailure,scope:this};if(lang.isNumber(this.connTimeout)){_xhrCallback.timeout=this.connTimeout;}if(this.connXhrMode=="cancelStaleRequests"){if(oQueue.conn){if(oConnMgr.abort){oConnMgr.abort(oQueue.conn);oQueue.conn=null;}else{}}}if(oConnMgr&&oConnMgr.asyncRequest){var sLiveData=this.liveData;var isPost=this.connMethodPost;var sMethod=(isPost)?"POST":"GET";var sUri=(isPost||!lang.isValue(oRequest))?sLiveData:sLiveData+oRequest;var sRequest=(isPost)?oRequest:null;if(this.connXhrMode!="queueRequests"){oQueue.conn=oConnMgr.asyncRequest(sMethod,sUri,_xhrCallback,sRequest);}else{if(oQueue.conn){var allRequests=oQueue.requests;allRequests.push({request:oRequest,callback:_xhrCallback});if(!oQueue.interval){oQueue.interval=setInterval(function(){if(oConnMgr.isCallInProgress(oQueue.conn)){return;}else{if(allRequests.length>0){sUri=(isPost||!lang.isValue(allRequests[0].request))?sLiveData:sLiveData+allRequests[0].request;sRequest=(isPost)?allRequests[0].request:null;oQueue.conn=oConnMgr.asyncRequest(sMethod,sUri,allRequests[0].callback,sRequest);allRequests.shift();}else{clearInterval(oQueue.interval);oQueue.interval=null;}}},50);}}else{oQueue.conn=oConnMgr.asyncRequest(sMethod,sUri,_xhrCallback,sRequest);}}}else{DS.issueCallback(oCallback,[oRequest,{error:true}],true,oCaller);}return tId;}});lang.augmentObject(util.XHRDataSource,DS);util.DataSource=function(oLiveData,oConfigs){oConfigs=oConfigs||{};var dataType=oConfigs.dataType;if(dataType){if(dataType==DS.TYPE_LOCAL){return new util.LocalDataSource(oLiveData,oConfigs);}else{if(dataType==DS.TYPE_XHR){return new util.XHRDataSource(oLiveData,oConfigs);}else{if(dataType==DS.TYPE_SCRIPTNODE){return new util.ScriptNodeDataSource(oLiveData,oConfigs);}else{if(dataType==DS.TYPE_JSFUNCTION){return new util.FunctionDataSource(oLiveData,oConfigs);}}}}}if(YAHOO.lang.isString(oLiveData)){return new util.XHRDataSource(oLiveData,oConfigs);}else{if(YAHOO.lang.isFunction(oLiveData)){return new util.FunctionDataSource(oLiveData,oConfigs);}else{return new util.LocalDataSource(oLiveData,oConfigs);}}};lang.augmentObject(util.DataSource,DS);})();YAHOO.util.Number={format:function(e,k){if(e===""||e===null||!isFinite(e)){return"";}e=+e;k=YAHOO.lang.merge(YAHOO.util.Number.format.defaults,(k||{}));var j=e+"",l=Math.abs(e),b=k.decimalPlaces||0,r=k.thousandsSeparator,f=k.negativeFormat||("-"+k.format),q,p,g,h;if(f.indexOf("#")>-1){f=f.replace(/#/,k.format);}if(b<0){q=l-(l%1)+"";g=q.length+b;if(g>0){q=Number("."+q).toFixed(g).slice(2)+new Array(q.length-g+1).join("0");}else{q="0";}}else{var a=l+"";if(b>0||a.indexOf(".")>0){var d=Math.pow(10,b);q=Math.round(l*d)/d+"";var c=q.indexOf("."),m,o;if(c<0){m=b;o=(Math.pow(10,m)+"").substring(1);if(b>0){q=q+"."+o;}}else{m=b-(q.length-c-1);o=(Math.pow(10,m)+"").substring(1);q=q+o;}}else{q=l.toFixed(b)+"";}}p=q.split(/\D/);if(l>=1000){g=p[0].length%3||3;p[0]=p[0].slice(0,g)+p[0].slice(g).replace(/(\d{3})/g,r+"$1");}return YAHOO.util.Number.format._applyFormat((e<0?f:k.format),p.join(k.decimalSeparator),k);}};YAHOO.util.Number.format.defaults={format:"{prefix}{number}{suffix}",negativeFormat:null,decimalSeparator:".",decimalPlaces:null,thousandsSeparator:""};YAHOO.util.Number.format._applyFormat=function(a,b,c){return a.replace(/\{(\w+)\}/g,function(d,e){return e==="number"?b:e in c?c[e]:"";});};(function(){var a=function(c,e,d){if(typeof d==="undefined"){d=10;}for(;parseInt(c,10)<d&&d>1;d/=10){c=e.toString()+c;}return c.toString();};var b={formats:{a:function(e,c){return c.a[e.getDay()];},A:function(e,c){return c.A[e.getDay()];},b:function(e,c){return c.b[e.getMonth()];},B:function(e,c){return c.B[e.getMonth()];},C:function(c){return a(parseInt(c.getFullYear()/100,10),0);},d:["getDate","0"],e:["getDate"," "],g:function(c){return a(parseInt(b.formats.G(c)%100,10),0);},G:function(f){var g=f.getFullYear();var e=parseInt(b.formats.V(f),10);var c=parseInt(b.formats.W(f),10);if(c>e){g++;}else{if(c===0&&e>=52){g--;}}return g;},H:["getHours","0"],I:function(e){var c=e.getHours()%12;return a(c===0?12:c,0);},j:function(h){var g=new Date(""+h.getFullYear()+"/1/1 GMT");var e=new Date(""+h.getFullYear()+"/"+(h.getMonth()+1)+"/"+h.getDate()+" GMT");var c=e-g;var f=parseInt(c/60000/60/24,10)+1;return a(f,0,100);},k:["getHours"," "],l:function(e){var c=e.getHours()%12;return a(c===0?12:c," ");},m:function(c){return a(c.getMonth()+1,0);},M:["getMinutes","0"],p:function(e,c){return c.p[e.getHours()>=12?1:0];},P:function(e,c){return c.P[e.getHours()>=12?1:0];},s:function(e,c){return parseInt(e.getTime()/1000,10);},S:["getSeconds","0"],u:function(c){var e=c.getDay();return e===0?7:e;},U:function(g){var c=parseInt(b.formats.j(g),10);var f=6-g.getDay();var e=parseInt((c+f)/7,10);return a(e,0);},V:function(g){var f=parseInt(b.formats.W(g),10);var c=(new Date(""+g.getFullYear()+"/1/1")).getDay();var e=f+(c>4||c<=1?0:1);if(e===53&&(new Date(""+g.getFullYear()+"/12/31")).getDay()<4){e=1;}else{if(e===0){e=b.formats.V(new Date(""+(g.getFullYear()-1)+"/12/31"));}}return a(e,0);},w:"getDay",W:function(g){var c=parseInt(b.formats.j(g),10);var f=7-b.formats.u(g);var e=parseInt((c+f)/7,10); | |||
|
50 | return a(e,0,10);},y:function(c){return a(c.getFullYear()%100,0);},Y:"getFullYear",z:function(f){var e=f.getTimezoneOffset();var c=a(parseInt(Math.abs(e/60),10),0);var g=a(Math.abs(e%60),0);return(e>0?"-":"+")+c+g;},Z:function(c){var e=c.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/,"$2").replace(/[a-z ]/g,"");if(e.length>4){e=b.formats.z(c);}return e;},"%":function(c){return"%";}},aggregates:{c:"locale",D:"%m/%d/%y",F:"%Y-%m-%d",h:"%b",n:"\n",r:"locale",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},format:function(g,f,d){f=f||{};if(!(g instanceof Date)){return YAHOO.lang.isValue(g)?g:"";}var h=f.format||"%m/%d/%Y";if(h==="YYYY/MM/DD"){h="%Y/%m/%d";}else{if(h==="DD/MM/YYYY"){h="%d/%m/%Y";}else{if(h==="MM/DD/YYYY"){h="%m/%d/%Y";}}}d=d||"en";if(!(d in YAHOO.util.DateLocale)){if(d.replace(/-[a-zA-Z]+$/,"") in YAHOO.util.DateLocale){d=d.replace(/-[a-zA-Z]+$/,"");}else{d="en";}}var j=YAHOO.util.DateLocale[d];var c=function(l,k){var m=b.aggregates[k];return(m==="locale"?j[k]:m);};var e=function(l,k){var m=b.formats[k];if(typeof m==="string"){return g[m]();}else{if(typeof m==="function"){return m.call(g,g,j);}else{if(typeof m==="object"&&typeof m[0]==="string"){return a(g[m[0]](),m[1]);}else{return k;}}}};while(h.match(/%[cDFhnrRtTxX]/)){h=h.replace(/%([cDFhnrRtTxX])/g,c);}var i=h.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g,e);c=e=undefined;return i;}};YAHOO.namespace("YAHOO.util");YAHOO.util.Date=b;YAHOO.util.DateLocale={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],r:"%I:%M:%S %p",x:"%d/%m/%y",X:"%T"};YAHOO.util.DateLocale["en"]=YAHOO.lang.merge(YAHOO.util.DateLocale,{});YAHOO.util.DateLocale["en-US"]=YAHOO.lang.merge(YAHOO.util.DateLocale["en"],{c:"%a %d %b %Y %I:%M:%S %p %Z",x:"%m/%d/%Y",X:"%I:%M:%S %p"});YAHOO.util.DateLocale["en-GB"]=YAHOO.lang.merge(YAHOO.util.DateLocale["en"],{r:"%l:%M:%S %P %Z"});YAHOO.util.DateLocale["en-AU"]=YAHOO.lang.merge(YAHOO.util.DateLocale["en"]);})();YAHOO.register("datasource",YAHOO.util.DataSource,{version:"2.9.0",build:"2800"});/* | |||
|
51 | Copyright (c) 2011, Yahoo! Inc. All rights reserved. | |||
|
52 | Code licensed under the BSD License: | |||
|
53 | http://developer.yahoo.com/yui/license.html | |||
|
54 | version: 2.9.0 | |||
|
55 | */ | |||
|
56 | YAHOO.widget.DS_JSArray=YAHOO.util.LocalDataSource;YAHOO.widget.DS_JSFunction=YAHOO.util.FunctionDataSource;YAHOO.widget.DS_XHR=function(b,a,d){var c=new YAHOO.util.XHRDataSource(b,d);c._aDeprecatedSchema=a;return c;};YAHOO.widget.DS_ScriptNode=function(b,a,d){var c=new YAHOO.util.ScriptNodeDataSource(b,d);c._aDeprecatedSchema=a;return c;};YAHOO.widget.DS_XHR.TYPE_JSON=YAHOO.util.DataSourceBase.TYPE_JSON;YAHOO.widget.DS_XHR.TYPE_XML=YAHOO.util.DataSourceBase.TYPE_XML;YAHOO.widget.DS_XHR.TYPE_FLAT=YAHOO.util.DataSourceBase.TYPE_TEXT;YAHOO.widget.AutoComplete=function(g,b,j,c){if(g&&b&&j){if(j&&YAHOO.lang.isFunction(j.sendRequest)){this.dataSource=j;}else{return;}this.key=0;var d=j.responseSchema;if(j._aDeprecatedSchema){var k=j._aDeprecatedSchema;if(YAHOO.lang.isArray(k)){if((j.responseType===YAHOO.util.DataSourceBase.TYPE_JSON)||(j.responseType===YAHOO.util.DataSourceBase.TYPE_UNKNOWN)){d.resultsList=k[0];this.key=k[1];d.fields=(k.length<3)?null:k.slice(1);}else{if(j.responseType===YAHOO.util.DataSourceBase.TYPE_XML){d.resultNode=k[0];this.key=k[1];d.fields=k.slice(1);}else{if(j.responseType===YAHOO.util.DataSourceBase.TYPE_TEXT){d.recordDelim=k[0];d.fieldDelim=k[1];}}}j.responseSchema=d;}}if(YAHOO.util.Dom.inDocument(g)){if(YAHOO.lang.isString(g)){this._sName="instance"+YAHOO.widget.AutoComplete._nIndex+" "+g;this._elTextbox=document.getElementById(g);}else{this._sName=(g.id)?"instance"+YAHOO.widget.AutoComplete._nIndex+" "+g.id:"instance"+YAHOO.widget.AutoComplete._nIndex;this._elTextbox=g;}YAHOO.util.Dom.addClass(this._elTextbox,"yui-ac-input");}else{return;}if(YAHOO.util.Dom.inDocument(b)){if(YAHOO.lang.isString(b)){this._elContainer=document.getElementById(b);}else{this._elContainer=b;}if(this._elContainer.style.display=="none"){}var e=this._elContainer.parentNode;var a=e.tagName.toLowerCase();if(a=="div"){YAHOO.util.Dom.addClass(e,"yui-ac");}else{}}else{return;}if(this.dataSource.dataType===YAHOO.util.DataSourceBase.TYPE_LOCAL){this.applyLocalFilter=true;}if(c&&(c.constructor==Object)){for(var i in c){if(i){this[i]=c[i];}}}this._initContainerEl();this._initProps();this._initListEl();this._initContainerHelperEls();var h=this;var f=this._elTextbox;YAHOO.util.Event.addListener(f,"keyup",h._onTextboxKeyUp,h);YAHOO.util.Event.addListener(f,"keydown",h._onTextboxKeyDown,h);YAHOO.util.Event.addListener(f,"focus",h._onTextboxFocus,h);YAHOO.util.Event.addListener(f,"blur",h._onTextboxBlur,h);YAHOO.util.Event.addListener(b,"mouseover",h._onContainerMouseover,h);YAHOO.util.Event.addListener(b,"mouseout",h._onContainerMouseout,h);YAHOO.util.Event.addListener(b,"click",h._onContainerClick,h);YAHOO.util.Event.addListener(b,"scroll",h._onContainerScroll,h);YAHOO.util.Event.addListener(b,"resize",h._onContainerResize,h);YAHOO.util.Event.addListener(f,"keypress",h._onTextboxKeyPress,h);YAHOO.util.Event.addListener(window,"unload",h._onWindowUnload,h);this.textboxFocusEvent=new YAHOO.util.CustomEvent("textboxFocus",this);this.textboxKeyEvent=new YAHOO.util.CustomEvent("textboxKey",this);this.dataRequestEvent=new YAHOO.util.CustomEvent("dataRequest",this);this.dataRequestCancelEvent=new YAHOO.util.CustomEvent("dataRequestCancel",this);this.dataReturnEvent=new YAHOO.util.CustomEvent("dataReturn",this);this.dataErrorEvent=new YAHOO.util.CustomEvent("dataError",this);this.containerPopulateEvent=new YAHOO.util.CustomEvent("containerPopulate",this);this.containerExpandEvent=new YAHOO.util.CustomEvent("containerExpand",this);this.typeAheadEvent=new YAHOO.util.CustomEvent("typeAhead",this);this.itemMouseOverEvent=new YAHOO.util.CustomEvent("itemMouseOver",this);this.itemMouseOutEvent=new YAHOO.util.CustomEvent("itemMouseOut",this);this.itemArrowToEvent=new YAHOO.util.CustomEvent("itemArrowTo",this);this.itemArrowFromEvent=new YAHOO.util.CustomEvent("itemArrowFrom",this);this.itemSelectEvent=new YAHOO.util.CustomEvent("itemSelect",this);this.unmatchedItemSelectEvent=new YAHOO.util.CustomEvent("unmatchedItemSelect",this);this.selectionEnforceEvent=new YAHOO.util.CustomEvent("selectionEnforce",this);this.containerCollapseEvent=new YAHOO.util.CustomEvent("containerCollapse",this);this.textboxBlurEvent=new YAHOO.util.CustomEvent("textboxBlur",this);this.textboxChangeEvent=new YAHOO.util.CustomEvent("textboxChange",this);f.setAttribute("autocomplete","off");YAHOO.widget.AutoComplete._nIndex++;}else{}};YAHOO.widget.AutoComplete.prototype.dataSource=null;YAHOO.widget.AutoComplete.prototype.applyLocalFilter=null;YAHOO.widget.AutoComplete.prototype.queryMatchCase=false;YAHOO.widget.AutoComplete.prototype.queryMatchContains=false;YAHOO.widget.AutoComplete.prototype.queryMatchSubset=false;YAHOO.widget.AutoComplete.prototype.minQueryLength=1;YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed=10;YAHOO.widget.AutoComplete.prototype.queryDelay=0.2;YAHOO.widget.AutoComplete.prototype.typeAheadDelay=0.5;YAHOO.widget.AutoComplete.prototype.queryInterval=500;YAHOO.widget.AutoComplete.prototype.highlightClassName="yui-ac-highlight";YAHOO.widget.AutoComplete.prototype.prehighlightClassName=null;YAHOO.widget.AutoComplete.prototype.delimChar=null;YAHOO.widget.AutoComplete.prototype.autoHighlight=true;YAHOO.widget.AutoComplete.prototype.typeAhead=false;YAHOO.widget.AutoComplete.prototype.animHoriz=false;YAHOO.widget.AutoComplete.prototype.animVert=true;YAHOO.widget.AutoComplete.prototype.animSpeed=0.3;YAHOO.widget.AutoComplete.prototype.forceSelection=false;YAHOO.widget.AutoComplete.prototype.allowBrowserAutocomplete=true;YAHOO.widget.AutoComplete.prototype.alwaysShowContainer=false;YAHOO.widget.AutoComplete.prototype.useIFrame=false;YAHOO.widget.AutoComplete.prototype.useShadow=false;YAHOO.widget.AutoComplete.prototype.suppressInputUpdate=false;YAHOO.widget.AutoComplete.prototype.resultTypeList=true;YAHOO.widget.AutoComplete.prototype.queryQuestionMark=true;YAHOO.widget.AutoComplete.prototype.autoSnapContainer=true;YAHOO.widget.AutoComplete.prototype.toString=function(){return"AutoComplete "+this._sName;};YAHOO.widget.AutoComplete.prototype.getInputEl=function(){return this._elTextbox; | |||
|
57 | };YAHOO.widget.AutoComplete.prototype.getContainerEl=function(){return this._elContainer;};YAHOO.widget.AutoComplete.prototype.isFocused=function(){return this._bFocused;};YAHOO.widget.AutoComplete.prototype.isContainerOpen=function(){return this._bContainerOpen;};YAHOO.widget.AutoComplete.prototype.getListEl=function(){return this._elList;};YAHOO.widget.AutoComplete.prototype.getListItemMatch=function(a){if(a._sResultMatch){return a._sResultMatch;}else{return null;}};YAHOO.widget.AutoComplete.prototype.getListItemData=function(a){if(a._oResultData){return a._oResultData;}else{return null;}};YAHOO.widget.AutoComplete.prototype.getListItemIndex=function(a){if(YAHOO.lang.isNumber(a._nItemIndex)){return a._nItemIndex;}else{return null;}};YAHOO.widget.AutoComplete.prototype.setHeader=function(b){if(this._elHeader){var a=this._elHeader;if(b){a.innerHTML=b;a.style.display="";}else{a.innerHTML="";a.style.display="none";}}};YAHOO.widget.AutoComplete.prototype.setFooter=function(b){if(this._elFooter){var a=this._elFooter;if(b){a.innerHTML=b;a.style.display="";}else{a.innerHTML="";a.style.display="none";}}};YAHOO.widget.AutoComplete.prototype.setBody=function(a){if(this._elBody){var b=this._elBody;YAHOO.util.Event.purgeElement(b,true);if(a){b.innerHTML=a;b.style.display="";}else{b.innerHTML="";b.style.display="none";}this._elList=null;}};YAHOO.widget.AutoComplete.prototype.generateRequest=function(b){var a=this.dataSource.dataType;if(a===YAHOO.util.DataSourceBase.TYPE_XHR){if(!this.dataSource.connMethodPost){b=(this.queryQuestionMark?"?":"")+(this.dataSource.scriptQueryParam||"query")+"="+b+(this.dataSource.scriptQueryAppend?("&"+this.dataSource.scriptQueryAppend):"");}else{b=(this.dataSource.scriptQueryParam||"query")+"="+b+(this.dataSource.scriptQueryAppend?("&"+this.dataSource.scriptQueryAppend):"");}}else{if(a===YAHOO.util.DataSourceBase.TYPE_SCRIPTNODE){b="&"+(this.dataSource.scriptQueryParam||"query")+"="+b+(this.dataSource.scriptQueryAppend?("&"+this.dataSource.scriptQueryAppend):"");}}return b;};YAHOO.widget.AutoComplete.prototype.sendQuery=function(b){this._bFocused=true;var a=(this.delimChar)?this._elTextbox.value+b:b;this._sendQuery(a);};YAHOO.widget.AutoComplete.prototype.snapContainer=function(){var a=this._elTextbox,b=YAHOO.util.Dom.getXY(a);b[1]+=YAHOO.util.Dom.get(a).offsetHeight+2;YAHOO.util.Dom.setXY(this._elContainer,b);};YAHOO.widget.AutoComplete.prototype.expandContainer=function(){this._toggleContainer(true);};YAHOO.widget.AutoComplete.prototype.collapseContainer=function(){this._toggleContainer(false);};YAHOO.widget.AutoComplete.prototype.clearList=function(){var b=this._elList.childNodes,a=b.length-1;for(;a>-1;a--){b[a].style.display="none";}};YAHOO.widget.AutoComplete.prototype.getSubsetMatches=function(e){var d,c,a;for(var b=e.length;b>=this.minQueryLength;b--){a=this.generateRequest(e.substr(0,b));this.dataRequestEvent.fire(this,d,a);c=this.dataSource.getCachedResponse(a);if(c){return this.filterResults.apply(this.dataSource,[e,c,c,{scope:this}]);}}return null;};YAHOO.widget.AutoComplete.prototype.preparseRawResponse=function(c,b,a){var d=((this.responseStripAfter!=="")&&(b.indexOf))?b.indexOf(this.responseStripAfter):-1;if(d!=-1){b=b.substring(0,d);}return b;};YAHOO.widget.AutoComplete.prototype.filterResults=function(l,n,r,m){if(m&&m.argument&&YAHOO.lang.isValue(m.argument.query)){l=m.argument.query;}if(l&&l!==""){r=YAHOO.widget.AutoComplete._cloneObject(r);var j=m.scope,q=this,c=r.results,o=[],b=j.maxResultsDisplayed,k=(q.queryMatchCase||j.queryMatchCase),a=(q.queryMatchContains||j.queryMatchContains);for(var d=0,h=c.length;d<h;d++){var f=c[d];var e=null;if(YAHOO.lang.isString(f)){e=f;}else{if(YAHOO.lang.isArray(f)){e=f[0];}else{if(this.responseSchema.fields){var p=this.responseSchema.fields[0].key||this.responseSchema.fields[0];e=f[p];}else{if(this.key){e=f[this.key];}}}}if(YAHOO.lang.isString(e)){var g=(k)?e.indexOf(decodeURIComponent(l)):e.toLowerCase().indexOf(decodeURIComponent(l).toLowerCase());if((!a&&(g===0))||(a&&(g>-1))){o.push(f);}}if(h>b&&o.length===b){break;}}r.results=o;}else{}return r;};YAHOO.widget.AutoComplete.prototype.handleResponse=function(c,a,b){if((this instanceof YAHOO.widget.AutoComplete)&&this._sName){this._populateList(c,a,b);}};YAHOO.widget.AutoComplete.prototype.doBeforeLoadData=function(c,a,b){return true;};YAHOO.widget.AutoComplete.prototype.formatResult=function(b,d,a){var c=(a)?a:"";return c;};YAHOO.widget.AutoComplete.prototype.formatEscapedResult=function(c,d,b){var a=(b)?b:"";return YAHOO.lang.escapeHTML(a);};YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer=function(d,a,c,b){return true;};YAHOO.widget.AutoComplete.prototype.destroy=function(){var b=this.toString();var a=this._elTextbox;var d=this._elContainer;this.textboxFocusEvent.unsubscribeAll();this.textboxKeyEvent.unsubscribeAll();this.dataRequestEvent.unsubscribeAll();this.dataReturnEvent.unsubscribeAll();this.dataErrorEvent.unsubscribeAll();this.containerPopulateEvent.unsubscribeAll();this.containerExpandEvent.unsubscribeAll();this.typeAheadEvent.unsubscribeAll();this.itemMouseOverEvent.unsubscribeAll();this.itemMouseOutEvent.unsubscribeAll();this.itemArrowToEvent.unsubscribeAll();this.itemArrowFromEvent.unsubscribeAll();this.itemSelectEvent.unsubscribeAll();this.unmatchedItemSelectEvent.unsubscribeAll();this.selectionEnforceEvent.unsubscribeAll();this.containerCollapseEvent.unsubscribeAll();this.textboxBlurEvent.unsubscribeAll();this.textboxChangeEvent.unsubscribeAll();YAHOO.util.Event.purgeElement(a,true);YAHOO.util.Event.purgeElement(d,true);d.innerHTML="";for(var c in this){if(YAHOO.lang.hasOwnProperty(this,c)){this[c]=null;}}};YAHOO.widget.AutoComplete.prototype.textboxFocusEvent=null;YAHOO.widget.AutoComplete.prototype.textboxKeyEvent=null;YAHOO.widget.AutoComplete.prototype.dataRequestEvent=null;YAHOO.widget.AutoComplete.prototype.dataRequestCancelEvent=null;YAHOO.widget.AutoComplete.prototype.dataReturnEvent=null;YAHOO.widget.AutoComplete.prototype.dataErrorEvent=null; | |||
|
58 | YAHOO.widget.AutoComplete.prototype.containerPopulateEvent=null;YAHOO.widget.AutoComplete.prototype.containerExpandEvent=null;YAHOO.widget.AutoComplete.prototype.typeAheadEvent=null;YAHOO.widget.AutoComplete.prototype.itemMouseOverEvent=null;YAHOO.widget.AutoComplete.prototype.itemMouseOutEvent=null;YAHOO.widget.AutoComplete.prototype.itemArrowToEvent=null;YAHOO.widget.AutoComplete.prototype.itemArrowFromEvent=null;YAHOO.widget.AutoComplete.prototype.itemSelectEvent=null;YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent=null;YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent=null;YAHOO.widget.AutoComplete.prototype.containerCollapseEvent=null;YAHOO.widget.AutoComplete.prototype.textboxBlurEvent=null;YAHOO.widget.AutoComplete.prototype.textboxChangeEvent=null;YAHOO.widget.AutoComplete._nIndex=0;YAHOO.widget.AutoComplete.prototype._sName=null;YAHOO.widget.AutoComplete.prototype._elTextbox=null;YAHOO.widget.AutoComplete.prototype._elContainer=null;YAHOO.widget.AutoComplete.prototype._elContent=null;YAHOO.widget.AutoComplete.prototype._elHeader=null;YAHOO.widget.AutoComplete.prototype._elBody=null;YAHOO.widget.AutoComplete.prototype._elFooter=null;YAHOO.widget.AutoComplete.prototype._elShadow=null;YAHOO.widget.AutoComplete.prototype._elIFrame=null;YAHOO.widget.AutoComplete.prototype._bFocused=false;YAHOO.widget.AutoComplete.prototype._oAnim=null;YAHOO.widget.AutoComplete.prototype._bContainerOpen=false;YAHOO.widget.AutoComplete.prototype._bOverContainer=false;YAHOO.widget.AutoComplete.prototype._elList=null;YAHOO.widget.AutoComplete.prototype._nDisplayedItems=0;YAHOO.widget.AutoComplete.prototype._sCurQuery=null;YAHOO.widget.AutoComplete.prototype._sPastSelections="";YAHOO.widget.AutoComplete.prototype._sInitInputValue=null;YAHOO.widget.AutoComplete.prototype._elCurListItem=null;YAHOO.widget.AutoComplete.prototype._elCurPrehighlightItem=null;YAHOO.widget.AutoComplete.prototype._bItemSelected=false;YAHOO.widget.AutoComplete.prototype._nKeyCode=null;YAHOO.widget.AutoComplete.prototype._nDelayID=-1;YAHOO.widget.AutoComplete.prototype._nTypeAheadDelayID=-1;YAHOO.widget.AutoComplete.prototype._iFrameSrc="javascript:false;";YAHOO.widget.AutoComplete.prototype._queryInterval=null;YAHOO.widget.AutoComplete.prototype._sLastTextboxValue=null;YAHOO.widget.AutoComplete.prototype._initProps=function(){var b=this.minQueryLength;if(!YAHOO.lang.isNumber(b)){this.minQueryLength=1;}var e=this.maxResultsDisplayed;if(!YAHOO.lang.isNumber(e)||(e<1)){this.maxResultsDisplayed=10;}var f=this.queryDelay;if(!YAHOO.lang.isNumber(f)||(f<0)){this.queryDelay=0.2;}var c=this.typeAheadDelay;if(!YAHOO.lang.isNumber(c)||(c<0)){this.typeAheadDelay=0.2;}var a=this.delimChar;if(YAHOO.lang.isString(a)&&(a.length>0)){this.delimChar=[a];}else{if(!YAHOO.lang.isArray(a)){this.delimChar=null;}}var d=this.animSpeed;if((this.animHoriz||this.animVert)&&YAHOO.util.Anim){if(!YAHOO.lang.isNumber(d)||(d<0)){this.animSpeed=0.3;}if(!this._oAnim){this._oAnim=new YAHOO.util.Anim(this._elContent,{},this.animSpeed);}else{this._oAnim.duration=this.animSpeed;}}if(this.forceSelection&&a){}};YAHOO.widget.AutoComplete.prototype._initContainerHelperEls=function(){if(this.useShadow&&!this._elShadow){var a=document.createElement("div");a.className="yui-ac-shadow";a.style.width=0;a.style.height=0;this._elShadow=this._elContainer.appendChild(a);}if(this.useIFrame&&!this._elIFrame){var b=document.createElement("iframe");b.src=this._iFrameSrc;b.frameBorder=0;b.scrolling="no";b.style.position="absolute";b.style.width=0;b.style.height=0;b.style.padding=0;b.tabIndex=-1;b.role="presentation";b.title="Presentational iframe shim";this._elIFrame=this._elContainer.appendChild(b);}};YAHOO.widget.AutoComplete.prototype._initContainerEl=function(){YAHOO.util.Dom.addClass(this._elContainer,"yui-ac-container");if(!this._elContent){var c=document.createElement("div");c.className="yui-ac-content";c.style.display="none";this._elContent=this._elContainer.appendChild(c);var b=document.createElement("div");b.className="yui-ac-hd";b.style.display="none";this._elHeader=this._elContent.appendChild(b);var d=document.createElement("div");d.className="yui-ac-bd";this._elBody=this._elContent.appendChild(d);var a=document.createElement("div");a.className="yui-ac-ft";a.style.display="none";this._elFooter=this._elContent.appendChild(a);}else{}};YAHOO.widget.AutoComplete.prototype._initListEl=function(){var c=this.maxResultsDisplayed,a=this._elList||document.createElement("ul"),b;while(a.childNodes.length<c){b=document.createElement("li");b.style.display="none";b._nItemIndex=a.childNodes.length;a.appendChild(b);}if(!this._elList){var d=this._elBody;YAHOO.util.Event.purgeElement(d,true);d.innerHTML="";this._elList=d.appendChild(a);}this._elBody.style.display="";};YAHOO.widget.AutoComplete.prototype._focus=function(){var a=this;setTimeout(function(){try{a._elTextbox.focus();}catch(b){}},0);};YAHOO.widget.AutoComplete.prototype._enableIntervalDetection=function(){var a=this;if(!a._queryInterval&&a.queryInterval){a._queryInterval=setInterval(function(){a._onInterval();},a.queryInterval);}};YAHOO.widget.AutoComplete.prototype.enableIntervalDetection=YAHOO.widget.AutoComplete.prototype._enableIntervalDetection;YAHOO.widget.AutoComplete.prototype._onInterval=function(){var a=this._elTextbox.value;var b=this._sLastTextboxValue;if(a!=b){this._sLastTextboxValue=a;this._sendQuery(a);}};YAHOO.widget.AutoComplete.prototype._clearInterval=function(){if(this._queryInterval){clearInterval(this._queryInterval);this._queryInterval=null;}};YAHOO.widget.AutoComplete.prototype._isIgnoreKey=function(a){if((a==9)||(a==13)||(a==16)||(a==17)||(a>=18&&a<=20)||(a==27)||(a>=33&&a<=35)||(a>=36&&a<=40)||(a>=44&&a<=45)||(a==229)){return true;}return false;};YAHOO.widget.AutoComplete.prototype._sendQuery=function(d){if(this.minQueryLength<0){this._toggleContainer(false);return;}if(this.delimChar){var a=this._extractQuery(d);d=a.query;this._sPastSelections=a.previous;}if((d&&(d.length<this.minQueryLength))||(!d&&this.minQueryLength>0)){if(this._nDelayID!=-1){clearTimeout(this._nDelayID); | |||
|
59 | }this._toggleContainer(false);return;}d=encodeURIComponent(d);this._nDelayID=-1;if(this.dataSource.queryMatchSubset||this.queryMatchSubset){var c=this.getSubsetMatches(d);if(c){this.handleResponse(d,c,{query:d});return;}}if(this.dataSource.responseStripAfter){this.dataSource.doBeforeParseData=this.preparseRawResponse;}if(this.applyLocalFilter){this.dataSource.doBeforeCallback=this.filterResults;}var b=this.generateRequest(d);if(b!==undefined){this.dataRequestEvent.fire(this,d,b);this.dataSource.sendRequest(b,{success:this.handleResponse,failure:this.handleResponse,scope:this,argument:{query:d}});}else{this.dataRequestCancelEvent.fire(this,d);}};YAHOO.widget.AutoComplete.prototype._populateListItem=function(b,a,c){b.innerHTML=this.formatResult(a,c,b._sResultMatch);};YAHOO.widget.AutoComplete.prototype._populateList=function(n,f,c){if(this._nTypeAheadDelayID!=-1){clearTimeout(this._nTypeAheadDelayID);}n=(c&&c.query)?c.query:n;var h=this.doBeforeLoadData(n,f,c);if(h&&!f.error){this.dataReturnEvent.fire(this,n,f.results);if(this._bFocused){var p=decodeURIComponent(n);this._sCurQuery=p;this._bItemSelected=false;var u=f.results,a=Math.min(u.length,this.maxResultsDisplayed),m=(this.dataSource.responseSchema.fields)?(this.dataSource.responseSchema.fields[0].key||this.dataSource.responseSchema.fields[0]):0;if(a>0){if(!this._elList||(this._elList.childNodes.length<a)){this._initListEl();}this._initContainerHelperEls();var l=this._elList.childNodes;for(var t=a-1;t>=0;t--){var s=l[t],e=u[t];if(this.resultTypeList){var b=[];b[0]=(YAHOO.lang.isString(e))?e:e[m]||e[this.key];var o=this.dataSource.responseSchema.fields;if(YAHOO.lang.isArray(o)&&(o.length>1)){for(var q=1,v=o.length;q<v;q++){b[b.length]=e[o[q].key||o[q]];}}else{if(YAHOO.lang.isArray(e)){b=e;}else{if(YAHOO.lang.isString(e)){b=[e];}else{b[1]=e;}}}e=b;}s._sResultMatch=(YAHOO.lang.isString(e))?e:(YAHOO.lang.isArray(e))?e[0]:(e[m]||"");s._oResultData=e;this._populateListItem(s,e,p);s.style.display="";}if(a<l.length){var g;for(var r=l.length-1;r>=a;r--){g=l[r];g.style.display="none";}}this._nDisplayedItems=a;this.containerPopulateEvent.fire(this,n,u);if(this.autoHighlight){var d=this._elList.firstChild;this._toggleHighlight(d,"to");this.itemArrowToEvent.fire(this,d);this._typeAhead(d,n);}else{this._toggleHighlight(this._elCurListItem,"from");}h=this._doBeforeExpandContainer(this._elTextbox,this._elContainer,n,u);this._toggleContainer(h);}else{this._toggleContainer(false);}return;}}else{this.dataErrorEvent.fire(this,n,f);}};YAHOO.widget.AutoComplete.prototype._doBeforeExpandContainer=function(d,a,c,b){if(this.autoSnapContainer){this.snapContainer();}return this.doBeforeExpandContainer(d,a,c,b);};YAHOO.widget.AutoComplete.prototype._clearSelection=function(){var a=(this.delimChar)?this._extractQuery(this._elTextbox.value):{previous:"",query:this._elTextbox.value};this._elTextbox.value=a.previous;this.selectionEnforceEvent.fire(this,a.query);};YAHOO.widget.AutoComplete.prototype._textMatchesOption=function(){var a=null;for(var b=0;b<this._nDisplayedItems;b++){var c=this._elList.childNodes[b];var d=(""+c._sResultMatch).toLowerCase();if(d==this._sCurQuery.toLowerCase()){a=c;break;}}return(a);};YAHOO.widget.AutoComplete.prototype._typeAhead=function(b,d){if(!this.typeAhead||(this._nKeyCode==8)){return;}var a=this,c=this._elTextbox;if(c.setSelectionRange||c.createTextRange){this._nTypeAheadDelayID=setTimeout(function(){var f=c.value.length;a._updateValue(b);var g=c.value.length;a._selectText(c,f,g);var e=c.value.substr(f,g);a._sCurQuery=b._sResultMatch;a.typeAheadEvent.fire(a,d,e);},(this.typeAheadDelay*1000));}};YAHOO.widget.AutoComplete.prototype._selectText=function(d,a,b){if(d.setSelectionRange){d.setSelectionRange(a,b);}else{if(d.createTextRange){var c=d.createTextRange();c.moveStart("character",a);c.moveEnd("character",b-d.value.length);c.select();}else{d.select();}}};YAHOO.widget.AutoComplete.prototype._extractQuery=function(h){var c=this.delimChar,f=-1,g,e,b=c.length-1,d;for(;b>=0;b--){g=h.lastIndexOf(c[b]);if(g>f){f=g;}}if(c[b]==" "){for(var a=c.length-1;a>=0;a--){if(h[f-1]==c[a]){f--;break;}}}if(f>-1){e=f+1;while(h.charAt(e)==" "){e+=1;}d=h.substring(0,e);h=h.substr(e);}else{d="";}return{previous:d,query:h};};YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers=function(d){var e=this._elContent.offsetWidth+"px";var b=this._elContent.offsetHeight+"px";if(this.useIFrame&&this._elIFrame){var c=this._elIFrame;if(d){c.style.width=e;c.style.height=b;c.style.padding="";}else{c.style.width=0;c.style.height=0;c.style.padding=0;}}if(this.useShadow&&this._elShadow){var a=this._elShadow;if(d){a.style.width=e;a.style.height=b;}else{a.style.width=0;a.style.height=0;}}};YAHOO.widget.AutoComplete.prototype._toggleContainer=function(i){var d=this._elContainer;if(this.alwaysShowContainer&&this._bContainerOpen){return;}if(!i){this._toggleHighlight(this._elCurListItem,"from");this._nDisplayedItems=0;this._sCurQuery=null;if(this._elContent.style.display=="none"){return;}}var a=this._oAnim;if(a&&a.getEl()&&(this.animHoriz||this.animVert)){if(a.isAnimated()){a.stop(true);}var g=this._elContent.cloneNode(true);d.appendChild(g);g.style.top="-9000px";g.style.width="";g.style.height="";g.style.display="";var f=g.offsetWidth;var c=g.offsetHeight;var b=(this.animHoriz)?0:f;var e=(this.animVert)?0:c;a.attributes=(i)?{width:{to:f},height:{to:c}}:{width:{to:b},height:{to:e}};if(i&&!this._bContainerOpen){this._elContent.style.width=b+"px";this._elContent.style.height=e+"px";}else{this._elContent.style.width=f+"px";this._elContent.style.height=c+"px";}d.removeChild(g);g=null;var h=this;var j=function(){a.onComplete.unsubscribeAll();if(i){h._toggleContainerHelpers(true);h._bContainerOpen=i;h.containerExpandEvent.fire(h);}else{h._elContent.style.display="none";h._bContainerOpen=i;h.containerCollapseEvent.fire(h);}};this._toggleContainerHelpers(false);this._elContent.style.display="";a.onComplete.subscribe(j);a.animate();}else{if(i){this._elContent.style.display="";this._toggleContainerHelpers(true); | |||
|
60 | this._bContainerOpen=i;this.containerExpandEvent.fire(this);}else{this._toggleContainerHelpers(false);this._elContent.style.display="none";this._bContainerOpen=i;this.containerCollapseEvent.fire(this);}}};YAHOO.widget.AutoComplete.prototype._toggleHighlight=function(a,c){if(a){var b=this.highlightClassName;if(this._elCurListItem){YAHOO.util.Dom.removeClass(this._elCurListItem,b);this._elCurListItem=null;}if((c=="to")&&b){YAHOO.util.Dom.addClass(a,b);this._elCurListItem=a;}}};YAHOO.widget.AutoComplete.prototype._togglePrehighlight=function(b,c){var a=this.prehighlightClassName;if(this._elCurPrehighlightItem){YAHOO.util.Dom.removeClass(this._elCurPrehighlightItem,a);}if(b==this._elCurListItem){return;}if((c=="mouseover")&&a){YAHOO.util.Dom.addClass(b,a);this._elCurPrehighlightItem=b;}else{YAHOO.util.Dom.removeClass(b,a);}};YAHOO.widget.AutoComplete.prototype._updateValue=function(c){if(!this.suppressInputUpdate){var f=this._elTextbox;var e=(this.delimChar)?(this.delimChar[0]||this.delimChar):null;var b=c._sResultMatch;var d="";if(e){d=this._sPastSelections;d+=b+e;if(e!=" "){d+=" ";}}else{d=b;}f.value=d;if(f.type=="textarea"){f.scrollTop=f.scrollHeight;}var a=f.value.length;this._selectText(f,a,a);this._elCurListItem=c;}};YAHOO.widget.AutoComplete.prototype._selectItem=function(a){this._bItemSelected=true;this._updateValue(a);this._sPastSelections=this._elTextbox.value;this._clearInterval();this.itemSelectEvent.fire(this,a,a._oResultData);this._toggleContainer(false);};YAHOO.widget.AutoComplete.prototype._jumpSelection=function(){if(this._elCurListItem){this._selectItem(this._elCurListItem);}else{this._toggleContainer(false);}};YAHOO.widget.AutoComplete.prototype._moveSelection=function(g){if(this._bContainerOpen){var h=this._elCurListItem,d=-1;if(h){d=h._nItemIndex;}var e=(g==40)?(d+1):(d-1);if(e<-2||e>=this._nDisplayedItems){return;}if(h){this._toggleHighlight(h,"from");this.itemArrowFromEvent.fire(this,h);}if(e==-1){if(this.delimChar){this._elTextbox.value=this._sPastSelections+this._sCurQuery;}else{this._elTextbox.value=this._sCurQuery;}return;}if(e==-2){this._toggleContainer(false);return;}var f=this._elList.childNodes[e],b=this._elContent,c=YAHOO.util.Dom.getStyle(b,"overflow"),i=YAHOO.util.Dom.getStyle(b,"overflowY"),a=((c=="auto")||(c=="scroll")||(i=="auto")||(i=="scroll"));if(a&&(e>-1)&&(e<this._nDisplayedItems)){if(g==40){if((f.offsetTop+f.offsetHeight)>(b.scrollTop+b.offsetHeight)){b.scrollTop=(f.offsetTop+f.offsetHeight)-b.offsetHeight;}else{if((f.offsetTop+f.offsetHeight)<b.scrollTop){b.scrollTop=f.offsetTop;}}}else{if(f.offsetTop<b.scrollTop){this._elContent.scrollTop=f.offsetTop;}else{if(f.offsetTop>(b.scrollTop+b.offsetHeight)){this._elContent.scrollTop=(f.offsetTop+f.offsetHeight)-b.offsetHeight;}}}}this._toggleHighlight(f,"to");this.itemArrowToEvent.fire(this,f);if(this.typeAhead){this._updateValue(f);this._sCurQuery=f._sResultMatch;}}};YAHOO.widget.AutoComplete.prototype._onContainerMouseover=function(a,c){var d=YAHOO.util.Event.getTarget(a);var b=d.nodeName.toLowerCase();while(d&&(b!="table")){switch(b){case"body":return;case"li":if(c.prehighlightClassName){c._togglePrehighlight(d,"mouseover");}else{c._toggleHighlight(d,"to");}c.itemMouseOverEvent.fire(c,d);break;case"div":if(YAHOO.util.Dom.hasClass(d,"yui-ac-container")){c._bOverContainer=true;return;}break;default:break;}d=d.parentNode;if(d){b=d.nodeName.toLowerCase();}}};YAHOO.widget.AutoComplete.prototype._onContainerMouseout=function(a,c){var d=YAHOO.util.Event.getTarget(a);var b=d.nodeName.toLowerCase();while(d&&(b!="table")){switch(b){case"body":return;case"li":if(c.prehighlightClassName){c._togglePrehighlight(d,"mouseout");}else{c._toggleHighlight(d,"from");}c.itemMouseOutEvent.fire(c,d);break;case"ul":c._toggleHighlight(c._elCurListItem,"to");break;case"div":if(YAHOO.util.Dom.hasClass(d,"yui-ac-container")){c._bOverContainer=false;return;}break;default:break;}d=d.parentNode;if(d){b=d.nodeName.toLowerCase();}}};YAHOO.widget.AutoComplete.prototype._onContainerClick=function(a,c){var d=YAHOO.util.Event.getTarget(a);var b=d.nodeName.toLowerCase();while(d&&(b!="table")){switch(b){case"body":return;case"li":c._toggleHighlight(d,"to");c._selectItem(d);return;default:break;}d=d.parentNode;if(d){b=d.nodeName.toLowerCase();}}};YAHOO.widget.AutoComplete.prototype._onContainerScroll=function(a,b){b._focus();};YAHOO.widget.AutoComplete.prototype._onContainerResize=function(a,b){b._toggleContainerHelpers(b._bContainerOpen);};YAHOO.widget.AutoComplete.prototype._onTextboxKeyDown=function(a,b){var c=a.keyCode;if(b._nTypeAheadDelayID!=-1){clearTimeout(b._nTypeAheadDelayID);}switch(c){case 9:if(!YAHOO.env.ua.opera&&(navigator.userAgent.toLowerCase().indexOf("mac")==-1)||(YAHOO.env.ua.webkit>420)){if(b._elCurListItem){if(b.delimChar&&(b._nKeyCode!=c)){if(b._bContainerOpen){YAHOO.util.Event.stopEvent(a);}}b._selectItem(b._elCurListItem);}else{b._toggleContainer(false);}}break;case 13:if(!YAHOO.env.ua.opera&&(navigator.userAgent.toLowerCase().indexOf("mac")==-1)||(YAHOO.env.ua.webkit>420)){if(b._elCurListItem){if(b._nKeyCode!=c){if(b._bContainerOpen){YAHOO.util.Event.stopEvent(a);}}b._selectItem(b._elCurListItem);}else{b._toggleContainer(false);}}break;case 27:b._toggleContainer(false);return;case 39:b._jumpSelection();break;case 38:if(b._bContainerOpen){YAHOO.util.Event.stopEvent(a);b._moveSelection(c);}break;case 40:if(b._bContainerOpen){YAHOO.util.Event.stopEvent(a);b._moveSelection(c);}break;default:b._bItemSelected=false;b._toggleHighlight(b._elCurListItem,"from");b.textboxKeyEvent.fire(b,c);break;}if(c===18){b._enableIntervalDetection();}b._nKeyCode=c;};YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress=function(a,b){var c=a.keyCode;if(YAHOO.env.ua.opera||(navigator.userAgent.toLowerCase().indexOf("mac")!=-1)&&(YAHOO.env.ua.webkit<420)){switch(c){case 9:if(b._bContainerOpen){if(b.delimChar){YAHOO.util.Event.stopEvent(a);}if(b._elCurListItem){b._selectItem(b._elCurListItem);}else{b._toggleContainer(false);}}break;case 13:if(b._bContainerOpen){YAHOO.util.Event.stopEvent(a); | |||
|
61 | if(b._elCurListItem){b._selectItem(b._elCurListItem);}else{b._toggleContainer(false);}}break;default:break;}}else{if(c==229){b._enableIntervalDetection();}}};YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp=function(a,c){var b=this.value;c._initProps();var d=a.keyCode;if(c._isIgnoreKey(d)){return;}if(c._nDelayID!=-1){clearTimeout(c._nDelayID);}c._nDelayID=setTimeout(function(){c._sendQuery(b);},(c.queryDelay*1000));};YAHOO.widget.AutoComplete.prototype._onTextboxFocus=function(a,b){if(!b._bFocused){b._elTextbox.setAttribute("autocomplete","off");b._bFocused=true;b._sInitInputValue=b._elTextbox.value;b.textboxFocusEvent.fire(b);}};YAHOO.widget.AutoComplete.prototype._onTextboxBlur=function(a,c){if(!c._bOverContainer||(c._nKeyCode==9)){if(!c._bItemSelected){var b=c._textMatchesOption();if(!c._bContainerOpen||(c._bContainerOpen&&(b===null))){if(c.forceSelection){c._clearSelection();}else{c.unmatchedItemSelectEvent.fire(c,c._sCurQuery);}}else{if(c.forceSelection){c._selectItem(b);}}}c._clearInterval();c._bFocused=false;if(c._sInitInputValue!==c._elTextbox.value){c.textboxChangeEvent.fire(c);}c.textboxBlurEvent.fire(c);c._toggleContainer(false);}else{c._focus();}};YAHOO.widget.AutoComplete.prototype._onWindowUnload=function(a,b){if(b&&b._elTextbox&&b.allowBrowserAutocomplete){b._elTextbox.setAttribute("autocomplete","on");}};YAHOO.widget.AutoComplete.prototype.doBeforeSendQuery=function(a){return this.generateRequest(a);};YAHOO.widget.AutoComplete.prototype.getListItems=function(){var c=[],b=this._elList.childNodes;for(var a=b.length-1;a>=0;a--){c[a]=b[a];}return c;};YAHOO.widget.AutoComplete._cloneObject=function(d){if(!YAHOO.lang.isValue(d)){return d;}var f={};if(YAHOO.lang.isFunction(d)){f=d;}else{if(YAHOO.lang.isArray(d)){var e=[];for(var c=0,b=d.length;c<b;c++){e[c]=YAHOO.widget.AutoComplete._cloneObject(d[c]);}f=e;}else{if(YAHOO.lang.isObject(d)){for(var a in d){if(YAHOO.lang.hasOwnProperty(d,a)){if(YAHOO.lang.isValue(d[a])&&YAHOO.lang.isObject(d[a])||YAHOO.lang.isArray(d[a])){f[a]=YAHOO.widget.AutoComplete._cloneObject(d[a]);}else{f[a]=d[a];}}}}else{f=d;}}}return f;};YAHOO.register("autocomplete",YAHOO.widget.AutoComplete,{version:"2.9.0",build:"2800"});/* | |||
|
62 | Copyright (c) 2011, Yahoo! Inc. All rights reserved. | |||
|
63 | Code licensed under the BSD License: | |||
|
64 | http://developer.yahoo.com/yui/license.html | |||
|
65 | version: 2.9.0 | |||
|
66 | */ | |||
|
67 | (function(){YAHOO.util.Config=function(d){if(d){this.init(d);}};var b=YAHOO.lang,c=YAHOO.util.CustomEvent,a=YAHOO.util.Config;a.CONFIG_CHANGED_EVENT="configChanged";a.BOOLEAN_TYPE="boolean";a.prototype={owner:null,queueInProgress:false,config:null,initialConfig:null,eventQueue:null,configChangedEvent:null,init:function(d){this.owner=d;this.configChangedEvent=this.createEvent(a.CONFIG_CHANGED_EVENT);this.configChangedEvent.signature=c.LIST;this.queueInProgress=false;this.config={};this.initialConfig={};this.eventQueue=[];},checkBoolean:function(d){return(typeof d==a.BOOLEAN_TYPE);},checkNumber:function(d){return(!isNaN(d));},fireEvent:function(d,f){var e=this.config[d];if(e&&e.event){e.event.fire(f);}},addProperty:function(e,d){e=e.toLowerCase();this.config[e]=d;d.event=this.createEvent(e,{scope:this.owner});d.event.signature=c.LIST;d.key=e;if(d.handler){d.event.subscribe(d.handler,this.owner);}this.setProperty(e,d.value,true);if(!d.suppressEvent){this.queueProperty(e,d.value);}},getConfig:function(){var d={},f=this.config,g,e;for(g in f){if(b.hasOwnProperty(f,g)){e=f[g];if(e&&e.event){d[g]=e.value;}}}return d;},getProperty:function(d){var e=this.config[d.toLowerCase()];if(e&&e.event){return e.value;}else{return undefined;}},resetProperty:function(d){d=d.toLowerCase();var e=this.config[d];if(e&&e.event){if(d in this.initialConfig){this.setProperty(d,this.initialConfig[d]);return true;}}else{return false;}},setProperty:function(e,g,d){var f;e=e.toLowerCase();if(this.queueInProgress&&!d){this.queueProperty(e,g);return true;}else{f=this.config[e];if(f&&f.event){if(f.validator&&!f.validator(g)){return false;}else{f.value=g;if(!d){this.fireEvent(e,g);this.configChangedEvent.fire([e,g]);}return true;}}else{return false;}}},queueProperty:function(v,r){v=v.toLowerCase();var u=this.config[v],l=false,k,g,h,j,p,t,f,n,o,d,m,w,e;if(u&&u.event){if(!b.isUndefined(r)&&u.validator&&!u.validator(r)){return false;}else{if(!b.isUndefined(r)){u.value=r;}else{r=u.value;}l=false;k=this.eventQueue.length;for(m=0;m<k;m++){g=this.eventQueue[m];if(g){h=g[0];j=g[1];if(h==v){this.eventQueue[m]=null;this.eventQueue.push([v,(!b.isUndefined(r)?r:j)]);l=true;break;}}}if(!l&&!b.isUndefined(r)){this.eventQueue.push([v,r]);}}if(u.supercedes){p=u.supercedes.length;for(w=0;w<p;w++){t=u.supercedes[w];f=this.eventQueue.length;for(e=0;e<f;e++){n=this.eventQueue[e];if(n){o=n[0];d=n[1];if(o==t.toLowerCase()){this.eventQueue.push([o,d]);this.eventQueue[e]=null;break;}}}}}return true;}else{return false;}},refireEvent:function(d){d=d.toLowerCase();var e=this.config[d];if(e&&e.event&&!b.isUndefined(e.value)){if(this.queueInProgress){this.queueProperty(d);}else{this.fireEvent(d,e.value);}}},applyConfig:function(d,g){var f,e;if(g){e={};for(f in d){if(b.hasOwnProperty(d,f)){e[f.toLowerCase()]=d[f];}}this.initialConfig=e;}for(f in d){if(b.hasOwnProperty(d,f)){this.queueProperty(f,d[f]);}}},refresh:function(){var d;for(d in this.config){if(b.hasOwnProperty(this.config,d)){this.refireEvent(d);}}},fireQueue:function(){var e,h,d,g,f;this.queueInProgress=true;for(e=0;e<this.eventQueue.length;e++){h=this.eventQueue[e];if(h){d=h[0];g=h[1];f=this.config[d];f.value=g;this.eventQueue[e]=null;this.fireEvent(d,g);}}this.queueInProgress=false;this.eventQueue=[];},subscribeToConfigEvent:function(d,e,g,h){var f=this.config[d.toLowerCase()];if(f&&f.event){if(!a.alreadySubscribed(f.event,e,g)){f.event.subscribe(e,g,h);}return true;}else{return false;}},unsubscribeFromConfigEvent:function(d,e,g){var f=this.config[d.toLowerCase()];if(f&&f.event){return f.event.unsubscribe(e,g);}else{return false;}},toString:function(){var d="Config";if(this.owner){d+=" ["+this.owner.toString()+"]";}return d;},outputEventQueue:function(){var d="",g,e,f=this.eventQueue.length;for(e=0;e<f;e++){g=this.eventQueue[e];if(g){d+=g[0]+"="+g[1]+", ";}}return d;},destroy:function(){var e=this.config,d,f;for(d in e){if(b.hasOwnProperty(e,d)){f=e[d];f.event.unsubscribeAll();f.event=null;}}this.configChangedEvent.unsubscribeAll();this.configChangedEvent=null;this.owner=null;this.config=null;this.initialConfig=null;this.eventQueue=null;}};a.alreadySubscribed=function(e,h,j){var f=e.subscribers.length,d,g;if(f>0){g=f-1;do{d=e.subscribers[g];if(d&&d.obj==j&&d.fn==h){return true;}}while(g--);}return false;};YAHOO.lang.augmentProto(a,YAHOO.util.EventProvider);}());(function(){YAHOO.widget.Module=function(r,q){if(r){this.init(r,q);}else{}};var f=YAHOO.util.Dom,d=YAHOO.util.Config,n=YAHOO.util.Event,m=YAHOO.util.CustomEvent,g=YAHOO.widget.Module,i=YAHOO.env.ua,h,p,o,e,a={"BEFORE_INIT":"beforeInit","INIT":"init","APPEND":"append","BEFORE_RENDER":"beforeRender","RENDER":"render","CHANGE_HEADER":"changeHeader","CHANGE_BODY":"changeBody","CHANGE_FOOTER":"changeFooter","CHANGE_CONTENT":"changeContent","DESTROY":"destroy","BEFORE_SHOW":"beforeShow","SHOW":"show","BEFORE_HIDE":"beforeHide","HIDE":"hide"},j={"VISIBLE":{key:"visible",value:true,validator:YAHOO.lang.isBoolean},"EFFECT":{key:"effect",suppressEvent:true,supercedes:["visible"]},"MONITOR_RESIZE":{key:"monitorresize",value:true},"APPEND_TO_DOCUMENT_BODY":{key:"appendtodocumentbody",value:false}};g.IMG_ROOT=null;g.IMG_ROOT_SSL=null;g.CSS_MODULE="yui-module";g.CSS_HEADER="hd";g.CSS_BODY="bd";g.CSS_FOOTER="ft";g.RESIZE_MONITOR_SECURE_URL="javascript:false;";g.RESIZE_MONITOR_BUFFER=1;g.textResizeEvent=new m("textResize");g.forceDocumentRedraw=function(){var q=document.documentElement;if(q){q.className+=" ";q.className=YAHOO.lang.trim(q.className);}};function l(){if(!h){h=document.createElement("div");h.innerHTML=('<div class="'+g.CSS_HEADER+'"></div>'+'<div class="'+g.CSS_BODY+'"></div><div class="'+g.CSS_FOOTER+'"></div>');p=h.firstChild;o=p.nextSibling;e=o.nextSibling;}return h;}function k(){if(!p){l();}return(p.cloneNode(false));}function b(){if(!o){l();}return(o.cloneNode(false));}function c(){if(!e){l();}return(e.cloneNode(false));}g.prototype={constructor:g,element:null,header:null,body:null,footer:null,id:null,imageRoot:g.IMG_ROOT,initEvents:function(){var q=m.LIST; | |||
|
68 | this.beforeInitEvent=this.createEvent(a.BEFORE_INIT);this.beforeInitEvent.signature=q;this.initEvent=this.createEvent(a.INIT);this.initEvent.signature=q;this.appendEvent=this.createEvent(a.APPEND);this.appendEvent.signature=q;this.beforeRenderEvent=this.createEvent(a.BEFORE_RENDER);this.beforeRenderEvent.signature=q;this.renderEvent=this.createEvent(a.RENDER);this.renderEvent.signature=q;this.changeHeaderEvent=this.createEvent(a.CHANGE_HEADER);this.changeHeaderEvent.signature=q;this.changeBodyEvent=this.createEvent(a.CHANGE_BODY);this.changeBodyEvent.signature=q;this.changeFooterEvent=this.createEvent(a.CHANGE_FOOTER);this.changeFooterEvent.signature=q;this.changeContentEvent=this.createEvent(a.CHANGE_CONTENT);this.changeContentEvent.signature=q;this.destroyEvent=this.createEvent(a.DESTROY);this.destroyEvent.signature=q;this.beforeShowEvent=this.createEvent(a.BEFORE_SHOW);this.beforeShowEvent.signature=q;this.showEvent=this.createEvent(a.SHOW);this.showEvent.signature=q;this.beforeHideEvent=this.createEvent(a.BEFORE_HIDE);this.beforeHideEvent.signature=q;this.hideEvent=this.createEvent(a.HIDE);this.hideEvent.signature=q;},platform:function(){var q=navigator.userAgent.toLowerCase();if(q.indexOf("windows")!=-1||q.indexOf("win32")!=-1){return"windows";}else{if(q.indexOf("macintosh")!=-1){return"mac";}else{return false;}}}(),browser:function(){var q=navigator.userAgent.toLowerCase();if(q.indexOf("opera")!=-1){return"opera";}else{if(q.indexOf("msie 7")!=-1){return"ie7";}else{if(q.indexOf("msie")!=-1){return"ie";}else{if(q.indexOf("safari")!=-1){return"safari";}else{if(q.indexOf("gecko")!=-1){return"gecko";}else{return false;}}}}}}(),isSecure:function(){if(window.location.href.toLowerCase().indexOf("https")===0){return true;}else{return false;}}(),initDefaultConfig:function(){this.cfg.addProperty(j.VISIBLE.key,{handler:this.configVisible,value:j.VISIBLE.value,validator:j.VISIBLE.validator});this.cfg.addProperty(j.EFFECT.key,{handler:this.configEffect,suppressEvent:j.EFFECT.suppressEvent,supercedes:j.EFFECT.supercedes});this.cfg.addProperty(j.MONITOR_RESIZE.key,{handler:this.configMonitorResize,value:j.MONITOR_RESIZE.value});this.cfg.addProperty(j.APPEND_TO_DOCUMENT_BODY.key,{value:j.APPEND_TO_DOCUMENT_BODY.value});},init:function(v,u){var s,w;this.initEvents();this.beforeInitEvent.fire(g);this.cfg=new d(this);if(this.isSecure){this.imageRoot=g.IMG_ROOT_SSL;}if(typeof v=="string"){s=v;v=document.getElementById(v);if(!v){v=(l()).cloneNode(false);v.id=s;}}this.id=f.generateId(v);this.element=v;w=this.element.firstChild;if(w){var r=false,q=false,t=false;do{if(1==w.nodeType){if(!r&&f.hasClass(w,g.CSS_HEADER)){this.header=w;r=true;}else{if(!q&&f.hasClass(w,g.CSS_BODY)){this.body=w;q=true;}else{if(!t&&f.hasClass(w,g.CSS_FOOTER)){this.footer=w;t=true;}}}}}while((w=w.nextSibling));}this.initDefaultConfig();f.addClass(this.element,g.CSS_MODULE);if(u){this.cfg.applyConfig(u,true);}if(!d.alreadySubscribed(this.renderEvent,this.cfg.fireQueue,this.cfg)){this.renderEvent.subscribe(this.cfg.fireQueue,this.cfg,true);}this.initEvent.fire(g);},initResizeMonitor:function(){var r=(i.gecko&&this.platform=="windows");if(r){var q=this;setTimeout(function(){q._initResizeMonitor();},0);}else{this._initResizeMonitor();}},_initResizeMonitor:function(){var q,s,u;function w(){g.textResizeEvent.fire();}if(!i.opera){s=f.get("_yuiResizeMonitor");var v=this._supportsCWResize();if(!s){s=document.createElement("iframe");if(this.isSecure&&g.RESIZE_MONITOR_SECURE_URL&&i.ie){s.src=g.RESIZE_MONITOR_SECURE_URL;}if(!v){u=["<html><head><script ",'type="text/javascript">',"window.onresize=function(){window.parent.","YAHOO.widget.Module.textResizeEvent.","fire();};<","/script></head>","<body></body></html>"].join("");s.src="data:text/html;charset=utf-8,"+encodeURIComponent(u);}s.id="_yuiResizeMonitor";s.title="Text Resize Monitor";s.tabIndex=-1;s.setAttribute("role","presentation");s.style.position="absolute";s.style.visibility="hidden";var r=document.body,t=r.firstChild;if(t){r.insertBefore(s,t);}else{r.appendChild(s);}s.style.backgroundColor="transparent";s.style.borderWidth="0";s.style.width="2em";s.style.height="2em";s.style.left="0";s.style.top=(-1*(s.offsetHeight+g.RESIZE_MONITOR_BUFFER))+"px";s.style.visibility="visible";if(i.webkit){q=s.contentWindow.document;q.open();q.close();}}if(s&&s.contentWindow){g.textResizeEvent.subscribe(this.onDomResize,this,true);if(!g.textResizeInitialized){if(v){if(!n.on(s.contentWindow,"resize",w)){n.on(s,"resize",w);}}g.textResizeInitialized=true;}this.resizeMonitor=s;}}},_supportsCWResize:function(){var q=true;if(i.gecko&&i.gecko<=1.8){q=false;}return q;},onDomResize:function(s,r){var q=-1*(this.resizeMonitor.offsetHeight+g.RESIZE_MONITOR_BUFFER);this.resizeMonitor.style.top=q+"px";this.resizeMonitor.style.left="0";},setHeader:function(r){var q=this.header||(this.header=k());if(r.nodeName){q.innerHTML="";q.appendChild(r);}else{q.innerHTML=r;}if(this._rendered){this._renderHeader();}this.changeHeaderEvent.fire(r);this.changeContentEvent.fire();},appendToHeader:function(r){var q=this.header||(this.header=k());q.appendChild(r);this.changeHeaderEvent.fire(r);this.changeContentEvent.fire();},setBody:function(r){var q=this.body||(this.body=b());if(r.nodeName){q.innerHTML="";q.appendChild(r);}else{q.innerHTML=r;}if(this._rendered){this._renderBody();}this.changeBodyEvent.fire(r);this.changeContentEvent.fire();},appendToBody:function(r){var q=this.body||(this.body=b());q.appendChild(r);this.changeBodyEvent.fire(r);this.changeContentEvent.fire();},setFooter:function(r){var q=this.footer||(this.footer=c());if(r.nodeName){q.innerHTML="";q.appendChild(r);}else{q.innerHTML=r;}if(this._rendered){this._renderFooter();}this.changeFooterEvent.fire(r);this.changeContentEvent.fire();},appendToFooter:function(r){var q=this.footer||(this.footer=c());q.appendChild(r);this.changeFooterEvent.fire(r);this.changeContentEvent.fire();},render:function(s,q){var t=this;function r(u){if(typeof u=="string"){u=document.getElementById(u); | |||
|
69 | }if(u){t._addToParent(u,t.element);t.appendEvent.fire();}}this.beforeRenderEvent.fire();if(!q){q=this.element;}if(s){r(s);}else{if(!f.inDocument(this.element)){return false;}}this._renderHeader(q);this._renderBody(q);this._renderFooter(q);this._rendered=true;this.renderEvent.fire();return true;},_renderHeader:function(q){q=q||this.element;if(this.header&&!f.inDocument(this.header)){var r=q.firstChild;if(r){q.insertBefore(this.header,r);}else{q.appendChild(this.header);}}},_renderBody:function(q){q=q||this.element;if(this.body&&!f.inDocument(this.body)){if(this.footer&&f.isAncestor(q,this.footer)){q.insertBefore(this.body,this.footer);}else{q.appendChild(this.body);}}},_renderFooter:function(q){q=q||this.element;if(this.footer&&!f.inDocument(this.footer)){q.appendChild(this.footer);}},destroy:function(q){var r,s=!(q);if(this.element){n.purgeElement(this.element,s);r=this.element.parentNode;}if(r){r.removeChild(this.element);}this.element=null;this.header=null;this.body=null;this.footer=null;g.textResizeEvent.unsubscribe(this.onDomResize,this);this.cfg.destroy();this.cfg=null;this.destroyEvent.fire();},show:function(){this.cfg.setProperty("visible",true);},hide:function(){this.cfg.setProperty("visible",false);},configVisible:function(r,q,s){var t=q[0];if(t){if(this.beforeShowEvent.fire()){f.setStyle(this.element,"display","block");this.showEvent.fire();}}else{if(this.beforeHideEvent.fire()){f.setStyle(this.element,"display","none");this.hideEvent.fire();}}},configEffect:function(r,q,s){this._cachedEffects=(this.cacheEffects)?this._createEffects(q[0]):null;},cacheEffects:true,_createEffects:function(t){var q=null,u,r,s;if(t){if(t instanceof Array){q=[];u=t.length;for(r=0;r<u;r++){s=t[r];if(s.effect){q[q.length]=s.effect(this,s.duration);}}}else{if(t.effect){q=[t.effect(this,t.duration)];}}}return q;},configMonitorResize:function(s,r,t){var q=r[0];if(q){this.initResizeMonitor();}else{g.textResizeEvent.unsubscribe(this.onDomResize,this,true);this.resizeMonitor=null;}},_addToParent:function(q,r){if(!this.cfg.getProperty("appendtodocumentbody")&&q===document.body&&q.firstChild){q.insertBefore(r,q.firstChild);}else{q.appendChild(r);}},toString:function(){return"Module "+this.id;}};YAHOO.lang.augmentProto(g,YAHOO.util.EventProvider);}());(function(){YAHOO.widget.Overlay=function(p,o){YAHOO.widget.Overlay.superclass.constructor.call(this,p,o);};var i=YAHOO.lang,m=YAHOO.util.CustomEvent,g=YAHOO.widget.Module,n=YAHOO.util.Event,f=YAHOO.util.Dom,d=YAHOO.util.Config,k=YAHOO.env.ua,b=YAHOO.widget.Overlay,h="subscribe",e="unsubscribe",c="contained",j,a={"BEFORE_MOVE":"beforeMove","MOVE":"move"},l={"X":{key:"x",validator:i.isNumber,suppressEvent:true,supercedes:["iframe"]},"Y":{key:"y",validator:i.isNumber,suppressEvent:true,supercedes:["iframe"]},"XY":{key:"xy",suppressEvent:true,supercedes:["iframe"]},"CONTEXT":{key:"context",suppressEvent:true,supercedes:["iframe"]},"FIXED_CENTER":{key:"fixedcenter",value:false,supercedes:["iframe","visible"]},"WIDTH":{key:"width",suppressEvent:true,supercedes:["context","fixedcenter","iframe"]},"HEIGHT":{key:"height",suppressEvent:true,supercedes:["context","fixedcenter","iframe"]},"AUTO_FILL_HEIGHT":{key:"autofillheight",supercedes:["height"],value:"body"},"ZINDEX":{key:"zindex",value:null},"CONSTRAIN_TO_VIEWPORT":{key:"constraintoviewport",value:false,validator:i.isBoolean,supercedes:["iframe","x","y","xy"]},"IFRAME":{key:"iframe",value:(k.ie==6?true:false),validator:i.isBoolean,supercedes:["zindex"]},"PREVENT_CONTEXT_OVERLAP":{key:"preventcontextoverlap",value:false,validator:i.isBoolean,supercedes:["constraintoviewport"]}};b.IFRAME_SRC="javascript:false;";b.IFRAME_OFFSET=3;b.VIEWPORT_OFFSET=10;b.TOP_LEFT="tl";b.TOP_RIGHT="tr";b.BOTTOM_LEFT="bl";b.BOTTOM_RIGHT="br";b.PREVENT_OVERLAP_X={"tltr":true,"blbr":true,"brbl":true,"trtl":true};b.PREVENT_OVERLAP_Y={"trbr":true,"tlbl":true,"bltl":true,"brtr":true};b.CSS_OVERLAY="yui-overlay";b.CSS_HIDDEN="yui-overlay-hidden";b.CSS_IFRAME="yui-overlay-iframe";b.STD_MOD_RE=/^\s*?(body|footer|header)\s*?$/i;b.windowScrollEvent=new m("windowScroll");b.windowResizeEvent=new m("windowResize");b.windowScrollHandler=function(p){var o=n.getTarget(p);if(!o||o===window||o===window.document){if(k.ie){if(!window.scrollEnd){window.scrollEnd=-1;}clearTimeout(window.scrollEnd);window.scrollEnd=setTimeout(function(){b.windowScrollEvent.fire();},1);}else{b.windowScrollEvent.fire();}}};b.windowResizeHandler=function(o){if(k.ie){if(!window.resizeEnd){window.resizeEnd=-1;}clearTimeout(window.resizeEnd);window.resizeEnd=setTimeout(function(){b.windowResizeEvent.fire();},100);}else{b.windowResizeEvent.fire();}};b._initialized=null;if(b._initialized===null){n.on(window,"scroll",b.windowScrollHandler);n.on(window,"resize",b.windowResizeHandler);b._initialized=true;}b._TRIGGER_MAP={"windowScroll":b.windowScrollEvent,"windowResize":b.windowResizeEvent,"textResize":g.textResizeEvent};YAHOO.extend(b,g,{CONTEXT_TRIGGERS:[],init:function(p,o){b.superclass.init.call(this,p);this.beforeInitEvent.fire(b);f.addClass(this.element,b.CSS_OVERLAY);if(o){this.cfg.applyConfig(o,true);}if(this.platform=="mac"&&k.gecko){if(!d.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)){this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true);}if(!d.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)){this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true);}}this.initEvent.fire(b);},initEvents:function(){b.superclass.initEvents.call(this);var o=m.LIST;this.beforeMoveEvent=this.createEvent(a.BEFORE_MOVE);this.beforeMoveEvent.signature=o;this.moveEvent=this.createEvent(a.MOVE);this.moveEvent.signature=o;},initDefaultConfig:function(){b.superclass.initDefaultConfig.call(this);var o=this.cfg;o.addProperty(l.X.key,{handler:this.configX,validator:l.X.validator,suppressEvent:l.X.suppressEvent,supercedes:l.X.supercedes});o.addProperty(l.Y.key,{handler:this.configY,validator:l.Y.validator,suppressEvent:l.Y.suppressEvent,supercedes:l.Y.supercedes}); | |||
|
70 | o.addProperty(l.XY.key,{handler:this.configXY,suppressEvent:l.XY.suppressEvent,supercedes:l.XY.supercedes});o.addProperty(l.CONTEXT.key,{handler:this.configContext,suppressEvent:l.CONTEXT.suppressEvent,supercedes:l.CONTEXT.supercedes});o.addProperty(l.FIXED_CENTER.key,{handler:this.configFixedCenter,value:l.FIXED_CENTER.value,validator:l.FIXED_CENTER.validator,supercedes:l.FIXED_CENTER.supercedes});o.addProperty(l.WIDTH.key,{handler:this.configWidth,suppressEvent:l.WIDTH.suppressEvent,supercedes:l.WIDTH.supercedes});o.addProperty(l.HEIGHT.key,{handler:this.configHeight,suppressEvent:l.HEIGHT.suppressEvent,supercedes:l.HEIGHT.supercedes});o.addProperty(l.AUTO_FILL_HEIGHT.key,{handler:this.configAutoFillHeight,value:l.AUTO_FILL_HEIGHT.value,validator:this._validateAutoFill,supercedes:l.AUTO_FILL_HEIGHT.supercedes});o.addProperty(l.ZINDEX.key,{handler:this.configzIndex,value:l.ZINDEX.value});o.addProperty(l.CONSTRAIN_TO_VIEWPORT.key,{handler:this.configConstrainToViewport,value:l.CONSTRAIN_TO_VIEWPORT.value,validator:l.CONSTRAIN_TO_VIEWPORT.validator,supercedes:l.CONSTRAIN_TO_VIEWPORT.supercedes});o.addProperty(l.IFRAME.key,{handler:this.configIframe,value:l.IFRAME.value,validator:l.IFRAME.validator,supercedes:l.IFRAME.supercedes});o.addProperty(l.PREVENT_CONTEXT_OVERLAP.key,{value:l.PREVENT_CONTEXT_OVERLAP.value,validator:l.PREVENT_CONTEXT_OVERLAP.validator,supercedes:l.PREVENT_CONTEXT_OVERLAP.supercedes});},moveTo:function(o,p){this.cfg.setProperty("xy",[o,p]);},hideMacGeckoScrollbars:function(){f.replaceClass(this.element,"show-scrollbars","hide-scrollbars");},showMacGeckoScrollbars:function(){f.replaceClass(this.element,"hide-scrollbars","show-scrollbars");},_setDomVisibility:function(o){f.setStyle(this.element,"visibility",(o)?"visible":"hidden");var p=b.CSS_HIDDEN;if(o){f.removeClass(this.element,p);}else{f.addClass(this.element,p);}},configVisible:function(x,w,t){var p=w[0],B=f.getStyle(this.element,"visibility"),o=this._cachedEffects||this._createEffects(this.cfg.getProperty("effect")),A=(this.platform=="mac"&&k.gecko),y=d.alreadySubscribed,q,v,s,r,u,z;if(B=="inherit"){v=this.element.parentNode;while(v.nodeType!=9&&v.nodeType!=11){B=f.getStyle(v,"visibility");if(B!="inherit"){break;}v=v.parentNode;}if(B=="inherit"){B="visible";}}if(p){if(A){this.showMacGeckoScrollbars();}if(o){if(p){if(B!="visible"||B===""||this._fadingOut){if(this.beforeShowEvent.fire()){z=o.length;for(s=0;s<z;s++){q=o[s];if(s===0&&!y(q.animateInCompleteEvent,this.showEvent.fire,this.showEvent)){q.animateInCompleteEvent.subscribe(this.showEvent.fire,this.showEvent,true);}q.animateIn();}}}}}else{if(B!="visible"||B===""){if(this.beforeShowEvent.fire()){this._setDomVisibility(true);this.cfg.refireEvent("iframe");this.showEvent.fire();}}else{this._setDomVisibility(true);}}}else{if(A){this.hideMacGeckoScrollbars();}if(o){if(B=="visible"||this._fadingIn){if(this.beforeHideEvent.fire()){z=o.length;for(r=0;r<z;r++){u=o[r];if(r===0&&!y(u.animateOutCompleteEvent,this.hideEvent.fire,this.hideEvent)){u.animateOutCompleteEvent.subscribe(this.hideEvent.fire,this.hideEvent,true);}u.animateOut();}}}else{if(B===""){this._setDomVisibility(false);}}}else{if(B=="visible"||B===""){if(this.beforeHideEvent.fire()){this._setDomVisibility(false);this.hideEvent.fire();}}else{this._setDomVisibility(false);}}}},doCenterOnDOMEvent:function(){var o=this.cfg,p=o.getProperty("fixedcenter");if(o.getProperty("visible")){if(p&&(p!==c||this.fitsInViewport())){this.center();}}},fitsInViewport:function(){var s=b.VIEWPORT_OFFSET,q=this.element,t=q.offsetWidth,r=q.offsetHeight,o=f.getViewportWidth(),p=f.getViewportHeight();return((t+s<o)&&(r+s<p));},configFixedCenter:function(s,q,t){var u=q[0],p=d.alreadySubscribed,r=b.windowResizeEvent,o=b.windowScrollEvent;if(u){this.center();if(!p(this.beforeShowEvent,this.center)){this.beforeShowEvent.subscribe(this.center);}if(!p(r,this.doCenterOnDOMEvent,this)){r.subscribe(this.doCenterOnDOMEvent,this,true);}if(!p(o,this.doCenterOnDOMEvent,this)){o.subscribe(this.doCenterOnDOMEvent,this,true);}}else{this.beforeShowEvent.unsubscribe(this.center);r.unsubscribe(this.doCenterOnDOMEvent,this);o.unsubscribe(this.doCenterOnDOMEvent,this);}},configHeight:function(r,p,s){var o=p[0],q=this.element;f.setStyle(q,"height",o);this.cfg.refireEvent("iframe");},configAutoFillHeight:function(t,s,p){var v=s[0],q=this.cfg,u="autofillheight",w="height",r=q.getProperty(u),o=this._autoFillOnHeightChange;q.unsubscribeFromConfigEvent(w,o);g.textResizeEvent.unsubscribe(o);this.changeContentEvent.unsubscribe(o);if(r&&v!==r&&this[r]){f.setStyle(this[r],w,"");}if(v){v=i.trim(v.toLowerCase());q.subscribeToConfigEvent(w,o,this[v],this);g.textResizeEvent.subscribe(o,this[v],this);this.changeContentEvent.subscribe(o,this[v],this);q.setProperty(u,v,true);}},configWidth:function(r,o,s){var q=o[0],p=this.element;f.setStyle(p,"width",q);this.cfg.refireEvent("iframe");},configzIndex:function(q,o,r){var s=o[0],p=this.element;if(!s){s=f.getStyle(p,"zIndex");if(!s||isNaN(s)){s=0;}}if(this.iframe||this.cfg.getProperty("iframe")===true){if(s<=0){s=1;}}f.setStyle(p,"zIndex",s);this.cfg.setProperty("zIndex",s,true);if(this.iframe){this.stackIframe();}},configXY:function(q,p,r){var t=p[0],o=t[0],s=t[1];this.cfg.setProperty("x",o);this.cfg.setProperty("y",s);this.beforeMoveEvent.fire([o,s]);o=this.cfg.getProperty("x");s=this.cfg.getProperty("y");this.cfg.refireEvent("iframe");this.moveEvent.fire([o,s]);},configX:function(q,p,r){var o=p[0],s=this.cfg.getProperty("y");this.cfg.setProperty("x",o,true);this.cfg.setProperty("y",s,true);this.beforeMoveEvent.fire([o,s]);o=this.cfg.getProperty("x");s=this.cfg.getProperty("y");f.setX(this.element,o,true);this.cfg.setProperty("xy",[o,s],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([o,s]);},configY:function(q,p,r){var o=this.cfg.getProperty("x"),s=p[0];this.cfg.setProperty("x",o,true);this.cfg.setProperty("y",s,true);this.beforeMoveEvent.fire([o,s]);o=this.cfg.getProperty("x");s=this.cfg.getProperty("y");f.setY(this.element,s,true); | |||
|
71 | this.cfg.setProperty("xy",[o,s],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([o,s]);},showIframe:function(){var p=this.iframe,o;if(p){o=this.element.parentNode;if(o!=p.parentNode){this._addToParent(o,p);}p.style.display="block";}},hideIframe:function(){if(this.iframe){this.iframe.style.display="none";}},syncIframe:function(){var o=this.iframe,q=this.element,s=b.IFRAME_OFFSET,p=(s*2),r;if(o){o.style.width=(q.offsetWidth+p+"px");o.style.height=(q.offsetHeight+p+"px");r=this.cfg.getProperty("xy");if(!i.isArray(r)||(isNaN(r[0])||isNaN(r[1]))){this.syncPosition();r=this.cfg.getProperty("xy");}f.setXY(o,[(r[0]-s),(r[1]-s)]);}},stackIframe:function(){if(this.iframe){var o=f.getStyle(this.element,"zIndex");if(!YAHOO.lang.isUndefined(o)&&!isNaN(o)){f.setStyle(this.iframe,"zIndex",(o-1));}}},configIframe:function(r,q,s){var o=q[0];function t(){var v=this.iframe,w=this.element,x;if(!v){if(!j){j=document.createElement("iframe");if(this.isSecure){j.src=b.IFRAME_SRC;}if(k.ie){j.style.filter="alpha(opacity=0)";j.frameBorder=0;}else{j.style.opacity="0";}j.style.position="absolute";j.style.border="none";j.style.margin="0";j.style.padding="0";j.style.display="none";j.tabIndex=-1;j.className=b.CSS_IFRAME;}v=j.cloneNode(false);v.id=this.id+"_f";x=w.parentNode;var u=x||document.body;this._addToParent(u,v);this.iframe=v;}this.showIframe();this.syncIframe();this.stackIframe();if(!this._hasIframeEventListeners){this.showEvent.subscribe(this.showIframe);this.hideEvent.subscribe(this.hideIframe);this.changeContentEvent.subscribe(this.syncIframe);this._hasIframeEventListeners=true;}}function p(){t.call(this);this.beforeShowEvent.unsubscribe(p);this._iframeDeferred=false;}if(o){if(this.cfg.getProperty("visible")){t.call(this);}else{if(!this._iframeDeferred){this.beforeShowEvent.subscribe(p);this._iframeDeferred=true;}}}else{this.hideIframe();if(this._hasIframeEventListeners){this.showEvent.unsubscribe(this.showIframe);this.hideEvent.unsubscribe(this.hideIframe);this.changeContentEvent.unsubscribe(this.syncIframe);this._hasIframeEventListeners=false;}}},_primeXYFromDOM:function(){if(YAHOO.lang.isUndefined(this.cfg.getProperty("xy"))){this.syncPosition();this.cfg.refireEvent("xy");this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);}},configConstrainToViewport:function(p,o,q){var r=o[0];if(r){if(!d.alreadySubscribed(this.beforeMoveEvent,this.enforceConstraints,this)){this.beforeMoveEvent.subscribe(this.enforceConstraints,this,true);}if(!d.alreadySubscribed(this.beforeShowEvent,this._primeXYFromDOM)){this.beforeShowEvent.subscribe(this._primeXYFromDOM);}}else{this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);this.beforeMoveEvent.unsubscribe(this.enforceConstraints,this);}},configContext:function(u,t,q){var x=t[0],r,o,v,s,p,w=this.CONTEXT_TRIGGERS;if(x){r=x[0];o=x[1];v=x[2];s=x[3];p=x[4];if(w&&w.length>0){s=(s||[]).concat(w);}if(r){if(typeof r=="string"){this.cfg.setProperty("context",[document.getElementById(r),o,v,s,p],true);}if(o&&v){this.align(o,v,p);}if(this._contextTriggers){this._processTriggers(this._contextTriggers,e,this._alignOnTrigger);}if(s){this._processTriggers(s,h,this._alignOnTrigger);this._contextTriggers=s;}}}},_alignOnTrigger:function(p,o){this.align();},_findTriggerCE:function(o){var p=null;if(o instanceof m){p=o;}else{if(b._TRIGGER_MAP[o]){p=b._TRIGGER_MAP[o];}}return p;},_processTriggers:function(s,v,r){var q,u;for(var p=0,o=s.length;p<o;++p){q=s[p];u=this._findTriggerCE(q);if(u){u[v](r,this,true);}else{this[v](q,r);}}},align:function(p,w,s){var v=this.cfg.getProperty("context"),t=this,o,q,u;function r(z,A){var y=null,x=null;switch(p){case b.TOP_LEFT:y=A;x=z;break;case b.TOP_RIGHT:y=A-q.offsetWidth;x=z;break;case b.BOTTOM_LEFT:y=A;x=z-q.offsetHeight;break;case b.BOTTOM_RIGHT:y=A-q.offsetWidth;x=z-q.offsetHeight;break;}if(y!==null&&x!==null){if(s){y+=s[0];x+=s[1];}t.moveTo(y,x);}}if(v){o=v[0];q=this.element;t=this;if(!p){p=v[1];}if(!w){w=v[2];}if(!s&&v[4]){s=v[4];}if(q&&o){u=f.getRegion(o);switch(w){case b.TOP_LEFT:r(u.top,u.left);break;case b.TOP_RIGHT:r(u.top,u.right);break;case b.BOTTOM_LEFT:r(u.bottom,u.left);break;case b.BOTTOM_RIGHT:r(u.bottom,u.right);break;}}}},enforceConstraints:function(p,o,q){var s=o[0];var r=this.getConstrainedXY(s[0],s[1]);this.cfg.setProperty("x",r[0],true);this.cfg.setProperty("y",r[1],true);this.cfg.setProperty("xy",r,true);},_getConstrainedPos:function(y,p){var t=this.element,r=b.VIEWPORT_OFFSET,A=(y=="x"),z=(A)?t.offsetWidth:t.offsetHeight,s=(A)?f.getViewportWidth():f.getViewportHeight(),D=(A)?f.getDocumentScrollLeft():f.getDocumentScrollTop(),C=(A)?b.PREVENT_OVERLAP_X:b.PREVENT_OVERLAP_Y,o=this.cfg.getProperty("context"),u=(z+r<s),w=this.cfg.getProperty("preventcontextoverlap")&&o&&C[(o[1]+o[2])],v=D+r,B=D+s-z-r,q=p;if(p<v||p>B){if(w){q=this._preventOverlap(y,o[0],z,s,D);}else{if(u){if(p<v){q=v;}else{if(p>B){q=B;}}}else{q=v;}}}return q;},_preventOverlap:function(y,w,z,u,C){var A=(y=="x"),t=b.VIEWPORT_OFFSET,s=this,q=((A)?f.getX(w):f.getY(w))-C,o=(A)?w.offsetWidth:w.offsetHeight,p=q-t,r=(u-(q+o))-t,D=false,v=function(){var x;if((s.cfg.getProperty(y)-C)>q){x=(q-z);}else{x=(q+o);}s.cfg.setProperty(y,(x+C),true);return x;},B=function(){var E=((s.cfg.getProperty(y)-C)>q)?r:p,x;if(z>E){if(D){v();}else{v();D=true;x=B();}}return x;};B();return this.cfg.getProperty(y);},getConstrainedX:function(o){return this._getConstrainedPos("x",o);},getConstrainedY:function(o){return this._getConstrainedPos("y",o);},getConstrainedXY:function(o,p){return[this.getConstrainedX(o),this.getConstrainedY(p)];},center:function(){var r=b.VIEWPORT_OFFSET,s=this.element.offsetWidth,q=this.element.offsetHeight,p=f.getViewportWidth(),t=f.getViewportHeight(),o,u;if(s<p){o=(p/2)-(s/2)+f.getDocumentScrollLeft();}else{o=r+f.getDocumentScrollLeft();}if(q<t){u=(t/2)-(q/2)+f.getDocumentScrollTop();}else{u=r+f.getDocumentScrollTop();}this.cfg.setProperty("xy",[parseInt(o,10),parseInt(u,10)]);this.cfg.refireEvent("iframe");if(k.webkit){this.forceContainerRedraw();}},syncPosition:function(){var o=f.getXY(this.element); | |||
|
72 | this.cfg.setProperty("x",o[0],true);this.cfg.setProperty("y",o[1],true);this.cfg.setProperty("xy",o,true);},onDomResize:function(q,p){var o=this;b.superclass.onDomResize.call(this,q,p);setTimeout(function(){o.syncPosition();o.cfg.refireEvent("iframe");o.cfg.refireEvent("context");},0);},_getComputedHeight:(function(){if(document.defaultView&&document.defaultView.getComputedStyle){return function(p){var o=null;if(p.ownerDocument&&p.ownerDocument.defaultView){var q=p.ownerDocument.defaultView.getComputedStyle(p,"");if(q){o=parseInt(q.height,10);}}return(i.isNumber(o))?o:null;};}else{return function(p){var o=null;if(p.style.pixelHeight){o=p.style.pixelHeight;}return(i.isNumber(o))?o:null;};}})(),_validateAutoFillHeight:function(o){return(!o)||(i.isString(o)&&b.STD_MOD_RE.test(o));},_autoFillOnHeightChange:function(r,p,q){var o=this.cfg.getProperty("height");if((o&&o!=="auto")||(o===0)){this.fillHeight(q);}},_getPreciseHeight:function(p){var o=p.offsetHeight;if(p.getBoundingClientRect){var q=p.getBoundingClientRect();o=q.bottom-q.top;}return o;},fillHeight:function(r){if(r){var p=this.innerElement||this.element,o=[this.header,this.body,this.footer],v,w=0,x=0,t=0,q=false;for(var u=0,s=o.length;u<s;u++){v=o[u];if(v){if(r!==v){x+=this._getPreciseHeight(v);}else{q=true;}}}if(q){if(k.ie||k.opera){f.setStyle(r,"height",0+"px");}w=this._getComputedHeight(p);if(w===null){f.addClass(p,"yui-override-padding");w=p.clientHeight;f.removeClass(p,"yui-override-padding");}t=Math.max(w-x,0);f.setStyle(r,"height",t+"px");if(r.offsetHeight!=t){t=Math.max(t-(r.offsetHeight-t),0);}f.setStyle(r,"height",t+"px");}}},bringToTop:function(){var s=[],r=this.element;function v(z,y){var B=f.getStyle(z,"zIndex"),A=f.getStyle(y,"zIndex"),x=(!B||isNaN(B))?0:parseInt(B,10),w=(!A||isNaN(A))?0:parseInt(A,10);if(x>w){return -1;}else{if(x<w){return 1;}else{return 0;}}}function q(y){var x=f.hasClass(y,b.CSS_OVERLAY),w=YAHOO.widget.Panel;if(x&&!f.isAncestor(r,y)){if(w&&f.hasClass(y,w.CSS_PANEL)){s[s.length]=y.parentNode;}else{s[s.length]=y;}}}f.getElementsBy(q,"div",document.body);s.sort(v);var o=s[0],u;if(o){u=f.getStyle(o,"zIndex");if(!isNaN(u)){var t=false;if(o!=r){t=true;}else{if(s.length>1){var p=f.getStyle(s[1],"zIndex");if(!isNaN(p)&&(u==p)){t=true;}}}if(t){this.cfg.setProperty("zindex",(parseInt(u,10)+2));}}}},destroy:function(o){if(this.iframe){this.iframe.parentNode.removeChild(this.iframe);}this.iframe=null;b.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);b.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this);g.textResizeEvent.unsubscribe(this._autoFillOnHeightChange);if(this._contextTriggers){this._processTriggers(this._contextTriggers,e,this._alignOnTrigger);}b.superclass.destroy.call(this,o);},forceContainerRedraw:function(){var o=this;f.addClass(o.element,"yui-force-redraw");setTimeout(function(){f.removeClass(o.element,"yui-force-redraw");},0);},toString:function(){return"Overlay "+this.id;}});}());(function(){YAHOO.widget.OverlayManager=function(g){this.init(g);};var d=YAHOO.widget.Overlay,c=YAHOO.util.Event,e=YAHOO.util.Dom,b=YAHOO.util.Config,f=YAHOO.util.CustomEvent,a=YAHOO.widget.OverlayManager;a.CSS_FOCUSED="focused";a.prototype={constructor:a,overlays:null,initDefaultConfig:function(){this.cfg.addProperty("overlays",{suppressEvent:true});this.cfg.addProperty("focusevent",{value:"mousedown"});},init:function(i){this.cfg=new b(this);this.initDefaultConfig();if(i){this.cfg.applyConfig(i,true);}this.cfg.fireQueue();var h=null;this.getActive=function(){return h;};this.focus=function(j){var k=this.find(j);if(k){k.focus();}};this.remove=function(k){var m=this.find(k),j;if(m){if(h==m){h=null;}var l=(m.element===null&&m.cfg===null)?true:false;if(!l){j=e.getStyle(m.element,"zIndex");m.cfg.setProperty("zIndex",-1000,true);}this.overlays.sort(this.compareZIndexDesc);this.overlays=this.overlays.slice(0,(this.overlays.length-1));m.hideEvent.unsubscribe(m.blur);m.destroyEvent.unsubscribe(this._onOverlayDestroy,m);m.focusEvent.unsubscribe(this._onOverlayFocusHandler,m);m.blurEvent.unsubscribe(this._onOverlayBlurHandler,m);if(!l){c.removeListener(m.element,this.cfg.getProperty("focusevent"),this._onOverlayElementFocus);m.cfg.setProperty("zIndex",j,true);m.cfg.setProperty("manager",null);}if(m.focusEvent._managed){m.focusEvent=null;}if(m.blurEvent._managed){m.blurEvent=null;}if(m.focus._managed){m.focus=null;}if(m.blur._managed){m.blur=null;}}};this.blurAll=function(){var k=this.overlays.length,j;if(k>0){j=k-1;do{this.overlays[j].blur();}while(j--);}};this._manageBlur=function(j){var k=false;if(h==j){e.removeClass(h.element,a.CSS_FOCUSED);h=null;k=true;}return k;};this._manageFocus=function(j){var k=false;if(h!=j){if(h){h.blur();}h=j;this.bringToTop(h);e.addClass(h.element,a.CSS_FOCUSED);k=true;}return k;};var g=this.cfg.getProperty("overlays");if(!this.overlays){this.overlays=[];}if(g){this.register(g);this.overlays.sort(this.compareZIndexDesc);}},_onOverlayElementFocus:function(i){var g=c.getTarget(i),h=this.close;if(h&&(g==h||e.isAncestor(h,g))){this.blur();}else{this.focus();}},_onOverlayDestroy:function(h,g,i){this.remove(i);},_onOverlayFocusHandler:function(h,g,i){this._manageFocus(i);},_onOverlayBlurHandler:function(h,g,i){this._manageBlur(i);},_bindFocus:function(g){var h=this;if(!g.focusEvent){g.focusEvent=g.createEvent("focus");g.focusEvent.signature=f.LIST;g.focusEvent._managed=true;}else{g.focusEvent.subscribe(h._onOverlayFocusHandler,g,h);}if(!g.focus){c.on(g.element,h.cfg.getProperty("focusevent"),h._onOverlayElementFocus,null,g);g.focus=function(){if(h._manageFocus(this)){if(this.cfg.getProperty("visible")&&this.focusFirst){this.focusFirst();}this.focusEvent.fire();}};g.focus._managed=true;}},_bindBlur:function(g){var h=this;if(!g.blurEvent){g.blurEvent=g.createEvent("blur");g.blurEvent.signature=f.LIST;g.focusEvent._managed=true;}else{g.blurEvent.subscribe(h._onOverlayBlurHandler,g,h);}if(!g.blur){g.blur=function(){if(h._manageBlur(this)){this.blurEvent.fire();}};g.blur._managed=true;}g.hideEvent.subscribe(g.blur); | |||
|
73 | },_bindDestroy:function(g){var h=this;g.destroyEvent.subscribe(h._onOverlayDestroy,g,h);},_syncZIndex:function(g){var h=e.getStyle(g.element,"zIndex");if(!isNaN(h)){g.cfg.setProperty("zIndex",parseInt(h,10));}else{g.cfg.setProperty("zIndex",0);}},register:function(g){var k=false,h,j;if(g instanceof d){g.cfg.addProperty("manager",{value:this});this._bindFocus(g);this._bindBlur(g);this._bindDestroy(g);this._syncZIndex(g);this.overlays.push(g);this.bringToTop(g);k=true;}else{if(g instanceof Array){for(h=0,j=g.length;h<j;h++){k=this.register(g[h])||k;}}}return k;},bringToTop:function(m){var i=this.find(m),l,g,j;if(i){j=this.overlays;j.sort(this.compareZIndexDesc);g=j[0];if(g){l=e.getStyle(g.element,"zIndex");if(!isNaN(l)){var k=false;if(g!==i){k=true;}else{if(j.length>1){var h=e.getStyle(j[1].element,"zIndex");if(!isNaN(h)&&(l==h)){k=true;}}}if(k){i.cfg.setProperty("zindex",(parseInt(l,10)+2));}}j.sort(this.compareZIndexDesc);}}},find:function(g){var l=g instanceof d,j=this.overlays,p=j.length,k=null,m,h;if(l||typeof g=="string"){for(h=p-1;h>=0;h--){m=j[h];if((l&&(m===g))||(m.id==g)){k=m;break;}}}return k;},compareZIndexDesc:function(j,i){var h=(j.cfg)?j.cfg.getProperty("zIndex"):null,g=(i.cfg)?i.cfg.getProperty("zIndex"):null;if(h===null&&g===null){return 0;}else{if(h===null){return 1;}else{if(g===null){return -1;}else{if(h>g){return -1;}else{if(h<g){return 1;}else{return 0;}}}}}},showAll:function(){var h=this.overlays,j=h.length,g;for(g=j-1;g>=0;g--){h[g].show();}},hideAll:function(){var h=this.overlays,j=h.length,g;for(g=j-1;g>=0;g--){h[g].hide();}},toString:function(){return"OverlayManager";}};}());(function(){YAHOO.widget.Tooltip=function(p,o){YAHOO.widget.Tooltip.superclass.constructor.call(this,p,o);};var e=YAHOO.lang,n=YAHOO.util.Event,m=YAHOO.util.CustomEvent,c=YAHOO.util.Dom,j=YAHOO.widget.Tooltip,h=YAHOO.env.ua,g=(h.ie&&(h.ie<=6||document.compatMode=="BackCompat")),f,i={"PREVENT_OVERLAP":{key:"preventoverlap",value:true,validator:e.isBoolean,supercedes:["x","y","xy"]},"SHOW_DELAY":{key:"showdelay",value:200,validator:e.isNumber},"AUTO_DISMISS_DELAY":{key:"autodismissdelay",value:5000,validator:e.isNumber},"HIDE_DELAY":{key:"hidedelay",value:250,validator:e.isNumber},"TEXT":{key:"text",suppressEvent:true},"CONTAINER":{key:"container"},"DISABLED":{key:"disabled",value:false,suppressEvent:true},"XY_OFFSET":{key:"xyoffset",value:[0,25],suppressEvent:true}},a={"CONTEXT_MOUSE_OVER":"contextMouseOver","CONTEXT_MOUSE_OUT":"contextMouseOut","CONTEXT_TRIGGER":"contextTrigger"};j.CSS_TOOLTIP="yui-tt";function k(q,o){var p=this.cfg,r=p.getProperty("width");if(r==o){p.setProperty("width",q);}}function d(p,o){if("_originalWidth" in this){k.call(this,this._originalWidth,this._forcedWidth);}var q=document.body,u=this.cfg,t=u.getProperty("width"),r,s;if((!t||t=="auto")&&(u.getProperty("container")!=q||u.getProperty("x")>=c.getViewportWidth()||u.getProperty("y")>=c.getViewportHeight())){s=this.element.cloneNode(true);s.style.visibility="hidden";s.style.top="0px";s.style.left="0px";q.appendChild(s);r=(s.offsetWidth+"px");q.removeChild(s);s=null;u.setProperty("width",r);u.refireEvent("xy");this._originalWidth=t||"";this._forcedWidth=r;}}function b(p,o,q){this.render(q);}function l(){n.onDOMReady(b,this.cfg.getProperty("container"),this);}YAHOO.extend(j,YAHOO.widget.Overlay,{init:function(p,o){j.superclass.init.call(this,p);this.beforeInitEvent.fire(j);c.addClass(this.element,j.CSS_TOOLTIP);if(o){this.cfg.applyConfig(o,true);}this.cfg.queueProperty("visible",false);this.cfg.queueProperty("constraintoviewport",true);this.setBody("");this.subscribe("changeContent",d);this.subscribe("init",l);this.subscribe("render",this.onRender);this.initEvent.fire(j);},initEvents:function(){j.superclass.initEvents.call(this);var o=m.LIST;this.contextMouseOverEvent=this.createEvent(a.CONTEXT_MOUSE_OVER);this.contextMouseOverEvent.signature=o;this.contextMouseOutEvent=this.createEvent(a.CONTEXT_MOUSE_OUT);this.contextMouseOutEvent.signature=o;this.contextTriggerEvent=this.createEvent(a.CONTEXT_TRIGGER);this.contextTriggerEvent.signature=o;},initDefaultConfig:function(){j.superclass.initDefaultConfig.call(this);this.cfg.addProperty(i.PREVENT_OVERLAP.key,{value:i.PREVENT_OVERLAP.value,validator:i.PREVENT_OVERLAP.validator,supercedes:i.PREVENT_OVERLAP.supercedes});this.cfg.addProperty(i.SHOW_DELAY.key,{handler:this.configShowDelay,value:200,validator:i.SHOW_DELAY.validator});this.cfg.addProperty(i.AUTO_DISMISS_DELAY.key,{handler:this.configAutoDismissDelay,value:i.AUTO_DISMISS_DELAY.value,validator:i.AUTO_DISMISS_DELAY.validator});this.cfg.addProperty(i.HIDE_DELAY.key,{handler:this.configHideDelay,value:i.HIDE_DELAY.value,validator:i.HIDE_DELAY.validator});this.cfg.addProperty(i.TEXT.key,{handler:this.configText,suppressEvent:i.TEXT.suppressEvent});this.cfg.addProperty(i.CONTAINER.key,{handler:this.configContainer,value:document.body});this.cfg.addProperty(i.DISABLED.key,{handler:this.configContainer,value:i.DISABLED.value,supressEvent:i.DISABLED.suppressEvent});this.cfg.addProperty(i.XY_OFFSET.key,{value:i.XY_OFFSET.value.concat(),supressEvent:i.XY_OFFSET.suppressEvent});},configText:function(p,o,q){var r=o[0];if(r){this.setBody(r);}},configContainer:function(q,p,r){var o=p[0];if(typeof o=="string"){this.cfg.setProperty("container",document.getElementById(o),true);}},_removeEventListeners:function(){var r=this._context,o,q,p;if(r){o=r.length;if(o>0){p=o-1;do{q=r[p];n.removeListener(q,"mouseover",this.onContextMouseOver);n.removeListener(q,"mousemove",this.onContextMouseMove);n.removeListener(q,"mouseout",this.onContextMouseOut);}while(p--);}}},configContext:function(t,p,u){var s=p[0],v,o,r,q;if(s){if(!(s instanceof Array)){if(typeof s=="string"){this.cfg.setProperty("context",[document.getElementById(s)],true);}else{this.cfg.setProperty("context",[s],true);}s=this.cfg.getProperty("context");}this._removeEventListeners();this._context=s;v=this._context;if(v){o=v.length;if(o>0){q=o-1;do{r=v[q];n.on(r,"mouseover",this.onContextMouseOver,this); | |||
|
74 | n.on(r,"mousemove",this.onContextMouseMove,this);n.on(r,"mouseout",this.onContextMouseOut,this);}while(q--);}}}},onContextMouseMove:function(p,o){o.pageX=n.getPageX(p);o.pageY=n.getPageY(p);},onContextMouseOver:function(q,p){var o=this;if(o.title){p._tempTitle=o.title;o.title="";}if(p.fireEvent("contextMouseOver",o,q)!==false&&!p.cfg.getProperty("disabled")){if(p.hideProcId){clearTimeout(p.hideProcId);p.hideProcId=null;}n.on(o,"mousemove",p.onContextMouseMove,p);p.showProcId=p.doShow(q,o);}},onContextMouseOut:function(q,p){var o=this;if(p._tempTitle){o.title=p._tempTitle;p._tempTitle=null;}if(p.showProcId){clearTimeout(p.showProcId);p.showProcId=null;}if(p.hideProcId){clearTimeout(p.hideProcId);p.hideProcId=null;}p.fireEvent("contextMouseOut",o,q);p.hideProcId=setTimeout(function(){p.hide();},p.cfg.getProperty("hidedelay"));},doShow:function(r,o){var t=this.cfg.getProperty("xyoffset"),p=t[0],s=t[1],q=this;if(h.opera&&o.tagName&&o.tagName.toUpperCase()=="A"){s+=12;}return setTimeout(function(){var u=q.cfg.getProperty("text");if(q._tempTitle&&(u===""||YAHOO.lang.isUndefined(u)||YAHOO.lang.isNull(u))){q.setBody(q._tempTitle);}else{q.cfg.refireEvent("text");}q.moveTo(q.pageX+p,q.pageY+s);if(q.cfg.getProperty("preventoverlap")){q.preventOverlap(q.pageX,q.pageY);}n.removeListener(o,"mousemove",q.onContextMouseMove);q.contextTriggerEvent.fire(o);q.show();q.hideProcId=q.doHide();},this.cfg.getProperty("showdelay"));},doHide:function(){var o=this;return setTimeout(function(){o.hide();},this.cfg.getProperty("autodismissdelay"));},preventOverlap:function(s,r){var o=this.element.offsetHeight,q=new YAHOO.util.Point(s,r),p=c.getRegion(this.element);p.top-=5;p.left-=5;p.right+=5;p.bottom+=5;if(p.contains(q)){this.cfg.setProperty("y",(r-o-5));}},onRender:function(s,r){function t(){var w=this.element,v=this.underlay;if(v){v.style.width=(w.offsetWidth+6)+"px";v.style.height=(w.offsetHeight+1)+"px";}}function p(){c.addClass(this.underlay,"yui-tt-shadow-visible");if(h.ie){this.forceUnderlayRedraw();}}function o(){c.removeClass(this.underlay,"yui-tt-shadow-visible");}function u(){var x=this.underlay,w,v,z,y;if(!x){w=this.element;v=YAHOO.widget.Module;z=h.ie;y=this;if(!f){f=document.createElement("div");f.className="yui-tt-shadow";}x=f.cloneNode(false);w.appendChild(x);this.underlay=x;this._shadow=this.underlay;p.call(this);this.subscribe("beforeShow",p);this.subscribe("hide",o);if(g){window.setTimeout(function(){t.call(y);},0);this.cfg.subscribeToConfigEvent("width",t);this.cfg.subscribeToConfigEvent("height",t);this.subscribe("changeContent",t);v.textResizeEvent.subscribe(t,this,true);this.subscribe("destroy",function(){v.textResizeEvent.unsubscribe(t,this);});}}}function q(){u.call(this);this.unsubscribe("beforeShow",q);}if(this.cfg.getProperty("visible")){u.call(this);}else{this.subscribe("beforeShow",q);}},forceUnderlayRedraw:function(){var o=this;c.addClass(o.underlay,"yui-force-redraw");setTimeout(function(){c.removeClass(o.underlay,"yui-force-redraw");},0);},destroy:function(){this._removeEventListeners();j.superclass.destroy.call(this);},toString:function(){return"Tooltip "+this.id;}});}());(function(){YAHOO.widget.Panel=function(v,u){YAHOO.widget.Panel.superclass.constructor.call(this,v,u);};var s=null;var e=YAHOO.lang,f=YAHOO.util,a=f.Dom,t=f.Event,m=f.CustomEvent,k=YAHOO.util.KeyListener,i=f.Config,h=YAHOO.widget.Overlay,o=YAHOO.widget.Panel,l=YAHOO.env.ua,p=(l.ie&&(l.ie<=6||document.compatMode=="BackCompat")),g,q,c,d={"BEFORE_SHOW_MASK":"beforeShowMask","BEFORE_HIDE_MASK":"beforeHideMask","SHOW_MASK":"showMask","HIDE_MASK":"hideMask","DRAG":"drag"},n={"CLOSE":{key:"close",value:true,validator:e.isBoolean,supercedes:["visible"]},"DRAGGABLE":{key:"draggable",value:(f.DD?true:false),validator:e.isBoolean,supercedes:["visible"]},"DRAG_ONLY":{key:"dragonly",value:false,validator:e.isBoolean,supercedes:["draggable"]},"UNDERLAY":{key:"underlay",value:"shadow",supercedes:["visible"]},"MODAL":{key:"modal",value:false,validator:e.isBoolean,supercedes:["visible","zindex"]},"KEY_LISTENERS":{key:"keylisteners",suppressEvent:true,supercedes:["visible"]},"STRINGS":{key:"strings",supercedes:["close"],validator:e.isObject,value:{close:"Close"}}};o.CSS_PANEL="yui-panel";o.CSS_PANEL_CONTAINER="yui-panel-container";o.FOCUSABLE=["a","button","select","textarea","input","iframe"];function j(v,u){if(!this.header&&this.cfg.getProperty("draggable")){this.setHeader(" ");}}function r(v,u,w){var z=w[0],x=w[1],y=this.cfg,A=y.getProperty("width");if(A==x){y.setProperty("width",z);}this.unsubscribe("hide",r,w);}function b(v,u){var y,x,w;if(p){y=this.cfg;x=y.getProperty("width");if(!x||x=="auto"){w=(this.element.offsetWidth+"px");y.setProperty("width",w);this.subscribe("hide",r,[(x||""),w]);}}}YAHOO.extend(o,h,{init:function(v,u){o.superclass.init.call(this,v);this.beforeInitEvent.fire(o);a.addClass(this.element,o.CSS_PANEL);this.buildWrapper();if(u){this.cfg.applyConfig(u,true);}this.subscribe("showMask",this._addFocusHandlers);this.subscribe("hideMask",this._removeFocusHandlers);this.subscribe("beforeRender",j);this.subscribe("render",function(){this.setFirstLastFocusable();this.subscribe("changeContent",this.setFirstLastFocusable);});this.subscribe("show",this._focusOnShow);this.initEvent.fire(o);},_onElementFocus:function(z){if(s===this){var y=t.getTarget(z),x=document.documentElement,v=(y!==x&&y!==window);if(v&&y!==this.element&&y!==this.mask&&!a.isAncestor(this.element,y)){try{this._focusFirstModal();}catch(w){try{if(v&&y!==document.body){y.blur();}}catch(u){}}}}},_focusFirstModal:function(){var u=this.firstElement;if(u){u.focus();}else{if(this._modalFocus){this._modalFocus.focus();}else{this.innerElement.focus();}}},_addFocusHandlers:function(v,u){if(!this.firstElement){if(l.webkit||l.opera){if(!this._modalFocus){this._createHiddenFocusElement();}}else{this.innerElement.tabIndex=0;}}this._setTabLoop(this.firstElement,this.lastElement);t.onFocus(document.documentElement,this._onElementFocus,this,true);s=this;},_createHiddenFocusElement:function(){var u=document.createElement("button"); | |||
|
75 | u.style.height="1px";u.style.width="1px";u.style.position="absolute";u.style.left="-10000em";u.style.opacity=0;u.tabIndex=-1;this.innerElement.appendChild(u);this._modalFocus=u;},_removeFocusHandlers:function(v,u){t.removeFocusListener(document.documentElement,this._onElementFocus,this);if(s==this){s=null;}},_focusOnShow:function(v,u,w){if(u&&u[1]){t.stopEvent(u[1]);}if(!this.focusFirst(v,u,w)){if(this.cfg.getProperty("modal")){this._focusFirstModal();}}},focusFirst:function(w,u,z){var v=this.firstElement,y=false;if(u&&u[1]){t.stopEvent(u[1]);}if(v){try{v.focus();y=true;}catch(x){}}return y;},focusLast:function(w,u,z){var v=this.lastElement,y=false;if(u&&u[1]){t.stopEvent(u[1]);}if(v){try{v.focus();y=true;}catch(x){}}return y;},_setTabLoop:function(u,v){this.setTabLoop(u,v);},setTabLoop:function(x,z){var v=this.preventBackTab,w=this.preventTabOut,u=this.showEvent,y=this.hideEvent;if(v){v.disable();u.unsubscribe(v.enable,v);y.unsubscribe(v.disable,v);v=this.preventBackTab=null;}if(w){w.disable();u.unsubscribe(w.enable,w);y.unsubscribe(w.disable,w);w=this.preventTabOut=null;}if(x){this.preventBackTab=new k(x,{shift:true,keys:9},{fn:this.focusLast,scope:this,correctScope:true});v=this.preventBackTab;u.subscribe(v.enable,v,true);y.subscribe(v.disable,v,true);}if(z){this.preventTabOut=new k(z,{shift:false,keys:9},{fn:this.focusFirst,scope:this,correctScope:true});w=this.preventTabOut;u.subscribe(w.enable,w,true);y.subscribe(w.disable,w,true);}},getFocusableElements:function(v){v=v||this.innerElement;var x={},u=this;for(var w=0;w<o.FOCUSABLE.length;w++){x[o.FOCUSABLE[w]]=true;}return a.getElementsBy(function(y){return u._testIfFocusable(y,x);},null,v);},_testIfFocusable:function(u,v){if(u.focus&&u.type!=="hidden"&&!u.disabled&&v[u.tagName.toLowerCase()]){return true;}return false;},setFirstLastFocusable:function(){this.firstElement=null;this.lastElement=null;var u=this.getFocusableElements();this.focusableElements=u;if(u.length>0){this.firstElement=u[0];this.lastElement=u[u.length-1];}if(this.cfg.getProperty("modal")){this._setTabLoop(this.firstElement,this.lastElement);}},initEvents:function(){o.superclass.initEvents.call(this);var u=m.LIST;this.showMaskEvent=this.createEvent(d.SHOW_MASK);this.showMaskEvent.signature=u;this.beforeShowMaskEvent=this.createEvent(d.BEFORE_SHOW_MASK);this.beforeShowMaskEvent.signature=u;this.hideMaskEvent=this.createEvent(d.HIDE_MASK);this.hideMaskEvent.signature=u;this.beforeHideMaskEvent=this.createEvent(d.BEFORE_HIDE_MASK);this.beforeHideMaskEvent.signature=u;this.dragEvent=this.createEvent(d.DRAG);this.dragEvent.signature=u;},initDefaultConfig:function(){o.superclass.initDefaultConfig.call(this);this.cfg.addProperty(n.CLOSE.key,{handler:this.configClose,value:n.CLOSE.value,validator:n.CLOSE.validator,supercedes:n.CLOSE.supercedes});this.cfg.addProperty(n.DRAGGABLE.key,{handler:this.configDraggable,value:(f.DD)?true:false,validator:n.DRAGGABLE.validator,supercedes:n.DRAGGABLE.supercedes});this.cfg.addProperty(n.DRAG_ONLY.key,{value:n.DRAG_ONLY.value,validator:n.DRAG_ONLY.validator,supercedes:n.DRAG_ONLY.supercedes});this.cfg.addProperty(n.UNDERLAY.key,{handler:this.configUnderlay,value:n.UNDERLAY.value,supercedes:n.UNDERLAY.supercedes});this.cfg.addProperty(n.MODAL.key,{handler:this.configModal,value:n.MODAL.value,validator:n.MODAL.validator,supercedes:n.MODAL.supercedes});this.cfg.addProperty(n.KEY_LISTENERS.key,{handler:this.configKeyListeners,suppressEvent:n.KEY_LISTENERS.suppressEvent,supercedes:n.KEY_LISTENERS.supercedes});this.cfg.addProperty(n.STRINGS.key,{value:n.STRINGS.value,handler:this.configStrings,validator:n.STRINGS.validator,supercedes:n.STRINGS.supercedes});},configClose:function(y,v,z){var A=v[0],x=this.close,u=this.cfg.getProperty("strings"),w;if(A){if(!x){if(!c){c=document.createElement("a");c.className="container-close";c.href="#";}x=c.cloneNode(true);w=this.innerElement.firstChild;if(w){this.innerElement.insertBefore(x,w);}else{this.innerElement.appendChild(x);}x.innerHTML=(u&&u.close)?u.close:" ";t.on(x,"click",this._doClose,this,true);this.close=x;}else{x.style.display="block";}}else{if(x){x.style.display="none";}}},_doClose:function(u){t.preventDefault(u);this.hide();},configDraggable:function(v,u,w){var x=u[0];if(x){if(!f.DD){this.cfg.setProperty("draggable",false);return;}if(this.header){a.setStyle(this.header,"cursor","move");this.registerDragDrop();}this.subscribe("beforeShow",b);}else{if(this.dd){this.dd.unreg();}if(this.header){a.setStyle(this.header,"cursor","auto");}this.unsubscribe("beforeShow",b);}},configUnderlay:function(D,C,z){var B=(this.platform=="mac"&&l.gecko),E=C[0].toLowerCase(),v=this.underlay,w=this.element;function x(){var F=false;if(!v){if(!q){q=document.createElement("div");q.className="underlay";}v=q.cloneNode(false);this.element.appendChild(v);this.underlay=v;if(p){this.sizeUnderlay();this.cfg.subscribeToConfigEvent("width",this.sizeUnderlay);this.cfg.subscribeToConfigEvent("height",this.sizeUnderlay);this.changeContentEvent.subscribe(this.sizeUnderlay);YAHOO.widget.Module.textResizeEvent.subscribe(this.sizeUnderlay,this,true);}if(l.webkit&&l.webkit<420){this.changeContentEvent.subscribe(this.forceUnderlayRedraw);}F=true;}}function A(){var F=x.call(this);if(!F&&p){this.sizeUnderlay();}this._underlayDeferred=false;this.beforeShowEvent.unsubscribe(A);}function y(){if(this._underlayDeferred){this.beforeShowEvent.unsubscribe(A);this._underlayDeferred=false;}if(v){this.cfg.unsubscribeFromConfigEvent("width",this.sizeUnderlay);this.cfg.unsubscribeFromConfigEvent("height",this.sizeUnderlay);this.changeContentEvent.unsubscribe(this.sizeUnderlay);this.changeContentEvent.unsubscribe(this.forceUnderlayRedraw);YAHOO.widget.Module.textResizeEvent.unsubscribe(this.sizeUnderlay,this,true);this.element.removeChild(v);this.underlay=null;}}switch(E){case"shadow":a.removeClass(w,"matte");a.addClass(w,"shadow");break;case"matte":if(!B){y.call(this);}a.removeClass(w,"shadow");a.addClass(w,"matte");break;default:if(!B){y.call(this); | |||
|
76 | }a.removeClass(w,"shadow");a.removeClass(w,"matte");break;}if((E=="shadow")||(B&&!v)){if(this.cfg.getProperty("visible")){var u=x.call(this);if(!u&&p){this.sizeUnderlay();}}else{if(!this._underlayDeferred){this.beforeShowEvent.subscribe(A);this._underlayDeferred=true;}}}},configModal:function(v,u,x){var w=u[0];if(w){if(!this._hasModalityEventListeners){this.subscribe("beforeShow",this.buildMask);this.subscribe("beforeShow",this.bringToTop);this.subscribe("beforeShow",this.showMask);this.subscribe("hide",this.hideMask);h.windowResizeEvent.subscribe(this.sizeMask,this,true);this._hasModalityEventListeners=true;}}else{if(this._hasModalityEventListeners){if(this.cfg.getProperty("visible")){this.hideMask();this.removeMask();}this.unsubscribe("beforeShow",this.buildMask);this.unsubscribe("beforeShow",this.bringToTop);this.unsubscribe("beforeShow",this.showMask);this.unsubscribe("hide",this.hideMask);h.windowResizeEvent.unsubscribe(this.sizeMask,this);this._hasModalityEventListeners=false;}}},removeMask:function(){var v=this.mask,u;if(v){this.hideMask();u=v.parentNode;if(u){u.removeChild(v);}this.mask=null;}},configKeyListeners:function(x,u,A){var w=u[0],z,y,v;if(w){if(w instanceof Array){y=w.length;for(v=0;v<y;v++){z=w[v];if(!i.alreadySubscribed(this.showEvent,z.enable,z)){this.showEvent.subscribe(z.enable,z,true);}if(!i.alreadySubscribed(this.hideEvent,z.disable,z)){this.hideEvent.subscribe(z.disable,z,true);this.destroyEvent.subscribe(z.disable,z,true);}}}else{if(!i.alreadySubscribed(this.showEvent,w.enable,w)){this.showEvent.subscribe(w.enable,w,true);}if(!i.alreadySubscribed(this.hideEvent,w.disable,w)){this.hideEvent.subscribe(w.disable,w,true);this.destroyEvent.subscribe(w.disable,w,true);}}}},configStrings:function(v,u,w){var x=e.merge(n.STRINGS.value,u[0]);this.cfg.setProperty(n.STRINGS.key,x,true);},configHeight:function(x,v,y){var u=v[0],w=this.innerElement;a.setStyle(w,"height",u);this.cfg.refireEvent("iframe");},_autoFillOnHeightChange:function(x,v,w){o.superclass._autoFillOnHeightChange.apply(this,arguments);if(p){var u=this;setTimeout(function(){u.sizeUnderlay();},0);}},configWidth:function(x,u,y){var w=u[0],v=this.innerElement;a.setStyle(v,"width",w);this.cfg.refireEvent("iframe");},configzIndex:function(v,u,x){o.superclass.configzIndex.call(this,v,u,x);if(this.mask||this.cfg.getProperty("modal")===true){var w=a.getStyle(this.element,"zIndex");if(!w||isNaN(w)){w=0;}if(w===0){this.cfg.setProperty("zIndex",1);}else{this.stackMask();}}},buildWrapper:function(){var w=this.element.parentNode,u=this.element,v=document.createElement("div");v.className=o.CSS_PANEL_CONTAINER;v.id=u.id+"_c";if(w){w.insertBefore(v,u);}v.appendChild(u);this.element=v;this.innerElement=u;a.setStyle(this.innerElement,"visibility","inherit");},sizeUnderlay:function(){var v=this.underlay,u;if(v){u=this.element;v.style.width=u.offsetWidth+"px";v.style.height=u.offsetHeight+"px";}},registerDragDrop:function(){var v=this;if(this.header){if(!f.DD){return;}var u=(this.cfg.getProperty("dragonly")===true);this.dd=new f.DD(this.element.id,this.id,{dragOnly:u});if(!this.header.id){this.header.id=this.id+"_h";}this.dd.startDrag=function(){var x,z,w,C,B,A;if(YAHOO.env.ua.ie==6){a.addClass(v.element,"drag");}if(v.cfg.getProperty("constraintoviewport")){var y=h.VIEWPORT_OFFSET;x=v.element.offsetHeight;z=v.element.offsetWidth;w=a.getViewportWidth();C=a.getViewportHeight();B=a.getDocumentScrollLeft();A=a.getDocumentScrollTop();if(x+y<C){this.minY=A+y;this.maxY=A+C-x-y;}else{this.minY=A+y;this.maxY=A+y;}if(z+y<w){this.minX=B+y;this.maxX=B+w-z-y;}else{this.minX=B+y;this.maxX=B+y;}this.constrainX=true;this.constrainY=true;}else{this.constrainX=false;this.constrainY=false;}v.dragEvent.fire("startDrag",arguments);};this.dd.onDrag=function(){v.syncPosition();v.cfg.refireEvent("iframe");if(this.platform=="mac"&&YAHOO.env.ua.gecko){this.showMacGeckoScrollbars();}v.dragEvent.fire("onDrag",arguments);};this.dd.endDrag=function(){if(YAHOO.env.ua.ie==6){a.removeClass(v.element,"drag");}v.dragEvent.fire("endDrag",arguments);v.moveEvent.fire(v.cfg.getProperty("xy"));};this.dd.setHandleElId(this.header.id);this.dd.addInvalidHandleType("INPUT");this.dd.addInvalidHandleType("SELECT");this.dd.addInvalidHandleType("TEXTAREA");}},buildMask:function(){var u=this.mask;if(!u){if(!g){g=document.createElement("div");g.className="mask";g.innerHTML=" ";}u=g.cloneNode(true);u.id=this.id+"_mask";document.body.insertBefore(u,document.body.firstChild);this.mask=u;if(YAHOO.env.ua.gecko&&this.platform=="mac"){a.addClass(this.mask,"block-scrollbars");}this.stackMask();}},hideMask:function(){if(this.cfg.getProperty("modal")&&this.mask&&this.beforeHideMaskEvent.fire()){this.mask.style.display="none";a.removeClass(document.body,"masked");this.hideMaskEvent.fire();}},showMask:function(){if(this.cfg.getProperty("modal")&&this.mask&&this.beforeShowMaskEvent.fire()){a.addClass(document.body,"masked");this.sizeMask();this.mask.style.display="block";this.showMaskEvent.fire();}},sizeMask:function(){if(this.mask){var v=this.mask,w=a.getViewportWidth(),u=a.getViewportHeight();if(v.offsetHeight>u){v.style.height=u+"px";}if(v.offsetWidth>w){v.style.width=w+"px";}v.style.height=a.getDocumentHeight()+"px";v.style.width=a.getDocumentWidth()+"px";}},stackMask:function(){if(this.mask){var u=a.getStyle(this.element,"zIndex");if(!YAHOO.lang.isUndefined(u)&&!isNaN(u)){a.setStyle(this.mask,"zIndex",u-1);}}},render:function(u){return o.superclass.render.call(this,u,this.innerElement);},_renderHeader:function(u){u=u||this.innerElement;o.superclass._renderHeader.call(this,u);},_renderBody:function(u){u=u||this.innerElement;o.superclass._renderBody.call(this,u);},_renderFooter:function(u){u=u||this.innerElement;o.superclass._renderFooter.call(this,u);},destroy:function(u){h.windowResizeEvent.unsubscribe(this.sizeMask,this);this.removeMask();if(this.close){t.purgeElement(this.close);}o.superclass.destroy.call(this,u);},forceUnderlayRedraw:function(){var v=this.underlay;a.addClass(v,"yui-force-redraw"); | |||
|
77 | setTimeout(function(){a.removeClass(v,"yui-force-redraw");},0);},toString:function(){return"Panel "+this.id;}});}());(function(){YAHOO.widget.Dialog=function(j,i){YAHOO.widget.Dialog.superclass.constructor.call(this,j,i);};var b=YAHOO.util.Event,g=YAHOO.util.CustomEvent,e=YAHOO.util.Dom,a=YAHOO.widget.Dialog,f=YAHOO.lang,h={"BEFORE_SUBMIT":"beforeSubmit","SUBMIT":"submit","MANUAL_SUBMIT":"manualSubmit","ASYNC_SUBMIT":"asyncSubmit","FORM_SUBMIT":"formSubmit","CANCEL":"cancel"},c={"POST_METHOD":{key:"postmethod",value:"async"},"POST_DATA":{key:"postdata",value:null},"BUTTONS":{key:"buttons",value:"none",supercedes:["visible"]},"HIDEAFTERSUBMIT":{key:"hideaftersubmit",value:true}};a.CSS_DIALOG="yui-dialog";function d(){var m=this._aButtons,k,l,j;if(f.isArray(m)){k=m.length;if(k>0){j=k-1;do{l=m[j];if(YAHOO.widget.Button&&l instanceof YAHOO.widget.Button){l.destroy();}else{if(l.tagName.toUpperCase()=="BUTTON"){b.purgeElement(l);b.purgeElement(l,false);}}}while(j--);}}}YAHOO.extend(a,YAHOO.widget.Panel,{form:null,initDefaultConfig:function(){a.superclass.initDefaultConfig.call(this);this.callback={success:null,failure:null,argument:null};this.cfg.addProperty(c.POST_METHOD.key,{handler:this.configPostMethod,value:c.POST_METHOD.value,validator:function(i){if(i!="form"&&i!="async"&&i!="none"&&i!="manual"){return false;}else{return true;}}});this.cfg.addProperty(c.POST_DATA.key,{value:c.POST_DATA.value});this.cfg.addProperty(c.HIDEAFTERSUBMIT.key,{value:c.HIDEAFTERSUBMIT.value});this.cfg.addProperty(c.BUTTONS.key,{handler:this.configButtons,value:c.BUTTONS.value,supercedes:c.BUTTONS.supercedes});},initEvents:function(){a.superclass.initEvents.call(this);var i=g.LIST;this.beforeSubmitEvent=this.createEvent(h.BEFORE_SUBMIT);this.beforeSubmitEvent.signature=i;this.submitEvent=this.createEvent(h.SUBMIT);this.submitEvent.signature=i;this.manualSubmitEvent=this.createEvent(h.MANUAL_SUBMIT);this.manualSubmitEvent.signature=i;this.asyncSubmitEvent=this.createEvent(h.ASYNC_SUBMIT);this.asyncSubmitEvent.signature=i;this.formSubmitEvent=this.createEvent(h.FORM_SUBMIT);this.formSubmitEvent.signature=i;this.cancelEvent=this.createEvent(h.CANCEL);this.cancelEvent.signature=i;},init:function(j,i){a.superclass.init.call(this,j);this.beforeInitEvent.fire(a);e.addClass(this.element,a.CSS_DIALOG);this.cfg.setProperty("visible",false);if(i){this.cfg.applyConfig(i,true);}this.beforeHideEvent.subscribe(this.blurButtons,this,true);this.subscribe("changeBody",this.registerForm);this.initEvent.fire(a);},doSubmit:function(){var q=YAHOO.util.Connect,r=this.form,l=false,o=false,s,n,m,j;switch(this.cfg.getProperty("postmethod")){case"async":s=r.elements;n=s.length;if(n>0){m=n-1;do{if(s[m].type=="file"){l=true;break;}}while(m--);}if(l&&YAHOO.env.ua.ie&&this.isSecure){o=true;}j=this._getFormAttributes(r);q.setForm(r,l,o);var k=this.cfg.getProperty("postdata");var p=q.asyncRequest(j.method,j.action,this.callback,k);this.asyncSubmitEvent.fire(p);break;case"form":r.submit();this.formSubmitEvent.fire();break;case"none":case"manual":this.manualSubmitEvent.fire();break;}},_getFormAttributes:function(k){var i={method:null,action:null};if(k){if(k.getAttributeNode){var j=k.getAttributeNode("action");var l=k.getAttributeNode("method");if(j){i.action=j.value;}if(l){i.method=l.value;}}else{i.action=k.getAttribute("action");i.method=k.getAttribute("method");}}i.method=(f.isString(i.method)?i.method:"POST").toUpperCase();i.action=f.isString(i.action)?i.action:"";return i;},registerForm:function(){var i=this.element.getElementsByTagName("form")[0];if(this.form){if(this.form==i&&e.isAncestor(this.element,this.form)){return;}else{b.purgeElement(this.form);this.form=null;}}if(!i){i=document.createElement("form");i.name="frm_"+this.id;this.body.appendChild(i);}if(i){this.form=i;b.on(i,"submit",this._submitHandler,this,true);}},_submitHandler:function(i){b.stopEvent(i);this.submit();this.form.blur();},setTabLoop:function(i,j){i=i||this.firstButton;j=j||this.lastButton;a.superclass.setTabLoop.call(this,i,j);},_setTabLoop:function(i,j){i=i||this.firstButton;j=this.lastButton||j;this.setTabLoop(i,j);},setFirstLastFocusable:function(){a.superclass.setFirstLastFocusable.call(this);var k,j,m,n=this.focusableElements;this.firstFormElement=null;this.lastFormElement=null;if(this.form&&n&&n.length>0){j=n.length;for(k=0;k<j;++k){m=n[k];if(this.form===m.form){this.firstFormElement=m;break;}}for(k=j-1;k>=0;--k){m=n[k];if(this.form===m.form){this.lastFormElement=m;break;}}}},configClose:function(j,i,k){a.superclass.configClose.apply(this,arguments);},_doClose:function(i){b.preventDefault(i);this.cancel();},configButtons:function(t,s,n){var o=YAHOO.widget.Button,v=s[0],l=this.innerElement,u,q,k,r,p,j,m;d.call(this);this._aButtons=null;if(f.isArray(v)){p=document.createElement("span");p.className="button-group";r=v.length;this._aButtons=[];this.defaultHtmlButton=null;for(m=0;m<r;m++){u=v[m];if(o){k=new o({label:u.text,type:u.type});k.appendTo(p);q=k.get("element");if(u.isDefault){k.addClass("default");this.defaultHtmlButton=q;}if(f.isFunction(u.handler)){k.set("onclick",{fn:u.handler,obj:this,scope:this});}else{if(f.isObject(u.handler)&&f.isFunction(u.handler.fn)){k.set("onclick",{fn:u.handler.fn,obj:((!f.isUndefined(u.handler.obj))?u.handler.obj:this),scope:(u.handler.scope||this)});}}this._aButtons[this._aButtons.length]=k;}else{q=document.createElement("button");q.setAttribute("type","button");if(u.isDefault){q.className="default";this.defaultHtmlButton=q;}q.innerHTML=u.text;if(f.isFunction(u.handler)){b.on(q,"click",u.handler,this,true);}else{if(f.isObject(u.handler)&&f.isFunction(u.handler.fn)){b.on(q,"click",u.handler.fn,((!f.isUndefined(u.handler.obj))?u.handler.obj:this),(u.handler.scope||this));}}p.appendChild(q);this._aButtons[this._aButtons.length]=q;}u.htmlButton=q;if(m===0){this.firstButton=q;}if(m==(r-1)){this.lastButton=q;}}this.setFooter(p);j=this.footer;if(e.inDocument(this.element)&&!e.isAncestor(l,j)){l.appendChild(j);}this.buttonSpan=p;}else{p=this.buttonSpan; | |||
|
78 | j=this.footer;if(p&&j){j.removeChild(p);this.buttonSpan=null;this.firstButton=null;this.lastButton=null;this.defaultHtmlButton=null;}}this.changeContentEvent.fire();},getButtons:function(){return this._aButtons||null;},focusFirst:function(k,i,n){var j=this.firstFormElement,m=false;if(i&&i[1]){b.stopEvent(i[1]);if(i[0]===9&&this.firstElement){j=this.firstElement;}}if(j){try{j.focus();m=true;}catch(l){}}else{if(this.defaultHtmlButton){m=this.focusDefaultButton();}else{m=this.focusFirstButton();}}return m;},focusLast:function(k,i,n){var o=this.cfg.getProperty("buttons"),j=this.lastFormElement,m=false;if(i&&i[1]){b.stopEvent(i[1]);if(i[0]===9&&this.lastElement){j=this.lastElement;}}if(o&&f.isArray(o)){m=this.focusLastButton();}else{if(j){try{j.focus();m=true;}catch(l){}}}return m;},_getButton:function(j){var i=YAHOO.widget.Button;if(i&&j&&j.nodeName&&j.id){j=i.getButton(j.id)||j;}return j;},focusDefaultButton:function(){var i=this._getButton(this.defaultHtmlButton),k=false;if(i){try{i.focus();k=true;}catch(j){}}return k;},blurButtons:function(){var o=this.cfg.getProperty("buttons"),l,n,k,j;if(o&&f.isArray(o)){l=o.length;if(l>0){j=(l-1);do{n=o[j];if(n){k=this._getButton(n.htmlButton);if(k){try{k.blur();}catch(m){}}}}while(j--);}}},focusFirstButton:function(){var m=this.cfg.getProperty("buttons"),k,i,l=false;if(m&&f.isArray(m)){k=m[0];if(k){i=this._getButton(k.htmlButton);if(i){try{i.focus();l=true;}catch(j){}}}}return l;},focusLastButton:function(){var n=this.cfg.getProperty("buttons"),j,l,i,m=false;if(n&&f.isArray(n)){j=n.length;if(j>0){l=n[(j-1)];if(l){i=this._getButton(l.htmlButton);if(i){try{i.focus();m=true;}catch(k){}}}}}return m;},configPostMethod:function(j,i,k){this.registerForm();},validate:function(){return true;},submit:function(){if(this.validate()){if(this.beforeSubmitEvent.fire()){this.doSubmit();this.submitEvent.fire();if(this.cfg.getProperty("hideaftersubmit")){this.hide();}return true;}else{return false;}}else{return false;}},cancel:function(){this.cancelEvent.fire();this.hide();},getData:function(){var A=this.form,k,t,w,m,u,r,q,j,x,l,y,B,p,C,o,z,v;function s(n){var i=n.tagName.toUpperCase();return((i=="INPUT"||i=="TEXTAREA"||i=="SELECT")&&n.name==m);}if(A){k=A.elements;t=k.length;w={};for(z=0;z<t;z++){m=k[z].name;u=e.getElementsBy(s,"*",A);r=u.length;if(r>0){if(r==1){u=u[0];q=u.type;j=u.tagName.toUpperCase();switch(j){case"INPUT":if(q=="checkbox"){w[m]=u.checked;}else{if(q!="radio"){w[m]=u.value;}}break;case"TEXTAREA":w[m]=u.value;break;case"SELECT":x=u.options;l=x.length;y=[];for(v=0;v<l;v++){B=x[v];if(B.selected){o=B.attributes.value;y[y.length]=(o&&o.specified)?B.value:B.text;}}w[m]=y;break;}}else{q=u[0].type;switch(q){case"radio":for(v=0;v<r;v++){p=u[v];if(p.checked){w[m]=p.value;break;}}break;case"checkbox":y=[];for(v=0;v<r;v++){C=u[v];if(C.checked){y[y.length]=C.value;}}w[m]=y;break;}}}}}return w;},destroy:function(i){d.call(this);this._aButtons=null;var j=this.element.getElementsByTagName("form"),k;if(j.length>0){k=j[0];if(k){b.purgeElement(k);if(k.parentNode){k.parentNode.removeChild(k);}this.form=null;}}a.superclass.destroy.call(this,i);},toString:function(){return"Dialog "+this.id;}});}());(function(){YAHOO.widget.SimpleDialog=function(e,d){YAHOO.widget.SimpleDialog.superclass.constructor.call(this,e,d);};var c=YAHOO.util.Dom,b=YAHOO.widget.SimpleDialog,a={"ICON":{key:"icon",value:"none",suppressEvent:true},"TEXT":{key:"text",value:"",suppressEvent:true,supercedes:["icon"]}};b.ICON_BLOCK="blckicon";b.ICON_ALARM="alrticon";b.ICON_HELP="hlpicon";b.ICON_INFO="infoicon";b.ICON_WARN="warnicon";b.ICON_TIP="tipicon";b.ICON_CSS_CLASSNAME="yui-icon";b.CSS_SIMPLEDIALOG="yui-simple-dialog";YAHOO.extend(b,YAHOO.widget.Dialog,{initDefaultConfig:function(){b.superclass.initDefaultConfig.call(this);this.cfg.addProperty(a.ICON.key,{handler:this.configIcon,value:a.ICON.value,suppressEvent:a.ICON.suppressEvent});this.cfg.addProperty(a.TEXT.key,{handler:this.configText,value:a.TEXT.value,suppressEvent:a.TEXT.suppressEvent,supercedes:a.TEXT.supercedes});},init:function(e,d){b.superclass.init.call(this,e);this.beforeInitEvent.fire(b);c.addClass(this.element,b.CSS_SIMPLEDIALOG);this.cfg.queueProperty("postmethod","manual");if(d){this.cfg.applyConfig(d,true);}this.beforeRenderEvent.subscribe(function(){if(!this.body){this.setBody("");}},this,true);this.initEvent.fire(b);},registerForm:function(){b.superclass.registerForm.call(this);var e=this.form.ownerDocument,d=e.createElement("input");d.type="hidden";d.name=this.id;d.value="";this.form.appendChild(d);},configIcon:function(k,j,h){var d=j[0],e=this.body,f=b.ICON_CSS_CLASSNAME,l,i,g;if(d&&d!="none"){l=c.getElementsByClassName(f,"*",e);if(l.length===1){i=l[0];g=i.parentNode;if(g){g.removeChild(i);i=null;}}if(d.indexOf(".")==-1){i=document.createElement("span");i.className=(f+" "+d);i.innerHTML=" ";}else{i=document.createElement("img");i.src=(this.imageRoot+d);i.className=f;}if(i){e.insertBefore(i,e.firstChild);}}},configText:function(e,d,f){var g=d[0];if(g){this.setBody(g);this.cfg.refireEvent("icon");}},toString:function(){return"SimpleDialog "+this.id;}});}());(function(){YAHOO.widget.ContainerEffect=function(e,h,g,d,f){if(!f){f=YAHOO.util.Anim;}this.overlay=e;this.attrIn=h;this.attrOut=g;this.targetElement=d||e.element;this.animClass=f;};var b=YAHOO.util.Dom,c=YAHOO.util.CustomEvent,a=YAHOO.widget.ContainerEffect;a.FADE=function(d,f){var g=YAHOO.util.Easing,i={attributes:{opacity:{from:0,to:1}},duration:f,method:g.easeIn},e={attributes:{opacity:{to:0}},duration:f,method:g.easeOut},h=new a(d,i,e,d.element);h.handleUnderlayStart=function(){var k=this.overlay.underlay;if(k&&YAHOO.env.ua.ie){var j=(k.filters&&k.filters.length>0);if(j){b.addClass(d.element,"yui-effect-fade");}}};h.handleUnderlayComplete=function(){var j=this.overlay.underlay;if(j&&YAHOO.env.ua.ie){b.removeClass(d.element,"yui-effect-fade");}};h.handleStartAnimateIn=function(k,j,l){l.overlay._fadingIn=true;b.addClass(l.overlay.element,"hide-select");if(!l.overlay.underlay){l.overlay.cfg.refireEvent("underlay"); | |||
|
79 | }l.handleUnderlayStart();l.overlay._setDomVisibility(true);b.setStyle(l.overlay.element,"opacity",0);};h.handleCompleteAnimateIn=function(k,j,l){l.overlay._fadingIn=false;b.removeClass(l.overlay.element,"hide-select");if(l.overlay.element.style.filter){l.overlay.element.style.filter=null;}l.handleUnderlayComplete();l.overlay.cfg.refireEvent("iframe");l.animateInCompleteEvent.fire();};h.handleStartAnimateOut=function(k,j,l){l.overlay._fadingOut=true;b.addClass(l.overlay.element,"hide-select");l.handleUnderlayStart();};h.handleCompleteAnimateOut=function(k,j,l){l.overlay._fadingOut=false;b.removeClass(l.overlay.element,"hide-select");if(l.overlay.element.style.filter){l.overlay.element.style.filter=null;}l.overlay._setDomVisibility(false);b.setStyle(l.overlay.element,"opacity",1);l.handleUnderlayComplete();l.overlay.cfg.refireEvent("iframe");l.animateOutCompleteEvent.fire();};h.init();return h;};a.SLIDE=function(f,d){var i=YAHOO.util.Easing,l=f.cfg.getProperty("x")||b.getX(f.element),k=f.cfg.getProperty("y")||b.getY(f.element),m=b.getClientWidth(),h=f.element.offsetWidth,j={attributes:{points:{to:[l,k]}},duration:d,method:i.easeIn},e={attributes:{points:{to:[(m+25),k]}},duration:d,method:i.easeOut},g=new a(f,j,e,f.element,YAHOO.util.Motion);g.handleStartAnimateIn=function(o,n,p){p.overlay.element.style.left=((-25)-h)+"px";p.overlay.element.style.top=k+"px";};g.handleTweenAnimateIn=function(q,p,r){var s=b.getXY(r.overlay.element),o=s[0],n=s[1];if(b.getStyle(r.overlay.element,"visibility")=="hidden"&&o<l){r.overlay._setDomVisibility(true);}r.overlay.cfg.setProperty("xy",[o,n],true);r.overlay.cfg.refireEvent("iframe");};g.handleCompleteAnimateIn=function(o,n,p){p.overlay.cfg.setProperty("xy",[l,k],true);p.startX=l;p.startY=k;p.overlay.cfg.refireEvent("iframe");p.animateInCompleteEvent.fire();};g.handleStartAnimateOut=function(o,n,r){var p=b.getViewportWidth(),s=b.getXY(r.overlay.element),q=s[1];r.animOut.attributes.points.to=[(p+25),q];};g.handleTweenAnimateOut=function(p,o,q){var s=b.getXY(q.overlay.element),n=s[0],r=s[1];q.overlay.cfg.setProperty("xy",[n,r],true);q.overlay.cfg.refireEvent("iframe");};g.handleCompleteAnimateOut=function(o,n,p){p.overlay._setDomVisibility(false);p.overlay.cfg.setProperty("xy",[l,k]);p.animateOutCompleteEvent.fire();};g.init();return g;};a.prototype={init:function(){this.beforeAnimateInEvent=this.createEvent("beforeAnimateIn");this.beforeAnimateInEvent.signature=c.LIST;this.beforeAnimateOutEvent=this.createEvent("beforeAnimateOut");this.beforeAnimateOutEvent.signature=c.LIST;this.animateInCompleteEvent=this.createEvent("animateInComplete");this.animateInCompleteEvent.signature=c.LIST;this.animateOutCompleteEvent=this.createEvent("animateOutComplete");this.animateOutCompleteEvent.signature=c.LIST;this.animIn=new this.animClass(this.targetElement,this.attrIn.attributes,this.attrIn.duration,this.attrIn.method);this.animIn.onStart.subscribe(this.handleStartAnimateIn,this);this.animIn.onTween.subscribe(this.handleTweenAnimateIn,this);this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn,this);this.animOut=new this.animClass(this.targetElement,this.attrOut.attributes,this.attrOut.duration,this.attrOut.method);this.animOut.onStart.subscribe(this.handleStartAnimateOut,this);this.animOut.onTween.subscribe(this.handleTweenAnimateOut,this);this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut,this);},animateIn:function(){this._stopAnims(this.lastFrameOnStop);this.beforeAnimateInEvent.fire();this.animIn.animate();},animateOut:function(){this._stopAnims(this.lastFrameOnStop);this.beforeAnimateOutEvent.fire();this.animOut.animate();},lastFrameOnStop:true,_stopAnims:function(d){if(this.animOut&&this.animOut.isAnimated()){this.animOut.stop(d);}if(this.animIn&&this.animIn.isAnimated()){this.animIn.stop(d);}},handleStartAnimateIn:function(e,d,f){},handleTweenAnimateIn:function(e,d,f){},handleCompleteAnimateIn:function(e,d,f){},handleStartAnimateOut:function(e,d,f){},handleTweenAnimateOut:function(e,d,f){},handleCompleteAnimateOut:function(e,d,f){},toString:function(){var d="ContainerEffect";if(this.overlay){d+=" ["+this.overlay.toString()+"]";}return d;}};YAHOO.lang.augmentProto(a,YAHOO.util.EventProvider);})();YAHOO.register("container",YAHOO.widget.Module,{version:"2.9.0",build:"2800"});/* | |||
|
80 | Copyright (c) 2011, Yahoo! Inc. All rights reserved. | |||
|
81 | Code licensed under the BSD License: | |||
|
82 | http://developer.yahoo.com/yui/license.html | |||
|
83 | version: 2.9.0 | |||
|
84 | */ | |||
|
85 | var Y=YAHOO,Y_DOM=YAHOO.util.Dom,EMPTY_ARRAY=[],Y_UA=Y.env.ua,Y_Lang=Y.lang,Y_DOC=document,Y_DOCUMENT_ELEMENT=Y_DOC.documentElement,Y_DOM_inDoc=Y_DOM.inDocument,Y_mix=Y_Lang.augmentObject,Y_guid=Y_DOM.generateId,Y_getDoc=function(a){var b=Y_DOC;if(a){b=(a.nodeType===9)?a:a.ownerDocument||a.document||Y_DOC;}return b;},Y_Array=function(g,d){var c,b,h=d||0;try{return Array.prototype.slice.call(g,h);}catch(f){b=[];c=g.length;for(;h<c;h++){b.push(g[h]);}return b;}},Y_DOM_allById=function(f,a){a=a||Y_DOC;var b=[],c=[],d,e;if(a.querySelectorAll){c=a.querySelectorAll('[id="'+f+'"]');}else{if(a.all){b=a.all(f);if(b){if(b.nodeName){if(b.id===f){c.push(b);b=EMPTY_ARRAY;}else{b=[b];}}if(b.length){for(d=0;e=b[d++];){if(e.id===f||(e.attributes&&e.attributes.id&&e.attributes.id.value===f)){c.push(e);}}}}}else{c=[Y_getDoc(a).getElementById(f)];}}return c;};var COMPARE_DOCUMENT_POSITION="compareDocumentPosition",OWNER_DOCUMENT="ownerDocument",Selector={_foundCache:[],useNative:true,_compare:("sourceIndex" in Y_DOCUMENT_ELEMENT)?function(f,e){var d=f.sourceIndex,c=e.sourceIndex;if(d===c){return 0;}else{if(d>c){return 1;}}return -1;}:(Y_DOCUMENT_ELEMENT[COMPARE_DOCUMENT_POSITION]?function(b,a){if(b[COMPARE_DOCUMENT_POSITION](a)&4){return -1;}else{return 1;}}:function(e,d){var c,a,b;if(e&&d){c=e[OWNER_DOCUMENT].createRange();c.setStart(e,0);a=d[OWNER_DOCUMENT].createRange();a.setStart(d,0);b=c.compareBoundaryPoints(1,a);}return b;}),_sort:function(a){if(a){a=Y_Array(a,0,true);if(a.sort){a.sort(Selector._compare);}}return a;},_deDupe:function(a){var b=[],c,d;for(c=0;(d=a[c++]);){if(!d._found){b[b.length]=d;d._found=true;}}for(c=0;(d=b[c++]);){d._found=null;d.removeAttribute("_found");}return b;},query:function(b,j,k,a){if(j&&typeof j=="string"){j=Y_DOM.get(j);if(!j){return(k)?null:[];}}else{j=j||Y_DOC;}var f=[],c=(Selector.useNative&&Y_DOC.querySelector&&!a),e=[[b,j]],g,l,d,h=(c)?Selector._nativeQuery:Selector._bruteQuery;if(b&&h){if(!a&&(!c||j.tagName)){e=Selector._splitQueries(b,j);}for(d=0;(g=e[d++]);){l=h(g[0],g[1],k);if(!k){l=Y_Array(l,0,true);}if(l){f=f.concat(l);}}if(e.length>1){f=Selector._sort(Selector._deDupe(f));}}return(k)?(f[0]||null):f;},_splitQueries:function(c,f){var b=c.split(","),d=[],g="",e,a;if(f){if(f.tagName){f.id=f.id||Y_guid();g='[id="'+f.id+'"] ';}for(e=0,a=b.length;e<a;++e){c=g+b[e];d.push([c,f]);}}return d;},_nativeQuery:function(a,b,c){if(Y_UA.webkit&&a.indexOf(":checked")>-1&&(Selector.pseudos&&Selector.pseudos.checked)){return Selector.query(a,b,c,true);}try{return b["querySelector"+(c?"":"All")](a);}catch(d){return Selector.query(a,b,c,true);}},filter:function(b,a){var c=[],d,e;if(b&&a){for(d=0;(e=b[d++]);){if(Selector.test(e,a)){c[c.length]=e;}}}else{}return c;},test:function(c,d,k){var g=false,b=d.split(","),a=false,l,o,h,n,f,e,m;if(c&&c.tagName){if(!k&&!Y_DOM_inDoc(c)){l=c.parentNode;if(l){k=l;}else{n=c[OWNER_DOCUMENT].createDocumentFragment();n.appendChild(c);k=n;a=true;}}k=k||c[OWNER_DOCUMENT];if(!c.id){c.id=Y_guid();}for(f=0;(m=b[f++]);){m+='[id="'+c.id+'"]';h=Selector.query(m,k);for(e=0;o=h[e++];){if(o===c){g=true;break;}}if(g){break;}}if(a){n.removeChild(c);}}return g;}};YAHOO.util.Selector=Selector;var PARENT_NODE="parentNode",TAG_NAME="tagName",ATTRIBUTES="attributes",COMBINATOR="combinator",PSEUDOS="pseudos",SelectorCSS2={_reRegExpTokens:/([\^\$\?\[\]\*\+\-\.\(\)\|\\])/,SORT_RESULTS:true,_children:function(e,a){var b=e.children,d,c=[],f,g;if(e.children&&a&&e.children.tags){c=e.children.tags(a);}else{if((!b&&e[TAG_NAME])||(b&&a)){f=b||e.childNodes;b=[];for(d=0;(g=f[d++]);){if(g.tagName){if(!a||a===g.tagName){b.push(g);}}}}}return b||[];},_re:{attr:/(\[[^\]]*\])/g,esc:/\\[:\[\]\(\)#\.\'\>+~"]/gi,pseudos:/(\([^\)]*\))/g},shorthand:{"\\#(-?[_a-z]+[-\\w\\uE000]*)":"[id=$1]","\\.(-?[_a-z]+[-\\w\\uE000]*)":"[className~=$1]"},operators:{"":function(b,a){return !!b.getAttribute(a);},"~=":"(?:^|\\s+){val}(?:\\s+|$)","|=":"^{val}(?:-|$)"},pseudos:{"first-child":function(a){return Selector._children(a[PARENT_NODE])[0]===a;}},_bruteQuery:function(f,j,l){var g=[],a=[],i=Selector._tokenize(f),e=i[i.length-1],k=Y_getDoc(j),c,b,h,d;if(e){b=e.id;h=e.className;d=e.tagName||"*";if(j.getElementsByTagName){if(b&&(j.all||(j.nodeType===9||Y_DOM_inDoc(j)))){a=Y_DOM_allById(b,j);}else{if(h){a=j.getElementsByClassName(h);}else{a=j.getElementsByTagName(d);}}}else{c=j.firstChild;while(c){if(c.tagName){a.push(c);}c=c.nextSilbing||c.firstChild;}}if(a.length){g=Selector._filterNodes(a,i,l);}}return g;},_filterNodes:function(l,f,h){var r=0,q,s=f.length,k=s-1,e=[],o=l[0],v=o,t=Selector.getters,d,p,c,g,a,m,b,u;for(r=0;(v=o=l[r++]);){k=s-1;g=null;testLoop:while(v&&v.tagName){c=f[k];b=c.tests;q=b.length;if(q&&!a){while((u=b[--q])){d=u[1];if(t[u[0]]){m=t[u[0]](v,u[0]);}else{m=v[u[0]];if(m===undefined&&v.getAttribute){m=v.getAttribute(u[0]);}}if((d==="="&&m!==u[2])||(typeof d!=="string"&&d.test&&!d.test(m))||(!d.test&&typeof d==="function"&&!d(v,u[0],u[2]))){if((v=v[g])){while(v&&(!v.tagName||(c.tagName&&c.tagName!==v.tagName))){v=v[g];}}continue testLoop;}}}k--;if(!a&&(p=c.combinator)){g=p.axis;v=v[g];while(v&&!v.tagName){v=v[g];}if(p.direct){g=null;}}else{e.push(o);if(h){return e;}break;}}}o=v=null;return e;},combinators:{" ":{axis:"parentNode"},">":{axis:"parentNode",direct:true},"+":{axis:"previousSibling",direct:true}},_parsers:[{name:ATTRIBUTES,re:/^\uE003(-?[a-z]+[\w\-]*)+([~\|\^\$\*!=]=?)?['"]?([^\uE004'"]*)['"]?\uE004/i,fn:function(d,e){var c=d[2]||"",a=Selector.operators,b=(d[3])?d[3].replace(/\\/g,""):"",f;if((d[1]==="id"&&c==="=")||(d[1]==="className"&&Y_DOCUMENT_ELEMENT.getElementsByClassName&&(c==="~="||c==="="))){e.prefilter=d[1];d[3]=b;e[d[1]]=(d[1]==="id")?d[3]:b;}if(c in a){f=a[c];if(typeof f==="string"){d[3]=b.replace(Selector._reRegExpTokens,"\\$1");f=new RegExp(f.replace("{val}",d[3]));}d[2]=f;}if(!e.last||e.prefilter!==d[1]){return d.slice(1);}}},{name:TAG_NAME,re:/^((?:-?[_a-z]+[\w-]*)|\*)/i,fn:function(b,c){var a=b[1].toUpperCase();c.tagName=a;if(a!=="*"&&(!c.last||c.prefilter)){return[TAG_NAME,"=",a]; | |||
|
86 | }if(!c.prefilter){c.prefilter="tagName";}}},{name:COMBINATOR,re:/^\s*([>+~]|\s)\s*/,fn:function(a,b){}},{name:PSEUDOS,re:/^:([\-\w]+)(?:\uE005['"]?([^\uE005]*)['"]?\uE006)*/i,fn:function(a,b){var c=Selector[PSEUDOS][a[1]];if(c){if(a[2]){a[2]=a[2].replace(/\\/g,"");}return[a[2],c];}else{return false;}}}],_getToken:function(a){return{tagName:null,id:null,className:null,attributes:{},combinator:null,tests:[]};},_tokenize:function(c){c=c||"";c=Selector._replaceShorthand(Y_Lang.trim(c));var b=Selector._getToken(),h=c,g=[],j=false,e,f,d,a;outer:do{j=false;for(d=0;(a=Selector._parsers[d++]);){if((e=a.re.exec(c))){if(a.name!==COMBINATOR){b.selector=c;}c=c.replace(e[0],"");if(!c.length){b.last=true;}if(Selector._attrFilters[e[1]]){e[1]=Selector._attrFilters[e[1]];}f=a.fn(e,b);if(f===false){j=false;break outer;}else{if(f){b.tests.push(f);}}if(!c.length||a.name===COMBINATOR){g.push(b);b=Selector._getToken(b);if(a.name===COMBINATOR){b.combinator=Selector.combinators[e[1]];}}j=true;}}}while(j&&c.length);if(!j||c.length){g=[];}return g;},_replaceShorthand:function(b){var d=Selector.shorthand,c=b.match(Selector._re.esc),e,h,g,f,a;if(c){b=b.replace(Selector._re.esc,"\uE000");}e=b.match(Selector._re.attr);h=b.match(Selector._re.pseudos);if(e){b=b.replace(Selector._re.attr,"\uE001");}if(h){b=b.replace(Selector._re.pseudos,"\uE002");}for(g in d){if(d.hasOwnProperty(g)){b=b.replace(new RegExp(g,"gi"),d[g]);}}if(e){for(f=0,a=e.length;f<a;++f){b=b.replace(/\uE001/,e[f]);}}if(h){for(f=0,a=h.length;f<a;++f){b=b.replace(/\uE002/,h[f]);}}b=b.replace(/\[/g,"\uE003");b=b.replace(/\]/g,"\uE004");b=b.replace(/\(/g,"\uE005");b=b.replace(/\)/g,"\uE006");if(c){for(f=0,a=c.length;f<a;++f){b=b.replace("\uE000",c[f]);}}return b;},_attrFilters:{"class":"className","for":"htmlFor"},getters:{href:function(b,a){return Y_DOM.getAttribute(b,a);}}};Y_mix(Selector,SelectorCSS2,true);Selector.getters.src=Selector.getters.rel=Selector.getters.href;if(Selector.useNative&&Y_DOC.querySelector){Selector.shorthand["\\.([^\\s\\\\(\\[:]*)"]="[class~=$1]";}Selector._reNth=/^(?:([\-]?\d*)(n){1}|(odd|even)$)*([\-+]?\d*)$/;Selector._getNth=function(d,o,q,h){Selector._reNth.test(o);var m=parseInt(RegExp.$1,10),c=RegExp.$2,j=RegExp.$3,k=parseInt(RegExp.$4,10)||0,p=[],l=Selector._children(d.parentNode,q),f;if(j){m=2;f="+";c="n";k=(j==="odd")?1:0;}else{if(isNaN(m)){m=(c)?1:0;}}if(m===0){if(h){k=l.length-k+1;}if(l[k-1]===d){return true;}else{return false;}}else{if(m<0){h=!!h;m=Math.abs(m);}}if(!h){for(var e=k-1,g=l.length;e<g;e+=m){if(e>=0&&l[e]===d){return true;}}}else{for(var e=l.length-k,g=l.length;e>=0;e-=m){if(e<g&&l[e]===d){return true;}}}return false;};Y_mix(Selector.pseudos,{"root":function(a){return a===a.ownerDocument.documentElement;},"nth-child":function(a,b){return Selector._getNth(a,b);},"nth-last-child":function(a,b){return Selector._getNth(a,b,null,true);},"nth-of-type":function(a,b){return Selector._getNth(a,b,a.tagName);},"nth-last-of-type":function(a,b){return Selector._getNth(a,b,a.tagName,true);},"last-child":function(b){var a=Selector._children(b.parentNode);return a[a.length-1]===b;},"first-of-type":function(a){return Selector._children(a.parentNode,a.tagName)[0]===a;},"last-of-type":function(b){var a=Selector._children(b.parentNode,b.tagName);return a[a.length-1]===b;},"only-child":function(b){var a=Selector._children(b.parentNode);return a.length===1&&a[0]===b;},"only-of-type":function(b){var a=Selector._children(b.parentNode,b.tagName);return a.length===1&&a[0]===b;},"empty":function(a){return a.childNodes.length===0;},"not":function(a,b){return !Selector.test(a,b);},"contains":function(a,b){var c=a.innerText||a.textContent||"";return c.indexOf(b)>-1;},"checked":function(a){return(a.checked===true||a.selected===true);},enabled:function(a){return(a.disabled!==undefined&&!a.disabled);},disabled:function(a){return(a.disabled);}});Y_mix(Selector.operators,{"^=":"^{val}","!=":function(b,a,c){return b[a]!==c;},"$=":"{val}$","*=":"{val}"});Selector.combinators["~"]={axis:"previousSibling"};YAHOO.register("selector",YAHOO.util.Selector,{version:"2.9.0",build:"2800"});/* | |||
|
87 | Copyright (c) 2011, Yahoo! Inc. All rights reserved. | |||
|
88 | Code licensed under the BSD License: | |||
|
89 | http://developer.yahoo.com/yui/license.html | |||
|
90 | version: 2.9.0 | |||
|
91 | */ | |||
|
92 | (function(){var A=YAHOO.util.Event,C=YAHOO.lang,B=[],D=function(H,E,F){var G;if(!H||H===F){G=false;}else{G=YAHOO.util.Selector.test(H,E)?H:D(H.parentNode,E,F);}return G;};C.augmentObject(A,{_createDelegate:function(F,E,G,H){return function(I){var J=this,N=A.getTarget(I),L=E,P=(J.nodeType===9),Q,K,O,M;if(C.isFunction(E)){Q=E(N);}else{if(C.isString(E)){if(!P){O=J.id;if(!O){O=A.generateId(J);}M=("#"+O+" ");L=(M+E).replace(/,/gi,(","+M));}if(YAHOO.util.Selector.test(N,L)){Q=N;}else{if(YAHOO.util.Selector.test(N,((L.replace(/,/gi," *,"))+" *"))){Q=D(N,L,J);}}}}if(Q){K=Q;if(H){if(H===true){K=G;}else{K=H;}}return F.call(K,I,Q,J,G);}};},delegate:function(F,J,L,G,H,I){var E=J,K,M;if(C.isString(G)&&!YAHOO.util.Selector){return false;}if(J=="mouseenter"||J=="mouseleave"){if(!A._createMouseDelegate){return false;}E=A._getType(J);K=A._createMouseDelegate(L,H,I);M=A._createDelegate(function(P,O,N){return K.call(O,P,N);},G,H,I);}else{M=A._createDelegate(L,G,H,I);}B.push([F,E,L,M]);return A.on(F,E,M);},removeDelegate:function(F,J,I){var K=J,H=false,G,E;if(J=="mouseenter"||J=="mouseleave"){K=A._getType(J);}G=A._getCacheIndex(B,F,K,I);if(G>=0){E=B[G];}if(F&&E){H=A.removeListener(E[0],E[1],E[3]);if(H){delete B[G][2];delete B[G][3];B.splice(G,1);}}return H;}});}());YAHOO.register("event-delegate",YAHOO.util.Event,{version:"2.9.0",build:"2800"});/* | |||
|
93 | Copyright (c) 2011, Yahoo! Inc. All rights reserved. | |||
|
94 | Code licensed under the BSD License: | |||
|
95 | http://developer.yahoo.com/yui/license.html | |||
|
96 | version: 2.9.0 | |||
|
97 | */ | |||
|
98 | (function(){var l=YAHOO.lang,isFunction=l.isFunction,isObject=l.isObject,isArray=l.isArray,_toStr=Object.prototype.toString,Native=(YAHOO.env.ua.caja?window:this).JSON,_UNICODE_EXCEPTIONS=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_ESCAPES=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,_VALUES=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_BRACKETS=/(?:^|:|,)(?:\s*\[)+/g,_UNSAFE=/[^\],:{}\s]/,_SPECIAL_CHARS=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_CHARS={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},UNDEFINED="undefined",OBJECT="object",NULL="null",STRING="string",NUMBER="number",BOOLEAN="boolean",DATE="date",_allowable={"undefined":UNDEFINED,"string":STRING,"[object String]":STRING,"number":NUMBER,"[object Number]":NUMBER,"boolean":BOOLEAN,"[object Boolean]":BOOLEAN,"[object Date]":DATE,"[object RegExp]":OBJECT},EMPTY="",OPEN_O="{",CLOSE_O="}",OPEN_A="[",CLOSE_A="]",COMMA=",",COMMA_CR=",\n",CR="\n",COLON=":",COLON_SP=": ",QUOTE='"';Native=_toStr.call(Native)==="[object JSON]"&&Native;function _char(c){if(!_CHARS[c]){_CHARS[c]="\\u"+("0000"+(+(c.charCodeAt(0))).toString(16)).slice(-4);}return _CHARS[c];}function _revive(data,reviver){var walk=function(o,key){var k,v,value=o[key];if(value&&typeof value==="object"){for(k in value){if(l.hasOwnProperty(value,k)){v=walk(value,k);if(v===undefined){delete value[k];}else{value[k]=v;}}}}return reviver.call(o,key,value);};return typeof reviver==="function"?walk({"":data},""):data;}function _prepare(s){return s.replace(_UNICODE_EXCEPTIONS,_char);}function _isSafe(str){return l.isString(str)&&!_UNSAFE.test(str.replace(_ESCAPES,"@").replace(_VALUES,"]").replace(_BRACKETS,""));}function _parse(s,reviver){s=_prepare(s);if(_isSafe(s)){return _revive(eval("("+s+")"),reviver);}throw new SyntaxError("JSON.parse");}function _type(o){var t=typeof o;return _allowable[t]||_allowable[_toStr.call(o)]||(t===OBJECT?(o?OBJECT:NULL):UNDEFINED);}function _string(s){return QUOTE+s.replace(_SPECIAL_CHARS,_char)+QUOTE;}function _indent(s,space){return s.replace(/^/gm,space);}function _stringify(o,w,space){if(o===undefined){return undefined;}var replacer=isFunction(w)?w:null,format=_toStr.call(space).match(/String|Number/)||[],_date=YAHOO.lang.JSON.dateToString,stack=[],tmp,i,len;if(replacer||!isArray(w)){w=undefined;}if(w){tmp={};for(i=0,len=w.length;i<len;++i){tmp[w[i]]=true;}w=tmp;}space=format[0]==="Number"?new Array(Math.min(Math.max(0,space),10)+1).join(" "):(space||EMPTY).slice(0,10);function _serialize(h,key){var value=h[key],t=_type(value),a=[],colon=space?COLON_SP:COLON,arr,i,keys,k,v;if(isObject(value)&&isFunction(value.toJSON)){value=value.toJSON(key);}else{if(t===DATE){value=_date(value);}}if(isFunction(replacer)){value=replacer.call(h,key,value);}if(value!==h[key]){t=_type(value);}switch(t){case DATE:case OBJECT:break;case STRING:return _string(value);case NUMBER:return isFinite(value)?value+EMPTY:NULL;case BOOLEAN:return value+EMPTY;case NULL:return NULL;default:return undefined;}for(i=stack.length-1;i>=0;--i){if(stack[i]===value){throw new Error("JSON.stringify. Cyclical reference");}}arr=isArray(value);stack.push(value);if(arr){for(i=value.length-1;i>=0;--i){a[i]=_serialize(value,i)||NULL;}}else{keys=w||value;i=0;for(k in keys){if(l.hasOwnProperty(keys,k)){v=_serialize(value,k);if(v){a[i++]=_string(k)+colon+v;}}}}stack.pop();if(space&&a.length){return arr?OPEN_A+CR+_indent(a.join(COMMA_CR),space)+CR+CLOSE_A:OPEN_O+CR+_indent(a.join(COMMA_CR),space)+CR+CLOSE_O;}else{return arr?OPEN_A+a.join(COMMA)+CLOSE_A:OPEN_O+a.join(COMMA)+CLOSE_O;}}return _serialize({"":o},"");}YAHOO.lang.JSON={useNativeParse:!!Native,useNativeStringify:!!Native,isSafe:function(s){return _isSafe(_prepare(s));},parse:function(s,reviver){if(typeof s!=="string"){s+="";}return Native&&YAHOO.lang.JSON.useNativeParse?Native.parse(s,reviver):_parse(s,reviver);},stringify:function(o,w,space){return Native&&YAHOO.lang.JSON.useNativeStringify?Native.stringify(o,w,space):_stringify(o,w,space);},dateToString:function(d){function _zeroPad(v){return v<10?"0"+v:v;}return d.getUTCFullYear()+"-"+_zeroPad(d.getUTCMonth()+1)+"-"+_zeroPad(d.getUTCDate())+"T"+_zeroPad(d.getUTCHours())+COLON+_zeroPad(d.getUTCMinutes())+COLON+_zeroPad(d.getUTCSeconds())+"Z";},stringToDate:function(str){var m=str.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{3}))?Z$/);if(m){var d=new Date();d.setUTCFullYear(m[1],m[2]-1,m[3]);d.setUTCHours(m[4],m[5],m[6],(m[7]||0));return d;}return str;}};YAHOO.lang.JSON.isValid=YAHOO.lang.JSON.isSafe;})();YAHOO.register("json",YAHOO.lang.JSON,{version:"2.9.0",build:"2800"});/* | |||
|
99 | Copyright (c) 2011, Yahoo! Inc. All rights reserved. | |||
|
100 | Code licensed under the BSD License: | |||
|
101 | http://developer.yahoo.com/yui/license.html | |||
|
102 | version: 2.9.0 | |||
|
103 | */ | |||
|
104 | (function(){var b=YAHOO.util.Event,g=YAHOO.lang,e=b.addListener,f=b.removeListener,c=b.getListeners,d=[],h={mouseenter:"mouseover",mouseleave:"mouseout"},a=function(n,m,l){var j=b._getCacheIndex(d,n,m,l),i,k;if(j>=0){i=d[j];}if(n&&i){k=f.call(b,i[0],m,i[3]);if(k){delete d[j][2];delete d[j][3];d.splice(j,1);}}return k;};g.augmentObject(b._specialTypes,h);g.augmentObject(b,{_createMouseDelegate:function(i,j,k){return function(q,m){var p=this,l=b.getRelatedTarget(q),o,n;if(p!=l&&!YAHOO.util.Dom.isAncestor(p,l)){o=p;if(k){if(k===true){o=j;}else{o=k;}}n=[q,j];if(m){n.splice(1,0,p,m);}return i.apply(o,n);}};},addListener:function(m,l,k,n,o){var i,j;if(h[l]){i=b._createMouseDelegate(k,n,o);i.mouseDelegate=true;d.push([m,l,k,i]);j=e.call(b,m,l,i);}else{j=e.apply(b,arguments);}return j;},removeListener:function(l,k,j){var i;if(h[k]){i=a.apply(b,arguments);}else{i=f.apply(b,arguments);}return i;},getListeners:function(p,o){var n=[],r,m=(o==="mouseover"||o==="mouseout"),q,k,j;if(o&&(m||h[o])){r=c.call(b,p,this._getType(o));if(r){for(k=r.length-1;k>-1;k--){j=r[k];q=j.fn.mouseDelegate;if((h[o]&&q)||(m&&!q)){n.push(j);}}}}else{n=c.apply(b,arguments);}return(n&&n.length)?n:null;}},true);b.on=b.addListener;}());YAHOO.register("event-mouseenter",YAHOO.util.Event,{version:"2.9.0",build:"2800"}); No newline at end of file |
@@ -1,58 +1,59 | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 | """ |
|
2 | """ | |
3 | rhodecode.controllers.admin.admin |
|
3 | rhodecode.controllers.admin.admin | |
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
5 |
|
5 | |||
6 | Controller for Admin panel of Rhodecode |
|
6 | Controller for Admin panel of Rhodecode | |
7 |
|
7 | |||
8 | :created_on: Apr 7, 2010 |
|
8 | :created_on: Apr 7, 2010 | |
9 | :author: marcink |
|
9 | :author: marcink | |
10 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> |
|
10 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | |
11 | :license: GPLv3, see COPYING for more details. |
|
11 | :license: GPLv3, see COPYING for more details. | |
12 | """ |
|
12 | """ | |
13 | # This program is free software: you can redistribute it and/or modify |
|
13 | # This program is free software: you can redistribute it and/or modify | |
14 | # it under the terms of the GNU General Public License as published by |
|
14 | # it under the terms of the GNU General Public License as published by | |
15 | # the Free Software Foundation, either version 3 of the License, or |
|
15 | # the Free Software Foundation, either version 3 of the License, or | |
16 | # (at your option) any later version. |
|
16 | # (at your option) any later version. | |
17 | # |
|
17 | # | |
18 | # This program is distributed in the hope that it will be useful, |
|
18 | # This program is distributed in the hope that it will be useful, | |
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 | # GNU General Public License for more details. |
|
21 | # GNU General Public License for more details. | |
22 | # |
|
22 | # | |
23 | # You should have received a copy of the GNU General Public License |
|
23 | # You should have received a copy of the GNU General Public License | |
24 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
24 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
25 |
|
25 | |||
26 | import logging |
|
26 | import logging | |
27 |
|
27 | |||
28 | from pylons import request, tmpl_context as c |
|
28 | from pylons import request, tmpl_context as c | |
29 | from sqlalchemy.orm import joinedload |
|
29 | from sqlalchemy.orm import joinedload | |
30 | from webhelpers.paginate import Page |
|
30 | from webhelpers.paginate import Page | |
31 |
|
31 | |||
32 | from rhodecode.lib.auth import LoginRequired, HasPermissionAllDecorator |
|
32 | from rhodecode.lib.auth import LoginRequired, HasPermissionAllDecorator | |
33 | from rhodecode.lib.base import BaseController, render |
|
33 | from rhodecode.lib.base import BaseController, render | |
34 | from rhodecode.model.db import UserLog |
|
34 | from rhodecode.model.db import UserLog | |
35 |
|
35 | |||
36 | log = logging.getLogger(__name__) |
|
36 | log = logging.getLogger(__name__) | |
37 |
|
37 | |||
38 |
|
38 | |||
39 | class AdminController(BaseController): |
|
39 | class AdminController(BaseController): | |
40 |
|
40 | |||
41 | @LoginRequired() |
|
41 | @LoginRequired() | |
42 | def __before__(self): |
|
42 | def __before__(self): | |
43 | super(AdminController, self).__before__() |
|
43 | super(AdminController, self).__before__() | |
44 |
|
44 | |||
45 | @HasPermissionAllDecorator('hg.admin') |
|
45 | @HasPermissionAllDecorator('hg.admin') | |
46 | def index(self): |
|
46 | def index(self): | |
47 |
|
47 | |||
48 | users_log = self.sa.query(UserLog)\ |
|
48 | users_log = self.sa.query(UserLog)\ | |
49 | .options(joinedload(UserLog.user))\ |
|
49 | .options(joinedload(UserLog.user))\ | |
50 | .options(joinedload(UserLog.repository))\ |
|
50 | .options(joinedload(UserLog.repository))\ | |
51 | .order_by(UserLog.action_date.desc()) |
|
51 | .order_by(UserLog.action_date.desc()) | |
52 |
|
52 | |||
53 | p = int(request.params.get('page', 1)) |
|
53 | p = int(request.params.get('page', 1)) | |
54 | c.users_log = Page(users_log, page=p, items_per_page=10) |
|
54 | c.users_log = Page(users_log, page=p, items_per_page=10) | |
55 | c.log_data = render('admin/admin_log.html') |
|
55 | c.log_data = render('admin/admin_log.html') | |
56 | if request.params.get('partial'): |
|
56 | ||
|
57 | if request.environ.get('HTTP_X_PARTIAL_XHR'): | |||
57 | return c.log_data |
|
58 | return c.log_data | |
58 | return render('admin/admin.html') |
|
59 | return render('admin/admin.html') |
@@ -1,57 +1,57 | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 | """ |
|
2 | """ | |
3 | rhodecode.controllers.followers |
|
3 | rhodecode.controllers.followers | |
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
5 |
|
5 | |||
6 | Followers controller for rhodecode |
|
6 | Followers controller for rhodecode | |
7 |
|
7 | |||
8 | :created_on: Apr 23, 2011 |
|
8 | :created_on: Apr 23, 2011 | |
9 | :author: marcink |
|
9 | :author: marcink | |
10 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> |
|
10 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | |
11 | :license: GPLv3, see COPYING for more details. |
|
11 | :license: GPLv3, see COPYING for more details. | |
12 | """ |
|
12 | """ | |
13 | # This program is free software: you can redistribute it and/or modify |
|
13 | # This program is free software: you can redistribute it and/or modify | |
14 | # it under the terms of the GNU General Public License as published by |
|
14 | # it under the terms of the GNU General Public License as published by | |
15 | # the Free Software Foundation, either version 3 of the License, or |
|
15 | # the Free Software Foundation, either version 3 of the License, or | |
16 | # (at your option) any later version. |
|
16 | # (at your option) any later version. | |
17 | # |
|
17 | # | |
18 | # This program is distributed in the hope that it will be useful, |
|
18 | # This program is distributed in the hope that it will be useful, | |
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 | # GNU General Public License for more details. |
|
21 | # GNU General Public License for more details. | |
22 | # |
|
22 | # | |
23 | # You should have received a copy of the GNU General Public License |
|
23 | # You should have received a copy of the GNU General Public License | |
24 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
24 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
25 | import logging |
|
25 | import logging | |
26 |
|
26 | |||
27 | from pylons import tmpl_context as c, request |
|
27 | from pylons import tmpl_context as c, request | |
28 |
|
28 | |||
29 | from rhodecode.lib.helpers import Page |
|
29 | from rhodecode.lib.helpers import Page | |
30 | from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator |
|
30 | from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator | |
31 | from rhodecode.lib.base import BaseRepoController, render |
|
31 | from rhodecode.lib.base import BaseRepoController, render | |
32 | from rhodecode.model.db import Repository, User, UserFollowing |
|
32 | from rhodecode.model.db import Repository, User, UserFollowing | |
33 |
|
33 | |||
34 | log = logging.getLogger(__name__) |
|
34 | log = logging.getLogger(__name__) | |
35 |
|
35 | |||
36 |
|
36 | |||
37 | class FollowersController(BaseRepoController): |
|
37 | class FollowersController(BaseRepoController): | |
38 |
|
38 | |||
39 | @LoginRequired() |
|
39 | @LoginRequired() | |
40 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', |
|
40 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', | |
41 | 'repository.admin') |
|
41 | 'repository.admin') | |
42 | def __before__(self): |
|
42 | def __before__(self): | |
43 | super(FollowersController, self).__before__() |
|
43 | super(FollowersController, self).__before__() | |
44 |
|
44 | |||
45 | def followers(self, repo_name): |
|
45 | def followers(self, repo_name): | |
46 | p = int(request.params.get('page', 1)) |
|
46 | p = int(request.params.get('page', 1)) | |
47 | repo_id = c.rhodecode_db_repo.repo_id |
|
47 | repo_id = c.rhodecode_db_repo.repo_id | |
48 | d = UserFollowing.get_repo_followers(repo_id)\ |
|
48 | d = UserFollowing.get_repo_followers(repo_id)\ | |
49 | .order_by(UserFollowing.follows_from) |
|
49 | .order_by(UserFollowing.follows_from) | |
50 | c.followers_pager = Page(d, page=p, items_per_page=20) |
|
50 | c.followers_pager = Page(d, page=p, items_per_page=20) | |
51 |
|
51 | |||
52 | c.followers_data = render('/followers/followers_data.html') |
|
52 | c.followers_data = render('/followers/followers_data.html') | |
53 |
|
53 | |||
54 |
if request. |
|
54 | if request.environ.get('HTTP_X_PARTIAL_XHR'): | |
55 | return c.followers_data |
|
55 | return c.followers_data | |
56 |
|
56 | |||
57 | return render('/followers/followers.html') |
|
57 | return render('/followers/followers.html') |
@@ -1,56 +1,56 | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 | """ |
|
2 | """ | |
3 | rhodecode.controllers.forks |
|
3 | rhodecode.controllers.forks | |
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
5 |
|
5 | |||
6 | forks controller for rhodecode |
|
6 | forks controller for rhodecode | |
7 |
|
7 | |||
8 | :created_on: Apr 23, 2011 |
|
8 | :created_on: Apr 23, 2011 | |
9 | :author: marcink |
|
9 | :author: marcink | |
10 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> |
|
10 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | |
11 | :license: GPLv3, see COPYING for more details. |
|
11 | :license: GPLv3, see COPYING for more details. | |
12 | """ |
|
12 | """ | |
13 | # This program is free software: you can redistribute it and/or modify |
|
13 | # This program is free software: you can redistribute it and/or modify | |
14 | # it under the terms of the GNU General Public License as published by |
|
14 | # it under the terms of the GNU General Public License as published by | |
15 | # the Free Software Foundation, either version 3 of the License, or |
|
15 | # the Free Software Foundation, either version 3 of the License, or | |
16 | # (at your option) any later version. |
|
16 | # (at your option) any later version. | |
17 | # |
|
17 | # | |
18 | # This program is distributed in the hope that it will be useful, |
|
18 | # This program is distributed in the hope that it will be useful, | |
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 | # GNU General Public License for more details. |
|
21 | # GNU General Public License for more details. | |
22 | # |
|
22 | # | |
23 | # You should have received a copy of the GNU General Public License |
|
23 | # You should have received a copy of the GNU General Public License | |
24 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
24 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
25 | import logging |
|
25 | import logging | |
26 |
|
26 | |||
27 | from pylons import tmpl_context as c, request |
|
27 | from pylons import tmpl_context as c, request | |
28 |
|
28 | |||
29 | from rhodecode.lib.helpers import Page |
|
29 | from rhodecode.lib.helpers import Page | |
30 | from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator |
|
30 | from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator | |
31 | from rhodecode.lib.base import BaseRepoController, render |
|
31 | from rhodecode.lib.base import BaseRepoController, render | |
32 | from rhodecode.model.db import Repository, User, UserFollowing |
|
32 | from rhodecode.model.db import Repository, User, UserFollowing | |
33 |
|
33 | |||
34 | log = logging.getLogger(__name__) |
|
34 | log = logging.getLogger(__name__) | |
35 |
|
35 | |||
36 |
|
36 | |||
37 | class ForksController(BaseRepoController): |
|
37 | class ForksController(BaseRepoController): | |
38 |
|
38 | |||
39 | @LoginRequired() |
|
39 | @LoginRequired() | |
40 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', |
|
40 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', | |
41 | 'repository.admin') |
|
41 | 'repository.admin') | |
42 | def __before__(self): |
|
42 | def __before__(self): | |
43 | super(ForksController, self).__before__() |
|
43 | super(ForksController, self).__before__() | |
44 |
|
44 | |||
45 | def forks(self, repo_name): |
|
45 | def forks(self, repo_name): | |
46 | p = int(request.params.get('page', 1)) |
|
46 | p = int(request.params.get('page', 1)) | |
47 | repo_id = c.rhodecode_db_repo.repo_id |
|
47 | repo_id = c.rhodecode_db_repo.repo_id | |
48 | d = Repository.get_repo_forks(repo_id) |
|
48 | d = Repository.get_repo_forks(repo_id) | |
49 | c.forks_pager = Page(d, page=p, items_per_page=20) |
|
49 | c.forks_pager = Page(d, page=p, items_per_page=20) | |
50 |
|
50 | |||
51 | c.forks_data = render('/forks/forks_data.html') |
|
51 | c.forks_data = render('/forks/forks_data.html') | |
52 |
|
52 | |||
53 |
if request. |
|
53 | if request.environ.get('HTTP_X_PARTIAL_XHR'): | |
54 | return c.forks_data |
|
54 | return c.forks_data | |
55 |
|
55 | |||
56 | return render('/forks/forks.html') |
|
56 | return render('/forks/forks.html') |
@@ -1,230 +1,230 | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 | """ |
|
2 | """ | |
3 | rhodecode.controllers.journal |
|
3 | rhodecode.controllers.journal | |
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
5 |
|
5 | |||
6 | Journal controller for pylons |
|
6 | Journal controller for pylons | |
7 |
|
7 | |||
8 | :created_on: Nov 21, 2010 |
|
8 | :created_on: Nov 21, 2010 | |
9 | :author: marcink |
|
9 | :author: marcink | |
10 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> |
|
10 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | |
11 | :license: GPLv3, see COPYING for more details. |
|
11 | :license: GPLv3, see COPYING for more details. | |
12 | """ |
|
12 | """ | |
13 | # This program is free software: you can redistribute it and/or modify |
|
13 | # This program is free software: you can redistribute it and/or modify | |
14 | # it under the terms of the GNU General Public License as published by |
|
14 | # it under the terms of the GNU General Public License as published by | |
15 | # the Free Software Foundation, either version 3 of the License, or |
|
15 | # the Free Software Foundation, either version 3 of the License, or | |
16 | # (at your option) any later version. |
|
16 | # (at your option) any later version. | |
17 | # |
|
17 | # | |
18 | # This program is distributed in the hope that it will be useful, |
|
18 | # This program is distributed in the hope that it will be useful, | |
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 | # GNU General Public License for more details. |
|
21 | # GNU General Public License for more details. | |
22 | # |
|
22 | # | |
23 | # You should have received a copy of the GNU General Public License |
|
23 | # You should have received a copy of the GNU General Public License | |
24 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
24 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
25 | import logging |
|
25 | import logging | |
26 |
|
26 | |||
27 | from sqlalchemy import or_ |
|
27 | from sqlalchemy import or_ | |
28 | from sqlalchemy.orm import joinedload, make_transient |
|
28 | from sqlalchemy.orm import joinedload, make_transient | |
29 | from webhelpers.paginate import Page |
|
29 | from webhelpers.paginate import Page | |
30 | from itertools import groupby |
|
30 | from itertools import groupby | |
31 |
|
31 | |||
32 | from paste.httpexceptions import HTTPBadRequest |
|
32 | from paste.httpexceptions import HTTPBadRequest | |
33 | from pylons import request, tmpl_context as c, response, url |
|
33 | from pylons import request, tmpl_context as c, response, url | |
34 | from pylons.i18n.translation import _ |
|
34 | from pylons.i18n.translation import _ | |
35 | from webhelpers.feedgenerator import Atom1Feed, Rss201rev2Feed |
|
35 | from webhelpers.feedgenerator import Atom1Feed, Rss201rev2Feed | |
36 |
|
36 | |||
37 | import rhodecode.lib.helpers as h |
|
37 | import rhodecode.lib.helpers as h | |
38 | from rhodecode.lib.auth import LoginRequired, NotAnonymous |
|
38 | from rhodecode.lib.auth import LoginRequired, NotAnonymous | |
39 | from rhodecode.lib.base import BaseController, render |
|
39 | from rhodecode.lib.base import BaseController, render | |
40 | from rhodecode.model.db import UserLog, UserFollowing |
|
40 | from rhodecode.model.db import UserLog, UserFollowing | |
41 |
|
41 | |||
42 | log = logging.getLogger(__name__) |
|
42 | log = logging.getLogger(__name__) | |
43 |
|
43 | |||
44 |
|
44 | |||
45 | class JournalController(BaseController): |
|
45 | class JournalController(BaseController): | |
46 |
|
46 | |||
47 | def __before__(self): |
|
47 | def __before__(self): | |
48 | super(JournalController, self).__before__() |
|
48 | super(JournalController, self).__before__() | |
49 | self.rhodecode_user = self.rhodecode_user |
|
49 | self.rhodecode_user = self.rhodecode_user | |
50 | self.title = _('%s public journal %s feed') % (c.rhodecode_name, '%s') |
|
50 | self.title = _('%s public journal %s feed') % (c.rhodecode_name, '%s') | |
51 | self.language = 'en-us' |
|
51 | self.language = 'en-us' | |
52 | self.ttl = "5" |
|
52 | self.ttl = "5" | |
53 | self.feed_nr = 20 |
|
53 | self.feed_nr = 20 | |
54 |
|
54 | |||
55 | @LoginRequired() |
|
55 | @LoginRequired() | |
56 | @NotAnonymous() |
|
56 | @NotAnonymous() | |
57 | def index(self): |
|
57 | def index(self): | |
58 | # Return a rendered template |
|
58 | # Return a rendered template | |
59 | p = int(request.params.get('page', 1)) |
|
59 | p = int(request.params.get('page', 1)) | |
60 |
|
60 | |||
61 | c.following = self.sa.query(UserFollowing)\ |
|
61 | c.following = self.sa.query(UserFollowing)\ | |
62 | .filter(UserFollowing.user_id == self.rhodecode_user.user_id)\ |
|
62 | .filter(UserFollowing.user_id == self.rhodecode_user.user_id)\ | |
63 | .options(joinedload(UserFollowing.follows_repository))\ |
|
63 | .options(joinedload(UserFollowing.follows_repository))\ | |
64 | .all() |
|
64 | .all() | |
65 |
|
65 | |||
66 | journal = self._get_journal_data(c.following) |
|
66 | journal = self._get_journal_data(c.following) | |
67 |
|
67 | |||
68 | c.journal_pager = Page(journal, page=p, items_per_page=20) |
|
68 | c.journal_pager = Page(journal, page=p, items_per_page=20) | |
69 |
|
69 | |||
70 | c.journal_day_aggreagate = self._get_daily_aggregate(c.journal_pager) |
|
70 | c.journal_day_aggreagate = self._get_daily_aggregate(c.journal_pager) | |
71 |
|
71 | |||
72 | c.journal_data = render('journal/journal_data.html') |
|
72 | c.journal_data = render('journal/journal_data.html') | |
73 |
if request. |
|
73 | if request.environ.get('HTTP_X_PARTIAL_XHR'): | |
74 | return c.journal_data |
|
74 | return c.journal_data | |
75 | return render('journal/journal.html') |
|
75 | return render('journal/journal.html') | |
76 |
|
76 | |||
77 | def _get_daily_aggregate(self, journal): |
|
77 | def _get_daily_aggregate(self, journal): | |
78 | groups = [] |
|
78 | groups = [] | |
79 | for k, g in groupby(journal, lambda x: x.action_as_day): |
|
79 | for k, g in groupby(journal, lambda x: x.action_as_day): | |
80 | user_group = [] |
|
80 | user_group = [] | |
81 | for k2, g2 in groupby(list(g), lambda x: x.user.email): |
|
81 | for k2, g2 in groupby(list(g), lambda x: x.user.email): | |
82 | l = list(g2) |
|
82 | l = list(g2) | |
83 | user_group.append((l[0].user, l)) |
|
83 | user_group.append((l[0].user, l)) | |
84 |
|
84 | |||
85 | groups.append((k, user_group,)) |
|
85 | groups.append((k, user_group,)) | |
86 |
|
86 | |||
87 | return groups |
|
87 | return groups | |
88 |
|
88 | |||
89 | def _get_journal_data(self, following_repos): |
|
89 | def _get_journal_data(self, following_repos): | |
90 | repo_ids = [x.follows_repository.repo_id for x in following_repos |
|
90 | repo_ids = [x.follows_repository.repo_id for x in following_repos | |
91 | if x.follows_repository is not None] |
|
91 | if x.follows_repository is not None] | |
92 | user_ids = [x.follows_user.user_id for x in following_repos |
|
92 | user_ids = [x.follows_user.user_id for x in following_repos | |
93 | if x.follows_user is not None] |
|
93 | if x.follows_user is not None] | |
94 |
|
94 | |||
95 | filtering_criterion = None |
|
95 | filtering_criterion = None | |
96 |
|
96 | |||
97 | if repo_ids and user_ids: |
|
97 | if repo_ids and user_ids: | |
98 | filtering_criterion = or_(UserLog.repository_id.in_(repo_ids), |
|
98 | filtering_criterion = or_(UserLog.repository_id.in_(repo_ids), | |
99 | UserLog.user_id.in_(user_ids)) |
|
99 | UserLog.user_id.in_(user_ids)) | |
100 | if repo_ids and not user_ids: |
|
100 | if repo_ids and not user_ids: | |
101 | filtering_criterion = UserLog.repository_id.in_(repo_ids) |
|
101 | filtering_criterion = UserLog.repository_id.in_(repo_ids) | |
102 | if not repo_ids and user_ids: |
|
102 | if not repo_ids and user_ids: | |
103 | filtering_criterion = UserLog.user_id.in_(user_ids) |
|
103 | filtering_criterion = UserLog.user_id.in_(user_ids) | |
104 | if filtering_criterion is not None: |
|
104 | if filtering_criterion is not None: | |
105 | journal = self.sa.query(UserLog)\ |
|
105 | journal = self.sa.query(UserLog)\ | |
106 | .options(joinedload(UserLog.user))\ |
|
106 | .options(joinedload(UserLog.user))\ | |
107 | .options(joinedload(UserLog.repository))\ |
|
107 | .options(joinedload(UserLog.repository))\ | |
108 | .filter(filtering_criterion)\ |
|
108 | .filter(filtering_criterion)\ | |
109 | .order_by(UserLog.action_date.desc()) |
|
109 | .order_by(UserLog.action_date.desc()) | |
110 | else: |
|
110 | else: | |
111 | journal = [] |
|
111 | journal = [] | |
112 |
|
112 | |||
113 | return journal |
|
113 | return journal | |
114 |
|
114 | |||
115 | @LoginRequired() |
|
115 | @LoginRequired() | |
116 | @NotAnonymous() |
|
116 | @NotAnonymous() | |
117 | def toggle_following(self): |
|
117 | def toggle_following(self): | |
118 | cur_token = request.POST.get('auth_token') |
|
118 | cur_token = request.POST.get('auth_token') | |
119 | token = h.get_token() |
|
119 | token = h.get_token() | |
120 | if cur_token == token: |
|
120 | if cur_token == token: | |
121 |
|
121 | |||
122 | user_id = request.POST.get('follows_user_id') |
|
122 | user_id = request.POST.get('follows_user_id') | |
123 | if user_id: |
|
123 | if user_id: | |
124 | try: |
|
124 | try: | |
125 | self.scm_model.toggle_following_user(user_id, |
|
125 | self.scm_model.toggle_following_user(user_id, | |
126 | self.rhodecode_user.user_id) |
|
126 | self.rhodecode_user.user_id) | |
127 | return 'ok' |
|
127 | return 'ok' | |
128 | except: |
|
128 | except: | |
129 | raise HTTPBadRequest() |
|
129 | raise HTTPBadRequest() | |
130 |
|
130 | |||
131 | repo_id = request.POST.get('follows_repo_id') |
|
131 | repo_id = request.POST.get('follows_repo_id') | |
132 | if repo_id: |
|
132 | if repo_id: | |
133 | try: |
|
133 | try: | |
134 | self.scm_model.toggle_following_repo(repo_id, |
|
134 | self.scm_model.toggle_following_repo(repo_id, | |
135 | self.rhodecode_user.user_id) |
|
135 | self.rhodecode_user.user_id) | |
136 | return 'ok' |
|
136 | return 'ok' | |
137 | except: |
|
137 | except: | |
138 | raise HTTPBadRequest() |
|
138 | raise HTTPBadRequest() | |
139 |
|
139 | |||
140 | log.debug('token mismatch %s vs %s', cur_token, token) |
|
140 | log.debug('token mismatch %s vs %s', cur_token, token) | |
141 | raise HTTPBadRequest() |
|
141 | raise HTTPBadRequest() | |
142 |
|
142 | |||
143 | @LoginRequired() |
|
143 | @LoginRequired() | |
144 | def public_journal(self): |
|
144 | def public_journal(self): | |
145 | # Return a rendered template |
|
145 | # Return a rendered template | |
146 | p = int(request.params.get('page', 1)) |
|
146 | p = int(request.params.get('page', 1)) | |
147 |
|
147 | |||
148 | c.following = self.sa.query(UserFollowing)\ |
|
148 | c.following = self.sa.query(UserFollowing)\ | |
149 | .filter(UserFollowing.user_id == self.rhodecode_user.user_id)\ |
|
149 | .filter(UserFollowing.user_id == self.rhodecode_user.user_id)\ | |
150 | .options(joinedload(UserFollowing.follows_repository))\ |
|
150 | .options(joinedload(UserFollowing.follows_repository))\ | |
151 | .all() |
|
151 | .all() | |
152 |
|
152 | |||
153 | journal = self._get_journal_data(c.following) |
|
153 | journal = self._get_journal_data(c.following) | |
154 |
|
154 | |||
155 | c.journal_pager = Page(journal, page=p, items_per_page=20) |
|
155 | c.journal_pager = Page(journal, page=p, items_per_page=20) | |
156 |
|
156 | |||
157 | c.journal_day_aggreagate = self._get_daily_aggregate(c.journal_pager) |
|
157 | c.journal_day_aggreagate = self._get_daily_aggregate(c.journal_pager) | |
158 |
|
158 | |||
159 | c.journal_data = render('journal/journal_data.html') |
|
159 | c.journal_data = render('journal/journal_data.html') | |
160 |
if request. |
|
160 | if request.environ.get('HTTP_X_PARTIAL_XHR'): | |
161 | return c.journal_data |
|
161 | return c.journal_data | |
162 | return render('journal/public_journal.html') |
|
162 | return render('journal/public_journal.html') | |
163 |
|
163 | |||
164 | @LoginRequired(api_access=True) |
|
164 | @LoginRequired(api_access=True) | |
165 | def public_journal_atom(self): |
|
165 | def public_journal_atom(self): | |
166 | """ |
|
166 | """ | |
167 | Produce an atom-1.0 feed via feedgenerator module |
|
167 | Produce an atom-1.0 feed via feedgenerator module | |
168 | """ |
|
168 | """ | |
169 | c.following = self.sa.query(UserFollowing)\ |
|
169 | c.following = self.sa.query(UserFollowing)\ | |
170 | .filter(UserFollowing.user_id == self.rhodecode_user.user_id)\ |
|
170 | .filter(UserFollowing.user_id == self.rhodecode_user.user_id)\ | |
171 | .options(joinedload(UserFollowing.follows_repository))\ |
|
171 | .options(joinedload(UserFollowing.follows_repository))\ | |
172 | .all() |
|
172 | .all() | |
173 |
|
173 | |||
174 | journal = self._get_journal_data(c.following) |
|
174 | journal = self._get_journal_data(c.following) | |
175 |
|
175 | |||
176 | feed = Atom1Feed(title=self.title % 'atom', |
|
176 | feed = Atom1Feed(title=self.title % 'atom', | |
177 | link=url('public_journal_atom', qualified=True), |
|
177 | link=url('public_journal_atom', qualified=True), | |
178 | description=_('Public journal'), |
|
178 | description=_('Public journal'), | |
179 | language=self.language, |
|
179 | language=self.language, | |
180 | ttl=self.ttl) |
|
180 | ttl=self.ttl) | |
181 |
|
181 | |||
182 | for entry in journal[:self.feed_nr]: |
|
182 | for entry in journal[:self.feed_nr]: | |
183 | #tmpl = h.action_parser(entry)[0] |
|
183 | #tmpl = h.action_parser(entry)[0] | |
184 | action, action_extra = h.action_parser(entry, feed=True) |
|
184 | action, action_extra = h.action_parser(entry, feed=True) | |
185 | title = "%s - %s %s" % (entry.user.short_contact, action, |
|
185 | title = "%s - %s %s" % (entry.user.short_contact, action, | |
186 | entry.repository.repo_name) |
|
186 | entry.repository.repo_name) | |
187 | desc = action_extra() |
|
187 | desc = action_extra() | |
188 | feed.add_item(title=title, |
|
188 | feed.add_item(title=title, | |
189 | pubdate=entry.action_date, |
|
189 | pubdate=entry.action_date, | |
190 | link=url('', qualified=True), |
|
190 | link=url('', qualified=True), | |
191 | author_email=entry.user.email, |
|
191 | author_email=entry.user.email, | |
192 | author_name=entry.user.full_contact, |
|
192 | author_name=entry.user.full_contact, | |
193 | description=desc) |
|
193 | description=desc) | |
194 |
|
194 | |||
195 | response.content_type = feed.mime_type |
|
195 | response.content_type = feed.mime_type | |
196 | return feed.writeString('utf-8') |
|
196 | return feed.writeString('utf-8') | |
197 |
|
197 | |||
198 | @LoginRequired(api_access=True) |
|
198 | @LoginRequired(api_access=True) | |
199 | def public_journal_rss(self): |
|
199 | def public_journal_rss(self): | |
200 | """ |
|
200 | """ | |
201 | Produce an rss2 feed via feedgenerator module |
|
201 | Produce an rss2 feed via feedgenerator module | |
202 | """ |
|
202 | """ | |
203 | c.following = self.sa.query(UserFollowing)\ |
|
203 | c.following = self.sa.query(UserFollowing)\ | |
204 | .filter(UserFollowing.user_id == self.rhodecode_user.user_id)\ |
|
204 | .filter(UserFollowing.user_id == self.rhodecode_user.user_id)\ | |
205 | .options(joinedload(UserFollowing.follows_repository))\ |
|
205 | .options(joinedload(UserFollowing.follows_repository))\ | |
206 | .all() |
|
206 | .all() | |
207 |
|
207 | |||
208 | journal = self._get_journal_data(c.following) |
|
208 | journal = self._get_journal_data(c.following) | |
209 |
|
209 | |||
210 | feed = Rss201rev2Feed(title=self.title % 'rss', |
|
210 | feed = Rss201rev2Feed(title=self.title % 'rss', | |
211 | link=url('public_journal_rss', qualified=True), |
|
211 | link=url('public_journal_rss', qualified=True), | |
212 | description=_('Public journal'), |
|
212 | description=_('Public journal'), | |
213 | language=self.language, |
|
213 | language=self.language, | |
214 | ttl=self.ttl) |
|
214 | ttl=self.ttl) | |
215 |
|
215 | |||
216 | for entry in journal[:self.feed_nr]: |
|
216 | for entry in journal[:self.feed_nr]: | |
217 | #tmpl = h.action_parser(entry)[0] |
|
217 | #tmpl = h.action_parser(entry)[0] | |
218 | action, action_extra = h.action_parser(entry, feed=True) |
|
218 | action, action_extra = h.action_parser(entry, feed=True) | |
219 | title = "%s - %s %s" % (entry.user.short_contact, action, |
|
219 | title = "%s - %s %s" % (entry.user.short_contact, action, | |
220 | entry.repository.repo_name) |
|
220 | entry.repository.repo_name) | |
221 | desc = action_extra() |
|
221 | desc = action_extra() | |
222 | feed.add_item(title=title, |
|
222 | feed.add_item(title=title, | |
223 | pubdate=entry.action_date, |
|
223 | pubdate=entry.action_date, | |
224 | link=url('', qualified=True), |
|
224 | link=url('', qualified=True), | |
225 | author_email=entry.user.email, |
|
225 | author_email=entry.user.email, | |
226 | author_name=entry.user.full_contact, |
|
226 | author_name=entry.user.full_contact, | |
227 | description=desc) |
|
227 | description=desc) | |
228 |
|
228 | |||
229 | response.content_type = feed.mime_type |
|
229 | response.content_type = feed.mime_type | |
230 | return feed.writeString('utf-8') |
|
230 | return feed.writeString('utf-8') |
@@ -1,59 +1,59 | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 | """ |
|
2 | """ | |
3 | rhodecode.controllers.shortlog |
|
3 | rhodecode.controllers.shortlog | |
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
4 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
5 |
|
5 | |||
6 | Shortlog controller for rhodecode |
|
6 | Shortlog controller for rhodecode | |
7 |
|
7 | |||
8 | :created_on: Apr 18, 2010 |
|
8 | :created_on: Apr 18, 2010 | |
9 | :author: marcink |
|
9 | :author: marcink | |
10 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> |
|
10 | :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | |
11 | :license: GPLv3, see COPYING for more details. |
|
11 | :license: GPLv3, see COPYING for more details. | |
12 | """ |
|
12 | """ | |
13 | # This program is free software: you can redistribute it and/or modify |
|
13 | # This program is free software: you can redistribute it and/or modify | |
14 | # it under the terms of the GNU General Public License as published by |
|
14 | # it under the terms of the GNU General Public License as published by | |
15 | # the Free Software Foundation, either version 3 of the License, or |
|
15 | # the Free Software Foundation, either version 3 of the License, or | |
16 | # (at your option) any later version. |
|
16 | # (at your option) any later version. | |
17 | # |
|
17 | # | |
18 | # This program is distributed in the hope that it will be useful, |
|
18 | # This program is distributed in the hope that it will be useful, | |
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 | # GNU General Public License for more details. |
|
21 | # GNU General Public License for more details. | |
22 | # |
|
22 | # | |
23 | # You should have received a copy of the GNU General Public License |
|
23 | # You should have received a copy of the GNU General Public License | |
24 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
24 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
25 |
|
25 | |||
26 | import logging |
|
26 | import logging | |
27 |
|
27 | |||
28 | from pylons import tmpl_context as c, request, url |
|
28 | from pylons import tmpl_context as c, request, url | |
29 |
|
29 | |||
30 | from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator |
|
30 | from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator | |
31 | from rhodecode.lib.base import BaseRepoController, render |
|
31 | from rhodecode.lib.base import BaseRepoController, render | |
32 | from rhodecode.lib.helpers import RepoPage |
|
32 | from rhodecode.lib.helpers import RepoPage | |
33 |
|
33 | |||
34 | log = logging.getLogger(__name__) |
|
34 | log = logging.getLogger(__name__) | |
35 |
|
35 | |||
36 |
|
36 | |||
37 | class ShortlogController(BaseRepoController): |
|
37 | class ShortlogController(BaseRepoController): | |
38 |
|
38 | |||
39 | @LoginRequired() |
|
39 | @LoginRequired() | |
40 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', |
|
40 | @HasRepoPermissionAnyDecorator('repository.read', 'repository.write', | |
41 | 'repository.admin') |
|
41 | 'repository.admin') | |
42 | def __before__(self): |
|
42 | def __before__(self): | |
43 | super(ShortlogController, self).__before__() |
|
43 | super(ShortlogController, self).__before__() | |
44 |
|
44 | |||
45 | def index(self, repo_name): |
|
45 | def index(self, repo_name): | |
46 | p = int(request.params.get('page', 1)) |
|
46 | p = int(request.params.get('page', 1)) | |
47 | size = int(request.params.get('size', 20)) |
|
47 | size = int(request.params.get('size', 20)) | |
48 |
|
48 | |||
49 | def url_generator(**kw): |
|
49 | def url_generator(**kw): | |
50 | return url('shortlog_home', repo_name=repo_name, size=size, **kw) |
|
50 | return url('shortlog_home', repo_name=repo_name, size=size, **kw) | |
51 |
|
51 | |||
52 | c.repo_changesets = RepoPage(c.rhodecode_repo, page=p, |
|
52 | c.repo_changesets = RepoPage(c.rhodecode_repo, page=p, | |
53 | items_per_page=size, |
|
53 | items_per_page=size, | |
54 | url=url_generator) |
|
54 | url=url_generator) | |
55 | c.shortlog_data = render('shortlog/shortlog_data.html') |
|
55 | c.shortlog_data = render('shortlog/shortlog_data.html') | |
56 |
if request. |
|
56 | if request.environ.get('HTTP_X_PARTIAL_XHR'): | |
57 | return c.shortlog_data |
|
57 | return c.shortlog_data | |
58 | r = render('shortlog/shortlog.html') |
|
58 | r = render('shortlog/shortlog.html') | |
59 | return r |
|
59 | return r |
@@ -1,694 +1,657 | |||||
1 | """Helper functions |
|
1 | """Helper functions | |
2 |
|
2 | |||
3 | Consists of functions to typically be used within templates, but also |
|
3 | Consists of functions to typically be used within templates, but also | |
4 | available to Controllers. This module is available to both as 'h'. |
|
4 | available to Controllers. This module is available to both as 'h'. | |
5 | """ |
|
5 | """ | |
6 | import random |
|
6 | import random | |
7 | import hashlib |
|
7 | import hashlib | |
8 | import StringIO |
|
8 | import StringIO | |
9 | import urllib |
|
9 | import urllib | |
10 |
|
10 | |||
11 | from datetime import datetime |
|
11 | from datetime import datetime | |
12 | from pygments.formatters import HtmlFormatter |
|
12 | from pygments.formatters import HtmlFormatter | |
13 | from pygments import highlight as code_highlight |
|
13 | from pygments import highlight as code_highlight | |
14 | from pylons import url, request, config |
|
14 | from pylons import url, request, config | |
15 | from pylons.i18n.translation import _, ungettext |
|
15 | from pylons.i18n.translation import _, ungettext | |
16 |
|
16 | |||
17 | from webhelpers.html import literal, HTML, escape |
|
17 | from webhelpers.html import literal, HTML, escape | |
18 | from webhelpers.html.tools import * |
|
18 | from webhelpers.html.tools import * | |
19 | from webhelpers.html.builder import make_tag |
|
19 | from webhelpers.html.builder import make_tag | |
20 | from webhelpers.html.tags import auto_discovery_link, checkbox, css_classes, \ |
|
20 | from webhelpers.html.tags import auto_discovery_link, checkbox, css_classes, \ | |
21 | end_form, file, form, hidden, image, javascript_link, link_to, link_to_if, \ |
|
21 | end_form, file, form, hidden, image, javascript_link, link_to, link_to_if, \ | |
22 | link_to_unless, ol, required_legend, select, stylesheet_link, submit, text, \ |
|
22 | link_to_unless, ol, required_legend, select, stylesheet_link, submit, text, \ | |
23 | password, textarea, title, ul, xml_declaration, radio |
|
23 | password, textarea, title, ul, xml_declaration, radio | |
24 | from webhelpers.html.tools import auto_link, button_to, highlight, js_obfuscate, \ |
|
24 | from webhelpers.html.tools import auto_link, button_to, highlight, js_obfuscate, \ | |
25 | mail_to, strip_links, strip_tags, tag_re |
|
25 | mail_to, strip_links, strip_tags, tag_re | |
26 | from webhelpers.number import format_byte_size, format_bit_size |
|
26 | from webhelpers.number import format_byte_size, format_bit_size | |
27 | from webhelpers.pylonslib import Flash as _Flash |
|
27 | from webhelpers.pylonslib import Flash as _Flash | |
28 | from webhelpers.pylonslib.secure_form import secure_form |
|
28 | from webhelpers.pylonslib.secure_form import secure_form | |
29 | from webhelpers.text import chop_at, collapse, convert_accented_entities, \ |
|
29 | from webhelpers.text import chop_at, collapse, convert_accented_entities, \ | |
30 | convert_misc_entities, lchop, plural, rchop, remove_formatting, \ |
|
30 | convert_misc_entities, lchop, plural, rchop, remove_formatting, \ | |
31 | replace_whitespace, urlify, truncate, wrap_paragraphs |
|
31 | replace_whitespace, urlify, truncate, wrap_paragraphs | |
32 | from webhelpers.date import time_ago_in_words |
|
32 | from webhelpers.date import time_ago_in_words | |
33 | from webhelpers.paginate import Page |
|
33 | from webhelpers.paginate import Page | |
34 | from webhelpers.html.tags import _set_input_attrs, _set_id_attr, \ |
|
34 | from webhelpers.html.tags import _set_input_attrs, _set_id_attr, \ | |
35 | convert_boolean_attrs, NotGiven |
|
35 | convert_boolean_attrs, NotGiven | |
36 |
|
36 | |||
37 | from vcs.utils.annotate import annotate_highlight |
|
37 | from vcs.utils.annotate import annotate_highlight | |
38 | from rhodecode.lib.utils import repo_name_slug |
|
38 | from rhodecode.lib.utils import repo_name_slug | |
39 | from rhodecode.lib import str2bool, safe_unicode, safe_str |
|
39 | from rhodecode.lib import str2bool, safe_unicode, safe_str | |
40 |
|
40 | |||
41 | def _reset(name, value=None, id=NotGiven, type="reset", **attrs): |
|
41 | def _reset(name, value=None, id=NotGiven, type="reset", **attrs): | |
42 | """ |
|
42 | """ | |
43 | Reset button |
|
43 | Reset button | |
44 | """ |
|
44 | """ | |
45 | _set_input_attrs(attrs, type, name, value) |
|
45 | _set_input_attrs(attrs, type, name, value) | |
46 | _set_id_attr(attrs, id, name) |
|
46 | _set_id_attr(attrs, id, name) | |
47 | convert_boolean_attrs(attrs, ["disabled"]) |
|
47 | convert_boolean_attrs(attrs, ["disabled"]) | |
48 | return HTML.input(**attrs) |
|
48 | return HTML.input(**attrs) | |
49 |
|
49 | |||
50 | reset = _reset |
|
50 | reset = _reset | |
51 |
|
51 | |||
52 |
|
52 | |||
53 | def get_token(): |
|
53 | def get_token(): | |
54 | """Return the current authentication token, creating one if one doesn't |
|
54 | """Return the current authentication token, creating one if one doesn't | |
55 | already exist. |
|
55 | already exist. | |
56 | """ |
|
56 | """ | |
57 | token_key = "_authentication_token" |
|
57 | token_key = "_authentication_token" | |
58 | from pylons import session |
|
58 | from pylons import session | |
59 | if not token_key in session: |
|
59 | if not token_key in session: | |
60 | try: |
|
60 | try: | |
61 | token = hashlib.sha1(str(random.getrandbits(128))).hexdigest() |
|
61 | token = hashlib.sha1(str(random.getrandbits(128))).hexdigest() | |
62 | except AttributeError: # Python < 2.4 |
|
62 | except AttributeError: # Python < 2.4 | |
63 | token = hashlib.sha1(str(random.randrange(2 ** 128))).hexdigest() |
|
63 | token = hashlib.sha1(str(random.randrange(2 ** 128))).hexdigest() | |
64 | session[token_key] = token |
|
64 | session[token_key] = token | |
65 | if hasattr(session, 'save'): |
|
65 | if hasattr(session, 'save'): | |
66 | session.save() |
|
66 | session.save() | |
67 | return session[token_key] |
|
67 | return session[token_key] | |
68 |
|
68 | |||
69 | class _GetError(object): |
|
69 | class _GetError(object): | |
70 | """Get error from form_errors, and represent it as span wrapped error |
|
70 | """Get error from form_errors, and represent it as span wrapped error | |
71 | message |
|
71 | message | |
72 |
|
72 | |||
73 | :param field_name: field to fetch errors for |
|
73 | :param field_name: field to fetch errors for | |
74 | :param form_errors: form errors dict |
|
74 | :param form_errors: form errors dict | |
75 | """ |
|
75 | """ | |
76 |
|
76 | |||
77 | def __call__(self, field_name, form_errors): |
|
77 | def __call__(self, field_name, form_errors): | |
78 | tmpl = """<span class="error_msg">%s</span>""" |
|
78 | tmpl = """<span class="error_msg">%s</span>""" | |
79 | if form_errors and form_errors.has_key(field_name): |
|
79 | if form_errors and form_errors.has_key(field_name): | |
80 | return literal(tmpl % form_errors.get(field_name)) |
|
80 | return literal(tmpl % form_errors.get(field_name)) | |
81 |
|
81 | |||
82 | get_error = _GetError() |
|
82 | get_error = _GetError() | |
83 |
|
83 | |||
84 | class _ToolTip(object): |
|
84 | class _ToolTip(object): | |
85 |
|
85 | |||
86 | def __call__(self, tooltip_title, trim_at=50): |
|
86 | def __call__(self, tooltip_title, trim_at=50): | |
87 | """Special function just to wrap our text into nice formatted |
|
87 | """Special function just to wrap our text into nice formatted | |
88 | autowrapped text |
|
88 | autowrapped text | |
89 |
|
89 | |||
90 | :param tooltip_title: |
|
90 | :param tooltip_title: | |
91 | """ |
|
91 | """ | |
92 |
|
||||
93 | return escape(tooltip_title) |
|
92 | return escape(tooltip_title) | |
94 |
|
||||
95 | def activate(self): |
|
|||
96 | """Adds tooltip mechanism to the given Html all tooltips have to have |
|
|||
97 | set class `tooltip` and set attribute `tooltip_title`. |
|
|||
98 | Then a tooltip will be generated based on that. All with yui js tooltip |
|
|||
99 | """ |
|
|||
100 |
|
||||
101 | js = ''' |
|
|||
102 | YAHOO.util.Event.onDOMReady(function(){ |
|
|||
103 | function toolTipsId(){ |
|
|||
104 | var ids = []; |
|
|||
105 | var tts = YAHOO.util.Dom.getElementsByClassName('tooltip'); |
|
|||
106 |
|
||||
107 | for (var i = 0; i < tts.length; i++) { |
|
|||
108 | //if element doesn't not have and id autogenerate one for tooltip |
|
|||
109 |
|
||||
110 | if (!tts[i].id){ |
|
|||
111 | tts[i].id='tt'+i*100; |
|
|||
112 | } |
|
|||
113 | ids.push(tts[i].id); |
|
|||
114 | } |
|
|||
115 | return ids |
|
|||
116 | }; |
|
|||
117 | var myToolTips = new YAHOO.widget.Tooltip("tooltip", { |
|
|||
118 | context: [[toolTipsId()],"tl","bl",null,[0,5]], |
|
|||
119 | monitorresize:false, |
|
|||
120 | xyoffset :[0,0], |
|
|||
121 | autodismissdelay:300000, |
|
|||
122 | hidedelay:5, |
|
|||
123 | showdelay:20, |
|
|||
124 | }); |
|
|||
125 |
|
||||
126 | }); |
|
|||
127 | ''' |
|
|||
128 | return literal(js) |
|
|||
129 |
|
||||
130 | tooltip = _ToolTip() |
|
93 | tooltip = _ToolTip() | |
131 |
|
94 | |||
132 | class _FilesBreadCrumbs(object): |
|
95 | class _FilesBreadCrumbs(object): | |
133 |
|
96 | |||
134 | def __call__(self, repo_name, rev, paths): |
|
97 | def __call__(self, repo_name, rev, paths): | |
135 | if isinstance(paths, str): |
|
98 | if isinstance(paths, str): | |
136 | paths = safe_unicode(paths) |
|
99 | paths = safe_unicode(paths) | |
137 | url_l = [link_to(repo_name, url('files_home', |
|
100 | url_l = [link_to(repo_name, url('files_home', | |
138 | repo_name=repo_name, |
|
101 | repo_name=repo_name, | |
139 | revision=rev, f_path=''))] |
|
102 | revision=rev, f_path=''))] | |
140 | paths_l = paths.split('/') |
|
103 | paths_l = paths.split('/') | |
141 | for cnt, p in enumerate(paths_l): |
|
104 | for cnt, p in enumerate(paths_l): | |
142 | if p != '': |
|
105 | if p != '': | |
143 | url_l.append(link_to(p, url('files_home', |
|
106 | url_l.append(link_to(p, url('files_home', | |
144 | repo_name=repo_name, |
|
107 | repo_name=repo_name, | |
145 | revision=rev, |
|
108 | revision=rev, | |
146 | f_path='/'.join(paths_l[:cnt + 1])))) |
|
109 | f_path='/'.join(paths_l[:cnt + 1])))) | |
147 |
|
110 | |||
148 | return literal('/'.join(url_l)) |
|
111 | return literal('/'.join(url_l)) | |
149 |
|
112 | |||
150 | files_breadcrumbs = _FilesBreadCrumbs() |
|
113 | files_breadcrumbs = _FilesBreadCrumbs() | |
151 |
|
114 | |||
152 | class CodeHtmlFormatter(HtmlFormatter): |
|
115 | class CodeHtmlFormatter(HtmlFormatter): | |
153 | """My code Html Formatter for source codes |
|
116 | """My code Html Formatter for source codes | |
154 | """ |
|
117 | """ | |
155 |
|
118 | |||
156 | def wrap(self, source, outfile): |
|
119 | def wrap(self, source, outfile): | |
157 | return self._wrap_div(self._wrap_pre(self._wrap_code(source))) |
|
120 | return self._wrap_div(self._wrap_pre(self._wrap_code(source))) | |
158 |
|
121 | |||
159 | def _wrap_code(self, source): |
|
122 | def _wrap_code(self, source): | |
160 | for cnt, it in enumerate(source): |
|
123 | for cnt, it in enumerate(source): | |
161 | i, t = it |
|
124 | i, t = it | |
162 | t = '<div id="L%s">%s</div>' % (cnt + 1, t) |
|
125 | t = '<div id="L%s">%s</div>' % (cnt + 1, t) | |
163 | yield i, t |
|
126 | yield i, t | |
164 |
|
127 | |||
165 | def _wrap_tablelinenos(self, inner): |
|
128 | def _wrap_tablelinenos(self, inner): | |
166 | dummyoutfile = StringIO.StringIO() |
|
129 | dummyoutfile = StringIO.StringIO() | |
167 | lncount = 0 |
|
130 | lncount = 0 | |
168 | for t, line in inner: |
|
131 | for t, line in inner: | |
169 | if t: |
|
132 | if t: | |
170 | lncount += 1 |
|
133 | lncount += 1 | |
171 | dummyoutfile.write(line) |
|
134 | dummyoutfile.write(line) | |
172 |
|
135 | |||
173 | fl = self.linenostart |
|
136 | fl = self.linenostart | |
174 | mw = len(str(lncount + fl - 1)) |
|
137 | mw = len(str(lncount + fl - 1)) | |
175 | sp = self.linenospecial |
|
138 | sp = self.linenospecial | |
176 | st = self.linenostep |
|
139 | st = self.linenostep | |
177 | la = self.lineanchors |
|
140 | la = self.lineanchors | |
178 | aln = self.anchorlinenos |
|
141 | aln = self.anchorlinenos | |
179 | nocls = self.noclasses |
|
142 | nocls = self.noclasses | |
180 | if sp: |
|
143 | if sp: | |
181 | lines = [] |
|
144 | lines = [] | |
182 |
|
145 | |||
183 | for i in range(fl, fl + lncount): |
|
146 | for i in range(fl, fl + lncount): | |
184 | if i % st == 0: |
|
147 | if i % st == 0: | |
185 | if i % sp == 0: |
|
148 | if i % sp == 0: | |
186 | if aln: |
|
149 | if aln: | |
187 | lines.append('<a href="#%s%d" class="special">%*d</a>' % |
|
150 | lines.append('<a href="#%s%d" class="special">%*d</a>' % | |
188 | (la, i, mw, i)) |
|
151 | (la, i, mw, i)) | |
189 | else: |
|
152 | else: | |
190 | lines.append('<span class="special">%*d</span>' % (mw, i)) |
|
153 | lines.append('<span class="special">%*d</span>' % (mw, i)) | |
191 | else: |
|
154 | else: | |
192 | if aln: |
|
155 | if aln: | |
193 | lines.append('<a href="#%s%d">%*d</a>' % (la, i, mw, i)) |
|
156 | lines.append('<a href="#%s%d">%*d</a>' % (la, i, mw, i)) | |
194 | else: |
|
157 | else: | |
195 | lines.append('%*d' % (mw, i)) |
|
158 | lines.append('%*d' % (mw, i)) | |
196 | else: |
|
159 | else: | |
197 | lines.append('') |
|
160 | lines.append('') | |
198 | ls = '\n'.join(lines) |
|
161 | ls = '\n'.join(lines) | |
199 | else: |
|
162 | else: | |
200 | lines = [] |
|
163 | lines = [] | |
201 | for i in range(fl, fl + lncount): |
|
164 | for i in range(fl, fl + lncount): | |
202 | if i % st == 0: |
|
165 | if i % st == 0: | |
203 | if aln: |
|
166 | if aln: | |
204 | lines.append('<a href="#%s%d">%*d</a>' % (la, i, mw, i)) |
|
167 | lines.append('<a href="#%s%d">%*d</a>' % (la, i, mw, i)) | |
205 | else: |
|
168 | else: | |
206 | lines.append('%*d' % (mw, i)) |
|
169 | lines.append('%*d' % (mw, i)) | |
207 | else: |
|
170 | else: | |
208 | lines.append('') |
|
171 | lines.append('') | |
209 | ls = '\n'.join(lines) |
|
172 | ls = '\n'.join(lines) | |
210 |
|
173 | |||
211 | # in case you wonder about the seemingly redundant <div> here: since the |
|
174 | # in case you wonder about the seemingly redundant <div> here: since the | |
212 | # content in the other cell also is wrapped in a div, some browsers in |
|
175 | # content in the other cell also is wrapped in a div, some browsers in | |
213 | # some configurations seem to mess up the formatting... |
|
176 | # some configurations seem to mess up the formatting... | |
214 | if nocls: |
|
177 | if nocls: | |
215 | yield 0, ('<table class="%stable">' % self.cssclass + |
|
178 | yield 0, ('<table class="%stable">' % self.cssclass + | |
216 | '<tr><td><div class="linenodiv" ' |
|
179 | '<tr><td><div class="linenodiv" ' | |
217 | 'style="background-color: #f0f0f0; padding-right: 10px">' |
|
180 | 'style="background-color: #f0f0f0; padding-right: 10px">' | |
218 | '<pre style="line-height: 125%">' + |
|
181 | '<pre style="line-height: 125%">' + | |
219 | ls + '</pre></div></td><td id="hlcode" class="code">') |
|
182 | ls + '</pre></div></td><td id="hlcode" class="code">') | |
220 | else: |
|
183 | else: | |
221 | yield 0, ('<table class="%stable">' % self.cssclass + |
|
184 | yield 0, ('<table class="%stable">' % self.cssclass + | |
222 | '<tr><td class="linenos"><div class="linenodiv"><pre>' + |
|
185 | '<tr><td class="linenos"><div class="linenodiv"><pre>' + | |
223 | ls + '</pre></div></td><td id="hlcode" class="code">') |
|
186 | ls + '</pre></div></td><td id="hlcode" class="code">') | |
224 | yield 0, dummyoutfile.getvalue() |
|
187 | yield 0, dummyoutfile.getvalue() | |
225 | yield 0, '</td></tr></table>' |
|
188 | yield 0, '</td></tr></table>' | |
226 |
|
189 | |||
227 |
|
190 | |||
228 | def pygmentize(filenode, **kwargs): |
|
191 | def pygmentize(filenode, **kwargs): | |
229 | """pygmentize function using pygments |
|
192 | """pygmentize function using pygments | |
230 |
|
193 | |||
231 | :param filenode: |
|
194 | :param filenode: | |
232 | """ |
|
195 | """ | |
233 |
|
196 | |||
234 | return literal(code_highlight(filenode.content, |
|
197 | return literal(code_highlight(filenode.content, | |
235 | filenode.lexer, CodeHtmlFormatter(**kwargs))) |
|
198 | filenode.lexer, CodeHtmlFormatter(**kwargs))) | |
236 |
|
199 | |||
237 | def pygmentize_annotation(repo_name, filenode, **kwargs): |
|
200 | def pygmentize_annotation(repo_name, filenode, **kwargs): | |
238 | """pygmentize function for annotation |
|
201 | """pygmentize function for annotation | |
239 |
|
202 | |||
240 | :param filenode: |
|
203 | :param filenode: | |
241 | """ |
|
204 | """ | |
242 |
|
205 | |||
243 | color_dict = {} |
|
206 | color_dict = {} | |
244 | def gen_color(n=10000): |
|
207 | def gen_color(n=10000): | |
245 | """generator for getting n of evenly distributed colors using |
|
208 | """generator for getting n of evenly distributed colors using | |
246 | hsv color and golden ratio. It always return same order of colors |
|
209 | hsv color and golden ratio. It always return same order of colors | |
247 |
|
210 | |||
248 | :returns: RGB tuple |
|
211 | :returns: RGB tuple | |
249 | """ |
|
212 | """ | |
250 | import colorsys |
|
213 | import colorsys | |
251 | golden_ratio = 0.618033988749895 |
|
214 | golden_ratio = 0.618033988749895 | |
252 | h = 0.22717784590367374 |
|
215 | h = 0.22717784590367374 | |
253 |
|
216 | |||
254 | for _ in xrange(n): |
|
217 | for _ in xrange(n): | |
255 | h += golden_ratio |
|
218 | h += golden_ratio | |
256 | h %= 1 |
|
219 | h %= 1 | |
257 | HSV_tuple = [h, 0.95, 0.95] |
|
220 | HSV_tuple = [h, 0.95, 0.95] | |
258 | RGB_tuple = colorsys.hsv_to_rgb(*HSV_tuple) |
|
221 | RGB_tuple = colorsys.hsv_to_rgb(*HSV_tuple) | |
259 | yield map(lambda x:str(int(x * 256)), RGB_tuple) |
|
222 | yield map(lambda x:str(int(x * 256)), RGB_tuple) | |
260 |
|
223 | |||
261 | cgenerator = gen_color() |
|
224 | cgenerator = gen_color() | |
262 |
|
225 | |||
263 | def get_color_string(cs): |
|
226 | def get_color_string(cs): | |
264 | if color_dict.has_key(cs): |
|
227 | if color_dict.has_key(cs): | |
265 | col = color_dict[cs] |
|
228 | col = color_dict[cs] | |
266 | else: |
|
229 | else: | |
267 | col = color_dict[cs] = cgenerator.next() |
|
230 | col = color_dict[cs] = cgenerator.next() | |
268 | return "color: rgb(%s)! important;" % (', '.join(col)) |
|
231 | return "color: rgb(%s)! important;" % (', '.join(col)) | |
269 |
|
232 | |||
270 | def url_func(repo_name): |
|
233 | def url_func(repo_name): | |
271 |
|
234 | |||
272 | def _url_func(changeset): |
|
235 | def _url_func(changeset): | |
273 | author = changeset.author |
|
236 | author = changeset.author | |
274 | date = changeset.date |
|
237 | date = changeset.date | |
275 | message = tooltip(changeset.message) |
|
238 | message = tooltip(changeset.message) | |
276 |
|
239 | |||
277 | tooltip_html = ("<div style='font-size:0.8em'><b>Author:</b>" |
|
240 | tooltip_html = ("<div style='font-size:0.8em'><b>Author:</b>" | |
278 | " %s<br/><b>Date:</b> %s</b><br/><b>Message:" |
|
241 | " %s<br/><b>Date:</b> %s</b><br/><b>Message:" | |
279 | "</b> %s<br/></div>") |
|
242 | "</b> %s<br/></div>") | |
280 |
|
243 | |||
281 | tooltip_html = tooltip_html % (author, date, message) |
|
244 | tooltip_html = tooltip_html % (author, date, message) | |
282 | lnk_format = '%5s:%s' % ('r%s' % changeset.revision, |
|
245 | lnk_format = '%5s:%s' % ('r%s' % changeset.revision, | |
283 | short_id(changeset.raw_id)) |
|
246 | short_id(changeset.raw_id)) | |
284 | uri = link_to( |
|
247 | uri = link_to( | |
285 | lnk_format, |
|
248 | lnk_format, | |
286 | url('changeset_home', repo_name=repo_name, |
|
249 | url('changeset_home', repo_name=repo_name, | |
287 | revision=changeset.raw_id), |
|
250 | revision=changeset.raw_id), | |
288 | style=get_color_string(changeset.raw_id), |
|
251 | style=get_color_string(changeset.raw_id), | |
289 | class_='tooltip', |
|
252 | class_='tooltip', | |
290 | title=tooltip_html |
|
253 | title=tooltip_html | |
291 | ) |
|
254 | ) | |
292 |
|
255 | |||
293 | uri += '\n' |
|
256 | uri += '\n' | |
294 | return uri |
|
257 | return uri | |
295 | return _url_func |
|
258 | return _url_func | |
296 |
|
259 | |||
297 | return literal(annotate_highlight(filenode, url_func(repo_name), **kwargs)) |
|
260 | return literal(annotate_highlight(filenode, url_func(repo_name), **kwargs)) | |
298 |
|
261 | |||
299 | def get_changeset_safe(repo, rev): |
|
262 | def get_changeset_safe(repo, rev): | |
300 | from vcs.backends.base import BaseRepository |
|
263 | from vcs.backends.base import BaseRepository | |
301 | from vcs.exceptions import RepositoryError |
|
264 | from vcs.exceptions import RepositoryError | |
302 | if not isinstance(repo, BaseRepository): |
|
265 | if not isinstance(repo, BaseRepository): | |
303 | raise Exception('You must pass an Repository ' |
|
266 | raise Exception('You must pass an Repository ' | |
304 | 'object as first argument got %s', type(repo)) |
|
267 | 'object as first argument got %s', type(repo)) | |
305 |
|
268 | |||
306 | try: |
|
269 | try: | |
307 | cs = repo.get_changeset(rev) |
|
270 | cs = repo.get_changeset(rev) | |
308 | except RepositoryError: |
|
271 | except RepositoryError: | |
309 | from rhodecode.lib.utils import EmptyChangeset |
|
272 | from rhodecode.lib.utils import EmptyChangeset | |
310 | cs = EmptyChangeset() |
|
273 | cs = EmptyChangeset() | |
311 | return cs |
|
274 | return cs | |
312 |
|
275 | |||
313 |
|
276 | |||
314 | def is_following_repo(repo_name, user_id): |
|
277 | def is_following_repo(repo_name, user_id): | |
315 | from rhodecode.model.scm import ScmModel |
|
278 | from rhodecode.model.scm import ScmModel | |
316 | return ScmModel().is_following_repo(repo_name, user_id) |
|
279 | return ScmModel().is_following_repo(repo_name, user_id) | |
317 |
|
280 | |||
318 | flash = _Flash() |
|
281 | flash = _Flash() | |
319 |
|
282 | |||
320 | #============================================================================== |
|
283 | #============================================================================== | |
321 | # SCM FILTERS available via h. |
|
284 | # SCM FILTERS available via h. | |
322 | #============================================================================== |
|
285 | #============================================================================== | |
323 | from vcs.utils import author_name, author_email |
|
286 | from vcs.utils import author_name, author_email | |
324 | from rhodecode.lib import credentials_filter, age as _age |
|
287 | from rhodecode.lib import credentials_filter, age as _age | |
325 |
|
288 | |||
326 | age = lambda x:_age(x) |
|
289 | age = lambda x:_age(x) | |
327 | capitalize = lambda x: x.capitalize() |
|
290 | capitalize = lambda x: x.capitalize() | |
328 | email = author_email |
|
291 | email = author_email | |
329 | email_or_none = lambda x: email(x) if email(x) != x else None |
|
292 | email_or_none = lambda x: email(x) if email(x) != x else None | |
330 | person = lambda x: author_name(x) |
|
293 | person = lambda x: author_name(x) | |
331 | short_id = lambda x: x[:12] |
|
294 | short_id = lambda x: x[:12] | |
332 | hide_credentials = lambda x: ''.join(credentials_filter(x)) |
|
295 | hide_credentials = lambda x: ''.join(credentials_filter(x)) | |
333 |
|
296 | |||
334 | def bool2icon(value): |
|
297 | def bool2icon(value): | |
335 | """Returns True/False values represented as small html image of true/false |
|
298 | """Returns True/False values represented as small html image of true/false | |
336 | icons |
|
299 | icons | |
337 |
|
300 | |||
338 | :param value: bool value |
|
301 | :param value: bool value | |
339 | """ |
|
302 | """ | |
340 |
|
303 | |||
341 | if value is True: |
|
304 | if value is True: | |
342 | return HTML.tag('img', src=url("/images/icons/accept.png"), |
|
305 | return HTML.tag('img', src=url("/images/icons/accept.png"), | |
343 | alt=_('True')) |
|
306 | alt=_('True')) | |
344 |
|
307 | |||
345 | if value is False: |
|
308 | if value is False: | |
346 | return HTML.tag('img', src=url("/images/icons/cancel.png"), |
|
309 | return HTML.tag('img', src=url("/images/icons/cancel.png"), | |
347 | alt=_('False')) |
|
310 | alt=_('False')) | |
348 |
|
311 | |||
349 | return value |
|
312 | return value | |
350 |
|
313 | |||
351 |
|
314 | |||
352 | def action_parser(user_log, feed=False): |
|
315 | def action_parser(user_log, feed=False): | |
353 | """This helper will action_map the specified string action into translated |
|
316 | """This helper will action_map the specified string action into translated | |
354 | fancy names with icons and links |
|
317 | fancy names with icons and links | |
355 |
|
318 | |||
356 | :param user_log: user log instance |
|
319 | :param user_log: user log instance | |
357 | :param feed: use output for feeds (no html and fancy icons) |
|
320 | :param feed: use output for feeds (no html and fancy icons) | |
358 | """ |
|
321 | """ | |
359 |
|
322 | |||
360 | action = user_log.action |
|
323 | action = user_log.action | |
361 | action_params = ' ' |
|
324 | action_params = ' ' | |
362 |
|
325 | |||
363 | x = action.split(':') |
|
326 | x = action.split(':') | |
364 |
|
327 | |||
365 | if len(x) > 1: |
|
328 | if len(x) > 1: | |
366 | action, action_params = x |
|
329 | action, action_params = x | |
367 |
|
330 | |||
368 | def get_cs_links(): |
|
331 | def get_cs_links(): | |
369 |
revs_limit = |
|
332 | revs_limit = 3 #display this amount always | |
370 | revs_top_limit = 50 #show upto this amount of changesets hidden |
|
333 | revs_top_limit = 50 #show upto this amount of changesets hidden | |
371 | revs = action_params.split(',') |
|
334 | revs = action_params.split(',') | |
372 | repo_name = user_log.repository.repo_name |
|
335 | repo_name = user_log.repository.repo_name | |
373 |
|
336 | |||
374 | from rhodecode.model.scm import ScmModel |
|
337 | from rhodecode.model.scm import ScmModel | |
375 | repo = user_log.repository.scm_instance |
|
338 | repo = user_log.repository.scm_instance | |
376 |
|
339 | |||
377 | message = lambda rev: get_changeset_safe(repo, rev).message |
|
340 | message = lambda rev: get_changeset_safe(repo, rev).message | |
378 | cs_links = [] |
|
341 | cs_links = [] | |
379 | cs_links.append(" " + ', '.join ([link_to(rev, |
|
342 | cs_links.append(" " + ', '.join ([link_to(rev, | |
380 | url('changeset_home', |
|
343 | url('changeset_home', | |
381 | repo_name=repo_name, |
|
344 | repo_name=repo_name, | |
382 | revision=rev), title=tooltip(message(rev)), |
|
345 | revision=rev), title=tooltip(message(rev)), | |
383 | class_='tooltip') for rev in revs[:revs_limit] ])) |
|
346 | class_='tooltip') for rev in revs[:revs_limit] ])) | |
384 |
|
347 | |||
385 | compare_view = (' <div class="compare_view tooltip" title="%s">' |
|
348 | compare_view = (' <div class="compare_view tooltip" title="%s">' | |
386 | '<a href="%s">%s</a> ' |
|
349 | '<a href="%s">%s</a> ' | |
387 | '</div>' % (_('Show all combined changesets %s->%s' \ |
|
350 | '</div>' % (_('Show all combined changesets %s->%s' \ | |
388 | % (revs[0], revs[-1])), |
|
351 | % (revs[0], revs[-1])), | |
389 | url('changeset_home', repo_name=repo_name, |
|
352 | url('changeset_home', repo_name=repo_name, | |
390 | revision='%s...%s' % (revs[0], revs[-1]) |
|
353 | revision='%s...%s' % (revs[0], revs[-1]) | |
391 | ), |
|
354 | ), | |
392 | _('compare view')) |
|
355 | _('compare view')) | |
393 | ) |
|
356 | ) | |
394 |
|
357 | |||
395 | if len(revs) > revs_limit: |
|
358 | if len(revs) > revs_limit: | |
396 | uniq_id = revs[0] |
|
359 | uniq_id = revs[0] | |
397 | html_tmpl = ('<span> %s ' |
|
360 | html_tmpl = ('<span> %s ' | |
398 | '<a class="show_more" id="_%s" href="#more">%s</a> ' |
|
361 | '<a class="show_more" id="_%s" href="#more">%s</a> ' | |
399 | '%s</span>') |
|
362 | '%s</span>') | |
400 | if not feed: |
|
363 | if not feed: | |
401 | cs_links.append(html_tmpl % (_('and'), uniq_id, _('%s more') \ |
|
364 | cs_links.append(html_tmpl % (_('and'), uniq_id, _('%s more') \ | |
402 | % (len(revs) - revs_limit), |
|
365 | % (len(revs) - revs_limit), | |
403 | _('revisions'))) |
|
366 | _('revisions'))) | |
404 |
|
367 | |||
405 | if not feed: |
|
368 | if not feed: | |
406 | html_tmpl = '<span id="%s" style="display:none"> %s </span>' |
|
369 | html_tmpl = '<span id="%s" style="display:none"> %s </span>' | |
407 | else: |
|
370 | else: | |
408 | html_tmpl = '<span id="%s"> %s </span>' |
|
371 | html_tmpl = '<span id="%s"> %s </span>' | |
409 |
|
372 | |||
410 | cs_links.append(html_tmpl % (uniq_id, ', '.join([link_to(rev, |
|
373 | cs_links.append(html_tmpl % (uniq_id, ', '.join([link_to(rev, | |
411 | url('changeset_home', |
|
374 | url('changeset_home', | |
412 | repo_name=repo_name, revision=rev), |
|
375 | repo_name=repo_name, revision=rev), | |
413 | title=message(rev), class_='tooltip') |
|
376 | title=message(rev), class_='tooltip') | |
414 | for rev in revs[revs_limit:revs_top_limit]]))) |
|
377 | for rev in revs[revs_limit:revs_top_limit]]))) | |
415 | if len(revs) > 1: |
|
378 | if len(revs) > 1: | |
416 | cs_links.append(compare_view) |
|
379 | cs_links.append(compare_view) | |
417 | return ''.join(cs_links) |
|
380 | return ''.join(cs_links) | |
418 |
|
381 | |||
419 | def get_fork_name(): |
|
382 | def get_fork_name(): | |
420 | repo_name = action_params |
|
383 | repo_name = action_params | |
421 | return _('fork name ') + str(link_to(action_params, url('summary_home', |
|
384 | return _('fork name ') + str(link_to(action_params, url('summary_home', | |
422 | repo_name=repo_name,))) |
|
385 | repo_name=repo_name,))) | |
423 |
|
386 | |||
424 | action_map = {'user_deleted_repo':(_('[deleted] repository'), None), |
|
387 | action_map = {'user_deleted_repo':(_('[deleted] repository'), None), | |
425 | 'user_created_repo':(_('[created] repository'), None), |
|
388 | 'user_created_repo':(_('[created] repository'), None), | |
426 | 'user_forked_repo':(_('[forked] repository'), get_fork_name), |
|
389 | 'user_forked_repo':(_('[forked] repository'), get_fork_name), | |
427 | 'user_updated_repo':(_('[updated] repository'), None), |
|
390 | 'user_updated_repo':(_('[updated] repository'), None), | |
428 | 'admin_deleted_repo':(_('[delete] repository'), None), |
|
391 | 'admin_deleted_repo':(_('[delete] repository'), None), | |
429 | 'admin_created_repo':(_('[created] repository'), None), |
|
392 | 'admin_created_repo':(_('[created] repository'), None), | |
430 | 'admin_forked_repo':(_('[forked] repository'), None), |
|
393 | 'admin_forked_repo':(_('[forked] repository'), None), | |
431 | 'admin_updated_repo':(_('[updated] repository'), None), |
|
394 | 'admin_updated_repo':(_('[updated] repository'), None), | |
432 | 'push':(_('[pushed] into'), get_cs_links), |
|
395 | 'push':(_('[pushed] into'), get_cs_links), | |
433 | 'push_local':(_('[committed via RhodeCode] into'), get_cs_links), |
|
396 | 'push_local':(_('[committed via RhodeCode] into'), get_cs_links), | |
434 | 'push_remote':(_('[pulled from remote] into'), get_cs_links), |
|
397 | 'push_remote':(_('[pulled from remote] into'), get_cs_links), | |
435 | 'pull':(_('[pulled] from'), None), |
|
398 | 'pull':(_('[pulled] from'), None), | |
436 | 'started_following_repo':(_('[started following] repository'), None), |
|
399 | 'started_following_repo':(_('[started following] repository'), None), | |
437 | 'stopped_following_repo':(_('[stopped following] repository'), None), |
|
400 | 'stopped_following_repo':(_('[stopped following] repository'), None), | |
438 | } |
|
401 | } | |
439 |
|
402 | |||
440 | action_str = action_map.get(action, action) |
|
403 | action_str = action_map.get(action, action) | |
441 | if feed: |
|
404 | if feed: | |
442 | action = action_str[0].replace('[', '').replace(']', '') |
|
405 | action = action_str[0].replace('[', '').replace(']', '') | |
443 | else: |
|
406 | else: | |
444 | action = action_str[0].replace('[', '<span class="journal_highlight">')\ |
|
407 | action = action_str[0].replace('[', '<span class="journal_highlight">')\ | |
445 | .replace(']', '</span>') |
|
408 | .replace(']', '</span>') | |
446 |
|
409 | |||
447 | action_params_func = lambda :"" |
|
410 | action_params_func = lambda :"" | |
448 |
|
411 | |||
449 | if callable(action_str[1]): |
|
412 | if callable(action_str[1]): | |
450 | action_params_func = action_str[1] |
|
413 | action_params_func = action_str[1] | |
451 |
|
414 | |||
452 | return [literal(action), action_params_func] |
|
415 | return [literal(action), action_params_func] | |
453 |
|
416 | |||
454 | def action_parser_icon(user_log): |
|
417 | def action_parser_icon(user_log): | |
455 | action = user_log.action |
|
418 | action = user_log.action | |
456 | action_params = None |
|
419 | action_params = None | |
457 | x = action.split(':') |
|
420 | x = action.split(':') | |
458 |
|
421 | |||
459 | if len(x) > 1: |
|
422 | if len(x) > 1: | |
460 | action, action_params = x |
|
423 | action, action_params = x | |
461 |
|
424 | |||
462 | tmpl = """<img src="%s%s" alt="%s"/>""" |
|
425 | tmpl = """<img src="%s%s" alt="%s"/>""" | |
463 | map = {'user_deleted_repo':'database_delete.png', |
|
426 | map = {'user_deleted_repo':'database_delete.png', | |
464 | 'user_created_repo':'database_add.png', |
|
427 | 'user_created_repo':'database_add.png', | |
465 | 'user_forked_repo':'arrow_divide.png', |
|
428 | 'user_forked_repo':'arrow_divide.png', | |
466 | 'user_updated_repo':'database_edit.png', |
|
429 | 'user_updated_repo':'database_edit.png', | |
467 | 'admin_deleted_repo':'database_delete.png', |
|
430 | 'admin_deleted_repo':'database_delete.png', | |
468 | 'admin_created_repo':'database_add.png', |
|
431 | 'admin_created_repo':'database_add.png', | |
469 | 'admin_forked_repo':'arrow_divide.png', |
|
432 | 'admin_forked_repo':'arrow_divide.png', | |
470 | 'admin_updated_repo':'database_edit.png', |
|
433 | 'admin_updated_repo':'database_edit.png', | |
471 | 'push':'script_add.png', |
|
434 | 'push':'script_add.png', | |
472 | 'push_local':'script_edit.png', |
|
435 | 'push_local':'script_edit.png', | |
473 | 'push_remote':'connect.png', |
|
436 | 'push_remote':'connect.png', | |
474 | 'pull':'down_16.png', |
|
437 | 'pull':'down_16.png', | |
475 | 'started_following_repo':'heart_add.png', |
|
438 | 'started_following_repo':'heart_add.png', | |
476 | 'stopped_following_repo':'heart_delete.png', |
|
439 | 'stopped_following_repo':'heart_delete.png', | |
477 | } |
|
440 | } | |
478 | return literal(tmpl % ((url('/images/icons/')), |
|
441 | return literal(tmpl % ((url('/images/icons/')), | |
479 | map.get(action, action), action)) |
|
442 | map.get(action, action), action)) | |
480 |
|
443 | |||
481 |
|
444 | |||
482 | #============================================================================== |
|
445 | #============================================================================== | |
483 | # PERMS |
|
446 | # PERMS | |
484 | #============================================================================== |
|
447 | #============================================================================== | |
485 | from rhodecode.lib.auth import HasPermissionAny, HasPermissionAll, \ |
|
448 | from rhodecode.lib.auth import HasPermissionAny, HasPermissionAll, \ | |
486 | HasRepoPermissionAny, HasRepoPermissionAll |
|
449 | HasRepoPermissionAny, HasRepoPermissionAll | |
487 |
|
450 | |||
488 | #============================================================================== |
|
451 | #============================================================================== | |
489 | # GRAVATAR URL |
|
452 | # GRAVATAR URL | |
490 | #============================================================================== |
|
453 | #============================================================================== | |
491 |
|
454 | |||
492 | def gravatar_url(email_address, size=30): |
|
455 | def gravatar_url(email_address, size=30): | |
493 | if not str2bool(config['app_conf'].get('use_gravatar')) or \ |
|
456 | if not str2bool(config['app_conf'].get('use_gravatar')) or \ | |
494 | email_address == 'anonymous@rhodecode.org': |
|
457 | email_address == 'anonymous@rhodecode.org': | |
495 | return "/images/user%s.png" % size |
|
458 | return "/images/user%s.png" % size | |
496 |
|
459 | |||
497 | ssl_enabled = 'https' == request.environ.get('wsgi.url_scheme') |
|
460 | ssl_enabled = 'https' == request.environ.get('wsgi.url_scheme') | |
498 | default = 'identicon' |
|
461 | default = 'identicon' | |
499 | baseurl_nossl = "http://www.gravatar.com/avatar/" |
|
462 | baseurl_nossl = "http://www.gravatar.com/avatar/" | |
500 | baseurl_ssl = "https://secure.gravatar.com/avatar/" |
|
463 | baseurl_ssl = "https://secure.gravatar.com/avatar/" | |
501 | baseurl = baseurl_ssl if ssl_enabled else baseurl_nossl |
|
464 | baseurl = baseurl_ssl if ssl_enabled else baseurl_nossl | |
502 |
|
465 | |||
503 | if isinstance(email_address, unicode): |
|
466 | if isinstance(email_address, unicode): | |
504 | #hashlib crashes on unicode items |
|
467 | #hashlib crashes on unicode items | |
505 | email_address = safe_str(email_address) |
|
468 | email_address = safe_str(email_address) | |
506 | # construct the url |
|
469 | # construct the url | |
507 | gravatar_url = baseurl + hashlib.md5(email_address.lower()).hexdigest() + "?" |
|
470 | gravatar_url = baseurl + hashlib.md5(email_address.lower()).hexdigest() + "?" | |
508 | gravatar_url += urllib.urlencode({'d':default, 's':str(size)}) |
|
471 | gravatar_url += urllib.urlencode({'d':default, 's':str(size)}) | |
509 |
|
472 | |||
510 | return gravatar_url |
|
473 | return gravatar_url | |
511 |
|
474 | |||
512 |
|
475 | |||
513 | #============================================================================== |
|
476 | #============================================================================== | |
514 | # REPO PAGER, PAGER FOR REPOSITORY |
|
477 | # REPO PAGER, PAGER FOR REPOSITORY | |
515 | #============================================================================== |
|
478 | #============================================================================== | |
516 | class RepoPage(Page): |
|
479 | class RepoPage(Page): | |
517 |
|
480 | |||
518 | def __init__(self, collection, page=1, items_per_page=20, |
|
481 | def __init__(self, collection, page=1, items_per_page=20, | |
519 | item_count=None, url=None, branch_name=None, **kwargs): |
|
482 | item_count=None, url=None, branch_name=None, **kwargs): | |
520 |
|
483 | |||
521 | """Create a "RepoPage" instance. special pager for paging |
|
484 | """Create a "RepoPage" instance. special pager for paging | |
522 | repository |
|
485 | repository | |
523 | """ |
|
486 | """ | |
524 | self._url_generator = url |
|
487 | self._url_generator = url | |
525 |
|
488 | |||
526 | # Safe the kwargs class-wide so they can be used in the pager() method |
|
489 | # Safe the kwargs class-wide so they can be used in the pager() method | |
527 | self.kwargs = kwargs |
|
490 | self.kwargs = kwargs | |
528 |
|
491 | |||
529 | # Save a reference to the collection |
|
492 | # Save a reference to the collection | |
530 | self.original_collection = collection |
|
493 | self.original_collection = collection | |
531 |
|
494 | |||
532 | self.collection = collection |
|
495 | self.collection = collection | |
533 |
|
496 | |||
534 | # The self.page is the number of the current page. |
|
497 | # The self.page is the number of the current page. | |
535 | # The first page has the number 1! |
|
498 | # The first page has the number 1! | |
536 | try: |
|
499 | try: | |
537 | self.page = int(page) # make it int() if we get it as a string |
|
500 | self.page = int(page) # make it int() if we get it as a string | |
538 | except (ValueError, TypeError): |
|
501 | except (ValueError, TypeError): | |
539 | self.page = 1 |
|
502 | self.page = 1 | |
540 |
|
503 | |||
541 | self.items_per_page = items_per_page |
|
504 | self.items_per_page = items_per_page | |
542 |
|
505 | |||
543 | # Unless the user tells us how many items the collections has |
|
506 | # Unless the user tells us how many items the collections has | |
544 | # we calculate that ourselves. |
|
507 | # we calculate that ourselves. | |
545 | if item_count is not None: |
|
508 | if item_count is not None: | |
546 | self.item_count = item_count |
|
509 | self.item_count = item_count | |
547 | else: |
|
510 | else: | |
548 | self.item_count = len(self.collection) |
|
511 | self.item_count = len(self.collection) | |
549 |
|
512 | |||
550 | # Compute the number of the first and last available page |
|
513 | # Compute the number of the first and last available page | |
551 | if self.item_count > 0: |
|
514 | if self.item_count > 0: | |
552 | self.first_page = 1 |
|
515 | self.first_page = 1 | |
553 | self.page_count = ((self.item_count - 1) / self.items_per_page) + 1 |
|
516 | self.page_count = ((self.item_count - 1) / self.items_per_page) + 1 | |
554 | self.last_page = self.first_page + self.page_count - 1 |
|
517 | self.last_page = self.first_page + self.page_count - 1 | |
555 |
|
518 | |||
556 | # Make sure that the requested page number is the range of valid pages |
|
519 | # Make sure that the requested page number is the range of valid pages | |
557 | if self.page > self.last_page: |
|
520 | if self.page > self.last_page: | |
558 | self.page = self.last_page |
|
521 | self.page = self.last_page | |
559 | elif self.page < self.first_page: |
|
522 | elif self.page < self.first_page: | |
560 | self.page = self.first_page |
|
523 | self.page = self.first_page | |
561 |
|
524 | |||
562 | # Note: the number of items on this page can be less than |
|
525 | # Note: the number of items on this page can be less than | |
563 | # items_per_page if the last page is not full |
|
526 | # items_per_page if the last page is not full | |
564 | self.first_item = max(0, (self.item_count) - (self.page * items_per_page)) |
|
527 | self.first_item = max(0, (self.item_count) - (self.page * items_per_page)) | |
565 | self.last_item = ((self.item_count - 1) - items_per_page * (self.page - 1)) |
|
528 | self.last_item = ((self.item_count - 1) - items_per_page * (self.page - 1)) | |
566 |
|
529 | |||
567 | iterator = self.collection.get_changesets(start=self.first_item, |
|
530 | iterator = self.collection.get_changesets(start=self.first_item, | |
568 | end=self.last_item, |
|
531 | end=self.last_item, | |
569 | reverse=True, |
|
532 | reverse=True, | |
570 | branch_name=branch_name) |
|
533 | branch_name=branch_name) | |
571 | self.items = list(iterator) |
|
534 | self.items = list(iterator) | |
572 |
|
535 | |||
573 | # Links to previous and next page |
|
536 | # Links to previous and next page | |
574 | if self.page > self.first_page: |
|
537 | if self.page > self.first_page: | |
575 | self.previous_page = self.page - 1 |
|
538 | self.previous_page = self.page - 1 | |
576 | else: |
|
539 | else: | |
577 | self.previous_page = None |
|
540 | self.previous_page = None | |
578 |
|
541 | |||
579 | if self.page < self.last_page: |
|
542 | if self.page < self.last_page: | |
580 | self.next_page = self.page + 1 |
|
543 | self.next_page = self.page + 1 | |
581 | else: |
|
544 | else: | |
582 | self.next_page = None |
|
545 | self.next_page = None | |
583 |
|
546 | |||
584 | # No items available |
|
547 | # No items available | |
585 | else: |
|
548 | else: | |
586 | self.first_page = None |
|
549 | self.first_page = None | |
587 | self.page_count = 0 |
|
550 | self.page_count = 0 | |
588 | self.last_page = None |
|
551 | self.last_page = None | |
589 | self.first_item = None |
|
552 | self.first_item = None | |
590 | self.last_item = None |
|
553 | self.last_item = None | |
591 | self.previous_page = None |
|
554 | self.previous_page = None | |
592 | self.next_page = None |
|
555 | self.next_page = None | |
593 | self.items = [] |
|
556 | self.items = [] | |
594 |
|
557 | |||
595 | # This is a subclass of the 'list' type. Initialise the list now. |
|
558 | # This is a subclass of the 'list' type. Initialise the list now. | |
596 | list.__init__(self, self.items) |
|
559 | list.__init__(self, self.items) | |
597 |
|
560 | |||
598 |
|
561 | |||
599 | def changed_tooltip(nodes): |
|
562 | def changed_tooltip(nodes): | |
600 | """ |
|
563 | """ | |
601 | Generates a html string for changed nodes in changeset page. |
|
564 | Generates a html string for changed nodes in changeset page. | |
602 | It limits the output to 30 entries |
|
565 | It limits the output to 30 entries | |
603 |
|
566 | |||
604 | :param nodes: LazyNodesGenerator |
|
567 | :param nodes: LazyNodesGenerator | |
605 | """ |
|
568 | """ | |
606 | if nodes: |
|
569 | if nodes: | |
607 | pref = ': <br/> ' |
|
570 | pref = ': <br/> ' | |
608 | suf = '' |
|
571 | suf = '' | |
609 | if len(nodes) > 30: |
|
572 | if len(nodes) > 30: | |
610 | suf = '<br/>' + _(' and %s more') % (len(nodes) - 30) |
|
573 | suf = '<br/>' + _(' and %s more') % (len(nodes) - 30) | |
611 | return literal(pref + '<br/> '.join([safe_unicode(x.path) |
|
574 | return literal(pref + '<br/> '.join([safe_unicode(x.path) | |
612 | for x in nodes[:30]]) + suf) |
|
575 | for x in nodes[:30]]) + suf) | |
613 | else: |
|
576 | else: | |
614 | return ': ' + _('No Files') |
|
577 | return ': ' + _('No Files') | |
615 |
|
578 | |||
616 |
|
579 | |||
617 |
|
580 | |||
618 | def repo_link(groups_and_repos): |
|
581 | def repo_link(groups_and_repos): | |
619 | """ |
|
582 | """ | |
620 | Makes a breadcrumbs link to repo within a group |
|
583 | Makes a breadcrumbs link to repo within a group | |
621 | joins » on each group to create a fancy link |
|
584 | joins » on each group to create a fancy link | |
622 |
|
585 | |||
623 | ex:: |
|
586 | ex:: | |
624 | group >> subgroup >> repo |
|
587 | group >> subgroup >> repo | |
625 |
|
588 | |||
626 | :param groups_and_repos: |
|
589 | :param groups_and_repos: | |
627 | """ |
|
590 | """ | |
628 | groups, repo_name = groups_and_repos |
|
591 | groups, repo_name = groups_and_repos | |
629 |
|
592 | |||
630 | if not groups: |
|
593 | if not groups: | |
631 | return repo_name |
|
594 | return repo_name | |
632 | else: |
|
595 | else: | |
633 | def make_link(group): |
|
596 | def make_link(group): | |
634 | return link_to(group.group_name, url('repos_group', |
|
597 | return link_to(group.group_name, url('repos_group', | |
635 | id=group.group_id)) |
|
598 | id=group.group_id)) | |
636 | return literal(' » '.join(map(make_link, groups)) + \ |
|
599 | return literal(' » '.join(map(make_link, groups)) + \ | |
637 | " » " + repo_name) |
|
600 | " » " + repo_name) | |
638 |
|
601 | |||
639 |
|
602 | |||
640 | def fancy_file_stats(stats): |
|
603 | def fancy_file_stats(stats): | |
641 | """ |
|
604 | """ | |
642 | Displays a fancy two colored bar for number of added/deleted |
|
605 | Displays a fancy two colored bar for number of added/deleted | |
643 | lines of code on file |
|
606 | lines of code on file | |
644 |
|
607 | |||
645 | :param stats: two element list of added/deleted lines of code |
|
608 | :param stats: two element list of added/deleted lines of code | |
646 | """ |
|
609 | """ | |
647 |
|
610 | |||
648 | a, d, t = stats[0], stats[1], stats[0] + stats[1] |
|
611 | a, d, t = stats[0], stats[1], stats[0] + stats[1] | |
649 | width = 100 |
|
612 | width = 100 | |
650 | unit = float(width) / (t or 1) |
|
613 | unit = float(width) / (t or 1) | |
651 |
|
614 | |||
652 | # needs > 9% of width to be visible or 0 to be hidden |
|
615 | # needs > 9% of width to be visible or 0 to be hidden | |
653 | a_p = max(9, unit * a) if a > 0 else 0 |
|
616 | a_p = max(9, unit * a) if a > 0 else 0 | |
654 | d_p = max(9, unit * d) if d > 0 else 0 |
|
617 | d_p = max(9, unit * d) if d > 0 else 0 | |
655 | p_sum = a_p + d_p |
|
618 | p_sum = a_p + d_p | |
656 |
|
619 | |||
657 | if p_sum > width: |
|
620 | if p_sum > width: | |
658 | #adjust the percentage to be == 100% since we adjusted to 9 |
|
621 | #adjust the percentage to be == 100% since we adjusted to 9 | |
659 | if a_p > d_p: |
|
622 | if a_p > d_p: | |
660 | a_p = a_p - (p_sum - width) |
|
623 | a_p = a_p - (p_sum - width) | |
661 | else: |
|
624 | else: | |
662 | d_p = d_p - (p_sum - width) |
|
625 | d_p = d_p - (p_sum - width) | |
663 |
|
626 | |||
664 | a_v = a if a > 0 else '' |
|
627 | a_v = a if a > 0 else '' | |
665 | d_v = d if d > 0 else '' |
|
628 | d_v = d if d > 0 else '' | |
666 |
|
629 | |||
667 |
|
630 | |||
668 | def cgen(l_type): |
|
631 | def cgen(l_type): | |
669 | mapping = {'tr':'top-right-rounded-corner', |
|
632 | mapping = {'tr':'top-right-rounded-corner', | |
670 | 'tl':'top-left-rounded-corner', |
|
633 | 'tl':'top-left-rounded-corner', | |
671 | 'br':'bottom-right-rounded-corner', |
|
634 | 'br':'bottom-right-rounded-corner', | |
672 | 'bl':'bottom-left-rounded-corner'} |
|
635 | 'bl':'bottom-left-rounded-corner'} | |
673 | map_getter = lambda x:mapping[x] |
|
636 | map_getter = lambda x:mapping[x] | |
674 |
|
637 | |||
675 | if l_type == 'a' and d_v: |
|
638 | if l_type == 'a' and d_v: | |
676 | #case when added and deleted are present |
|
639 | #case when added and deleted are present | |
677 | return ' '.join(map(map_getter, ['tl', 'bl'])) |
|
640 | return ' '.join(map(map_getter, ['tl', 'bl'])) | |
678 |
|
641 | |||
679 | if l_type == 'a' and not d_v: |
|
642 | if l_type == 'a' and not d_v: | |
680 | return ' '.join(map(map_getter, ['tr', 'br', 'tl', 'bl'])) |
|
643 | return ' '.join(map(map_getter, ['tr', 'br', 'tl', 'bl'])) | |
681 |
|
644 | |||
682 | if l_type == 'd' and a_v: |
|
645 | if l_type == 'd' and a_v: | |
683 | return ' '.join(map(map_getter, ['tr', 'br'])) |
|
646 | return ' '.join(map(map_getter, ['tr', 'br'])) | |
684 |
|
647 | |||
685 | if l_type == 'd' and not a_v: |
|
648 | if l_type == 'd' and not a_v: | |
686 | return ' '.join(map(map_getter, ['tr', 'br', 'tl', 'bl'])) |
|
649 | return ' '.join(map(map_getter, ['tr', 'br', 'tl', 'bl'])) | |
687 |
|
650 | |||
688 |
|
651 | |||
689 |
|
652 | |||
690 | d_a = '<div class="added %s" style="width:%s%%">%s</div>' % (cgen('a'), |
|
653 | d_a = '<div class="added %s" style="width:%s%%">%s</div>' % (cgen('a'), | |
691 | a_p, a_v) |
|
654 | a_p, a_v) | |
692 | d_d = '<div class="deleted %s" style="width:%s%%">%s</div>' % (cgen('d'), |
|
655 | d_d = '<div class="deleted %s" style="width:%s%%">%s</div>' % (cgen('d'), | |
693 | d_p, d_v) |
|
656 | d_p, d_v) | |
694 | return literal('<div style="width:%spx">%s%s</div>' % (width, d_a, d_d)) |
|
657 | return literal('<div style="width:%spx">%s%s</div>' % (width, d_a, d_d)) |
@@ -1,2674 +1,2672 | |||||
1 | html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td { |
|
1 | html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td { | |
2 | border:0; |
|
2 | border:0; | |
3 | outline:0; |
|
3 | outline:0; | |
4 | font-size:100%; |
|
4 | font-size:100%; | |
5 | vertical-align:baseline; |
|
5 | vertical-align:baseline; | |
6 | background:transparent; |
|
6 | background:transparent; | |
7 | margin:0; |
|
7 | margin:0; | |
8 | padding:0; |
|
8 | padding:0; | |
9 | } |
|
9 | } | |
10 |
|
10 | |||
11 | body { |
|
11 | body { | |
12 | line-height:1; |
|
12 | line-height:1; | |
13 | height:100%; |
|
13 | height:100%; | |
14 | background:url("../images/background.png") repeat scroll 0 0 #B0B0B0; |
|
14 | background:url("../images/background.png") repeat scroll 0 0 #B0B0B0; | |
15 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; |
|
15 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; | |
16 | font-size:12px; |
|
16 | font-size:12px; | |
17 | color:#000; |
|
17 | color:#000; | |
18 | margin:0; |
|
18 | margin:0; | |
19 | padding:0; |
|
19 | padding:0; | |
20 | } |
|
20 | } | |
21 |
|
21 | |||
22 | ol,ul { |
|
22 | ol,ul { | |
23 | list-style:none; |
|
23 | list-style:none; | |
24 | } |
|
24 | } | |
25 |
|
25 | |||
26 | blockquote,q { |
|
26 | blockquote,q { | |
27 | quotes:none; |
|
27 | quotes:none; | |
28 | } |
|
28 | } | |
29 |
|
29 | |||
30 | blockquote:before,blockquote:after,q:before,q:after { |
|
30 | blockquote:before,blockquote:after,q:before,q:after { | |
31 | content:none; |
|
31 | content:none; | |
32 | } |
|
32 | } | |
33 |
|
33 | |||
34 | :focus { |
|
34 | :focus { | |
35 | outline:0; |
|
35 | outline:0; | |
36 | } |
|
36 | } | |
37 |
|
37 | |||
38 | del { |
|
38 | del { | |
39 | text-decoration:line-through; |
|
39 | text-decoration:line-through; | |
40 | } |
|
40 | } | |
41 |
|
41 | |||
42 | table { |
|
42 | table { | |
43 | border-collapse:collapse; |
|
43 | border-collapse:collapse; | |
44 | border-spacing:0; |
|
44 | border-spacing:0; | |
45 | } |
|
45 | } | |
46 |
|
46 | |||
47 | html { |
|
47 | html { | |
48 | height:100%; |
|
48 | height:100%; | |
49 | } |
|
49 | } | |
50 |
|
50 | |||
51 | a { |
|
51 | a { | |
52 | color:#003367; |
|
52 | color:#003367; | |
53 | text-decoration:none; |
|
53 | text-decoration:none; | |
54 | cursor:pointer; |
|
54 | cursor:pointer; | |
55 | font-weight:700; |
|
55 | font-weight:700; | |
56 | } |
|
56 | } | |
57 |
|
57 | |||
58 | a:hover { |
|
58 | a:hover { | |
59 | color:#316293; |
|
59 | color:#316293; | |
60 | text-decoration:underline; |
|
60 | text-decoration:underline; | |
61 | } |
|
61 | } | |
62 |
|
62 | |||
63 | h1,h2,h3,h4,h5,h6 { |
|
63 | h1,h2,h3,h4,h5,h6 { | |
64 | color:#292929; |
|
64 | color:#292929; | |
65 | font-weight:700; |
|
65 | font-weight:700; | |
66 | } |
|
66 | } | |
67 |
|
67 | |||
68 | h1 { |
|
68 | h1 { | |
69 | font-size:22px; |
|
69 | font-size:22px; | |
70 | } |
|
70 | } | |
71 |
|
71 | |||
72 | h2 { |
|
72 | h2 { | |
73 | font-size:20px; |
|
73 | font-size:20px; | |
74 | } |
|
74 | } | |
75 |
|
75 | |||
76 | h3 { |
|
76 | h3 { | |
77 | font-size:18px; |
|
77 | font-size:18px; | |
78 | } |
|
78 | } | |
79 |
|
79 | |||
80 | h4 { |
|
80 | h4 { | |
81 | font-size:16px; |
|
81 | font-size:16px; | |
82 | } |
|
82 | } | |
83 |
|
83 | |||
84 | h5 { |
|
84 | h5 { | |
85 | font-size:14px; |
|
85 | font-size:14px; | |
86 | } |
|
86 | } | |
87 |
|
87 | |||
88 | h6 { |
|
88 | h6 { | |
89 | font-size:11px; |
|
89 | font-size:11px; | |
90 | } |
|
90 | } | |
91 |
|
91 | |||
92 | ul.circle { |
|
92 | ul.circle { | |
93 | list-style-type:circle; |
|
93 | list-style-type:circle; | |
94 | } |
|
94 | } | |
95 |
|
95 | |||
96 | ul.disc { |
|
96 | ul.disc { | |
97 | list-style-type:disc; |
|
97 | list-style-type:disc; | |
98 | } |
|
98 | } | |
99 |
|
99 | |||
100 | ul.square { |
|
100 | ul.square { | |
101 | list-style-type:square; |
|
101 | list-style-type:square; | |
102 | } |
|
102 | } | |
103 |
|
103 | |||
104 | ol.lower-roman { |
|
104 | ol.lower-roman { | |
105 | list-style-type:lower-roman; |
|
105 | list-style-type:lower-roman; | |
106 | } |
|
106 | } | |
107 |
|
107 | |||
108 | ol.upper-roman { |
|
108 | ol.upper-roman { | |
109 | list-style-type:upper-roman; |
|
109 | list-style-type:upper-roman; | |
110 | } |
|
110 | } | |
111 |
|
111 | |||
112 | ol.lower-alpha { |
|
112 | ol.lower-alpha { | |
113 | list-style-type:lower-alpha; |
|
113 | list-style-type:lower-alpha; | |
114 | } |
|
114 | } | |
115 |
|
115 | |||
116 | ol.upper-alpha { |
|
116 | ol.upper-alpha { | |
117 | list-style-type:upper-alpha; |
|
117 | list-style-type:upper-alpha; | |
118 | } |
|
118 | } | |
119 |
|
119 | |||
120 | ol.decimal { |
|
120 | ol.decimal { | |
121 | list-style-type:decimal; |
|
121 | list-style-type:decimal; | |
122 | } |
|
122 | } | |
123 |
|
123 | |||
124 | div.color { |
|
124 | div.color { | |
125 | clear:both; |
|
125 | clear:both; | |
126 | overflow:hidden; |
|
126 | overflow:hidden; | |
127 | position:absolute; |
|
127 | position:absolute; | |
128 | background:#FFF; |
|
128 | background:#FFF; | |
129 | margin:7px 0 0 60px; |
|
129 | margin:7px 0 0 60px; | |
130 | padding:1px 1px 1px 0; |
|
130 | padding:1px 1px 1px 0; | |
131 | } |
|
131 | } | |
132 |
|
132 | |||
133 | div.color a { |
|
133 | div.color a { | |
134 | width:15px; |
|
134 | width:15px; | |
135 | height:15px; |
|
135 | height:15px; | |
136 | display:block; |
|
136 | display:block; | |
137 | float:left; |
|
137 | float:left; | |
138 | margin:0 0 0 1px; |
|
138 | margin:0 0 0 1px; | |
139 | padding:0; |
|
139 | padding:0; | |
140 | } |
|
140 | } | |
141 |
|
141 | |||
142 | div.options { |
|
142 | div.options { | |
143 | clear:both; |
|
143 | clear:both; | |
144 | overflow:hidden; |
|
144 | overflow:hidden; | |
145 | position:absolute; |
|
145 | position:absolute; | |
146 | background:#FFF; |
|
146 | background:#FFF; | |
147 | margin:7px 0 0 162px; |
|
147 | margin:7px 0 0 162px; | |
148 | padding:0; |
|
148 | padding:0; | |
149 | } |
|
149 | } | |
150 |
|
150 | |||
151 | div.options a { |
|
151 | div.options a { | |
152 | height:1%; |
|
152 | height:1%; | |
153 | display:block; |
|
153 | display:block; | |
154 | text-decoration:none; |
|
154 | text-decoration:none; | |
155 | margin:0; |
|
155 | margin:0; | |
156 | padding:3px 8px; |
|
156 | padding:3px 8px; | |
157 | } |
|
157 | } | |
158 |
|
158 | |||
159 | .top-left-rounded-corner { |
|
159 | .top-left-rounded-corner { | |
160 | -webkit-border-top-left-radius: 8px; |
|
160 | -webkit-border-top-left-radius: 8px; | |
161 | -khtml-border-radius-topleft: 8px; |
|
161 | -khtml-border-radius-topleft: 8px; | |
162 | -moz-border-radius-topleft: 8px; |
|
162 | -moz-border-radius-topleft: 8px; | |
163 | border-top-left-radius: 8px; |
|
163 | border-top-left-radius: 8px; | |
164 | } |
|
164 | } | |
165 |
|
165 | |||
166 | .top-right-rounded-corner { |
|
166 | .top-right-rounded-corner { | |
167 | -webkit-border-top-right-radius: 8px; |
|
167 | -webkit-border-top-right-radius: 8px; | |
168 | -khtml-border-radius-topright: 8px; |
|
168 | -khtml-border-radius-topright: 8px; | |
169 | -moz-border-radius-topright: 8px; |
|
169 | -moz-border-radius-topright: 8px; | |
170 | border-top-right-radius: 8px; |
|
170 | border-top-right-radius: 8px; | |
171 | } |
|
171 | } | |
172 |
|
172 | |||
173 | .bottom-left-rounded-corner { |
|
173 | .bottom-left-rounded-corner { | |
174 | -webkit-border-bottom-left-radius: 8px; |
|
174 | -webkit-border-bottom-left-radius: 8px; | |
175 | -khtml-border-radius-bottomleft: 8px; |
|
175 | -khtml-border-radius-bottomleft: 8px; | |
176 | -moz-border-radius-bottomleft: 8px; |
|
176 | -moz-border-radius-bottomleft: 8px; | |
177 | border-bottom-left-radius: 8px; |
|
177 | border-bottom-left-radius: 8px; | |
178 | } |
|
178 | } | |
179 |
|
179 | |||
180 | .bottom-right-rounded-corner { |
|
180 | .bottom-right-rounded-corner { | |
181 | -webkit-border-bottom-right-radius: 8px; |
|
181 | -webkit-border-bottom-right-radius: 8px; | |
182 | -khtml-border-radius-bottomright: 8px; |
|
182 | -khtml-border-radius-bottomright: 8px; | |
183 | -moz-border-radius-bottomright: 8px; |
|
183 | -moz-border-radius-bottomright: 8px; | |
184 | border-bottom-right-radius: 8px; |
|
184 | border-bottom-right-radius: 8px; | |
185 | } |
|
185 | } | |
186 |
|
186 | |||
187 |
|
187 | |||
188 | #header { |
|
188 | #header { | |
189 | margin:0; |
|
189 | margin:0; | |
190 | padding:0 10px; |
|
190 | padding:0 10px; | |
191 | } |
|
191 | } | |
192 |
|
192 | |||
193 |
|
193 | |||
194 | #header ul#logged-user{ |
|
194 | #header ul#logged-user{ | |
195 | margin-bottom:5px !important; |
|
195 | margin-bottom:5px !important; | |
196 | -webkit-border-radius: 0px 0px 8px 8px; |
|
196 | -webkit-border-radius: 0px 0px 8px 8px; | |
197 | -khtml-border-radius: 0px 0px 8px 8px; |
|
197 | -khtml-border-radius: 0px 0px 8px 8px; | |
198 | -moz-border-radius: 0px 0px 8px 8px; |
|
198 | -moz-border-radius: 0px 0px 8px 8px; | |
199 | border-radius: 0px 0px 8px 8px; |
|
199 | border-radius: 0px 0px 8px 8px; | |
200 | height:37px; |
|
200 | height:37px; | |
201 | background:url("../images/header_inner.png") repeat-x scroll 0 0 #003367; |
|
201 | background:url("../images/header_inner.png") repeat-x scroll 0 0 #003367; | |
202 | box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6); |
|
202 | box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6); | |
203 | } |
|
203 | } | |
204 |
|
204 | |||
205 | #header ul#logged-user li { |
|
205 | #header ul#logged-user li { | |
206 | list-style:none; |
|
206 | list-style:none; | |
207 | float:left; |
|
207 | float:left; | |
208 | margin:8px 0 0; |
|
208 | margin:8px 0 0; | |
209 | padding:4px 12px; |
|
209 | padding:4px 12px; | |
210 | border-left: 1px solid #316293; |
|
210 | border-left: 1px solid #316293; | |
211 | } |
|
211 | } | |
212 |
|
212 | |||
213 | #header ul#logged-user li.first { |
|
213 | #header ul#logged-user li.first { | |
214 | border-left:none; |
|
214 | border-left:none; | |
215 | margin:4px; |
|
215 | margin:4px; | |
216 | } |
|
216 | } | |
217 |
|
217 | |||
218 | #header ul#logged-user li.first div.gravatar { |
|
218 | #header ul#logged-user li.first div.gravatar { | |
219 | margin-top:-2px; |
|
219 | margin-top:-2px; | |
220 | } |
|
220 | } | |
221 |
|
221 | |||
222 | #header ul#logged-user li.first div.account { |
|
222 | #header ul#logged-user li.first div.account { | |
223 | padding-top:4px; |
|
223 | padding-top:4px; | |
224 | float:left; |
|
224 | float:left; | |
225 | } |
|
225 | } | |
226 |
|
226 | |||
227 | #header ul#logged-user li.last { |
|
227 | #header ul#logged-user li.last { | |
228 | border-right:none; |
|
228 | border-right:none; | |
229 | } |
|
229 | } | |
230 |
|
230 | |||
231 | #header ul#logged-user li a { |
|
231 | #header ul#logged-user li a { | |
232 | color:#fff; |
|
232 | color:#fff; | |
233 | font-weight:700; |
|
233 | font-weight:700; | |
234 | text-decoration:none; |
|
234 | text-decoration:none; | |
235 | } |
|
235 | } | |
236 |
|
236 | |||
237 | #header ul#logged-user li a:hover { |
|
237 | #header ul#logged-user li a:hover { | |
238 | text-decoration:underline; |
|
238 | text-decoration:underline; | |
239 | } |
|
239 | } | |
240 |
|
240 | |||
241 | #header ul#logged-user li.highlight a { |
|
241 | #header ul#logged-user li.highlight a { | |
242 | color:#fff; |
|
242 | color:#fff; | |
243 | } |
|
243 | } | |
244 |
|
244 | |||
245 | #header ul#logged-user li.highlight a:hover { |
|
245 | #header ul#logged-user li.highlight a:hover { | |
246 | color:#FFF; |
|
246 | color:#FFF; | |
247 | } |
|
247 | } | |
248 |
|
248 | |||
249 | #header #header-inner { |
|
249 | #header #header-inner { | |
250 | height:40px; |
|
250 | height:40px; | |
251 | clear:both; |
|
251 | clear:both; | |
252 | position:relative; |
|
252 | position:relative; | |
253 | background:#003367 url("../images/header_inner.png") repeat-x; |
|
253 | background:#003367 url("../images/header_inner.png") repeat-x; | |
254 | border-bottom:2px solid #fff; |
|
254 | border-bottom:2px solid #fff; | |
255 | margin:0; |
|
255 | margin:0; | |
256 | padding:0; |
|
256 | padding:0; | |
257 | } |
|
257 | } | |
258 |
|
258 | |||
259 | #header #header-inner #home a { |
|
259 | #header #header-inner #home a { | |
260 | height:40px; |
|
260 | height:40px; | |
261 | width:46px; |
|
261 | width:46px; | |
262 | display:block; |
|
262 | display:block; | |
263 | background:url("../images/button_home.png"); |
|
263 | background:url("../images/button_home.png"); | |
264 | background-position:0 0; |
|
264 | background-position:0 0; | |
265 | margin:0; |
|
265 | margin:0; | |
266 | padding:0; |
|
266 | padding:0; | |
267 | } |
|
267 | } | |
268 |
|
268 | |||
269 | #header #header-inner #home a:hover { |
|
269 | #header #header-inner #home a:hover { | |
270 | background-position:0 -40px; |
|
270 | background-position:0 -40px; | |
271 | } |
|
271 | } | |
272 |
|
272 | |||
273 | #header #header-inner #logo h1 { |
|
273 | #header #header-inner #logo h1 { | |
274 | color:#FFF; |
|
274 | color:#FFF; | |
275 | font-size:18px; |
|
275 | font-size:18px; | |
276 | margin:10px 0 0 13px; |
|
276 | margin:10px 0 0 13px; | |
277 | padding:0; |
|
277 | padding:0; | |
278 | } |
|
278 | } | |
279 |
|
279 | |||
280 | #header #header-inner #logo a { |
|
280 | #header #header-inner #logo a { | |
281 | color:#fff; |
|
281 | color:#fff; | |
282 | text-decoration:none; |
|
282 | text-decoration:none; | |
283 | } |
|
283 | } | |
284 |
|
284 | |||
285 | #header #header-inner #logo a:hover { |
|
285 | #header #header-inner #logo a:hover { | |
286 | color:#bfe3ff; |
|
286 | color:#bfe3ff; | |
287 | } |
|
287 | } | |
288 |
|
288 | |||
289 | #header #header-inner #quick,#header #header-inner #quick ul { |
|
289 | #header #header-inner #quick,#header #header-inner #quick ul { | |
290 | position:relative; |
|
290 | position:relative; | |
291 | float:right; |
|
291 | float:right; | |
292 | list-style-type:none; |
|
292 | list-style-type:none; | |
293 | list-style-position:outside; |
|
293 | list-style-position:outside; | |
294 | margin:10px 5px 0 0; |
|
294 | margin:10px 5px 0 0; | |
295 | padding:0; |
|
295 | padding:0; | |
296 | } |
|
296 | } | |
297 |
|
297 | |||
298 | #header #header-inner #quick li { |
|
298 | #header #header-inner #quick li { | |
299 | position:relative; |
|
299 | position:relative; | |
300 | float:left; |
|
300 | float:left; | |
301 | margin:0 5px 0 0; |
|
301 | margin:0 5px 0 0; | |
302 | padding:0; |
|
302 | padding:0; | |
303 | } |
|
303 | } | |
304 |
|
304 | |||
305 | #header #header-inner #quick li a { |
|
305 | #header #header-inner #quick li a { | |
306 | top:0; |
|
306 | top:0; | |
307 | left:0; |
|
307 | left:0; | |
308 | height:1%; |
|
308 | height:1%; | |
309 | display:block; |
|
309 | display:block; | |
310 | clear:both; |
|
310 | clear:both; | |
311 | overflow:hidden; |
|
311 | overflow:hidden; | |
312 | color:#FFF; |
|
312 | color:#FFF; | |
313 | font-weight:700; |
|
313 | font-weight:700; | |
314 | text-decoration:none; |
|
314 | text-decoration:none; | |
315 | background:#369 url("../images/quick_l.png") no-repeat top left; |
|
315 | background:#369 url("../images/quick_l.png") no-repeat top left; | |
316 | padding:0; |
|
316 | padding:0; | |
317 | } |
|
317 | } | |
318 |
|
318 | |||
319 | #header #header-inner #quick li span.short { |
|
319 | #header #header-inner #quick li span.short { | |
320 | padding:9px 6px 8px 6px; |
|
320 | padding:9px 6px 8px 6px; | |
321 | } |
|
321 | } | |
322 |
|
322 | |||
323 | #header #header-inner #quick li span { |
|
323 | #header #header-inner #quick li span { | |
324 | top:0; |
|
324 | top:0; | |
325 | right:0; |
|
325 | right:0; | |
326 | height:1%; |
|
326 | height:1%; | |
327 | display:block; |
|
327 | display:block; | |
328 | float:left; |
|
328 | float:left; | |
329 | background:url("../images/quick_r.png") no-repeat top right; |
|
329 | background:url("../images/quick_r.png") no-repeat top right; | |
330 | border-left:1px solid #3f6f9f; |
|
330 | border-left:1px solid #3f6f9f; | |
331 | margin:0; |
|
331 | margin:0; | |
332 | padding:10px 12px 8px 10px; |
|
332 | padding:10px 12px 8px 10px; | |
333 | } |
|
333 | } | |
334 |
|
334 | |||
335 | #header #header-inner #quick li span.normal { |
|
335 | #header #header-inner #quick li span.normal { | |
336 | border:none; |
|
336 | border:none; | |
337 | padding:10px 12px 8px; |
|
337 | padding:10px 12px 8px; | |
338 | } |
|
338 | } | |
339 |
|
339 | |||
340 | #header #header-inner #quick li span.icon { |
|
340 | #header #header-inner #quick li span.icon { | |
341 | top:0; |
|
341 | top:0; | |
342 | left:0; |
|
342 | left:0; | |
343 | border-left:none; |
|
343 | border-left:none; | |
344 | background:url("../images/quick_l.png") no-repeat top left; |
|
344 | background:url("../images/quick_l.png") no-repeat top left; | |
345 | border-right:1px solid #2e5c89; |
|
345 | border-right:1px solid #2e5c89; | |
346 | padding:8px 8px 4px; |
|
346 | padding:8px 8px 4px; | |
347 | } |
|
347 | } | |
348 |
|
348 | |||
349 | #header #header-inner #quick li span.icon_short { |
|
349 | #header #header-inner #quick li span.icon_short { | |
350 | top:0; |
|
350 | top:0; | |
351 | left:0; |
|
351 | left:0; | |
352 | border-left:none; |
|
352 | border-left:none; | |
353 | background:url("../images/quick_l.png") no-repeat top left; |
|
353 | background:url("../images/quick_l.png") no-repeat top left; | |
354 | border-right:1px solid #2e5c89; |
|
354 | border-right:1px solid #2e5c89; | |
355 | padding:9px 4px 4px; |
|
355 | padding:9px 4px 4px; | |
356 | } |
|
356 | } | |
357 |
|
357 | |||
358 | #header #header-inner #quick li a:hover { |
|
358 | #header #header-inner #quick li a:hover { | |
359 | background:#4e4e4e url("../images/quick_l_selected.png") no-repeat top left; |
|
359 | background:#4e4e4e url("../images/quick_l_selected.png") no-repeat top left; | |
360 | } |
|
360 | } | |
361 |
|
361 | |||
362 | #header #header-inner #quick li a:hover span { |
|
362 | #header #header-inner #quick li a:hover span { | |
363 | border-left:1px solid #545454; |
|
363 | border-left:1px solid #545454; | |
364 | background:url("../images/quick_r_selected.png") no-repeat top right; |
|
364 | background:url("../images/quick_r_selected.png") no-repeat top right; | |
365 | } |
|
365 | } | |
366 |
|
366 | |||
367 | #header #header-inner #quick li a:hover span.icon,#header #header-inner #quick li a:hover span.icon_short { |
|
367 | #header #header-inner #quick li a:hover span.icon,#header #header-inner #quick li a:hover span.icon_short { | |
368 | border-left:none; |
|
368 | border-left:none; | |
369 | border-right:1px solid #464646; |
|
369 | border-right:1px solid #464646; | |
370 | background:url("../images/quick_l_selected.png") no-repeat top left; |
|
370 | background:url("../images/quick_l_selected.png") no-repeat top left; | |
371 | } |
|
371 | } | |
372 |
|
372 | |||
373 |
|
373 | |||
374 | #header #header-inner #quick ul { |
|
374 | #header #header-inner #quick ul { | |
375 | top:29px; |
|
375 | top:29px; | |
376 | right:0; |
|
376 | right:0; | |
377 | min-width:200px; |
|
377 | min-width:200px; | |
378 | display:none; |
|
378 | display:none; | |
379 | position:absolute; |
|
379 | position:absolute; | |
380 | background:#FFF; |
|
380 | background:#FFF; | |
381 | border:1px solid #666; |
|
381 | border:1px solid #666; | |
382 | border-top:1px solid #003367; |
|
382 | border-top:1px solid #003367; | |
383 | z-index:100; |
|
383 | z-index:100; | |
384 | margin:0; |
|
384 | margin:0; | |
385 | padding:0; |
|
385 | padding:0; | |
386 | } |
|
386 | } | |
387 |
|
387 | |||
388 | #header #header-inner #quick ul.repo_switcher { |
|
388 | #header #header-inner #quick ul.repo_switcher { | |
389 | max-height:275px; |
|
389 | max-height:275px; | |
390 | overflow-x:hidden; |
|
390 | overflow-x:hidden; | |
391 | overflow-y:auto; |
|
391 | overflow-y:auto; | |
392 | } |
|
392 | } | |
393 | #header #header-inner #quick ul.repo_switcher li.qfilter_rs { |
|
393 | #header #header-inner #quick ul.repo_switcher li.qfilter_rs { | |
394 | float:none; |
|
394 | float:none; | |
395 | margin:0; |
|
395 | margin:0; | |
396 | border-bottom:2px solid #003367; |
|
396 | border-bottom:2px solid #003367; | |
397 | } |
|
397 | } | |
398 |
|
398 | |||
399 |
|
399 | |||
400 | #header #header-inner #quick .repo_switcher_type{ |
|
400 | #header #header-inner #quick .repo_switcher_type{ | |
401 | position:absolute; |
|
401 | position:absolute; | |
402 | left:0; |
|
402 | left:0; | |
403 | top:9px; |
|
403 | top:9px; | |
404 |
|
404 | |||
405 | } |
|
405 | } | |
406 | #header #header-inner #quick li ul li { |
|
406 | #header #header-inner #quick li ul li { | |
407 | border-bottom:1px solid #ddd; |
|
407 | border-bottom:1px solid #ddd; | |
408 | } |
|
408 | } | |
409 |
|
409 | |||
410 | #header #header-inner #quick li ul li a { |
|
410 | #header #header-inner #quick li ul li a { | |
411 | width:182px; |
|
411 | width:182px; | |
412 | height:auto; |
|
412 | height:auto; | |
413 | display:block; |
|
413 | display:block; | |
414 | float:left; |
|
414 | float:left; | |
415 | background:#FFF; |
|
415 | background:#FFF; | |
416 | color:#003367; |
|
416 | color:#003367; | |
417 | font-weight:400; |
|
417 | font-weight:400; | |
418 | margin:0; |
|
418 | margin:0; | |
419 | padding:7px 9px; |
|
419 | padding:7px 9px; | |
420 | } |
|
420 | } | |
421 |
|
421 | |||
422 | #header #header-inner #quick li ul li a:hover { |
|
422 | #header #header-inner #quick li ul li a:hover { | |
423 | color:#000; |
|
423 | color:#000; | |
424 | background:#FFF; |
|
424 | background:#FFF; | |
425 | } |
|
425 | } | |
426 |
|
426 | |||
427 | #header #header-inner #quick ul ul { |
|
427 | #header #header-inner #quick ul ul { | |
428 | top:auto; |
|
428 | top:auto; | |
429 | } |
|
429 | } | |
430 |
|
430 | |||
431 | #header #header-inner #quick li ul ul { |
|
431 | #header #header-inner #quick li ul ul { | |
432 | right:200px; |
|
432 | right:200px; | |
433 | max-height:275px; |
|
433 | max-height:275px; | |
434 | overflow:auto; |
|
434 | overflow:auto; | |
435 | overflow-x:hidden; |
|
435 | overflow-x:hidden; | |
436 | white-space:normal; |
|
436 | white-space:normal; | |
437 | } |
|
437 | } | |
438 |
|
438 | |||
439 | #header #header-inner #quick li ul li a.journal,#header #header-inner #quick li ul li a.journal:hover { |
|
439 | #header #header-inner #quick li ul li a.journal,#header #header-inner #quick li ul li a.journal:hover { | |
440 | background:url("../images/icons/book.png") no-repeat scroll 4px 9px #FFF; |
|
440 | background:url("../images/icons/book.png") no-repeat scroll 4px 9px #FFF; | |
441 | width:167px; |
|
441 | width:167px; | |
442 | margin:0; |
|
442 | margin:0; | |
443 | padding:12px 9px 7px 24px; |
|
443 | padding:12px 9px 7px 24px; | |
444 | } |
|
444 | } | |
445 |
|
445 | |||
446 | #header #header-inner #quick li ul li a.private_repo,#header #header-inner #quick li ul li a.private_repo:hover { |
|
446 | #header #header-inner #quick li ul li a.private_repo,#header #header-inner #quick li ul li a.private_repo:hover { | |
447 | background:url("../images/icons/lock.png") no-repeat scroll 4px 9px #FFF; |
|
447 | background:url("../images/icons/lock.png") no-repeat scroll 4px 9px #FFF; | |
448 | min-width:167px; |
|
448 | min-width:167px; | |
449 | margin:0; |
|
449 | margin:0; | |
450 | padding:12px 9px 7px 24px; |
|
450 | padding:12px 9px 7px 24px; | |
451 | } |
|
451 | } | |
452 |
|
452 | |||
453 | #header #header-inner #quick li ul li a.public_repo,#header #header-inner #quick li ul li a.public_repo:hover { |
|
453 | #header #header-inner #quick li ul li a.public_repo,#header #header-inner #quick li ul li a.public_repo:hover { | |
454 | background:url("../images/icons/lock_open.png") no-repeat scroll 4px 9px #FFF; |
|
454 | background:url("../images/icons/lock_open.png") no-repeat scroll 4px 9px #FFF; | |
455 | min-width:167px; |
|
455 | min-width:167px; | |
456 | margin:0; |
|
456 | margin:0; | |
457 | padding:12px 9px 7px 24px; |
|
457 | padding:12px 9px 7px 24px; | |
458 | } |
|
458 | } | |
459 |
|
459 | |||
460 | #header #header-inner #quick li ul li a.hg,#header #header-inner #quick li ul li a.hg:hover { |
|
460 | #header #header-inner #quick li ul li a.hg,#header #header-inner #quick li ul li a.hg:hover { | |
461 | background:url("../images/icons/hgicon.png") no-repeat scroll 4px 9px #FFF; |
|
461 | background:url("../images/icons/hgicon.png") no-repeat scroll 4px 9px #FFF; | |
462 | min-width:167px; |
|
462 | min-width:167px; | |
463 | margin:0 0 0 14px; |
|
463 | margin:0 0 0 14px; | |
464 | padding:12px 9px 7px 24px; |
|
464 | padding:12px 9px 7px 24px; | |
465 | } |
|
465 | } | |
466 |
|
466 | |||
467 | #header #header-inner #quick li ul li a.git,#header #header-inner #quick li ul li a.git:hover { |
|
467 | #header #header-inner #quick li ul li a.git,#header #header-inner #quick li ul li a.git:hover { | |
468 | background:url("../images/icons/giticon.png") no-repeat scroll 4px 9px #FFF; |
|
468 | background:url("../images/icons/giticon.png") no-repeat scroll 4px 9px #FFF; | |
469 | min-width:167px; |
|
469 | min-width:167px; | |
470 | margin:0 0 0 14px; |
|
470 | margin:0 0 0 14px; | |
471 | padding:12px 9px 7px 24px; |
|
471 | padding:12px 9px 7px 24px; | |
472 | } |
|
472 | } | |
473 |
|
473 | |||
474 | #header #header-inner #quick li ul li a.repos,#header #header-inner #quick li ul li a.repos:hover { |
|
474 | #header #header-inner #quick li ul li a.repos,#header #header-inner #quick li ul li a.repos:hover { | |
475 | background:url("../images/icons/database_edit.png") no-repeat scroll 4px 9px #FFF; |
|
475 | background:url("../images/icons/database_edit.png") no-repeat scroll 4px 9px #FFF; | |
476 | width:167px; |
|
476 | width:167px; | |
477 | margin:0; |
|
477 | margin:0; | |
478 | padding:12px 9px 7px 24px; |
|
478 | padding:12px 9px 7px 24px; | |
479 | } |
|
479 | } | |
480 |
|
480 | |||
481 | #header #header-inner #quick li ul li a.repos_groups,#header #header-inner #quick li ul li a.repos_groups:hover { |
|
481 | #header #header-inner #quick li ul li a.repos_groups,#header #header-inner #quick li ul li a.repos_groups:hover { | |
482 | background:url("../images/icons/database_link.png") no-repeat scroll 4px 9px #FFF; |
|
482 | background:url("../images/icons/database_link.png") no-repeat scroll 4px 9px #FFF; | |
483 | width:167px; |
|
483 | width:167px; | |
484 | margin:0; |
|
484 | margin:0; | |
485 | padding:12px 9px 7px 24px; |
|
485 | padding:12px 9px 7px 24px; | |
486 | } |
|
486 | } | |
487 |
|
487 | |||
488 | #header #header-inner #quick li ul li a.users,#header #header-inner #quick li ul li a.users:hover { |
|
488 | #header #header-inner #quick li ul li a.users,#header #header-inner #quick li ul li a.users:hover { | |
489 | background:#FFF url("../images/icons/user_edit.png") no-repeat 4px 9px; |
|
489 | background:#FFF url("../images/icons/user_edit.png") no-repeat 4px 9px; | |
490 | width:167px; |
|
490 | width:167px; | |
491 | margin:0; |
|
491 | margin:0; | |
492 | padding:12px 9px 7px 24px; |
|
492 | padding:12px 9px 7px 24px; | |
493 | } |
|
493 | } | |
494 |
|
494 | |||
495 | #header #header-inner #quick li ul li a.groups,#header #header-inner #quick li ul li a.groups:hover { |
|
495 | #header #header-inner #quick li ul li a.groups,#header #header-inner #quick li ul li a.groups:hover { | |
496 | background:#FFF url("../images/icons/group_edit.png") no-repeat 4px 9px; |
|
496 | background:#FFF url("../images/icons/group_edit.png") no-repeat 4px 9px; | |
497 | width:167px; |
|
497 | width:167px; | |
498 | margin:0; |
|
498 | margin:0; | |
499 | padding:12px 9px 7px 24px; |
|
499 | padding:12px 9px 7px 24px; | |
500 | } |
|
500 | } | |
501 |
|
501 | |||
502 | #header #header-inner #quick li ul li a.settings,#header #header-inner #quick li ul li a.settings:hover { |
|
502 | #header #header-inner #quick li ul li a.settings,#header #header-inner #quick li ul li a.settings:hover { | |
503 | background:#FFF url("../images/icons/cog.png") no-repeat 4px 9px; |
|
503 | background:#FFF url("../images/icons/cog.png") no-repeat 4px 9px; | |
504 | width:167px; |
|
504 | width:167px; | |
505 | margin:0; |
|
505 | margin:0; | |
506 | padding:12px 9px 7px 24px; |
|
506 | padding:12px 9px 7px 24px; | |
507 | } |
|
507 | } | |
508 |
|
508 | |||
509 | #header #header-inner #quick li ul li a.permissions,#header #header-inner #quick li ul li a.permissions:hover { |
|
509 | #header #header-inner #quick li ul li a.permissions,#header #header-inner #quick li ul li a.permissions:hover { | |
510 | background:#FFF url("../images/icons/key.png") no-repeat 4px 9px; |
|
510 | background:#FFF url("../images/icons/key.png") no-repeat 4px 9px; | |
511 | width:167px; |
|
511 | width:167px; | |
512 | margin:0; |
|
512 | margin:0; | |
513 | padding:12px 9px 7px 24px; |
|
513 | padding:12px 9px 7px 24px; | |
514 | } |
|
514 | } | |
515 |
|
515 | |||
516 | #header #header-inner #quick li ul li a.ldap,#header #header-inner #quick li ul li a.ldap:hover { |
|
516 | #header #header-inner #quick li ul li a.ldap,#header #header-inner #quick li ul li a.ldap:hover { | |
517 | background:#FFF url("../images/icons/server_key.png") no-repeat 4px 9px; |
|
517 | background:#FFF url("../images/icons/server_key.png") no-repeat 4px 9px; | |
518 | width:167px; |
|
518 | width:167px; | |
519 | margin:0; |
|
519 | margin:0; | |
520 | padding:12px 9px 7px 24px; |
|
520 | padding:12px 9px 7px 24px; | |
521 | } |
|
521 | } | |
522 |
|
522 | |||
523 | #header #header-inner #quick li ul li a.fork,#header #header-inner #quick li ul li a.fork:hover { |
|
523 | #header #header-inner #quick li ul li a.fork,#header #header-inner #quick li ul li a.fork:hover { | |
524 | background:#FFF url("../images/icons/arrow_divide.png") no-repeat 4px 9px; |
|
524 | background:#FFF url("../images/icons/arrow_divide.png") no-repeat 4px 9px; | |
525 | width:167px; |
|
525 | width:167px; | |
526 | margin:0; |
|
526 | margin:0; | |
527 | padding:12px 9px 7px 24px; |
|
527 | padding:12px 9px 7px 24px; | |
528 | } |
|
528 | } | |
529 |
|
529 | |||
530 | #header #header-inner #quick li ul li a.search,#header #header-inner #quick li ul li a.search:hover { |
|
530 | #header #header-inner #quick li ul li a.search,#header #header-inner #quick li ul li a.search:hover { | |
531 | background:#FFF url("../images/icons/search_16.png") no-repeat 4px 9px; |
|
531 | background:#FFF url("../images/icons/search_16.png") no-repeat 4px 9px; | |
532 | width:167px; |
|
532 | width:167px; | |
533 | margin:0; |
|
533 | margin:0; | |
534 | padding:12px 9px 7px 24px; |
|
534 | padding:12px 9px 7px 24px; | |
535 | } |
|
535 | } | |
536 |
|
536 | |||
537 | #header #header-inner #quick li ul li a.delete,#header #header-inner #quick li ul li a.delete:hover { |
|
537 | #header #header-inner #quick li ul li a.delete,#header #header-inner #quick li ul li a.delete:hover { | |
538 | background:#FFF url("../images/icons/delete.png") no-repeat 4px 9px; |
|
538 | background:#FFF url("../images/icons/delete.png") no-repeat 4px 9px; | |
539 | width:167px; |
|
539 | width:167px; | |
540 | margin:0; |
|
540 | margin:0; | |
541 | padding:12px 9px 7px 24px; |
|
541 | padding:12px 9px 7px 24px; | |
542 | } |
|
542 | } | |
543 |
|
543 | |||
544 | #header #header-inner #quick li ul li a.branches,#header #header-inner #quick li ul li a.branches:hover { |
|
544 | #header #header-inner #quick li ul li a.branches,#header #header-inner #quick li ul li a.branches:hover { | |
545 | background:#FFF url("../images/icons/arrow_branch.png") no-repeat 4px 9px; |
|
545 | background:#FFF url("../images/icons/arrow_branch.png") no-repeat 4px 9px; | |
546 | width:167px; |
|
546 | width:167px; | |
547 | margin:0; |
|
547 | margin:0; | |
548 | padding:12px 9px 7px 24px; |
|
548 | padding:12px 9px 7px 24px; | |
549 | } |
|
549 | } | |
550 |
|
550 | |||
551 | #header #header-inner #quick li ul li a.tags,#header #header-inner #quick li ul li a.tags:hover { |
|
551 | #header #header-inner #quick li ul li a.tags,#header #header-inner #quick li ul li a.tags:hover { | |
552 | background:#FFF url("../images/icons/tag_blue.png") no-repeat 4px 9px; |
|
552 | background:#FFF url("../images/icons/tag_blue.png") no-repeat 4px 9px; | |
553 | width:167px; |
|
553 | width:167px; | |
554 | margin:0; |
|
554 | margin:0; | |
555 | padding:12px 9px 7px 24px; |
|
555 | padding:12px 9px 7px 24px; | |
556 | } |
|
556 | } | |
557 |
|
557 | |||
558 | #header #header-inner #quick li ul li a.admin,#header #header-inner #quick li ul li a.admin:hover { |
|
558 | #header #header-inner #quick li ul li a.admin,#header #header-inner #quick li ul li a.admin:hover { | |
559 | background:#FFF url("../images/icons/cog_edit.png") no-repeat 4px 9px; |
|
559 | background:#FFF url("../images/icons/cog_edit.png") no-repeat 4px 9px; | |
560 | width:167px; |
|
560 | width:167px; | |
561 | margin:0; |
|
561 | margin:0; | |
562 | padding:12px 9px 7px 24px; |
|
562 | padding:12px 9px 7px 24px; | |
563 | } |
|
563 | } | |
564 |
|
564 | |||
565 | #content #left { |
|
565 | #content #left { | |
566 | left:0; |
|
566 | left:0; | |
567 | width:280px; |
|
567 | width:280px; | |
568 | position:absolute; |
|
568 | position:absolute; | |
569 | } |
|
569 | } | |
570 |
|
570 | |||
571 | #content #right { |
|
571 | #content #right { | |
572 | margin:0 60px 10px 290px; |
|
572 | margin:0 60px 10px 290px; | |
573 | } |
|
573 | } | |
574 |
|
574 | |||
575 | #content div.box { |
|
575 | #content div.box { | |
576 | clear:both; |
|
576 | clear:both; | |
577 | overflow:hidden; |
|
577 | overflow:hidden; | |
578 | background:#fff; |
|
578 | background:#fff; | |
579 | margin:0 0 10px; |
|
579 | margin:0 0 10px; | |
580 | padding:0 0 10px; |
|
580 | padding:0 0 10px; | |
581 | } |
|
581 | } | |
582 |
|
582 | |||
583 | #content div.box-left { |
|
583 | #content div.box-left { | |
584 | width:49%; |
|
584 | width:49%; | |
585 | clear:none; |
|
585 | clear:none; | |
586 | float:left; |
|
586 | float:left; | |
587 | margin:0 0 10px; |
|
587 | margin:0 0 10px; | |
588 | } |
|
588 | } | |
589 |
|
589 | |||
590 | #content div.box-right { |
|
590 | #content div.box-right { | |
591 | width:49%; |
|
591 | width:49%; | |
592 | clear:none; |
|
592 | clear:none; | |
593 | float:right; |
|
593 | float:right; | |
594 | margin:0 0 10px; |
|
594 | margin:0 0 10px; | |
595 | } |
|
595 | } | |
596 |
|
596 | |||
597 | #content div.box div.title { |
|
597 | #content div.box div.title { | |
598 | clear:both; |
|
598 | clear:both; | |
599 | overflow:hidden; |
|
599 | overflow:hidden; | |
600 | background:#369 url("../images/header_inner.png") repeat-x; |
|
600 | background:#369 url("../images/header_inner.png") repeat-x; | |
601 | margin:0 0 20px; |
|
601 | margin:0 0 20px; | |
602 | padding:0; |
|
602 | padding:0; | |
603 | } |
|
603 | } | |
604 |
|
604 | |||
605 | #content div.box div.title h5 { |
|
605 | #content div.box div.title h5 { | |
606 | float:left; |
|
606 | float:left; | |
607 | border:none; |
|
607 | border:none; | |
608 | color:#fff; |
|
608 | color:#fff; | |
609 | text-transform:uppercase; |
|
609 | text-transform:uppercase; | |
610 | margin:0; |
|
610 | margin:0; | |
611 | padding:11px 0 11px 10px; |
|
611 | padding:11px 0 11px 10px; | |
612 | } |
|
612 | } | |
613 |
|
613 | |||
614 | #content div.box div.title ul.links li { |
|
614 | #content div.box div.title ul.links li { | |
615 | list-style:none; |
|
615 | list-style:none; | |
616 | float:left; |
|
616 | float:left; | |
617 | margin:0; |
|
617 | margin:0; | |
618 | padding:0; |
|
618 | padding:0; | |
619 | } |
|
619 | } | |
620 |
|
620 | |||
621 | #content div.box div.title ul.links li a { |
|
621 | #content div.box div.title ul.links li a { | |
622 | border-left: 1px solid #316293; |
|
622 | border-left: 1px solid #316293; | |
623 | color: #FFFFFF; |
|
623 | color: #FFFFFF; | |
624 | display: block; |
|
624 | display: block; | |
625 | float: left; |
|
625 | float: left; | |
626 | font-size: 13px; |
|
626 | font-size: 13px; | |
627 | font-weight: 700; |
|
627 | font-weight: 700; | |
628 | height: 1%; |
|
628 | height: 1%; | |
629 | margin: 0; |
|
629 | margin: 0; | |
630 | padding: 11px 22px 12px; |
|
630 | padding: 11px 22px 12px; | |
631 | text-decoration: none; |
|
631 | text-decoration: none; | |
632 | } |
|
632 | } | |
633 |
|
633 | |||
634 | #content div.box h1,#content div.box h2,#content div.box h3,#content div.box h4,#content div.box h5,#content div.box h6 { |
|
634 | #content div.box h1,#content div.box h2,#content div.box h3,#content div.box h4,#content div.box h5,#content div.box h6 { | |
635 | clear:both; |
|
635 | clear:both; | |
636 | overflow:hidden; |
|
636 | overflow:hidden; | |
637 | border-bottom:1px solid #DDD; |
|
637 | border-bottom:1px solid #DDD; | |
638 | margin:10px 20px; |
|
638 | margin:10px 20px; | |
639 | padding:0 0 15px; |
|
639 | padding:0 0 15px; | |
640 | } |
|
640 | } | |
641 |
|
641 | |||
642 | #content div.box p { |
|
642 | #content div.box p { | |
643 | color:#5f5f5f; |
|
643 | color:#5f5f5f; | |
644 | font-size:12px; |
|
644 | font-size:12px; | |
645 | line-height:150%; |
|
645 | line-height:150%; | |
646 | margin:0 24px 10px; |
|
646 | margin:0 24px 10px; | |
647 | padding:0; |
|
647 | padding:0; | |
648 | } |
|
648 | } | |
649 |
|
649 | |||
650 | #content div.box blockquote { |
|
650 | #content div.box blockquote { | |
651 | border-left:4px solid #DDD; |
|
651 | border-left:4px solid #DDD; | |
652 | color:#5f5f5f; |
|
652 | color:#5f5f5f; | |
653 | font-size:11px; |
|
653 | font-size:11px; | |
654 | line-height:150%; |
|
654 | line-height:150%; | |
655 | margin:0 34px; |
|
655 | margin:0 34px; | |
656 | padding:0 0 0 14px; |
|
656 | padding:0 0 0 14px; | |
657 | } |
|
657 | } | |
658 |
|
658 | |||
659 | #content div.box blockquote p { |
|
659 | #content div.box blockquote p { | |
660 | margin:10px 0; |
|
660 | margin:10px 0; | |
661 | padding:0; |
|
661 | padding:0; | |
662 | } |
|
662 | } | |
663 |
|
663 | |||
664 | #content div.box dl { |
|
664 | #content div.box dl { | |
665 | margin:10px 24px; |
|
665 | margin:10px 24px; | |
666 | } |
|
666 | } | |
667 |
|
667 | |||
668 | #content div.box dt { |
|
668 | #content div.box dt { | |
669 | font-size:12px; |
|
669 | font-size:12px; | |
670 | margin:0; |
|
670 | margin:0; | |
671 | } |
|
671 | } | |
672 |
|
672 | |||
673 | #content div.box dd { |
|
673 | #content div.box dd { | |
674 | font-size:12px; |
|
674 | font-size:12px; | |
675 | margin:0; |
|
675 | margin:0; | |
676 | padding:8px 0 8px 15px; |
|
676 | padding:8px 0 8px 15px; | |
677 | } |
|
677 | } | |
678 |
|
678 | |||
679 | #content div.box li { |
|
679 | #content div.box li { | |
680 | font-size:12px; |
|
680 | font-size:12px; | |
681 | padding:4px 0; |
|
681 | padding:4px 0; | |
682 | } |
|
682 | } | |
683 |
|
683 | |||
684 | #content div.box ul.disc,#content div.box ul.circle { |
|
684 | #content div.box ul.disc,#content div.box ul.circle { | |
685 | margin:10px 24px 10px 38px; |
|
685 | margin:10px 24px 10px 38px; | |
686 | } |
|
686 | } | |
687 |
|
687 | |||
688 | #content div.box ul.square { |
|
688 | #content div.box ul.square { | |
689 | margin:10px 24px 10px 40px; |
|
689 | margin:10px 24px 10px 40px; | |
690 | } |
|
690 | } | |
691 |
|
691 | |||
692 | #content div.box img.left { |
|
692 | #content div.box img.left { | |
693 | border:none; |
|
693 | border:none; | |
694 | float:left; |
|
694 | float:left; | |
695 | margin:10px 10px 10px 0; |
|
695 | margin:10px 10px 10px 0; | |
696 | } |
|
696 | } | |
697 |
|
697 | |||
698 | #content div.box img.right { |
|
698 | #content div.box img.right { | |
699 | border:none; |
|
699 | border:none; | |
700 | float:right; |
|
700 | float:right; | |
701 | margin:10px 0 10px 10px; |
|
701 | margin:10px 0 10px 10px; | |
702 | } |
|
702 | } | |
703 |
|
703 | |||
704 | #content div.box div.messages { |
|
704 | #content div.box div.messages { | |
705 | clear:both; |
|
705 | clear:both; | |
706 | overflow:hidden; |
|
706 | overflow:hidden; | |
707 | margin:0 20px; |
|
707 | margin:0 20px; | |
708 | padding:0; |
|
708 | padding:0; | |
709 | } |
|
709 | } | |
710 |
|
710 | |||
711 | #content div.box div.message { |
|
711 | #content div.box div.message { | |
712 | clear:both; |
|
712 | clear:both; | |
713 | overflow:hidden; |
|
713 | overflow:hidden; | |
714 | margin:0; |
|
714 | margin:0; | |
715 | padding:10px 0; |
|
715 | padding:10px 0; | |
716 | } |
|
716 | } | |
717 |
|
717 | |||
718 | #content div.box div.message a { |
|
718 | #content div.box div.message a { | |
719 | font-weight:400 !important; |
|
719 | font-weight:400 !important; | |
720 | } |
|
720 | } | |
721 |
|
721 | |||
722 | #content div.box div.message div.image { |
|
722 | #content div.box div.message div.image { | |
723 | float:left; |
|
723 | float:left; | |
724 | margin:9px 0 0 5px; |
|
724 | margin:9px 0 0 5px; | |
725 | padding:6px; |
|
725 | padding:6px; | |
726 | } |
|
726 | } | |
727 |
|
727 | |||
728 | #content div.box div.message div.image img { |
|
728 | #content div.box div.message div.image img { | |
729 | vertical-align:middle; |
|
729 | vertical-align:middle; | |
730 | margin:0; |
|
730 | margin:0; | |
731 | } |
|
731 | } | |
732 |
|
732 | |||
733 | #content div.box div.message div.text { |
|
733 | #content div.box div.message div.text { | |
734 | float:left; |
|
734 | float:left; | |
735 | margin:0; |
|
735 | margin:0; | |
736 | padding:9px 6px; |
|
736 | padding:9px 6px; | |
737 | } |
|
737 | } | |
738 |
|
738 | |||
739 | #content div.box div.message div.dismiss a { |
|
739 | #content div.box div.message div.dismiss a { | |
740 | height:16px; |
|
740 | height:16px; | |
741 | width:16px; |
|
741 | width:16px; | |
742 | display:block; |
|
742 | display:block; | |
743 | background:url("../images/icons/cross.png") no-repeat; |
|
743 | background:url("../images/icons/cross.png") no-repeat; | |
744 | margin:15px 14px 0 0; |
|
744 | margin:15px 14px 0 0; | |
745 | padding:0; |
|
745 | padding:0; | |
746 | } |
|
746 | } | |
747 |
|
747 | |||
748 | #content div.box div.message div.text h1,#content div.box div.message div.text h2,#content div.box div.message div.text h3,#content div.box div.message div.text h4,#content div.box div.message div.text h5,#content div.box div.message div.text h6 { |
|
748 | #content div.box div.message div.text h1,#content div.box div.message div.text h2,#content div.box div.message div.text h3,#content div.box div.message div.text h4,#content div.box div.message div.text h5,#content div.box div.message div.text h6 { | |
749 | border:none; |
|
749 | border:none; | |
750 | margin:0; |
|
750 | margin:0; | |
751 | padding:0; |
|
751 | padding:0; | |
752 | } |
|
752 | } | |
753 |
|
753 | |||
754 | #content div.box div.message div.text span { |
|
754 | #content div.box div.message div.text span { | |
755 | height:1%; |
|
755 | height:1%; | |
756 | display:block; |
|
756 | display:block; | |
757 | margin:0; |
|
757 | margin:0; | |
758 | padding:5px 0 0; |
|
758 | padding:5px 0 0; | |
759 | } |
|
759 | } | |
760 |
|
760 | |||
761 | #content div.box div.message-error { |
|
761 | #content div.box div.message-error { | |
762 | height:1%; |
|
762 | height:1%; | |
763 | clear:both; |
|
763 | clear:both; | |
764 | overflow:hidden; |
|
764 | overflow:hidden; | |
765 | background:#FBE3E4; |
|
765 | background:#FBE3E4; | |
766 | border:1px solid #FBC2C4; |
|
766 | border:1px solid #FBC2C4; | |
767 | color:#860006; |
|
767 | color:#860006; | |
768 | } |
|
768 | } | |
769 |
|
769 | |||
770 | #content div.box div.message-error h6 { |
|
770 | #content div.box div.message-error h6 { | |
771 | color:#860006; |
|
771 | color:#860006; | |
772 | } |
|
772 | } | |
773 |
|
773 | |||
774 | #content div.box div.message-warning { |
|
774 | #content div.box div.message-warning { | |
775 | height:1%; |
|
775 | height:1%; | |
776 | clear:both; |
|
776 | clear:both; | |
777 | overflow:hidden; |
|
777 | overflow:hidden; | |
778 | background:#FFF6BF; |
|
778 | background:#FFF6BF; | |
779 | border:1px solid #FFD324; |
|
779 | border:1px solid #FFD324; | |
780 | color:#5f5200; |
|
780 | color:#5f5200; | |
781 | } |
|
781 | } | |
782 |
|
782 | |||
783 | #content div.box div.message-warning h6 { |
|
783 | #content div.box div.message-warning h6 { | |
784 | color:#5f5200; |
|
784 | color:#5f5200; | |
785 | } |
|
785 | } | |
786 |
|
786 | |||
787 | #content div.box div.message-notice { |
|
787 | #content div.box div.message-notice { | |
788 | height:1%; |
|
788 | height:1%; | |
789 | clear:both; |
|
789 | clear:both; | |
790 | overflow:hidden; |
|
790 | overflow:hidden; | |
791 | background:#8FBDE0; |
|
791 | background:#8FBDE0; | |
792 | border:1px solid #6BACDE; |
|
792 | border:1px solid #6BACDE; | |
793 | color:#003863; |
|
793 | color:#003863; | |
794 | } |
|
794 | } | |
795 |
|
795 | |||
796 | #content div.box div.message-notice h6 { |
|
796 | #content div.box div.message-notice h6 { | |
797 | color:#003863; |
|
797 | color:#003863; | |
798 | } |
|
798 | } | |
799 |
|
799 | |||
800 | #content div.box div.message-success { |
|
800 | #content div.box div.message-success { | |
801 | height:1%; |
|
801 | height:1%; | |
802 | clear:both; |
|
802 | clear:both; | |
803 | overflow:hidden; |
|
803 | overflow:hidden; | |
804 | background:#E6EFC2; |
|
804 | background:#E6EFC2; | |
805 | border:1px solid #C6D880; |
|
805 | border:1px solid #C6D880; | |
806 | color:#4e6100; |
|
806 | color:#4e6100; | |
807 | } |
|
807 | } | |
808 |
|
808 | |||
809 | #content div.box div.message-success h6 { |
|
809 | #content div.box div.message-success h6 { | |
810 | color:#4e6100; |
|
810 | color:#4e6100; | |
811 | } |
|
811 | } | |
812 |
|
812 | |||
813 | #content div.box div.form div.fields div.field { |
|
813 | #content div.box div.form div.fields div.field { | |
814 | height:1%; |
|
814 | height:1%; | |
815 | border-bottom:1px solid #DDD; |
|
815 | border-bottom:1px solid #DDD; | |
816 | clear:both; |
|
816 | clear:both; | |
817 | margin:0; |
|
817 | margin:0; | |
818 | padding:10px 0; |
|
818 | padding:10px 0; | |
819 | } |
|
819 | } | |
820 |
|
820 | |||
821 | #content div.box div.form div.fields div.field-first { |
|
821 | #content div.box div.form div.fields div.field-first { | |
822 | padding:0 0 10px; |
|
822 | padding:0 0 10px; | |
823 | } |
|
823 | } | |
824 |
|
824 | |||
825 | #content div.box div.form div.fields div.field-noborder { |
|
825 | #content div.box div.form div.fields div.field-noborder { | |
826 | border-bottom:0 !important; |
|
826 | border-bottom:0 !important; | |
827 | } |
|
827 | } | |
828 |
|
828 | |||
829 | #content div.box div.form div.fields div.field span.error-message { |
|
829 | #content div.box div.form div.fields div.field span.error-message { | |
830 | height:1%; |
|
830 | height:1%; | |
831 | display:inline-block; |
|
831 | display:inline-block; | |
832 | color:red; |
|
832 | color:red; | |
833 | margin:8px 0 0 4px; |
|
833 | margin:8px 0 0 4px; | |
834 | padding:0; |
|
834 | padding:0; | |
835 | } |
|
835 | } | |
836 |
|
836 | |||
837 | #content div.box div.form div.fields div.field span.success { |
|
837 | #content div.box div.form div.fields div.field span.success { | |
838 | height:1%; |
|
838 | height:1%; | |
839 | display:block; |
|
839 | display:block; | |
840 | color:#316309; |
|
840 | color:#316309; | |
841 | margin:8px 0 0; |
|
841 | margin:8px 0 0; | |
842 | padding:0; |
|
842 | padding:0; | |
843 | } |
|
843 | } | |
844 |
|
844 | |||
845 | #content div.box div.form div.fields div.field div.label { |
|
845 | #content div.box div.form div.fields div.field div.label { | |
846 | left:70px; |
|
846 | left:70px; | |
847 | width:auto; |
|
847 | width:auto; | |
848 | position:absolute; |
|
848 | position:absolute; | |
849 | margin:0; |
|
849 | margin:0; | |
850 | padding:8px 0 0 5px; |
|
850 | padding:8px 0 0 5px; | |
851 | } |
|
851 | } | |
852 |
|
852 | |||
853 | #content div.box-left div.form div.fields div.field div.label,#content div.box-right div.form div.fields div.field div.label { |
|
853 | #content div.box-left div.form div.fields div.field div.label,#content div.box-right div.form div.fields div.field div.label { | |
854 | clear:both; |
|
854 | clear:both; | |
855 | overflow:hidden; |
|
855 | overflow:hidden; | |
856 | left:0; |
|
856 | left:0; | |
857 | width:auto; |
|
857 | width:auto; | |
858 | position:relative; |
|
858 | position:relative; | |
859 | margin:0; |
|
859 | margin:0; | |
860 | padding:0 0 8px; |
|
860 | padding:0 0 8px; | |
861 | } |
|
861 | } | |
862 |
|
862 | |||
863 | #content div.box div.form div.fields div.field div.label-select { |
|
863 | #content div.box div.form div.fields div.field div.label-select { | |
864 | padding:5px 0 0 5px; |
|
864 | padding:5px 0 0 5px; | |
865 | } |
|
865 | } | |
866 |
|
866 | |||
867 | #content div.box-left div.form div.fields div.field div.label-select,#content div.box-right div.form div.fields div.field div.label-select { |
|
867 | #content div.box-left div.form div.fields div.field div.label-select,#content div.box-right div.form div.fields div.field div.label-select { | |
868 | padding:0 0 8px; |
|
868 | padding:0 0 8px; | |
869 | } |
|
869 | } | |
870 |
|
870 | |||
871 | #content div.box-left div.form div.fields div.field div.label-textarea,#content div.box-right div.form div.fields div.field div.label-textarea { |
|
871 | #content div.box-left div.form div.fields div.field div.label-textarea,#content div.box-right div.form div.fields div.field div.label-textarea { | |
872 | padding:0 0 8px !important; |
|
872 | padding:0 0 8px !important; | |
873 | } |
|
873 | } | |
874 |
|
874 | |||
875 | #content div.box div.form div.fields div.field div.label label, div.label label{ |
|
875 | #content div.box div.form div.fields div.field div.label label, div.label label{ | |
876 | color:#393939; |
|
876 | color:#393939; | |
877 | font-weight:700; |
|
877 | font-weight:700; | |
878 | } |
|
878 | } | |
879 |
|
879 | |||
880 | #content div.box div.form div.fields div.field div.input { |
|
880 | #content div.box div.form div.fields div.field div.input { | |
881 | margin:0 0 0 200px; |
|
881 | margin:0 0 0 200px; | |
882 | } |
|
882 | } | |
883 | #content div.box-left div.form div.fields div.field div.input,#content div.box-right div.form div.fields div.field div.input { |
|
883 | #content div.box-left div.form div.fields div.field div.input,#content div.box-right div.form div.fields div.field div.input { | |
884 | margin:0 0 0 0px; |
|
884 | margin:0 0 0 0px; | |
885 | } |
|
885 | } | |
886 |
|
886 | |||
887 | #content div.box div.form div.fields div.field div.input input { |
|
887 | #content div.box div.form div.fields div.field div.input input { | |
888 | background:#FFF; |
|
888 | background:#FFF; | |
889 | border-top:1px solid #b3b3b3; |
|
889 | border-top:1px solid #b3b3b3; | |
890 | border-left:1px solid #b3b3b3; |
|
890 | border-left:1px solid #b3b3b3; | |
891 | border-right:1px solid #eaeaea; |
|
891 | border-right:1px solid #eaeaea; | |
892 | border-bottom:1px solid #eaeaea; |
|
892 | border-bottom:1px solid #eaeaea; | |
893 | color:#000; |
|
893 | color:#000; | |
894 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; |
|
894 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; | |
895 | font-size:11px; |
|
895 | font-size:11px; | |
896 | margin:0; |
|
896 | margin:0; | |
897 | padding:7px 7px 6px; |
|
897 | padding:7px 7px 6px; | |
898 | } |
|
898 | } | |
899 |
|
899 | |||
900 |
|
900 | |||
901 |
|
901 | |||
902 | #content div.box div.form div.fields div.field div.input input.small { |
|
902 | #content div.box div.form div.fields div.field div.input input.small { | |
903 | width:30%; |
|
903 | width:30%; | |
904 | } |
|
904 | } | |
905 |
|
905 | |||
906 | #content div.box div.form div.fields div.field div.input input.medium { |
|
906 | #content div.box div.form div.fields div.field div.input input.medium { | |
907 | width:55%; |
|
907 | width:55%; | |
908 | } |
|
908 | } | |
909 |
|
909 | |||
910 | #content div.box div.form div.fields div.field div.input input.large { |
|
910 | #content div.box div.form div.fields div.field div.input input.large { | |
911 | width:85%; |
|
911 | width:85%; | |
912 | } |
|
912 | } | |
913 |
|
913 | |||
914 | #content div.box div.form div.fields div.field div.input input.date { |
|
914 | #content div.box div.form div.fields div.field div.input input.date { | |
915 | width:177px; |
|
915 | width:177px; | |
916 | } |
|
916 | } | |
917 |
|
917 | |||
918 | #content div.box div.form div.fields div.field div.input input.button { |
|
918 | #content div.box div.form div.fields div.field div.input input.button { | |
919 | background:#D4D0C8; |
|
919 | background:#D4D0C8; | |
920 | border-top:1px solid #FFF; |
|
920 | border-top:1px solid #FFF; | |
921 | border-left:1px solid #FFF; |
|
921 | border-left:1px solid #FFF; | |
922 | border-right:1px solid #404040; |
|
922 | border-right:1px solid #404040; | |
923 | border-bottom:1px solid #404040; |
|
923 | border-bottom:1px solid #404040; | |
924 | color:#000; |
|
924 | color:#000; | |
925 | margin:0; |
|
925 | margin:0; | |
926 | padding:4px 8px; |
|
926 | padding:4px 8px; | |
927 | } |
|
927 | } | |
928 |
|
928 | |||
929 | #content div.box div.form div.fields div.field div.textarea { |
|
929 | #content div.box div.form div.fields div.field div.textarea { | |
930 | border-top:1px solid #b3b3b3; |
|
930 | border-top:1px solid #b3b3b3; | |
931 | border-left:1px solid #b3b3b3; |
|
931 | border-left:1px solid #b3b3b3; | |
932 | border-right:1px solid #eaeaea; |
|
932 | border-right:1px solid #eaeaea; | |
933 | border-bottom:1px solid #eaeaea; |
|
933 | border-bottom:1px solid #eaeaea; | |
934 | margin:0 0 0 200px; |
|
934 | margin:0 0 0 200px; | |
935 | padding:10px; |
|
935 | padding:10px; | |
936 | } |
|
936 | } | |
937 |
|
937 | |||
938 | #content div.box div.form div.fields div.field div.textarea-editor { |
|
938 | #content div.box div.form div.fields div.field div.textarea-editor { | |
939 | border:1px solid #ddd; |
|
939 | border:1px solid #ddd; | |
940 | padding:0; |
|
940 | padding:0; | |
941 | } |
|
941 | } | |
942 |
|
942 | |||
943 | #content div.box div.form div.fields div.field div.textarea textarea { |
|
943 | #content div.box div.form div.fields div.field div.textarea textarea { | |
944 | width:100%; |
|
944 | width:100%; | |
945 | height:220px; |
|
945 | height:220px; | |
946 | overflow:hidden; |
|
946 | overflow:hidden; | |
947 | background:#FFF; |
|
947 | background:#FFF; | |
948 | color:#000; |
|
948 | color:#000; | |
949 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; |
|
949 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; | |
950 | font-size:11px; |
|
950 | font-size:11px; | |
951 | outline:none; |
|
951 | outline:none; | |
952 | border-width:0; |
|
952 | border-width:0; | |
953 | margin:0; |
|
953 | margin:0; | |
954 | padding:0; |
|
954 | padding:0; | |
955 | } |
|
955 | } | |
956 |
|
956 | |||
957 | #content div.box-left div.form div.fields div.field div.textarea textarea,#content div.box-right div.form div.fields div.field div.textarea textarea { |
|
957 | #content div.box-left div.form div.fields div.field div.textarea textarea,#content div.box-right div.form div.fields div.field div.textarea textarea { | |
958 | width:100%; |
|
958 | width:100%; | |
959 | height:100px; |
|
959 | height:100px; | |
960 | } |
|
960 | } | |
961 |
|
961 | |||
962 | #content div.box div.form div.fields div.field div.textarea table { |
|
962 | #content div.box div.form div.fields div.field div.textarea table { | |
963 | width:100%; |
|
963 | width:100%; | |
964 | border:none; |
|
964 | border:none; | |
965 | margin:0; |
|
965 | margin:0; | |
966 | padding:0; |
|
966 | padding:0; | |
967 | } |
|
967 | } | |
968 |
|
968 | |||
969 | #content div.box div.form div.fields div.field div.textarea table td { |
|
969 | #content div.box div.form div.fields div.field div.textarea table td { | |
970 | background:#DDD; |
|
970 | background:#DDD; | |
971 | border:none; |
|
971 | border:none; | |
972 | padding:0; |
|
972 | padding:0; | |
973 | } |
|
973 | } | |
974 |
|
974 | |||
975 | #content div.box div.form div.fields div.field div.textarea table td table { |
|
975 | #content div.box div.form div.fields div.field div.textarea table td table { | |
976 | width:auto; |
|
976 | width:auto; | |
977 | border:none; |
|
977 | border:none; | |
978 | margin:0; |
|
978 | margin:0; | |
979 | padding:0; |
|
979 | padding:0; | |
980 | } |
|
980 | } | |
981 |
|
981 | |||
982 | #content div.box div.form div.fields div.field div.textarea table td table td { |
|
982 | #content div.box div.form div.fields div.field div.textarea table td table td { | |
983 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; |
|
983 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; | |
984 | font-size:11px; |
|
984 | font-size:11px; | |
985 | padding:5px 5px 5px 0; |
|
985 | padding:5px 5px 5px 0; | |
986 | } |
|
986 | } | |
987 |
|
987 | |||
988 | #content div.box div.form div.fields div.field input[type=text]:focus,#content div.box div.form div.fields div.field input[type=password]:focus,#content div.box div.form div.fields div.field input[type=file]:focus,#content div.box div.form div.fields div.field textarea:focus,#content div.box div.form div.fields div.field select:focus { |
|
988 | #content div.box div.form div.fields div.field input[type=text]:focus,#content div.box div.form div.fields div.field input[type=password]:focus,#content div.box div.form div.fields div.field input[type=file]:focus,#content div.box div.form div.fields div.field textarea:focus,#content div.box div.form div.fields div.field select:focus { | |
989 | background:#f6f6f6; |
|
989 | background:#f6f6f6; | |
990 | border-color:#666; |
|
990 | border-color:#666; | |
991 | } |
|
991 | } | |
992 |
|
992 | |||
993 | div.form div.fields div.field div.button { |
|
993 | div.form div.fields div.field div.button { | |
994 | margin:0; |
|
994 | margin:0; | |
995 | padding:0 0 0 8px; |
|
995 | padding:0 0 0 8px; | |
996 | } |
|
996 | } | |
997 |
|
997 | |||
998 | div.form div.fields div.field div.highlight .ui-button { |
|
998 | div.form div.fields div.field div.highlight .ui-button { | |
999 | background:#4e85bb url("../images/button_highlight.png") repeat-x; |
|
999 | background:#4e85bb url("../images/button_highlight.png") repeat-x; | |
1000 | border-top:1px solid #5c91a4; |
|
1000 | border-top:1px solid #5c91a4; | |
1001 | border-left:1px solid #2a6f89; |
|
1001 | border-left:1px solid #2a6f89; | |
1002 | border-right:1px solid #2b7089; |
|
1002 | border-right:1px solid #2b7089; | |
1003 | border-bottom:1px solid #1a6480; |
|
1003 | border-bottom:1px solid #1a6480; | |
1004 | color:#FFF; |
|
1004 | color:#FFF; | |
1005 | margin:0; |
|
1005 | margin:0; | |
1006 | padding:6px 12px; |
|
1006 | padding:6px 12px; | |
1007 | } |
|
1007 | } | |
1008 |
|
1008 | |||
1009 | div.form div.fields div.field div.highlight .ui-state-hover { |
|
1009 | div.form div.fields div.field div.highlight .ui-state-hover { | |
1010 | background:#46a0c1 url("../images/button_highlight_selected.png") repeat-x; |
|
1010 | background:#46a0c1 url("../images/button_highlight_selected.png") repeat-x; | |
1011 | border-top:1px solid #78acbf; |
|
1011 | border-top:1px solid #78acbf; | |
1012 | border-left:1px solid #34819e; |
|
1012 | border-left:1px solid #34819e; | |
1013 | border-right:1px solid #35829f; |
|
1013 | border-right:1px solid #35829f; | |
1014 | border-bottom:1px solid #257897; |
|
1014 | border-bottom:1px solid #257897; | |
1015 | color:#FFF; |
|
1015 | color:#FFF; | |
1016 | margin:0; |
|
1016 | margin:0; | |
1017 | padding:6px 12px; |
|
1017 | padding:6px 12px; | |
1018 | } |
|
1018 | } | |
1019 |
|
1019 | |||
1020 | #content div.box div.form div.fields div.buttons div.highlight input.ui-button { |
|
1020 | #content div.box div.form div.fields div.buttons div.highlight input.ui-button { | |
1021 | background:#4e85bb url("../images/button_highlight.png") repeat-x; |
|
1021 | background:#4e85bb url("../images/button_highlight.png") repeat-x; | |
1022 | border-top:1px solid #5c91a4; |
|
1022 | border-top:1px solid #5c91a4; | |
1023 | border-left:1px solid #2a6f89; |
|
1023 | border-left:1px solid #2a6f89; | |
1024 | border-right:1px solid #2b7089; |
|
1024 | border-right:1px solid #2b7089; | |
1025 | border-bottom:1px solid #1a6480; |
|
1025 | border-bottom:1px solid #1a6480; | |
1026 | color:#fff; |
|
1026 | color:#fff; | |
1027 | margin:0; |
|
1027 | margin:0; | |
1028 | padding:6px 12px; |
|
1028 | padding:6px 12px; | |
1029 | } |
|
1029 | } | |
1030 |
|
1030 | |||
1031 | #content div.box div.form div.fields div.buttons div.highlight input.ui-state-hover { |
|
1031 | #content div.box div.form div.fields div.buttons div.highlight input.ui-state-hover { | |
1032 | background:#46a0c1 url("../images/button_highlight_selected.png") repeat-x; |
|
1032 | background:#46a0c1 url("../images/button_highlight_selected.png") repeat-x; | |
1033 | border-top:1px solid #78acbf; |
|
1033 | border-top:1px solid #78acbf; | |
1034 | border-left:1px solid #34819e; |
|
1034 | border-left:1px solid #34819e; | |
1035 | border-right:1px solid #35829f; |
|
1035 | border-right:1px solid #35829f; | |
1036 | border-bottom:1px solid #257897; |
|
1036 | border-bottom:1px solid #257897; | |
1037 | color:#fff; |
|
1037 | color:#fff; | |
1038 | margin:0; |
|
1038 | margin:0; | |
1039 | padding:6px 12px; |
|
1039 | padding:6px 12px; | |
1040 | } |
|
1040 | } | |
1041 |
|
1041 | |||
1042 | #content div.box table { |
|
1042 | #content div.box table { | |
1043 | width:100%; |
|
1043 | width:100%; | |
1044 | border-collapse:collapse; |
|
1044 | border-collapse:collapse; | |
1045 | margin:0; |
|
1045 | margin:0; | |
1046 | padding:0; |
|
1046 | padding:0; | |
1047 | } |
|
1047 | } | |
1048 |
|
1048 | |||
1049 | #content div.box table th { |
|
1049 | #content div.box table th { | |
1050 | background:#eee; |
|
1050 | background:#eee; | |
1051 | border-bottom:1px solid #ddd; |
|
1051 | border-bottom:1px solid #ddd; | |
1052 | padding:5px 0px 5px 5px; |
|
1052 | padding:5px 0px 5px 5px; | |
1053 | } |
|
1053 | } | |
1054 |
|
1054 | |||
1055 | #content div.box table th.left { |
|
1055 | #content div.box table th.left { | |
1056 | text-align:left; |
|
1056 | text-align:left; | |
1057 | } |
|
1057 | } | |
1058 |
|
1058 | |||
1059 | #content div.box table th.right { |
|
1059 | #content div.box table th.right { | |
1060 | text-align:right; |
|
1060 | text-align:right; | |
1061 | } |
|
1061 | } | |
1062 |
|
1062 | |||
1063 | #content div.box table th.center { |
|
1063 | #content div.box table th.center { | |
1064 | text-align:center; |
|
1064 | text-align:center; | |
1065 | } |
|
1065 | } | |
1066 |
|
1066 | |||
1067 | #content div.box table th.selected { |
|
1067 | #content div.box table th.selected { | |
1068 | vertical-align:middle; |
|
1068 | vertical-align:middle; | |
1069 | padding:0; |
|
1069 | padding:0; | |
1070 | } |
|
1070 | } | |
1071 |
|
1071 | |||
1072 | #content div.box table td { |
|
1072 | #content div.box table td { | |
1073 | background:#fff; |
|
1073 | background:#fff; | |
1074 | border-bottom:1px solid #cdcdcd; |
|
1074 | border-bottom:1px solid #cdcdcd; | |
1075 | vertical-align:middle; |
|
1075 | vertical-align:middle; | |
1076 | padding:5px; |
|
1076 | padding:5px; | |
1077 | } |
|
1077 | } | |
1078 |
|
1078 | |||
1079 | #content div.box table tr.selected td { |
|
1079 | #content div.box table tr.selected td { | |
1080 | background:#FFC; |
|
1080 | background:#FFC; | |
1081 | } |
|
1081 | } | |
1082 |
|
1082 | |||
1083 | #content div.box table td.selected { |
|
1083 | #content div.box table td.selected { | |
1084 | width:3%; |
|
1084 | width:3%; | |
1085 | text-align:center; |
|
1085 | text-align:center; | |
1086 | vertical-align:middle; |
|
1086 | vertical-align:middle; | |
1087 | padding:0; |
|
1087 | padding:0; | |
1088 | } |
|
1088 | } | |
1089 |
|
1089 | |||
1090 | #content div.box table td.action { |
|
1090 | #content div.box table td.action { | |
1091 | width:45%; |
|
1091 | width:45%; | |
1092 | text-align:left; |
|
1092 | text-align:left; | |
1093 | } |
|
1093 | } | |
1094 |
|
1094 | |||
1095 | #content div.box table td.date { |
|
1095 | #content div.box table td.date { | |
1096 | width:33%; |
|
1096 | width:33%; | |
1097 | text-align:center; |
|
1097 | text-align:center; | |
1098 | } |
|
1098 | } | |
1099 |
|
1099 | |||
1100 | #content div.box div.action { |
|
1100 | #content div.box div.action { | |
1101 | float:right; |
|
1101 | float:right; | |
1102 | background:#FFF; |
|
1102 | background:#FFF; | |
1103 | text-align:right; |
|
1103 | text-align:right; | |
1104 | margin:10px 0 0; |
|
1104 | margin:10px 0 0; | |
1105 | padding:0; |
|
1105 | padding:0; | |
1106 | } |
|
1106 | } | |
1107 |
|
1107 | |||
1108 | #content div.box div.action select { |
|
1108 | #content div.box div.action select { | |
1109 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; |
|
1109 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; | |
1110 | font-size:11px; |
|
1110 | font-size:11px; | |
1111 | margin:0; |
|
1111 | margin:0; | |
1112 | } |
|
1112 | } | |
1113 |
|
1113 | |||
1114 | #content div.box div.action .ui-selectmenu { |
|
1114 | #content div.box div.action .ui-selectmenu { | |
1115 | margin:0; |
|
1115 | margin:0; | |
1116 | padding:0; |
|
1116 | padding:0; | |
1117 | } |
|
1117 | } | |
1118 |
|
1118 | |||
1119 | #content div.box div.pagination { |
|
1119 | #content div.box div.pagination { | |
1120 | height:1%; |
|
1120 | height:1%; | |
1121 | clear:both; |
|
1121 | clear:both; | |
1122 | overflow:hidden; |
|
1122 | overflow:hidden; | |
1123 | margin:10px 0 0; |
|
1123 | margin:10px 0 0; | |
1124 | padding:0; |
|
1124 | padding:0; | |
1125 | } |
|
1125 | } | |
1126 |
|
1126 | |||
1127 | #content div.box div.pagination ul.pager { |
|
1127 | #content div.box div.pagination ul.pager { | |
1128 | float:right; |
|
1128 | float:right; | |
1129 | text-align:right; |
|
1129 | text-align:right; | |
1130 | margin:0; |
|
1130 | margin:0; | |
1131 | padding:0; |
|
1131 | padding:0; | |
1132 | } |
|
1132 | } | |
1133 |
|
1133 | |||
1134 | #content div.box div.pagination ul.pager li { |
|
1134 | #content div.box div.pagination ul.pager li { | |
1135 | height:1%; |
|
1135 | height:1%; | |
1136 | float:left; |
|
1136 | float:left; | |
1137 | list-style:none; |
|
1137 | list-style:none; | |
1138 | background:#ebebeb url("../images/pager.png") repeat-x; |
|
1138 | background:#ebebeb url("../images/pager.png") repeat-x; | |
1139 | border-top:1px solid #dedede; |
|
1139 | border-top:1px solid #dedede; | |
1140 | border-left:1px solid #cfcfcf; |
|
1140 | border-left:1px solid #cfcfcf; | |
1141 | border-right:1px solid #c4c4c4; |
|
1141 | border-right:1px solid #c4c4c4; | |
1142 | border-bottom:1px solid #c4c4c4; |
|
1142 | border-bottom:1px solid #c4c4c4; | |
1143 | color:#4A4A4A; |
|
1143 | color:#4A4A4A; | |
1144 | font-weight:700; |
|
1144 | font-weight:700; | |
1145 | margin:0 0 0 4px; |
|
1145 | margin:0 0 0 4px; | |
1146 | padding:0; |
|
1146 | padding:0; | |
1147 | } |
|
1147 | } | |
1148 |
|
1148 | |||
1149 | #content div.box div.pagination ul.pager li.separator { |
|
1149 | #content div.box div.pagination ul.pager li.separator { | |
1150 | padding:6px; |
|
1150 | padding:6px; | |
1151 | } |
|
1151 | } | |
1152 |
|
1152 | |||
1153 | #content div.box div.pagination ul.pager li.current { |
|
1153 | #content div.box div.pagination ul.pager li.current { | |
1154 | background:#b4b4b4 url("../images/pager_selected.png") repeat-x; |
|
1154 | background:#b4b4b4 url("../images/pager_selected.png") repeat-x; | |
1155 | border-top:1px solid #ccc; |
|
1155 | border-top:1px solid #ccc; | |
1156 | border-left:1px solid #bebebe; |
|
1156 | border-left:1px solid #bebebe; | |
1157 | border-right:1px solid #b1b1b1; |
|
1157 | border-right:1px solid #b1b1b1; | |
1158 | border-bottom:1px solid #afafaf; |
|
1158 | border-bottom:1px solid #afafaf; | |
1159 | color:#515151; |
|
1159 | color:#515151; | |
1160 | padding:6px; |
|
1160 | padding:6px; | |
1161 | } |
|
1161 | } | |
1162 |
|
1162 | |||
1163 | #content div.box div.pagination ul.pager li a { |
|
1163 | #content div.box div.pagination ul.pager li a { | |
1164 | height:1%; |
|
1164 | height:1%; | |
1165 | display:block; |
|
1165 | display:block; | |
1166 | float:left; |
|
1166 | float:left; | |
1167 | color:#515151; |
|
1167 | color:#515151; | |
1168 | text-decoration:none; |
|
1168 | text-decoration:none; | |
1169 | margin:0; |
|
1169 | margin:0; | |
1170 | padding:6px; |
|
1170 | padding:6px; | |
1171 | } |
|
1171 | } | |
1172 |
|
1172 | |||
1173 | #content div.box div.pagination ul.pager li a:hover,#content div.box div.pagination ul.pager li a:active { |
|
1173 | #content div.box div.pagination ul.pager li a:hover,#content div.box div.pagination ul.pager li a:active { | |
1174 | background:#b4b4b4 url("../images/pager_selected.png") repeat-x; |
|
1174 | background:#b4b4b4 url("../images/pager_selected.png") repeat-x; | |
1175 | border-top:1px solid #ccc; |
|
1175 | border-top:1px solid #ccc; | |
1176 | border-left:1px solid #bebebe; |
|
1176 | border-left:1px solid #bebebe; | |
1177 | border-right:1px solid #b1b1b1; |
|
1177 | border-right:1px solid #b1b1b1; | |
1178 | border-bottom:1px solid #afafaf; |
|
1178 | border-bottom:1px solid #afafaf; | |
1179 | margin:-1px; |
|
1179 | margin:-1px; | |
1180 | } |
|
1180 | } | |
1181 |
|
1181 | |||
1182 | #content div.box div.pagination-wh { |
|
1182 | #content div.box div.pagination-wh { | |
1183 | height:1%; |
|
1183 | height:1%; | |
1184 | clear:both; |
|
1184 | clear:both; | |
1185 | overflow:hidden; |
|
1185 | overflow:hidden; | |
1186 | text-align:right; |
|
1186 | text-align:right; | |
1187 | margin:10px 0 0; |
|
1187 | margin:10px 0 0; | |
1188 | padding:0; |
|
1188 | padding:0; | |
1189 | } |
|
1189 | } | |
1190 |
|
1190 | |||
1191 | #content div.box div.pagination-right { |
|
1191 | #content div.box div.pagination-right { | |
1192 | float:right; |
|
1192 | float:right; | |
1193 | } |
|
1193 | } | |
1194 |
|
1194 | |||
1195 | #content div.box div.pagination-wh a,#content div.box div.pagination-wh span.pager_dotdot { |
|
1195 | #content div.box div.pagination-wh a,#content div.box div.pagination-wh span.pager_dotdot { | |
1196 | height:1%; |
|
1196 | height:1%; | |
1197 | float:left; |
|
1197 | float:left; | |
1198 | background:#ebebeb url("../images/pager.png") repeat-x; |
|
1198 | background:#ebebeb url("../images/pager.png") repeat-x; | |
1199 | border-top:1px solid #dedede; |
|
1199 | border-top:1px solid #dedede; | |
1200 | border-left:1px solid #cfcfcf; |
|
1200 | border-left:1px solid #cfcfcf; | |
1201 | border-right:1px solid #c4c4c4; |
|
1201 | border-right:1px solid #c4c4c4; | |
1202 | border-bottom:1px solid #c4c4c4; |
|
1202 | border-bottom:1px solid #c4c4c4; | |
1203 | color:#4A4A4A; |
|
1203 | color:#4A4A4A; | |
1204 | font-weight:700; |
|
1204 | font-weight:700; | |
1205 | margin:0 0 0 4px; |
|
1205 | margin:0 0 0 4px; | |
1206 | padding:6px; |
|
1206 | padding:6px; | |
1207 | } |
|
1207 | } | |
1208 |
|
1208 | |||
1209 | #content div.box div.pagination-wh span.pager_curpage { |
|
1209 | #content div.box div.pagination-wh span.pager_curpage { | |
1210 | height:1%; |
|
1210 | height:1%; | |
1211 | float:left; |
|
1211 | float:left; | |
1212 | background:#b4b4b4 url("../images/pager_selected.png") repeat-x; |
|
1212 | background:#b4b4b4 url("../images/pager_selected.png") repeat-x; | |
1213 | border-top:1px solid #ccc; |
|
1213 | border-top:1px solid #ccc; | |
1214 | border-left:1px solid #bebebe; |
|
1214 | border-left:1px solid #bebebe; | |
1215 | border-right:1px solid #b1b1b1; |
|
1215 | border-right:1px solid #b1b1b1; | |
1216 | border-bottom:1px solid #afafaf; |
|
1216 | border-bottom:1px solid #afafaf; | |
1217 | color:#515151; |
|
1217 | color:#515151; | |
1218 | font-weight:700; |
|
1218 | font-weight:700; | |
1219 | margin:0 0 0 4px; |
|
1219 | margin:0 0 0 4px; | |
1220 | padding:6px; |
|
1220 | padding:6px; | |
1221 | } |
|
1221 | } | |
1222 |
|
1222 | |||
1223 | #content div.box div.pagination-wh a:hover,#content div.box div.pagination-wh a:active { |
|
1223 | #content div.box div.pagination-wh a:hover,#content div.box div.pagination-wh a:active { | |
1224 | background:#b4b4b4 url("../images/pager_selected.png") repeat-x; |
|
1224 | background:#b4b4b4 url("../images/pager_selected.png") repeat-x; | |
1225 | border-top:1px solid #ccc; |
|
1225 | border-top:1px solid #ccc; | |
1226 | border-left:1px solid #bebebe; |
|
1226 | border-left:1px solid #bebebe; | |
1227 | border-right:1px solid #b1b1b1; |
|
1227 | border-right:1px solid #b1b1b1; | |
1228 | border-bottom:1px solid #afafaf; |
|
1228 | border-bottom:1px solid #afafaf; | |
1229 | text-decoration:none; |
|
1229 | text-decoration:none; | |
1230 | } |
|
1230 | } | |
1231 |
|
1231 | |||
1232 | #content div.box div.traffic div.legend { |
|
1232 | #content div.box div.traffic div.legend { | |
1233 | clear:both; |
|
1233 | clear:both; | |
1234 | overflow:hidden; |
|
1234 | overflow:hidden; | |
1235 | border-bottom:1px solid #ddd; |
|
1235 | border-bottom:1px solid #ddd; | |
1236 | margin:0 0 10px; |
|
1236 | margin:0 0 10px; | |
1237 | padding:0 0 10px; |
|
1237 | padding:0 0 10px; | |
1238 | } |
|
1238 | } | |
1239 |
|
1239 | |||
1240 | #content div.box div.traffic div.legend h6 { |
|
1240 | #content div.box div.traffic div.legend h6 { | |
1241 | float:left; |
|
1241 | float:left; | |
1242 | border:none; |
|
1242 | border:none; | |
1243 | margin:0; |
|
1243 | margin:0; | |
1244 | padding:0; |
|
1244 | padding:0; | |
1245 | } |
|
1245 | } | |
1246 |
|
1246 | |||
1247 | #content div.box div.traffic div.legend li { |
|
1247 | #content div.box div.traffic div.legend li { | |
1248 | list-style:none; |
|
1248 | list-style:none; | |
1249 | float:left; |
|
1249 | float:left; | |
1250 | font-size:11px; |
|
1250 | font-size:11px; | |
1251 | margin:0; |
|
1251 | margin:0; | |
1252 | padding:0 8px 0 4px; |
|
1252 | padding:0 8px 0 4px; | |
1253 | } |
|
1253 | } | |
1254 |
|
1254 | |||
1255 | #content div.box div.traffic div.legend li.visits { |
|
1255 | #content div.box div.traffic div.legend li.visits { | |
1256 | border-left:12px solid #edc240; |
|
1256 | border-left:12px solid #edc240; | |
1257 | } |
|
1257 | } | |
1258 |
|
1258 | |||
1259 | #content div.box div.traffic div.legend li.pageviews { |
|
1259 | #content div.box div.traffic div.legend li.pageviews { | |
1260 | border-left:12px solid #afd8f8; |
|
1260 | border-left:12px solid #afd8f8; | |
1261 | } |
|
1261 | } | |
1262 |
|
1262 | |||
1263 | #content div.box div.traffic table { |
|
1263 | #content div.box div.traffic table { | |
1264 | width:auto; |
|
1264 | width:auto; | |
1265 | } |
|
1265 | } | |
1266 |
|
1266 | |||
1267 | #content div.box div.traffic table td { |
|
1267 | #content div.box div.traffic table td { | |
1268 | background:transparent; |
|
1268 | background:transparent; | |
1269 | border:none; |
|
1269 | border:none; | |
1270 | padding:2px 3px 3px; |
|
1270 | padding:2px 3px 3px; | |
1271 | } |
|
1271 | } | |
1272 |
|
1272 | |||
1273 | #content div.box div.traffic table td.legendLabel { |
|
1273 | #content div.box div.traffic table td.legendLabel { | |
1274 | padding:0 3px 2px; |
|
1274 | padding:0 3px 2px; | |
1275 | } |
|
1275 | } | |
1276 |
|
1276 | |||
1277 | #summary{ |
|
1277 | #summary{ | |
1278 |
|
1278 | |||
1279 | } |
|
1279 | } | |
1280 |
|
1280 | |||
1281 | #summary .desc{ |
|
1281 | #summary .desc{ | |
1282 | white-space: pre; |
|
1282 | white-space: pre; | |
1283 | width: 100%; |
|
1283 | width: 100%; | |
1284 | } |
|
1284 | } | |
1285 |
|
1285 | |||
1286 | #summary .repo_name{ |
|
1286 | #summary .repo_name{ | |
1287 | font-size: 1.6em; |
|
1287 | font-size: 1.6em; | |
1288 | font-weight: bold; |
|
1288 | font-weight: bold; | |
1289 | vertical-align: baseline; |
|
1289 | vertical-align: baseline; | |
1290 | clear:right |
|
1290 | clear:right | |
1291 | } |
|
1291 | } | |
1292 |
|
1292 | |||
1293 |
|
1293 | |||
1294 | #footer { |
|
1294 | #footer { | |
1295 | clear:both; |
|
1295 | clear:both; | |
1296 | overflow:hidden; |
|
1296 | overflow:hidden; | |
1297 | text-align:right; |
|
1297 | text-align:right; | |
1298 | margin:0; |
|
1298 | margin:0; | |
1299 | padding:0 10px 4px; |
|
1299 | padding:0 10px 4px; | |
1300 | margin:-10px 0 0; |
|
1300 | margin:-10px 0 0; | |
1301 | } |
|
1301 | } | |
1302 |
|
1302 | |||
1303 | #footer div#footer-inner { |
|
1303 | #footer div#footer-inner { | |
1304 | background:url("../images/header_inner.png") repeat-x scroll 0 0 #003367; |
|
1304 | background:url("../images/header_inner.png") repeat-x scroll 0 0 #003367; | |
1305 | border-top:2px solid #FFFFFF; |
|
1305 | border-top:2px solid #FFFFFF; | |
1306 | } |
|
1306 | } | |
1307 |
|
1307 | |||
1308 | #footer div#footer-inner p { |
|
1308 | #footer div#footer-inner p { | |
1309 | padding:15px 25px 15px 0; |
|
1309 | padding:15px 25px 15px 0; | |
1310 | color:#FFF; |
|
1310 | color:#FFF; | |
1311 | font-weight:700; |
|
1311 | font-weight:700; | |
1312 | } |
|
1312 | } | |
1313 | #footer div#footer-inner .footer-link { |
|
1313 | #footer div#footer-inner .footer-link { | |
1314 | float:left; |
|
1314 | float:left; | |
1315 | padding-left:10px; |
|
1315 | padding-left:10px; | |
1316 | } |
|
1316 | } | |
1317 | #footer div#footer-inner .footer-link a,#footer div#footer-inner .footer-link-right a { |
|
1317 | #footer div#footer-inner .footer-link a,#footer div#footer-inner .footer-link-right a { | |
1318 | color:#FFF; |
|
1318 | color:#FFF; | |
1319 | } |
|
1319 | } | |
1320 |
|
1320 | |||
1321 | #login div.title { |
|
1321 | #login div.title { | |
1322 | width:420px; |
|
1322 | width:420px; | |
1323 | clear:both; |
|
1323 | clear:both; | |
1324 | overflow:hidden; |
|
1324 | overflow:hidden; | |
1325 | position:relative; |
|
1325 | position:relative; | |
1326 | background:#003367 url("../images/header_inner.png") repeat-x; |
|
1326 | background:#003367 url("../images/header_inner.png") repeat-x; | |
1327 | margin:0 auto; |
|
1327 | margin:0 auto; | |
1328 | padding:0; |
|
1328 | padding:0; | |
1329 | } |
|
1329 | } | |
1330 |
|
1330 | |||
1331 | #login div.inner { |
|
1331 | #login div.inner { | |
1332 | width:380px; |
|
1332 | width:380px; | |
1333 | background:#FFF url("../images/login.png") no-repeat top left; |
|
1333 | background:#FFF url("../images/login.png") no-repeat top left; | |
1334 | border-top:none; |
|
1334 | border-top:none; | |
1335 | border-bottom:none; |
|
1335 | border-bottom:none; | |
1336 | margin:0 auto; |
|
1336 | margin:0 auto; | |
1337 | padding:20px; |
|
1337 | padding:20px; | |
1338 | } |
|
1338 | } | |
1339 |
|
1339 | |||
1340 | #login div.form div.fields div.field div.label { |
|
1340 | #login div.form div.fields div.field div.label { | |
1341 | width:173px; |
|
1341 | width:173px; | |
1342 | float:left; |
|
1342 | float:left; | |
1343 | text-align:right; |
|
1343 | text-align:right; | |
1344 | margin:2px 10px 0 0; |
|
1344 | margin:2px 10px 0 0; | |
1345 | padding:5px 0 0 5px; |
|
1345 | padding:5px 0 0 5px; | |
1346 | } |
|
1346 | } | |
1347 |
|
1347 | |||
1348 | #login div.form div.fields div.field div.input input { |
|
1348 | #login div.form div.fields div.field div.input input { | |
1349 | width:176px; |
|
1349 | width:176px; | |
1350 | background:#FFF; |
|
1350 | background:#FFF; | |
1351 | border-top:1px solid #b3b3b3; |
|
1351 | border-top:1px solid #b3b3b3; | |
1352 | border-left:1px solid #b3b3b3; |
|
1352 | border-left:1px solid #b3b3b3; | |
1353 | border-right:1px solid #eaeaea; |
|
1353 | border-right:1px solid #eaeaea; | |
1354 | border-bottom:1px solid #eaeaea; |
|
1354 | border-bottom:1px solid #eaeaea; | |
1355 | color:#000; |
|
1355 | color:#000; | |
1356 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; |
|
1356 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; | |
1357 | font-size:11px; |
|
1357 | font-size:11px; | |
1358 | margin:0; |
|
1358 | margin:0; | |
1359 | padding:7px 7px 6px; |
|
1359 | padding:7px 7px 6px; | |
1360 | } |
|
1360 | } | |
1361 |
|
1361 | |||
1362 | #login div.form div.fields div.buttons { |
|
1362 | #login div.form div.fields div.buttons { | |
1363 | clear:both; |
|
1363 | clear:both; | |
1364 | overflow:hidden; |
|
1364 | overflow:hidden; | |
1365 | border-top:1px solid #DDD; |
|
1365 | border-top:1px solid #DDD; | |
1366 | text-align:right; |
|
1366 | text-align:right; | |
1367 | margin:0; |
|
1367 | margin:0; | |
1368 | padding:10px 0 0; |
|
1368 | padding:10px 0 0; | |
1369 | } |
|
1369 | } | |
1370 |
|
1370 | |||
1371 | #login div.form div.links { |
|
1371 | #login div.form div.links { | |
1372 | clear:both; |
|
1372 | clear:both; | |
1373 | overflow:hidden; |
|
1373 | overflow:hidden; | |
1374 | margin:10px 0 0; |
|
1374 | margin:10px 0 0; | |
1375 | padding:0 0 2px; |
|
1375 | padding:0 0 2px; | |
1376 | } |
|
1376 | } | |
1377 |
|
1377 | |||
1378 | #quick_login{ |
|
1378 | #quick_login{ | |
1379 | top: 31px; |
|
1379 | top: 31px; | |
1380 | background-color: rgb(0, 51, 103); |
|
1380 | background-color: rgb(0, 51, 103); | |
1381 | z-index: 999; |
|
1381 | z-index: 999; | |
1382 | height: 150px; |
|
1382 | height: 150px; | |
1383 | position: absolute; |
|
1383 | position: absolute; | |
1384 | margin-left: -16px; |
|
1384 | margin-left: -16px; | |
1385 | width: 281px; |
|
1385 | width: 281px; | |
1386 | border-radius: 0 0 8px 8px; |
|
1386 | border-radius: 0 0 8px 8px; | |
1387 | box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6); |
|
1387 | box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6); | |
1388 | } |
|
1388 | } | |
1389 |
|
1389 | |||
1390 | #quick_login .password_forgoten{ |
|
1390 | #quick_login .password_forgoten{ | |
1391 | padding-right:10px; |
|
1391 | padding-right:10px; | |
1392 | padding-top:10px; |
|
1392 | padding-top:10px; | |
1393 | float:left; |
|
1393 | float:left; | |
1394 | } |
|
1394 | } | |
1395 |
|
1395 | |||
1396 | #quick_login div.form div.fields{ |
|
1396 | #quick_login div.form div.fields{ | |
1397 | padding-top: 2px; |
|
1397 | padding-top: 2px; | |
1398 | padding-left:10px; |
|
1398 | padding-left:10px; | |
1399 | } |
|
1399 | } | |
1400 |
|
1400 | |||
1401 | #quick_login div.form div.fields div.field{ |
|
1401 | #quick_login div.form div.fields div.field{ | |
1402 | padding: 5px; |
|
1402 | padding: 5px; | |
1403 | } |
|
1403 | } | |
1404 |
|
1404 | |||
1405 | #quick_login div.form div.fields div.field div.label label{ |
|
1405 | #quick_login div.form div.fields div.field div.label label{ | |
1406 | color:#fff; |
|
1406 | color:#fff; | |
1407 | padding-bottom: 3px; |
|
1407 | padding-bottom: 3px; | |
1408 | } |
|
1408 | } | |
1409 |
|
1409 | |||
1410 | #quick_login div.form div.fields div.field div.input input { |
|
1410 | #quick_login div.form div.fields div.field div.input input { | |
1411 | width:236px; |
|
1411 | width:236px; | |
1412 | background:#FFF; |
|
1412 | background:#FFF; | |
1413 | border-top:1px solid #b3b3b3; |
|
1413 | border-top:1px solid #b3b3b3; | |
1414 | border-left:1px solid #b3b3b3; |
|
1414 | border-left:1px solid #b3b3b3; | |
1415 | border-right:1px solid #eaeaea; |
|
1415 | border-right:1px solid #eaeaea; | |
1416 | border-bottom:1px solid #eaeaea; |
|
1416 | border-bottom:1px solid #eaeaea; | |
1417 | color:#000; |
|
1417 | color:#000; | |
1418 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; |
|
1418 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; | |
1419 | font-size:11px; |
|
1419 | font-size:11px; | |
1420 | margin:0; |
|
1420 | margin:0; | |
1421 | padding:5px 7px 4px; |
|
1421 | padding:5px 7px 4px; | |
1422 | } |
|
1422 | } | |
1423 |
|
1423 | |||
1424 | #quick_login div.form div.fields div.buttons { |
|
1424 | #quick_login div.form div.fields div.buttons { | |
1425 | clear:both; |
|
1425 | clear:both; | |
1426 | overflow:hidden; |
|
1426 | overflow:hidden; | |
1427 | text-align:right; |
|
1427 | text-align:right; | |
1428 | margin:0; |
|
1428 | margin:0; | |
1429 | padding:10px 14px 0; |
|
1429 | padding:10px 14px 0; | |
1430 | } |
|
1430 | } | |
1431 |
|
1431 | |||
1432 | #quick_login div.form div.fields div.buttons input.ui-button{ |
|
1432 | #quick_login div.form div.fields div.buttons input.ui-button{ | |
1433 | background:#e5e3e3 url("../images/button.png") repeat-x; |
|
1433 | background:#e5e3e3 url("../images/button.png") repeat-x; | |
1434 | border-top:1px solid #DDD; |
|
1434 | border-top:1px solid #DDD; | |
1435 | border-left:1px solid #c6c6c6; |
|
1435 | border-left:1px solid #c6c6c6; | |
1436 | border-right:1px solid #DDD; |
|
1436 | border-right:1px solid #DDD; | |
1437 | border-bottom:1px solid #c6c6c6; |
|
1437 | border-bottom:1px solid #c6c6c6; | |
1438 | color:#515151; |
|
1438 | color:#515151; | |
1439 | margin:0; |
|
1439 | margin:0; | |
1440 | padding:4px 10px; |
|
1440 | padding:4px 10px; | |
1441 | } |
|
1441 | } | |
1442 |
|
1442 | |||
1443 | #quick_login div.form div.links { |
|
1443 | #quick_login div.form div.links { | |
1444 | clear:both; |
|
1444 | clear:both; | |
1445 | overflow:hidden; |
|
1445 | overflow:hidden; | |
1446 | margin:10px 0 0; |
|
1446 | margin:10px 0 0; | |
1447 | padding:0 0 2px; |
|
1447 | padding:0 0 2px; | |
1448 | } |
|
1448 | } | |
1449 |
|
1449 | |||
1450 | #register div.title { |
|
1450 | #register div.title { | |
1451 | clear:both; |
|
1451 | clear:both; | |
1452 | overflow:hidden; |
|
1452 | overflow:hidden; | |
1453 | position:relative; |
|
1453 | position:relative; | |
1454 | background:#003367 url("../images/header_inner.png") repeat-x; |
|
1454 | background:#003367 url("../images/header_inner.png") repeat-x; | |
1455 | margin:0 auto; |
|
1455 | margin:0 auto; | |
1456 | padding:0; |
|
1456 | padding:0; | |
1457 | } |
|
1457 | } | |
1458 |
|
1458 | |||
1459 | #register div.inner { |
|
1459 | #register div.inner { | |
1460 | background:#FFF; |
|
1460 | background:#FFF; | |
1461 | border-top:none; |
|
1461 | border-top:none; | |
1462 | border-bottom:none; |
|
1462 | border-bottom:none; | |
1463 | margin:0 auto; |
|
1463 | margin:0 auto; | |
1464 | padding:20px; |
|
1464 | padding:20px; | |
1465 | } |
|
1465 | } | |
1466 |
|
1466 | |||
1467 | #register div.form div.fields div.field div.label { |
|
1467 | #register div.form div.fields div.field div.label { | |
1468 | width:135px; |
|
1468 | width:135px; | |
1469 | float:left; |
|
1469 | float:left; | |
1470 | text-align:right; |
|
1470 | text-align:right; | |
1471 | margin:2px 10px 0 0; |
|
1471 | margin:2px 10px 0 0; | |
1472 | padding:5px 0 0 5px; |
|
1472 | padding:5px 0 0 5px; | |
1473 | } |
|
1473 | } | |
1474 |
|
1474 | |||
1475 | #register div.form div.fields div.field div.input input { |
|
1475 | #register div.form div.fields div.field div.input input { | |
1476 | width:300px; |
|
1476 | width:300px; | |
1477 | background:#FFF; |
|
1477 | background:#FFF; | |
1478 | border-top:1px solid #b3b3b3; |
|
1478 | border-top:1px solid #b3b3b3; | |
1479 | border-left:1px solid #b3b3b3; |
|
1479 | border-left:1px solid #b3b3b3; | |
1480 | border-right:1px solid #eaeaea; |
|
1480 | border-right:1px solid #eaeaea; | |
1481 | border-bottom:1px solid #eaeaea; |
|
1481 | border-bottom:1px solid #eaeaea; | |
1482 | color:#000; |
|
1482 | color:#000; | |
1483 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; |
|
1483 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; | |
1484 | font-size:11px; |
|
1484 | font-size:11px; | |
1485 | margin:0; |
|
1485 | margin:0; | |
1486 | padding:7px 7px 6px; |
|
1486 | padding:7px 7px 6px; | |
1487 | } |
|
1487 | } | |
1488 |
|
1488 | |||
1489 | #register div.form div.fields div.buttons { |
|
1489 | #register div.form div.fields div.buttons { | |
1490 | clear:both; |
|
1490 | clear:both; | |
1491 | overflow:hidden; |
|
1491 | overflow:hidden; | |
1492 | border-top:1px solid #DDD; |
|
1492 | border-top:1px solid #DDD; | |
1493 | text-align:left; |
|
1493 | text-align:left; | |
1494 | margin:0; |
|
1494 | margin:0; | |
1495 | padding:10px 0 0 150px; |
|
1495 | padding:10px 0 0 150px; | |
1496 | } |
|
1496 | } | |
1497 |
|
1497 | |||
1498 | #register div.form div.fields div.buttons div.highlight input.ui-button { |
|
1498 | #register div.form div.fields div.buttons div.highlight input.ui-button { | |
1499 | background:url("../images/button_highlight.png") repeat-x scroll 0 0 #4E85BB; |
|
1499 | background:url("../images/button_highlight.png") repeat-x scroll 0 0 #4E85BB; | |
1500 | color:#FFF; |
|
1500 | color:#FFF; | |
1501 | border-color:#5C91A4 #2B7089 #1A6480 #2A6F89; |
|
1501 | border-color:#5C91A4 #2B7089 #1A6480 #2A6F89; | |
1502 | border-style:solid; |
|
1502 | border-style:solid; | |
1503 | border-width:1px; |
|
1503 | border-width:1px; | |
1504 | } |
|
1504 | } | |
1505 |
|
1505 | |||
1506 | #register div.form div.activation_msg { |
|
1506 | #register div.form div.activation_msg { | |
1507 | padding-top:4px; |
|
1507 | padding-top:4px; | |
1508 | padding-bottom:4px; |
|
1508 | padding-bottom:4px; | |
1509 | } |
|
1509 | } | |
1510 |
|
1510 | |||
1511 | #journal .journal_day{ |
|
1511 | #journal .journal_day{ | |
1512 | font-size:20px; |
|
1512 | font-size:20px; | |
1513 | padding:10px 0px; |
|
1513 | padding:10px 0px; | |
1514 | border-bottom:2px solid #DDD; |
|
1514 | border-bottom:2px solid #DDD; | |
1515 | margin-left:10px; |
|
1515 | margin-left:10px; | |
1516 | margin-right:10px; |
|
1516 | margin-right:10px; | |
1517 | } |
|
1517 | } | |
1518 |
|
1518 | |||
1519 | #journal .journal_container{ |
|
1519 | #journal .journal_container{ | |
1520 | padding:5px; |
|
1520 | padding:5px; | |
1521 | clear:both; |
|
1521 | clear:both; | |
1522 | margin:0px 5px 0px 10px; |
|
1522 | margin:0px 5px 0px 10px; | |
1523 | } |
|
1523 | } | |
1524 |
|
1524 | |||
1525 | #journal .journal_action_container{ |
|
1525 | #journal .journal_action_container{ | |
1526 | padding-left:38px; |
|
1526 | padding-left:38px; | |
1527 | } |
|
1527 | } | |
1528 |
|
1528 | |||
1529 | #journal .journal_user{ |
|
1529 | #journal .journal_user{ | |
1530 | color: #747474; |
|
1530 | color: #747474; | |
1531 | font-size: 14px; |
|
1531 | font-size: 14px; | |
1532 | font-weight: bold; |
|
1532 | font-weight: bold; | |
1533 | height: 30px; |
|
1533 | height: 30px; | |
1534 | } |
|
1534 | } | |
1535 | #journal .journal_icon{ |
|
1535 | #journal .journal_icon{ | |
1536 | clear: both; |
|
1536 | clear: both; | |
1537 | float: left; |
|
1537 | float: left; | |
1538 | padding-right: 4px; |
|
1538 | padding-right: 4px; | |
1539 | padding-top: 3px; |
|
1539 | padding-top: 3px; | |
1540 | } |
|
1540 | } | |
1541 | #journal .journal_action{ |
|
1541 | #journal .journal_action{ | |
1542 | padding-top:4px; |
|
1542 | padding-top:4px; | |
1543 | min-height:2px; |
|
1543 | min-height:2px; | |
1544 | float:left |
|
1544 | float:left | |
1545 | } |
|
1545 | } | |
1546 | #journal .journal_action_params{ |
|
1546 | #journal .journal_action_params{ | |
1547 | clear: left; |
|
1547 | clear: left; | |
1548 | padding-left: 22px; |
|
1548 | padding-left: 22px; | |
1549 | } |
|
1549 | } | |
1550 | #journal .journal_repo{ |
|
1550 | #journal .journal_repo{ | |
1551 | float: left; |
|
1551 | float: left; | |
1552 | margin-left: 6px; |
|
1552 | margin-left: 6px; | |
1553 | padding-top: 3px; |
|
1553 | padding-top: 3px; | |
1554 | } |
|
1554 | } | |
1555 | #journal .date{ |
|
1555 | #journal .date{ | |
1556 | clear: both; |
|
1556 | clear: both; | |
1557 | color: #777777; |
|
1557 | color: #777777; | |
1558 | font-size: 11px; |
|
1558 | font-size: 11px; | |
1559 | padding-left: 22px; |
|
1559 | padding-left: 22px; | |
1560 | } |
|
1560 | } | |
1561 | #journal .journal_repo .journal_repo_name{ |
|
1561 | #journal .journal_repo .journal_repo_name{ | |
1562 | font-weight: bold; |
|
1562 | font-weight: bold; | |
1563 | font-size: 1.1em; |
|
1563 | font-size: 1.1em; | |
1564 | } |
|
1564 | } | |
1565 | #journal .compare_view{ |
|
1565 | #journal .compare_view{ | |
1566 | padding: 5px 0px 5px 0px; |
|
1566 | padding: 5px 0px 5px 0px; | |
1567 | width: 95px; |
|
1567 | width: 95px; | |
1568 | } |
|
1568 | } | |
1569 | .journal_highlight{ |
|
1569 | .journal_highlight{ | |
1570 | font-weight: bold; |
|
1570 | font-weight: bold; | |
1571 | padding: 0 2px; |
|
1571 | padding: 0 2px; | |
1572 | vertical-align: bottom; |
|
1572 | vertical-align: bottom; | |
1573 | } |
|
1573 | } | |
1574 | .trending_language_tbl,.trending_language_tbl td { |
|
1574 | .trending_language_tbl,.trending_language_tbl td { | |
1575 | border:0 !important; |
|
1575 | border:0 !important; | |
1576 | margin:0 !important; |
|
1576 | margin:0 !important; | |
1577 | padding:0 !important; |
|
1577 | padding:0 !important; | |
1578 | } |
|
1578 | } | |
1579 |
|
1579 | |||
1580 | .trending_language { |
|
1580 | .trending_language { | |
1581 | background-color:#003367; |
|
1581 | background-color:#003367; | |
1582 | color:#FFF; |
|
1582 | color:#FFF; | |
1583 | display:block; |
|
1583 | display:block; | |
1584 | min-width:20px; |
|
1584 | min-width:20px; | |
1585 | text-decoration:none; |
|
1585 | text-decoration:none; | |
1586 | height:12px; |
|
1586 | height:12px; | |
1587 | margin-bottom:4px; |
|
1587 | margin-bottom:4px; | |
1588 | margin-left:5px; |
|
1588 | margin-left:5px; | |
1589 | white-space:pre; |
|
1589 | white-space:pre; | |
1590 | padding:3px; |
|
1590 | padding:3px; | |
1591 | } |
|
1591 | } | |
1592 |
|
1592 | |||
1593 | h3.files_location { |
|
1593 | h3.files_location { | |
1594 | font-size:1.8em; |
|
1594 | font-size:1.8em; | |
1595 | font-weight:700; |
|
1595 | font-weight:700; | |
1596 | border-bottom:none !important; |
|
1596 | border-bottom:none !important; | |
1597 | margin:10px 0 !important; |
|
1597 | margin:10px 0 !important; | |
1598 | } |
|
1598 | } | |
1599 |
|
1599 | |||
1600 | #files_data dl dt { |
|
1600 | #files_data dl dt { | |
1601 | float:left; |
|
1601 | float:left; | |
1602 | width:115px; |
|
1602 | width:115px; | |
1603 | margin:0 !important; |
|
1603 | margin:0 !important; | |
1604 | padding:5px; |
|
1604 | padding:5px; | |
1605 | } |
|
1605 | } | |
1606 |
|
1606 | |||
1607 | #files_data dl dd { |
|
1607 | #files_data dl dd { | |
1608 | margin:0 !important; |
|
1608 | margin:0 !important; | |
1609 | padding:5px !important; |
|
1609 | padding:5px !important; | |
1610 | } |
|
1610 | } | |
1611 |
|
1611 | |||
1612 | #changeset_content { |
|
1612 | #changeset_content { | |
1613 | border:1px solid #CCC; |
|
1613 | border:1px solid #CCC; | |
1614 | padding:5px; |
|
1614 | padding:5px; | |
1615 | } |
|
1615 | } | |
1616 | #changeset_compare_view_content{ |
|
1616 | #changeset_compare_view_content{ | |
1617 | border:1px solid #CCC; |
|
1617 | border:1px solid #CCC; | |
1618 | padding:5px; |
|
1618 | padding:5px; | |
1619 | } |
|
1619 | } | |
1620 |
|
1620 | |||
1621 | #changeset_content .container { |
|
1621 | #changeset_content .container { | |
1622 | min-height:120px; |
|
1622 | min-height:120px; | |
1623 | font-size:1.2em; |
|
1623 | font-size:1.2em; | |
1624 | overflow:hidden; |
|
1624 | overflow:hidden; | |
1625 | } |
|
1625 | } | |
1626 |
|
1626 | |||
1627 | #changeset_compare_view_content .compare_view_commits{ |
|
1627 | #changeset_compare_view_content .compare_view_commits{ | |
1628 | width: auto !important; |
|
1628 | width: auto !important; | |
1629 | } |
|
1629 | } | |
1630 |
|
1630 | |||
1631 | #changeset_compare_view_content .compare_view_commits td{ |
|
1631 | #changeset_compare_view_content .compare_view_commits td{ | |
1632 | padding:0px 0px 0px 12px !important; |
|
1632 | padding:0px 0px 0px 12px !important; | |
1633 | } |
|
1633 | } | |
1634 |
|
1634 | |||
1635 | #changeset_content .container .right { |
|
1635 | #changeset_content .container .right { | |
1636 | float:right; |
|
1636 | float:right; | |
1637 | width:25%; |
|
1637 | width:25%; | |
1638 | text-align:right; |
|
1638 | text-align:right; | |
1639 | } |
|
1639 | } | |
1640 |
|
1640 | |||
1641 | #changeset_content .container .left .message { |
|
1641 | #changeset_content .container .left .message { | |
1642 | font-style:italic; |
|
1642 | font-style:italic; | |
1643 | color:#556CB5; |
|
1643 | color:#556CB5; | |
1644 | white-space:pre-wrap; |
|
1644 | white-space:pre-wrap; | |
1645 | } |
|
1645 | } | |
1646 |
|
1646 | |||
1647 | .cs_files .cur_cs{ |
|
1647 | .cs_files .cur_cs{ | |
1648 | margin:10px 2px; |
|
1648 | margin:10px 2px; | |
1649 | font-weight: bold; |
|
1649 | font-weight: bold; | |
1650 | } |
|
1650 | } | |
1651 |
|
1651 | |||
1652 | .cs_files .node{ |
|
1652 | .cs_files .node{ | |
1653 | float: left; |
|
1653 | float: left; | |
1654 | } |
|
1654 | } | |
1655 | .cs_files .changes{ |
|
1655 | .cs_files .changes{ | |
1656 | float: right; |
|
1656 | float: right; | |
1657 | } |
|
1657 | } | |
1658 | .cs_files .changes .added{ |
|
1658 | .cs_files .changes .added{ | |
1659 | background-color: #BBFFBB; |
|
1659 | background-color: #BBFFBB; | |
1660 | float: left; |
|
1660 | float: left; | |
1661 | text-align: center; |
|
1661 | text-align: center; | |
1662 | font-size: 90%; |
|
1662 | font-size: 90%; | |
1663 | } |
|
1663 | } | |
1664 | .cs_files .changes .deleted{ |
|
1664 | .cs_files .changes .deleted{ | |
1665 | background-color: #FF8888; |
|
1665 | background-color: #FF8888; | |
1666 | float: left; |
|
1666 | float: left; | |
1667 | text-align: center; |
|
1667 | text-align: center; | |
1668 | font-size: 90%; |
|
1668 | font-size: 90%; | |
1669 | } |
|
1669 | } | |
1670 | .cs_files .cs_added { |
|
1670 | .cs_files .cs_added { | |
1671 | background:url("../images/icons/page_white_add.png") no-repeat scroll 3px; |
|
1671 | background:url("../images/icons/page_white_add.png") no-repeat scroll 3px; | |
1672 | height:16px; |
|
1672 | height:16px; | |
1673 | padding-left:20px; |
|
1673 | padding-left:20px; | |
1674 | margin-top:7px; |
|
1674 | margin-top:7px; | |
1675 | text-align:left; |
|
1675 | text-align:left; | |
1676 | } |
|
1676 | } | |
1677 |
|
1677 | |||
1678 | .cs_files .cs_changed { |
|
1678 | .cs_files .cs_changed { | |
1679 | background:url("../images/icons/page_white_edit.png") no-repeat scroll 3px; |
|
1679 | background:url("../images/icons/page_white_edit.png") no-repeat scroll 3px; | |
1680 | height:16px; |
|
1680 | height:16px; | |
1681 | padding-left:20px; |
|
1681 | padding-left:20px; | |
1682 | margin-top:7px; |
|
1682 | margin-top:7px; | |
1683 | text-align:left; |
|
1683 | text-align:left; | |
1684 | } |
|
1684 | } | |
1685 |
|
1685 | |||
1686 | .cs_files .cs_removed { |
|
1686 | .cs_files .cs_removed { | |
1687 | background:url("../images/icons/page_white_delete.png") no-repeat scroll 3px; |
|
1687 | background:url("../images/icons/page_white_delete.png") no-repeat scroll 3px; | |
1688 | height:16px; |
|
1688 | height:16px; | |
1689 | padding-left:20px; |
|
1689 | padding-left:20px; | |
1690 | margin-top:7px; |
|
1690 | margin-top:7px; | |
1691 | text-align:left; |
|
1691 | text-align:left; | |
1692 | } |
|
1692 | } | |
1693 |
|
1693 | |||
1694 | #graph { |
|
1694 | #graph { | |
1695 | overflow:hidden; |
|
1695 | overflow:hidden; | |
1696 | } |
|
1696 | } | |
1697 |
|
1697 | |||
1698 | #graph_nodes { |
|
1698 | #graph_nodes { | |
1699 | width:160px; |
|
1699 | width:160px; | |
1700 | float:left; |
|
1700 | float:left; | |
1701 | margin-left:-50px; |
|
1701 | margin-left:-50px; | |
1702 | margin-top:5px; |
|
1702 | margin-top:5px; | |
1703 | } |
|
1703 | } | |
1704 |
|
1704 | |||
1705 | #graph_content { |
|
1705 | #graph_content { | |
1706 | width:800px; |
|
1706 | width:800px; | |
1707 | float:left; |
|
1707 | float:left; | |
1708 | } |
|
1708 | } | |
1709 |
|
1709 | |||
1710 | #graph_content .container_header { |
|
1710 | #graph_content .container_header { | |
1711 | border:1px solid #CCC; |
|
1711 | border:1px solid #CCC; | |
1712 | padding:10px; |
|
1712 | padding:10px; | |
1713 | } |
|
1713 | } | |
1714 | #graph_content #rev_range_container{ |
|
1714 | #graph_content #rev_range_container{ | |
1715 | padding:10px 0px; |
|
1715 | padding:10px 0px; | |
1716 | } |
|
1716 | } | |
1717 | #graph_content .container { |
|
1717 | #graph_content .container { | |
1718 | border-bottom:1px solid #CCC; |
|
1718 | border-bottom:1px solid #CCC; | |
1719 | border-left:1px solid #CCC; |
|
1719 | border-left:1px solid #CCC; | |
1720 | border-right:1px solid #CCC; |
|
1720 | border-right:1px solid #CCC; | |
1721 | min-height:80px; |
|
1721 | min-height:80px; | |
1722 | overflow:hidden; |
|
1722 | overflow:hidden; | |
1723 | font-size:1.2em; |
|
1723 | font-size:1.2em; | |
1724 | } |
|
1724 | } | |
1725 |
|
1725 | |||
1726 | #graph_content .container .right { |
|
1726 | #graph_content .container .right { | |
1727 | float:right; |
|
1727 | float:right; | |
1728 | width:28%; |
|
1728 | width:28%; | |
1729 | text-align:right; |
|
1729 | text-align:right; | |
1730 | padding-bottom:5px; |
|
1730 | padding-bottom:5px; | |
1731 | } |
|
1731 | } | |
1732 |
|
1732 | |||
1733 | #graph_content .container .left .date { |
|
1733 | #graph_content .container .left .date { | |
1734 | font-weight:700; |
|
1734 | font-weight:700; | |
1735 | padding-bottom:5px; |
|
1735 | padding-bottom:5px; | |
1736 | } |
|
1736 | } | |
1737 | #graph_content .container .left .date span{ |
|
1737 | #graph_content .container .left .date span{ | |
1738 | vertical-align: text-top; |
|
1738 | vertical-align: text-top; | |
1739 | } |
|
1739 | } | |
1740 |
|
1740 | |||
1741 | #graph_content .container .left .message { |
|
1741 | #graph_content .container .left .message { | |
1742 | font-size:100%; |
|
1742 | font-size:100%; | |
1743 | padding-top:3px; |
|
1743 | padding-top:3px; | |
1744 | white-space:pre-wrap; |
|
1744 | white-space:pre-wrap; | |
1745 | } |
|
1745 | } | |
1746 |
|
1746 | |||
1747 | .right div { |
|
1747 | .right div { | |
1748 | clear:both; |
|
1748 | clear:both; | |
1749 | } |
|
1749 | } | |
1750 |
|
1750 | |||
1751 | .right .changes .added,.changed,.removed { |
|
1751 | .right .changes .added,.changed,.removed { | |
1752 | border:1px solid #DDD; |
|
1752 | border:1px solid #DDD; | |
1753 | display:block; |
|
1753 | display:block; | |
1754 | float:right; |
|
1754 | float:right; | |
1755 | text-align:center; |
|
1755 | text-align:center; | |
1756 | min-width:15px; |
|
1756 | min-width:15px; | |
1757 | cursor: help; |
|
1757 | cursor: help; | |
1758 | } |
|
1758 | } | |
1759 | .right .changes .large { |
|
1759 | .right .changes .large { | |
1760 | border:1px solid #DDD; |
|
1760 | border:1px solid #DDD; | |
1761 | display:block; |
|
1761 | display:block; | |
1762 | float:right; |
|
1762 | float:right; | |
1763 | text-align:center; |
|
1763 | text-align:center; | |
1764 | min-width:45px; |
|
1764 | min-width:45px; | |
1765 | cursor: help; |
|
1765 | cursor: help; | |
1766 | background: #54A9F7; |
|
1766 | background: #54A9F7; | |
1767 | } |
|
1767 | } | |
1768 |
|
1768 | |||
1769 | .right .changes .added { |
|
1769 | .right .changes .added { | |
1770 | background:#BFB; |
|
1770 | background:#BFB; | |
1771 | } |
|
1771 | } | |
1772 |
|
1772 | |||
1773 | .right .changes .changed { |
|
1773 | .right .changes .changed { | |
1774 | background:#FD8; |
|
1774 | background:#FD8; | |
1775 | } |
|
1775 | } | |
1776 |
|
1776 | |||
1777 | .right .changes .removed { |
|
1777 | .right .changes .removed { | |
1778 | background:#F88; |
|
1778 | background:#F88; | |
1779 | } |
|
1779 | } | |
1780 |
|
1780 | |||
1781 | .right .merge { |
|
1781 | .right .merge { | |
1782 | vertical-align:top; |
|
1782 | vertical-align:top; | |
1783 | font-size:0.75em; |
|
1783 | font-size:0.75em; | |
1784 | font-weight:700; |
|
1784 | font-weight:700; | |
1785 | } |
|
1785 | } | |
1786 |
|
1786 | |||
1787 | .right .parent { |
|
1787 | .right .parent { | |
1788 | font-size:90%; |
|
1788 | font-size:90%; | |
1789 | font-family:monospace; |
|
1789 | font-family:monospace; | |
1790 | } |
|
1790 | } | |
1791 |
|
1791 | |||
1792 | .right .logtags .branchtag { |
|
1792 | .right .logtags .branchtag { | |
1793 | background:#FFF url("../images/icons/arrow_branch.png") no-repeat right 6px; |
|
1793 | background:#FFF url("../images/icons/arrow_branch.png") no-repeat right 6px; | |
1794 | display:block; |
|
1794 | display:block; | |
1795 | font-size:0.8em; |
|
1795 | font-size:0.8em; | |
1796 | padding:11px 16px 0 0; |
|
1796 | padding:11px 16px 0 0; | |
1797 | } |
|
1797 | } | |
1798 |
|
1798 | |||
1799 | .right .logtags .tagtag { |
|
1799 | .right .logtags .tagtag { | |
1800 | background:#FFF url("../images/icons/tag_blue.png") no-repeat right 6px; |
|
1800 | background:#FFF url("../images/icons/tag_blue.png") no-repeat right 6px; | |
1801 | display:block; |
|
1801 | display:block; | |
1802 | font-size:0.8em; |
|
1802 | font-size:0.8em; | |
1803 | padding:11px 16px 0 0; |
|
1803 | padding:11px 16px 0 0; | |
1804 | } |
|
1804 | } | |
1805 |
|
1805 | |||
1806 | div.browserblock { |
|
1806 | div.browserblock { | |
1807 | overflow:hidden; |
|
1807 | overflow:hidden; | |
1808 | border:1px solid #ccc; |
|
1808 | border:1px solid #ccc; | |
1809 | background:#f8f8f8; |
|
1809 | background:#f8f8f8; | |
1810 | font-size:100%; |
|
1810 | font-size:100%; | |
1811 | line-height:125%; |
|
1811 | line-height:125%; | |
1812 | padding:0; |
|
1812 | padding:0; | |
1813 | } |
|
1813 | } | |
1814 |
|
1814 | |||
1815 | div.browserblock .browser-header { |
|
1815 | div.browserblock .browser-header { | |
1816 | background:#FFF; |
|
1816 | background:#FFF; | |
1817 | padding:10px 0px 25px 0px; |
|
1817 | padding:10px 0px 25px 0px; | |
1818 | width: 100%; |
|
1818 | width: 100%; | |
1819 | } |
|
1819 | } | |
1820 | div.browserblock .browser-nav { |
|
1820 | div.browserblock .browser-nav { | |
1821 | float:left |
|
1821 | float:left | |
1822 | } |
|
1822 | } | |
1823 |
|
1823 | |||
1824 | div.browserblock .browser-branch { |
|
1824 | div.browserblock .browser-branch { | |
1825 | float:left; |
|
1825 | float:left; | |
1826 | } |
|
1826 | } | |
1827 |
|
1827 | |||
1828 | div.browserblock .browser-branch label { |
|
1828 | div.browserblock .browser-branch label { | |
1829 | color:#4A4A4A; |
|
1829 | color:#4A4A4A; | |
1830 | vertical-align:text-top; |
|
1830 | vertical-align:text-top; | |
1831 | } |
|
1831 | } | |
1832 |
|
1832 | |||
1833 | div.browserblock .browser-header span { |
|
1833 | div.browserblock .browser-header span { | |
1834 | margin-left:5px; |
|
1834 | margin-left:5px; | |
1835 | font-weight:700; |
|
1835 | font-weight:700; | |
1836 | } |
|
1836 | } | |
1837 |
|
1837 | |||
1838 | div.browserblock .browser-body { |
|
1838 | div.browserblock .browser-body { | |
1839 | background:#EEE; |
|
1839 | background:#EEE; | |
1840 | border-top:1px solid #CCC; |
|
1840 | border-top:1px solid #CCC; | |
1841 | } |
|
1841 | } | |
1842 |
|
1842 | |||
1843 | table.code-browser { |
|
1843 | table.code-browser { | |
1844 | border-collapse:collapse; |
|
1844 | border-collapse:collapse; | |
1845 | width:100%; |
|
1845 | width:100%; | |
1846 | } |
|
1846 | } | |
1847 |
|
1847 | |||
1848 | table.code-browser tr { |
|
1848 | table.code-browser tr { | |
1849 | margin:3px; |
|
1849 | margin:3px; | |
1850 | } |
|
1850 | } | |
1851 |
|
1851 | |||
1852 | table.code-browser thead th { |
|
1852 | table.code-browser thead th { | |
1853 | background-color:#EEE; |
|
1853 | background-color:#EEE; | |
1854 | height:20px; |
|
1854 | height:20px; | |
1855 | font-size:1.1em; |
|
1855 | font-size:1.1em; | |
1856 | font-weight:700; |
|
1856 | font-weight:700; | |
1857 | text-align:left; |
|
1857 | text-align:left; | |
1858 | padding-left:10px; |
|
1858 | padding-left:10px; | |
1859 | } |
|
1859 | } | |
1860 |
|
1860 | |||
1861 | table.code-browser tbody td { |
|
1861 | table.code-browser tbody td { | |
1862 | padding-left:10px; |
|
1862 | padding-left:10px; | |
1863 | height:20px; |
|
1863 | height:20px; | |
1864 | } |
|
1864 | } | |
1865 |
|
1865 | |||
1866 | table.code-browser .browser-file { |
|
1866 | table.code-browser .browser-file { | |
1867 | background:url("../images/icons/document_16.png") no-repeat scroll 3px; |
|
1867 | background:url("../images/icons/document_16.png") no-repeat scroll 3px; | |
1868 | height:16px; |
|
1868 | height:16px; | |
1869 | padding-left:20px; |
|
1869 | padding-left:20px; | |
1870 | text-align:left; |
|
1870 | text-align:left; | |
1871 | } |
|
1871 | } | |
1872 | .diffblock .changeset_file{ |
|
1872 | .diffblock .changeset_file{ | |
1873 | background:url("../images/icons/file.png") no-repeat scroll 3px; |
|
1873 | background:url("../images/icons/file.png") no-repeat scroll 3px; | |
1874 | height:16px; |
|
1874 | height:16px; | |
1875 | padding-left:22px; |
|
1875 | padding-left:22px; | |
1876 | text-align:left; |
|
1876 | text-align:left; | |
1877 | font-size: 14px; |
|
1877 | font-size: 14px; | |
1878 | } |
|
1878 | } | |
1879 |
|
1879 | |||
1880 | .diffblock .changeset_header{ |
|
1880 | .diffblock .changeset_header{ | |
1881 | margin-left: 6px !important; |
|
1881 | margin-left: 6px !important; | |
1882 | } |
|
1882 | } | |
1883 |
|
1883 | |||
1884 | table.code-browser .browser-dir { |
|
1884 | table.code-browser .browser-dir { | |
1885 | background:url("../images/icons/folder_16.png") no-repeat scroll 3px; |
|
1885 | background:url("../images/icons/folder_16.png") no-repeat scroll 3px; | |
1886 | height:16px; |
|
1886 | height:16px; | |
1887 | padding-left:20px; |
|
1887 | padding-left:20px; | |
1888 | text-align:left; |
|
1888 | text-align:left; | |
1889 | } |
|
1889 | } | |
1890 |
|
1890 | |||
1891 | .box .search { |
|
1891 | .box .search { | |
1892 | clear:both; |
|
1892 | clear:both; | |
1893 | overflow:hidden; |
|
1893 | overflow:hidden; | |
1894 | margin:0; |
|
1894 | margin:0; | |
1895 | padding:0 20px 10px; |
|
1895 | padding:0 20px 10px; | |
1896 | } |
|
1896 | } | |
1897 |
|
1897 | |||
1898 | .box .search div.search_path { |
|
1898 | .box .search div.search_path { | |
1899 | background:none repeat scroll 0 0 #EEE; |
|
1899 | background:none repeat scroll 0 0 #EEE; | |
1900 | border:1px solid #CCC; |
|
1900 | border:1px solid #CCC; | |
1901 | color:blue; |
|
1901 | color:blue; | |
1902 | margin-bottom:10px; |
|
1902 | margin-bottom:10px; | |
1903 | padding:10px 0; |
|
1903 | padding:10px 0; | |
1904 | } |
|
1904 | } | |
1905 |
|
1905 | |||
1906 | .box .search div.search_path div.link { |
|
1906 | .box .search div.search_path div.link { | |
1907 | font-weight:700; |
|
1907 | font-weight:700; | |
1908 | margin-left:25px; |
|
1908 | margin-left:25px; | |
1909 | } |
|
1909 | } | |
1910 |
|
1910 | |||
1911 | .box .search div.search_path div.link a { |
|
1911 | .box .search div.search_path div.link a { | |
1912 | color:#003367; |
|
1912 | color:#003367; | |
1913 | cursor:pointer; |
|
1913 | cursor:pointer; | |
1914 | text-decoration:none; |
|
1914 | text-decoration:none; | |
1915 | } |
|
1915 | } | |
1916 |
|
1916 | |||
1917 | #path_unlock { |
|
1917 | #path_unlock { | |
1918 | color:red; |
|
1918 | color:red; | |
1919 | font-size:1.2em; |
|
1919 | font-size:1.2em; | |
1920 | padding-left:4px; |
|
1920 | padding-left:4px; | |
1921 | } |
|
1921 | } | |
1922 |
|
1922 | |||
1923 | .info_box span { |
|
1923 | .info_box span { | |
1924 | margin-left:3px; |
|
1924 | margin-left:3px; | |
1925 | margin-right:3px; |
|
1925 | margin-right:3px; | |
1926 | } |
|
1926 | } | |
1927 |
|
1927 | |||
1928 | .info_box .rev { |
|
1928 | .info_box .rev { | |
1929 | color: #003367; |
|
1929 | color: #003367; | |
1930 | font-size: 1.6em; |
|
1930 | font-size: 1.6em; | |
1931 | font-weight: bold; |
|
1931 | font-weight: bold; | |
1932 | vertical-align: sub; |
|
1932 | vertical-align: sub; | |
1933 | } |
|
1933 | } | |
1934 |
|
1934 | |||
1935 |
|
1935 | |||
1936 | .info_box input#at_rev,.info_box input#size { |
|
1936 | .info_box input#at_rev,.info_box input#size { | |
1937 | background:#FFF; |
|
1937 | background:#FFF; | |
1938 | border-top:1px solid #b3b3b3; |
|
1938 | border-top:1px solid #b3b3b3; | |
1939 | border-left:1px solid #b3b3b3; |
|
1939 | border-left:1px solid #b3b3b3; | |
1940 | border-right:1px solid #eaeaea; |
|
1940 | border-right:1px solid #eaeaea; | |
1941 | border-bottom:1px solid #eaeaea; |
|
1941 | border-bottom:1px solid #eaeaea; | |
1942 | color:#000; |
|
1942 | color:#000; | |
1943 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; |
|
1943 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; | |
1944 | font-size:12px; |
|
1944 | font-size:12px; | |
1945 | margin:0; |
|
1945 | margin:0; | |
1946 | padding:1px 5px 1px; |
|
1946 | padding:1px 5px 1px; | |
1947 | } |
|
1947 | } | |
1948 |
|
1948 | |||
1949 |
|
||||
1950 |
|
||||
1951 | .info_box input#view { |
|
1949 | .info_box input#view { | |
1952 | text-align:center; |
|
1950 | text-align:center; | |
1953 | padding:4px 3px 2px 2px; |
|
1951 | padding:4px 3px 2px 2px; | |
1954 | } |
|
1952 | } | |
1955 |
|
1953 | |||
1956 | .yui-overlay,.yui-panel-container { |
|
1954 | .yui-overlay,.yui-panel-container { | |
1957 | visibility:hidden; |
|
1955 | visibility:hidden; | |
1958 | position:absolute; |
|
1956 | position:absolute; | |
1959 | z-index:2; |
|
1957 | z-index:2; | |
1960 | } |
|
1958 | } | |
1961 |
|
1959 | |||
1962 | .yui-tt { |
|
1960 | .yui-tt { | |
1963 | visibility:hidden; |
|
1961 | visibility:hidden; | |
1964 | position:absolute; |
|
1962 | position:absolute; | |
1965 | color:#666; |
|
1963 | color:#666; | |
1966 | background-color:#FFF; |
|
1964 | background-color:#FFF; | |
1967 | font-family:arial, helvetica, verdana, sans-serif; |
|
1965 | font-family:arial, helvetica, verdana, sans-serif; | |
1968 | border:2px solid #003367; |
|
1966 | border:2px solid #003367; | |
1969 | font:100% sans-serif; |
|
1967 | font:100% sans-serif; | |
1970 | width:auto; |
|
1968 | width:auto; | |
1971 | opacity:1px; |
|
1969 | opacity:1px; | |
1972 | padding:8px; |
|
1970 | padding:8px; | |
1973 | white-space: pre-wrap; |
|
1971 | white-space: pre-wrap; | |
1974 | -webkit-border-radius: 8px 8px 8px 8px; |
|
1972 | -webkit-border-radius: 8px 8px 8px 8px; | |
1975 | -khtml-border-radius: 8px 8px 8px 8px; |
|
1973 | -khtml-border-radius: 8px 8px 8px 8px; | |
1976 | -moz-border-radius: 8px 8px 8px 8px; |
|
1974 | -moz-border-radius: 8px 8px 8px 8px; | |
1977 | border-radius: 8px 8px 8px 8px; |
|
1975 | border-radius: 8px 8px 8px 8px; | |
1978 |
|
1976 | box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6); | ||
1979 | } |
|
1977 | } | |
1980 |
|
1978 | |||
1981 | .ac { |
|
1979 | .ac { | |
1982 | vertical-align:top; |
|
1980 | vertical-align:top; | |
1983 | } |
|
1981 | } | |
1984 |
|
1982 | |||
1985 | .ac .yui-ac { |
|
1983 | .ac .yui-ac { | |
1986 | position:relative; |
|
1984 | position:relative; | |
1987 | font-family:arial; |
|
1985 | font-family:arial; | |
1988 | font-size:100%; |
|
1986 | font-size:100%; | |
1989 | } |
|
1987 | } | |
1990 |
|
1988 | |||
1991 | .ac .perm_ac { |
|
1989 | .ac .perm_ac { | |
1992 | width:15em; |
|
1990 | width:15em; | |
1993 | } |
|
1991 | } | |
1994 |
|
1992 | |||
1995 | .ac .yui-ac-input { |
|
1993 | .ac .yui-ac-input { | |
1996 | width:100%; |
|
1994 | width:100%; | |
1997 | } |
|
1995 | } | |
1998 |
|
1996 | |||
1999 | .ac .yui-ac-container { |
|
1997 | .ac .yui-ac-container { | |
2000 | position:absolute; |
|
1998 | position:absolute; | |
2001 | top:1.6em; |
|
1999 | top:1.6em; | |
2002 | width:100%; |
|
2000 | width:100%; | |
2003 | } |
|
2001 | } | |
2004 |
|
2002 | |||
2005 | .ac .yui-ac-content { |
|
2003 | .ac .yui-ac-content { | |
2006 | position:absolute; |
|
2004 | position:absolute; | |
2007 | width:100%; |
|
2005 | width:100%; | |
2008 | border:1px solid gray; |
|
2006 | border:1px solid gray; | |
2009 | background:#fff; |
|
2007 | background:#fff; | |
2010 | overflow:hidden; |
|
2008 | overflow:hidden; | |
2011 | z-index:9050; |
|
2009 | z-index:9050; | |
2012 | } |
|
2010 | } | |
2013 |
|
2011 | |||
2014 | .ac .yui-ac-shadow { |
|
2012 | .ac .yui-ac-shadow { | |
2015 | position:absolute; |
|
2013 | position:absolute; | |
2016 | width:100%; |
|
2014 | width:100%; | |
2017 | background:#000; |
|
2015 | background:#000; | |
2018 | -moz-opacity:0.1px; |
|
2016 | -moz-opacity:0.1px; | |
2019 | opacity:.10; |
|
2017 | opacity:.10; | |
2020 | filter:alpha(opacity = 10); |
|
2018 | filter:alpha(opacity = 10); | |
2021 | z-index:9049; |
|
2019 | z-index:9049; | |
2022 | margin:.3em; |
|
2020 | margin:.3em; | |
2023 | } |
|
2021 | } | |
2024 |
|
2022 | |||
2025 | .ac .yui-ac-content ul { |
|
2023 | .ac .yui-ac-content ul { | |
2026 | width:100%; |
|
2024 | width:100%; | |
2027 | margin:0; |
|
2025 | margin:0; | |
2028 | padding:0; |
|
2026 | padding:0; | |
2029 | } |
|
2027 | } | |
2030 |
|
2028 | |||
2031 | .ac .yui-ac-content li { |
|
2029 | .ac .yui-ac-content li { | |
2032 | cursor:default; |
|
2030 | cursor:default; | |
2033 | white-space:nowrap; |
|
2031 | white-space:nowrap; | |
2034 | margin:0; |
|
2032 | margin:0; | |
2035 | padding:2px 5px; |
|
2033 | padding:2px 5px; | |
2036 | } |
|
2034 | } | |
2037 |
|
2035 | |||
2038 | .ac .yui-ac-content li.yui-ac-prehighlight { |
|
2036 | .ac .yui-ac-content li.yui-ac-prehighlight { | |
2039 | background:#B3D4FF; |
|
2037 | background:#B3D4FF; | |
2040 | } |
|
2038 | } | |
2041 |
|
2039 | |||
2042 | .ac .yui-ac-content li.yui-ac-highlight { |
|
2040 | .ac .yui-ac-content li.yui-ac-highlight { | |
2043 | background:#556CB5; |
|
2041 | background:#556CB5; | |
2044 | color:#FFF; |
|
2042 | color:#FFF; | |
2045 | } |
|
2043 | } | |
2046 |
|
2044 | |||
2047 |
|
2045 | |||
2048 | .follow{ |
|
2046 | .follow{ | |
2049 | background:url("../images/icons/heart_add.png") no-repeat scroll 3px; |
|
2047 | background:url("../images/icons/heart_add.png") no-repeat scroll 3px; | |
2050 | height: 16px; |
|
2048 | height: 16px; | |
2051 | width: 20px; |
|
2049 | width: 20px; | |
2052 | cursor: pointer; |
|
2050 | cursor: pointer; | |
2053 | display: block; |
|
2051 | display: block; | |
2054 | float: right; |
|
2052 | float: right; | |
2055 | margin-top: 2px; |
|
2053 | margin-top: 2px; | |
2056 | } |
|
2054 | } | |
2057 |
|
2055 | |||
2058 | .following{ |
|
2056 | .following{ | |
2059 | background:url("../images/icons/heart_delete.png") no-repeat scroll 3px; |
|
2057 | background:url("../images/icons/heart_delete.png") no-repeat scroll 3px; | |
2060 | height: 16px; |
|
2058 | height: 16px; | |
2061 | width: 20px; |
|
2059 | width: 20px; | |
2062 | cursor: pointer; |
|
2060 | cursor: pointer; | |
2063 | display: block; |
|
2061 | display: block; | |
2064 | float: right; |
|
2062 | float: right; | |
2065 | margin-top: 2px; |
|
2063 | margin-top: 2px; | |
2066 | } |
|
2064 | } | |
2067 |
|
2065 | |||
2068 | .currently_following{ |
|
2066 | .currently_following{ | |
2069 | padding-left: 10px; |
|
2067 | padding-left: 10px; | |
2070 | padding-bottom:5px; |
|
2068 | padding-bottom:5px; | |
2071 | } |
|
2069 | } | |
2072 |
|
2070 | |||
2073 | .add_icon { |
|
2071 | .add_icon { | |
2074 | background:url("../images/icons/add.png") no-repeat scroll 3px; |
|
2072 | background:url("../images/icons/add.png") no-repeat scroll 3px; | |
2075 | padding-left:20px; |
|
2073 | padding-left:20px; | |
2076 | padding-top:0px; |
|
2074 | padding-top:0px; | |
2077 | text-align:left; |
|
2075 | text-align:left; | |
2078 | } |
|
2076 | } | |
2079 |
|
2077 | |||
2080 | .edit_icon { |
|
2078 | .edit_icon { | |
2081 | background:url("../images/icons/folder_edit.png") no-repeat scroll 3px; |
|
2079 | background:url("../images/icons/folder_edit.png") no-repeat scroll 3px; | |
2082 | padding-left:20px; |
|
2080 | padding-left:20px; | |
2083 | padding-top:0px; |
|
2081 | padding-top:0px; | |
2084 | text-align:left; |
|
2082 | text-align:left; | |
2085 | } |
|
2083 | } | |
2086 |
|
2084 | |||
2087 | .delete_icon { |
|
2085 | .delete_icon { | |
2088 | background:url("../images/icons/delete.png") no-repeat scroll 3px; |
|
2086 | background:url("../images/icons/delete.png") no-repeat scroll 3px; | |
2089 | padding-left:20px; |
|
2087 | padding-left:20px; | |
2090 | padding-top:0px; |
|
2088 | padding-top:0px; | |
2091 | text-align:left; |
|
2089 | text-align:left; | |
2092 | } |
|
2090 | } | |
2093 |
|
2091 | |||
2094 | .refresh_icon { |
|
2092 | .refresh_icon { | |
2095 | background:url("../images/icons/arrow_refresh.png") no-repeat scroll 3px; |
|
2093 | background:url("../images/icons/arrow_refresh.png") no-repeat scroll 3px; | |
2096 | padding-left:20px; |
|
2094 | padding-left:20px; | |
2097 | padding-top:0px; |
|
2095 | padding-top:0px; | |
2098 | text-align:left; |
|
2096 | text-align:left; | |
2099 | } |
|
2097 | } | |
2100 |
|
2098 | |||
2101 | .pull_icon { |
|
2099 | .pull_icon { | |
2102 | background:url("../images/icons/connect.png") no-repeat scroll 3px; |
|
2100 | background:url("../images/icons/connect.png") no-repeat scroll 3px; | |
2103 | padding-left:20px; |
|
2101 | padding-left:20px; | |
2104 | padding-top:0px; |
|
2102 | padding-top:0px; | |
2105 | text-align:left; |
|
2103 | text-align:left; | |
2106 | } |
|
2104 | } | |
2107 |
|
2105 | |||
2108 | .rss_icon { |
|
2106 | .rss_icon { | |
2109 | background:url("../images/icons/rss_16.png") no-repeat scroll 3px; |
|
2107 | background:url("../images/icons/rss_16.png") no-repeat scroll 3px; | |
2110 | padding-left:20px; |
|
2108 | padding-left:20px; | |
2111 | padding-top:0px; |
|
2109 | padding-top:0px; | |
2112 | text-align:left; |
|
2110 | text-align:left; | |
2113 | } |
|
2111 | } | |
2114 |
|
2112 | |||
2115 | .atom_icon { |
|
2113 | .atom_icon { | |
2116 | background:url("../images/icons/atom.png") no-repeat scroll 3px; |
|
2114 | background:url("../images/icons/atom.png") no-repeat scroll 3px; | |
2117 | padding-left:20px; |
|
2115 | padding-left:20px; | |
2118 | padding-top:0px; |
|
2116 | padding-top:0px; | |
2119 | text-align:left; |
|
2117 | text-align:left; | |
2120 | } |
|
2118 | } | |
2121 |
|
2119 | |||
2122 | .archive_icon { |
|
2120 | .archive_icon { | |
2123 | background:url("../images/icons/compress.png") no-repeat scroll 3px; |
|
2121 | background:url("../images/icons/compress.png") no-repeat scroll 3px; | |
2124 | padding-left:20px; |
|
2122 | padding-left:20px; | |
2125 | text-align:left; |
|
2123 | text-align:left; | |
2126 | padding-top:1px; |
|
2124 | padding-top:1px; | |
2127 | } |
|
2125 | } | |
2128 |
|
2126 | |||
2129 | .start_following_icon { |
|
2127 | .start_following_icon { | |
2130 | background:url("../images/icons/heart_add.png") no-repeat scroll 3px; |
|
2128 | background:url("../images/icons/heart_add.png") no-repeat scroll 3px; | |
2131 | padding-left:20px; |
|
2129 | padding-left:20px; | |
2132 | text-align:left; |
|
2130 | text-align:left; | |
2133 | padding-top:0px; |
|
2131 | padding-top:0px; | |
2134 | } |
|
2132 | } | |
2135 |
|
2133 | |||
2136 | .stop_following_icon { |
|
2134 | .stop_following_icon { | |
2137 | background:url("../images/icons/heart_delete.png") no-repeat scroll 3px; |
|
2135 | background:url("../images/icons/heart_delete.png") no-repeat scroll 3px; | |
2138 | padding-left:20px; |
|
2136 | padding-left:20px; | |
2139 | text-align:left; |
|
2137 | text-align:left; | |
2140 | padding-top:0px; |
|
2138 | padding-top:0px; | |
2141 | } |
|
2139 | } | |
2142 |
|
2140 | |||
2143 | .action_button { |
|
2141 | .action_button { | |
2144 | border:0; |
|
2142 | border:0; | |
2145 | display:inline; |
|
2143 | display:inline; | |
2146 | } |
|
2144 | } | |
2147 |
|
2145 | |||
2148 | .action_button:hover { |
|
2146 | .action_button:hover { | |
2149 | border:0; |
|
2147 | border:0; | |
2150 | text-decoration:underline; |
|
2148 | text-decoration:underline; | |
2151 | cursor:pointer; |
|
2149 | cursor:pointer; | |
2152 | } |
|
2150 | } | |
2153 |
|
2151 | |||
2154 | #switch_repos { |
|
2152 | #switch_repos { | |
2155 | position:absolute; |
|
2153 | position:absolute; | |
2156 | height:25px; |
|
2154 | height:25px; | |
2157 | z-index:1; |
|
2155 | z-index:1; | |
2158 | } |
|
2156 | } | |
2159 |
|
2157 | |||
2160 | #switch_repos select { |
|
2158 | #switch_repos select { | |
2161 | min-width:150px; |
|
2159 | min-width:150px; | |
2162 | max-height:250px; |
|
2160 | max-height:250px; | |
2163 | z-index:1; |
|
2161 | z-index:1; | |
2164 | } |
|
2162 | } | |
2165 |
|
2163 | |||
2166 | .breadcrumbs { |
|
2164 | .breadcrumbs { | |
2167 | border:medium none; |
|
2165 | border:medium none; | |
2168 | color:#FFF; |
|
2166 | color:#FFF; | |
2169 | float:left; |
|
2167 | float:left; | |
2170 | text-transform:uppercase; |
|
2168 | text-transform:uppercase; | |
2171 | font-weight:700; |
|
2169 | font-weight:700; | |
2172 | font-size:14px; |
|
2170 | font-size:14px; | |
2173 | margin:0; |
|
2171 | margin:0; | |
2174 | padding:11px 0 11px 10px; |
|
2172 | padding:11px 0 11px 10px; | |
2175 | } |
|
2173 | } | |
2176 |
|
2174 | |||
2177 | .breadcrumbs a { |
|
2175 | .breadcrumbs a { | |
2178 | color:#FFF; |
|
2176 | color:#FFF; | |
2179 | } |
|
2177 | } | |
2180 |
|
2178 | |||
2181 | .flash_msg ul { |
|
2179 | .flash_msg ul { | |
2182 | margin:0; |
|
2180 | margin:0; | |
2183 | padding:0 0 10px; |
|
2181 | padding:0 0 10px; | |
2184 | } |
|
2182 | } | |
2185 |
|
2183 | |||
2186 | .error_msg { |
|
2184 | .error_msg { | |
2187 | background-color:#FFCFCF; |
|
2185 | background-color:#FFCFCF; | |
2188 | background-image:url("../images/icons/error_msg.png"); |
|
2186 | background-image:url("../images/icons/error_msg.png"); | |
2189 | border:1px solid #FF9595; |
|
2187 | border:1px solid #FF9595; | |
2190 | color:#C30; |
|
2188 | color:#C30; | |
2191 | } |
|
2189 | } | |
2192 |
|
2190 | |||
2193 | .warning_msg { |
|
2191 | .warning_msg { | |
2194 | background-color:#FFFBCC; |
|
2192 | background-color:#FFFBCC; | |
2195 | background-image:url("../images/icons/warning_msg.png"); |
|
2193 | background-image:url("../images/icons/warning_msg.png"); | |
2196 | border:1px solid #FFF35E; |
|
2194 | border:1px solid #FFF35E; | |
2197 | color:#C69E00; |
|
2195 | color:#C69E00; | |
2198 | } |
|
2196 | } | |
2199 |
|
2197 | |||
2200 | .success_msg { |
|
2198 | .success_msg { | |
2201 | background-color:#D5FFCF; |
|
2199 | background-color:#D5FFCF; | |
2202 | background-image:url("../images/icons/success_msg.png"); |
|
2200 | background-image:url("../images/icons/success_msg.png"); | |
2203 | border:1px solid #97FF88; |
|
2201 | border:1px solid #97FF88; | |
2204 | color:#090; |
|
2202 | color:#090; | |
2205 | } |
|
2203 | } | |
2206 |
|
2204 | |||
2207 | .notice_msg { |
|
2205 | .notice_msg { | |
2208 | background-color:#DCE3FF; |
|
2206 | background-color:#DCE3FF; | |
2209 | background-image:url("../images/icons/notice_msg.png"); |
|
2207 | background-image:url("../images/icons/notice_msg.png"); | |
2210 | border:1px solid #93A8FF; |
|
2208 | border:1px solid #93A8FF; | |
2211 | color:#556CB5; |
|
2209 | color:#556CB5; | |
2212 | } |
|
2210 | } | |
2213 |
|
2211 | |||
2214 | .success_msg,.error_msg,.notice_msg,.warning_msg { |
|
2212 | .success_msg,.error_msg,.notice_msg,.warning_msg { | |
2215 | background-position:10px center; |
|
2213 | background-position:10px center; | |
2216 | background-repeat:no-repeat; |
|
2214 | background-repeat:no-repeat; | |
2217 | font-size:12px; |
|
2215 | font-size:12px; | |
2218 | font-weight:700; |
|
2216 | font-weight:700; | |
2219 | min-height:14px; |
|
2217 | min-height:14px; | |
2220 | line-height:14px; |
|
2218 | line-height:14px; | |
2221 | margin-bottom:0; |
|
2219 | margin-bottom:0; | |
2222 | margin-top:0; |
|
2220 | margin-top:0; | |
2223 | display:block; |
|
2221 | display:block; | |
2224 | overflow:auto; |
|
2222 | overflow:auto; | |
2225 | padding:6px 10px 6px 40px; |
|
2223 | padding:6px 10px 6px 40px; | |
2226 | } |
|
2224 | } | |
2227 |
|
2225 | |||
2228 | #msg_close { |
|
2226 | #msg_close { | |
2229 | background:transparent url("../icons/cross_grey_small.png") no-repeat scroll 0 0; |
|
2227 | background:transparent url("../icons/cross_grey_small.png") no-repeat scroll 0 0; | |
2230 | cursor:pointer; |
|
2228 | cursor:pointer; | |
2231 | height:16px; |
|
2229 | height:16px; | |
2232 | position:absolute; |
|
2230 | position:absolute; | |
2233 | right:5px; |
|
2231 | right:5px; | |
2234 | top:5px; |
|
2232 | top:5px; | |
2235 | width:16px; |
|
2233 | width:16px; | |
2236 | } |
|
2234 | } | |
2237 |
|
2235 | |||
2238 | div#legend_container table,div#legend_choices table { |
|
2236 | div#legend_container table,div#legend_choices table { | |
2239 | width:auto !important; |
|
2237 | width:auto !important; | |
2240 | } |
|
2238 | } | |
2241 |
|
2239 | |||
2242 | table#permissions_manage { |
|
2240 | table#permissions_manage { | |
2243 | width:0 !important; |
|
2241 | width:0 !important; | |
2244 | } |
|
2242 | } | |
2245 |
|
2243 | |||
2246 | table#permissions_manage span.private_repo_msg { |
|
2244 | table#permissions_manage span.private_repo_msg { | |
2247 | font-size:0.8em; |
|
2245 | font-size:0.8em; | |
2248 | opacity:0.6px; |
|
2246 | opacity:0.6px; | |
2249 | } |
|
2247 | } | |
2250 |
|
2248 | |||
2251 | table#permissions_manage td.private_repo_msg { |
|
2249 | table#permissions_manage td.private_repo_msg { | |
2252 | font-size:0.8em; |
|
2250 | font-size:0.8em; | |
2253 | } |
|
2251 | } | |
2254 |
|
2252 | |||
2255 | table#permissions_manage tr#add_perm_input td { |
|
2253 | table#permissions_manage tr#add_perm_input td { | |
2256 | vertical-align:middle; |
|
2254 | vertical-align:middle; | |
2257 | } |
|
2255 | } | |
2258 |
|
2256 | |||
2259 | div.gravatar { |
|
2257 | div.gravatar { | |
2260 | background-color:#FFF; |
|
2258 | background-color:#FFF; | |
2261 | border:1px solid #D0D0D0; |
|
2259 | border:1px solid #D0D0D0; | |
2262 | float:left; |
|
2260 | float:left; | |
2263 | margin-right:0.7em; |
|
2261 | margin-right:0.7em; | |
2264 | padding:2px 2px 0; |
|
2262 | padding:2px 2px 0; | |
2265 | } |
|
2263 | } | |
2266 |
|
2264 | |||
2267 | #header,#content,#footer { |
|
2265 | #header,#content,#footer { | |
2268 | min-width:978px; |
|
2266 | min-width:978px; | |
2269 | } |
|
2267 | } | |
2270 |
|
2268 | |||
2271 | #content { |
|
2269 | #content { | |
2272 | min-height:100%; |
|
2270 | min-height:100%; | |
2273 | clear:both; |
|
2271 | clear:both; | |
2274 | overflow:hidden; |
|
2272 | overflow:hidden; | |
2275 | padding:14px 10px; |
|
2273 | padding:14px 10px; | |
2276 | } |
|
2274 | } | |
2277 |
|
2275 | |||
2278 | #content div.box div.title div.search { |
|
2276 | #content div.box div.title div.search { | |
2279 | background:url("../images/title_link.png") no-repeat top left; |
|
2277 | background:url("../images/title_link.png") no-repeat top left; | |
2280 | border-left:1px solid #316293; |
|
2278 | border-left:1px solid #316293; | |
2281 | } |
|
2279 | } | |
2282 |
|
2280 | |||
2283 | #content div.box div.title div.search div.input input { |
|
2281 | #content div.box div.title div.search div.input input { | |
2284 | border:1px solid #316293; |
|
2282 | border:1px solid #316293; | |
2285 | } |
|
2283 | } | |
2286 |
|
2284 | |||
2287 | #content div.box div.title div.search div.button input.ui-button { |
|
2285 | #content div.box div.title div.search div.button input.ui-button { | |
2288 | background:#4e85bb url("../images/button_highlight.png") repeat-x; |
|
2286 | background:#4e85bb url("../images/button_highlight.png") repeat-x; | |
2289 | border:1px solid #316293; |
|
2287 | border:1px solid #316293; | |
2290 | border-left:none; |
|
2288 | border-left:none; | |
2291 | color:#FFF; |
|
2289 | color:#FFF; | |
2292 | } |
|
2290 | } | |
2293 |
|
2291 | |||
2294 | #content div.box input.ui-button-small { |
|
2292 | #content div.box input.ui-button-small { | |
2295 | background:#e5e3e3 url("../images/button.png") repeat-x; |
|
2293 | background:#e5e3e3 url("../images/button.png") repeat-x; | |
2296 | border-top:1px solid #DDD; |
|
2294 | border-top:1px solid #DDD; | |
2297 | border-left:1px solid #c6c6c6; |
|
2295 | border-left:1px solid #c6c6c6; | |
2298 | border-right:1px solid #DDD; |
|
2296 | border-right:1px solid #DDD; | |
2299 | border-bottom:1px solid #c6c6c6; |
|
2297 | border-bottom:1px solid #c6c6c6; | |
2300 | color:#515151; |
|
2298 | color:#515151; | |
2301 | outline:none; |
|
2299 | outline:none; | |
2302 | margin:0; |
|
2300 | margin:0; | |
2303 | } |
|
2301 | } | |
2304 |
|
2302 | |||
2305 | #content div.box input.ui-button-small-blue { |
|
2303 | #content div.box input.ui-button-small-blue { | |
2306 | background:#4e85bb url("../images/button_highlight.png") repeat-x; |
|
2304 | background:#4e85bb url("../images/button_highlight.png") repeat-x; | |
2307 | border-top:1px solid #5c91a4; |
|
2305 | border-top:1px solid #5c91a4; | |
2308 | border-left:1px solid #2a6f89; |
|
2306 | border-left:1px solid #2a6f89; | |
2309 | border-right:1px solid #2b7089; |
|
2307 | border-right:1px solid #2b7089; | |
2310 | border-bottom:1px solid #1a6480; |
|
2308 | border-bottom:1px solid #1a6480; | |
2311 | color:#fff; |
|
2309 | color:#fff; | |
2312 | } |
|
2310 | } | |
2313 |
|
2311 | |||
2314 | #content div.box input.ui-button-small submit,button{ |
|
2312 | #content div.box input.ui-button-small submit,button{ | |
2315 | cursor: pointer; |
|
2313 | cursor: pointer; | |
2316 | } |
|
2314 | } | |
2317 |
|
2315 | |||
2318 | #content div.box div.title div.search div.button input.ui-state-hover { |
|
2316 | #content div.box div.title div.search div.button input.ui-state-hover { | |
2319 | background:#46a0c1 url("../images/button_highlight_selected.png") repeat-x; |
|
2317 | background:#46a0c1 url("../images/button_highlight_selected.png") repeat-x; | |
2320 | border:1px solid #316293; |
|
2318 | border:1px solid #316293; | |
2321 | border-left:none; |
|
2319 | border-left:none; | |
2322 | color:#FFF; |
|
2320 | color:#FFF; | |
2323 | } |
|
2321 | } | |
2324 |
|
2322 | |||
2325 | #content div.box div.form div.fields div.field div.highlight .ui-button { |
|
2323 | #content div.box div.form div.fields div.field div.highlight .ui-button { | |
2326 | background:#4e85bb url("../images/button_highlight.png") repeat-x; |
|
2324 | background:#4e85bb url("../images/button_highlight.png") repeat-x; | |
2327 | border-top:1px solid #5c91a4; |
|
2325 | border-top:1px solid #5c91a4; | |
2328 | border-left:1px solid #2a6f89; |
|
2326 | border-left:1px solid #2a6f89; | |
2329 | border-right:1px solid #2b7089; |
|
2327 | border-right:1px solid #2b7089; | |
2330 | border-bottom:1px solid #1a6480; |
|
2328 | border-bottom:1px solid #1a6480; | |
2331 | color:#fff; |
|
2329 | color:#fff; | |
2332 | } |
|
2330 | } | |
2333 |
|
2331 | |||
2334 | #content div.box div.form div.fields div.field div.highlight .ui-state-hover { |
|
2332 | #content div.box div.form div.fields div.field div.highlight .ui-state-hover { | |
2335 | background:#46a0c1 url("../images/button_highlight_selected.png") repeat-x; |
|
2333 | background:#46a0c1 url("../images/button_highlight_selected.png") repeat-x; | |
2336 | border-top:1px solid #78acbf; |
|
2334 | border-top:1px solid #78acbf; | |
2337 | border-left:1px solid #34819e; |
|
2335 | border-left:1px solid #34819e; | |
2338 | border-right:1px solid #35829f; |
|
2336 | border-right:1px solid #35829f; | |
2339 | border-bottom:1px solid #257897; |
|
2337 | border-bottom:1px solid #257897; | |
2340 | color:#fff; |
|
2338 | color:#fff; | |
2341 | } |
|
2339 | } | |
2342 |
|
2340 | |||
2343 | ins,div.options a:hover { |
|
2341 | ins,div.options a:hover { | |
2344 | text-decoration:none; |
|
2342 | text-decoration:none; | |
2345 | } |
|
2343 | } | |
2346 |
|
2344 | |||
2347 | img,#header #header-inner #quick li a:hover span.normal,#header #header-inner #quick li ul li.last,#content div.box div.form div.fields div.field div.textarea table td table td a,#clone_url { |
|
2345 | img,#header #header-inner #quick li a:hover span.normal,#header #header-inner #quick li ul li.last,#content div.box div.form div.fields div.field div.textarea table td table td a,#clone_url { | |
2348 | border:none; |
|
2346 | border:none; | |
2349 | } |
|
2347 | } | |
2350 |
|
2348 | |||
2351 | img.icon,.right .merge img { |
|
2349 | img.icon,.right .merge img { | |
2352 | vertical-align:bottom; |
|
2350 | vertical-align:bottom; | |
2353 | } |
|
2351 | } | |
2354 |
|
2352 | |||
2355 | #header ul#logged-user,#content div.box div.title ul.links,#content div.box div.message div.dismiss,#content div.box div.traffic div.legend ul { |
|
2353 | #header ul#logged-user,#content div.box div.title ul.links,#content div.box div.message div.dismiss,#content div.box div.traffic div.legend ul { | |
2356 | float:right; |
|
2354 | float:right; | |
2357 | margin:0; |
|
2355 | margin:0; | |
2358 | padding:0; |
|
2356 | padding:0; | |
2359 | } |
|
2357 | } | |
2360 |
|
2358 | |||
2361 | #header #header-inner #home,#header #header-inner #logo,#content div.box ul.left,#content div.box ol.left,#content div.box div.pagination-left,div#commit_history,div#legend_data,div#legend_container,div#legend_choices { |
|
2359 | #header #header-inner #home,#header #header-inner #logo,#content div.box ul.left,#content div.box ol.left,#content div.box div.pagination-left,div#commit_history,div#legend_data,div#legend_container,div#legend_choices { | |
2362 | float:left; |
|
2360 | float:left; | |
2363 | } |
|
2361 | } | |
2364 |
|
2362 | |||
2365 | #header #header-inner #quick li:hover ul ul,#header #header-inner #quick li:hover ul ul ul,#header #header-inner #quick li:hover ul ul ul ul,#content #left #menu ul.closed,#content #left #menu li ul.collapsed,.yui-tt-shadow { |
|
2363 | #header #header-inner #quick li:hover ul ul,#header #header-inner #quick li:hover ul ul ul,#header #header-inner #quick li:hover ul ul ul ul,#content #left #menu ul.closed,#content #left #menu li ul.collapsed,.yui-tt-shadow { | |
2366 | display:none; |
|
2364 | display:none; | |
2367 | } |
|
2365 | } | |
2368 |
|
2366 | |||
2369 | #header #header-inner #quick li:hover ul,#header #header-inner #quick li li:hover ul,#header #header-inner #quick li li li:hover ul,#header #header-inner #quick li li li li:hover ul,#content #left #menu ul.opened,#content #left #menu li ul.expanded { |
|
2367 | #header #header-inner #quick li:hover ul,#header #header-inner #quick li li:hover ul,#header #header-inner #quick li li li:hover ul,#header #header-inner #quick li li li li:hover ul,#content #left #menu ul.opened,#content #left #menu li ul.expanded { | |
2370 | display:block; |
|
2368 | display:block; | |
2371 | } |
|
2369 | } | |
2372 |
|
2370 | |||
2373 | #content div.graph{ |
|
2371 | #content div.graph{ | |
2374 | padding:0 10px 10px; |
|
2372 | padding:0 10px 10px; | |
2375 | } |
|
2373 | } | |
2376 |
|
2374 | |||
2377 | #content div.box div.title ul.links li a:hover,#content div.box div.title ul.links li.ui-tabs-selected a { |
|
2375 | #content div.box div.title ul.links li a:hover,#content div.box div.title ul.links li.ui-tabs-selected a { | |
2378 | color:#bfe3ff; |
|
2376 | color:#bfe3ff; | |
2379 | } |
|
2377 | } | |
2380 |
|
2378 | |||
2381 | #content div.box ol.lower-roman,#content div.box ol.upper-roman,#content div.box ol.lower-alpha,#content div.box ol.upper-alpha,#content div.box ol.decimal { |
|
2379 | #content div.box ol.lower-roman,#content div.box ol.upper-roman,#content div.box ol.lower-alpha,#content div.box ol.upper-alpha,#content div.box ol.decimal { | |
2382 | margin:10px 24px 10px 44px; |
|
2380 | margin:10px 24px 10px 44px; | |
2383 | } |
|
2381 | } | |
2384 |
|
2382 | |||
2385 | #content div.box div.form,#content div.box div.table,#content div.box div.traffic { |
|
2383 | #content div.box div.form,#content div.box div.table,#content div.box div.traffic { | |
2386 | clear:both; |
|
2384 | clear:both; | |
2387 | overflow:hidden; |
|
2385 | overflow:hidden; | |
2388 | margin:0; |
|
2386 | margin:0; | |
2389 | padding:0 20px 10px; |
|
2387 | padding:0 20px 10px; | |
2390 | } |
|
2388 | } | |
2391 |
|
2389 | |||
2392 | #content div.box div.form div.fields,#login div.form,#login div.form div.fields,#register div.form,#register div.form div.fields { |
|
2390 | #content div.box div.form div.fields,#login div.form,#login div.form div.fields,#register div.form,#register div.form div.fields { | |
2393 | clear:both; |
|
2391 | clear:both; | |
2394 | overflow:hidden; |
|
2392 | overflow:hidden; | |
2395 | margin:0; |
|
2393 | margin:0; | |
2396 | padding:0; |
|
2394 | padding:0; | |
2397 | } |
|
2395 | } | |
2398 |
|
2396 | |||
2399 | #content div.box div.form div.fields div.field div.label span,#login div.form div.fields div.field div.label span,#register div.form div.fields div.field div.label span { |
|
2397 | #content div.box div.form div.fields div.field div.label span,#login div.form div.fields div.field div.label span,#register div.form div.fields div.field div.label span { | |
2400 | height:1%; |
|
2398 | height:1%; | |
2401 | display:block; |
|
2399 | display:block; | |
2402 | color:#363636; |
|
2400 | color:#363636; | |
2403 | margin:0; |
|
2401 | margin:0; | |
2404 | padding:2px 0 0; |
|
2402 | padding:2px 0 0; | |
2405 | } |
|
2403 | } | |
2406 |
|
2404 | |||
2407 | #content div.box div.form div.fields div.field div.input input.error,#login div.form div.fields div.field div.input input.error,#register div.form div.fields div.field div.input input.error { |
|
2405 | #content div.box div.form div.fields div.field div.input input.error,#login div.form div.fields div.field div.input input.error,#register div.form div.fields div.field div.input input.error { | |
2408 | background:#FBE3E4; |
|
2406 | background:#FBE3E4; | |
2409 | border-top:1px solid #e1b2b3; |
|
2407 | border-top:1px solid #e1b2b3; | |
2410 | border-left:1px solid #e1b2b3; |
|
2408 | border-left:1px solid #e1b2b3; | |
2411 | border-right:1px solid #FBC2C4; |
|
2409 | border-right:1px solid #FBC2C4; | |
2412 | border-bottom:1px solid #FBC2C4; |
|
2410 | border-bottom:1px solid #FBC2C4; | |
2413 | } |
|
2411 | } | |
2414 |
|
2412 | |||
2415 | #content div.box div.form div.fields div.field div.input input.success,#login div.form div.fields div.field div.input input.success,#register div.form div.fields div.field div.input input.success { |
|
2413 | #content div.box div.form div.fields div.field div.input input.success,#login div.form div.fields div.field div.input input.success,#register div.form div.fields div.field div.input input.success { | |
2416 | background:#E6EFC2; |
|
2414 | background:#E6EFC2; | |
2417 | border-top:1px solid #cebb98; |
|
2415 | border-top:1px solid #cebb98; | |
2418 | border-left:1px solid #cebb98; |
|
2416 | border-left:1px solid #cebb98; | |
2419 | border-right:1px solid #c6d880; |
|
2417 | border-right:1px solid #c6d880; | |
2420 | border-bottom:1px solid #c6d880; |
|
2418 | border-bottom:1px solid #c6d880; | |
2421 | } |
|
2419 | } | |
2422 |
|
2420 | |||
2423 | #content div.box-left div.form div.fields div.field div.textarea,#content div.box-right div.form div.fields div.field div.textarea,#content div.box div.form div.fields div.field div.select select,#content div.box table th.selected input,#content div.box table td.selected input { |
|
2421 | #content div.box-left div.form div.fields div.field div.textarea,#content div.box-right div.form div.fields div.field div.textarea,#content div.box div.form div.fields div.field div.select select,#content div.box table th.selected input,#content div.box table td.selected input { | |
2424 | margin:0; |
|
2422 | margin:0; | |
2425 | } |
|
2423 | } | |
2426 |
|
2424 | |||
2427 | #content div.box-left div.form div.fields div.field div.select,#content div.box-left div.form div.fields div.field div.checkboxes,#content div.box-left div.form div.fields div.field div.radios,#content div.box-right div.form div.fields div.field div.select,#content div.box-right div.form div.fields div.field div.checkboxes,#content div.box-right div.form div.fields div.field div.radios{ |
|
2425 | #content div.box-left div.form div.fields div.field div.select,#content div.box-left div.form div.fields div.field div.checkboxes,#content div.box-left div.form div.fields div.field div.radios,#content div.box-right div.form div.fields div.field div.select,#content div.box-right div.form div.fields div.field div.checkboxes,#content div.box-right div.form div.fields div.field div.radios{ | |
2428 | margin:0 0 0 0px !important; |
|
2426 | margin:0 0 0 0px !important; | |
2429 | padding:0; |
|
2427 | padding:0; | |
2430 | } |
|
2428 | } | |
2431 |
|
2429 | |||
2432 | #content div.box div.form div.fields div.field div.select,#content div.box div.form div.fields div.field div.checkboxes,#content div.box div.form div.fields div.field div.radios { |
|
2430 | #content div.box div.form div.fields div.field div.select,#content div.box div.form div.fields div.field div.checkboxes,#content div.box div.form div.fields div.field div.radios { | |
2433 | margin:0 0 0 200px; |
|
2431 | margin:0 0 0 200px; | |
2434 | padding:0; |
|
2432 | padding:0; | |
2435 | } |
|
2433 | } | |
2436 |
|
2434 | |||
2437 |
|
2435 | |||
2438 | #content div.box div.form div.fields div.field div.select a:hover,#content div.box div.form div.fields div.field div.select a.ui-selectmenu:hover,#content div.box div.action a:hover { |
|
2436 | #content div.box div.form div.fields div.field div.select a:hover,#content div.box div.form div.fields div.field div.select a.ui-selectmenu:hover,#content div.box div.action a:hover { | |
2439 | color:#000; |
|
2437 | color:#000; | |
2440 | text-decoration:none; |
|
2438 | text-decoration:none; | |
2441 | } |
|
2439 | } | |
2442 |
|
2440 | |||
2443 | #content div.box div.form div.fields div.field div.select a.ui-selectmenu-focus,#content div.box div.action a.ui-selectmenu-focus { |
|
2441 | #content div.box div.form div.fields div.field div.select a.ui-selectmenu-focus,#content div.box div.action a.ui-selectmenu-focus { | |
2444 | border:1px solid #666; |
|
2442 | border:1px solid #666; | |
2445 | } |
|
2443 | } | |
2446 |
|
2444 | |||
2447 | #content div.box div.form div.fields div.field div.checkboxes div.checkbox,#content div.box div.form div.fields div.field div.radios div.radio { |
|
2445 | #content div.box div.form div.fields div.field div.checkboxes div.checkbox,#content div.box div.form div.fields div.field div.radios div.radio { | |
2448 | clear:both; |
|
2446 | clear:both; | |
2449 | overflow:hidden; |
|
2447 | overflow:hidden; | |
2450 | margin:0; |
|
2448 | margin:0; | |
2451 | padding:8px 0 2px; |
|
2449 | padding:8px 0 2px; | |
2452 | } |
|
2450 | } | |
2453 |
|
2451 | |||
2454 | #content div.box div.form div.fields div.field div.checkboxes div.checkbox input,#content div.box div.form div.fields div.field div.radios div.radio input { |
|
2452 | #content div.box div.form div.fields div.field div.checkboxes div.checkbox input,#content div.box div.form div.fields div.field div.radios div.radio input { | |
2455 | float:left; |
|
2453 | float:left; | |
2456 | margin:0; |
|
2454 | margin:0; | |
2457 | } |
|
2455 | } | |
2458 |
|
2456 | |||
2459 | #content div.box div.form div.fields div.field div.checkboxes div.checkbox label,#content div.box div.form div.fields div.field div.radios div.radio label { |
|
2457 | #content div.box div.form div.fields div.field div.checkboxes div.checkbox label,#content div.box div.form div.fields div.field div.radios div.radio label { | |
2460 | height:1%; |
|
2458 | height:1%; | |
2461 | display:block; |
|
2459 | display:block; | |
2462 | float:left; |
|
2460 | float:left; | |
2463 | margin:2px 0 0 4px; |
|
2461 | margin:2px 0 0 4px; | |
2464 | } |
|
2462 | } | |
2465 |
|
2463 | |||
2466 | div.form div.fields div.field div.button input,#content div.box div.form div.fields div.buttons input,div.form div.fields div.buttons input,#content div.box div.action div.button input { |
|
2464 | div.form div.fields div.field div.button input,#content div.box div.form div.fields div.buttons input,div.form div.fields div.buttons input,#content div.box div.action div.button input { | |
2467 | color:#000; |
|
2465 | color:#000; | |
2468 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; |
|
2466 | font-family:Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif; | |
2469 | font-size:11px; |
|
2467 | font-size:11px; | |
2470 | font-weight:700; |
|
2468 | font-weight:700; | |
2471 | margin:0; |
|
2469 | margin:0; | |
2472 | } |
|
2470 | } | |
2473 |
|
2471 | |||
2474 | div.form div.fields div.field div.button .ui-button,#content div.box div.form div.fields div.buttons input.ui-button { |
|
2472 | div.form div.fields div.field div.button .ui-button,#content div.box div.form div.fields div.buttons input.ui-button { | |
2475 | background:#e5e3e3 url("../images/button.png") repeat-x; |
|
2473 | background:#e5e3e3 url("../images/button.png") repeat-x; | |
2476 | border-top:1px solid #DDD; |
|
2474 | border-top:1px solid #DDD; | |
2477 | border-left:1px solid #c6c6c6; |
|
2475 | border-left:1px solid #c6c6c6; | |
2478 | border-right:1px solid #DDD; |
|
2476 | border-right:1px solid #DDD; | |
2479 | border-bottom:1px solid #c6c6c6; |
|
2477 | border-bottom:1px solid #c6c6c6; | |
2480 | color:#515151; |
|
2478 | color:#515151; | |
2481 | outline:none; |
|
2479 | outline:none; | |
2482 | margin:0; |
|
2480 | margin:0; | |
2483 | padding:6px 12px; |
|
2481 | padding:6px 12px; | |
2484 | } |
|
2482 | } | |
2485 |
|
2483 | |||
2486 | div.form div.fields div.field div.button .ui-state-hover,#content div.box div.form div.fields div.buttons input.ui-state-hover { |
|
2484 | div.form div.fields div.field div.button .ui-state-hover,#content div.box div.form div.fields div.buttons input.ui-state-hover { | |
2487 | background:#b4b4b4 url("../images/button_selected.png") repeat-x; |
|
2485 | background:#b4b4b4 url("../images/button_selected.png") repeat-x; | |
2488 | border-top:1px solid #ccc; |
|
2486 | border-top:1px solid #ccc; | |
2489 | border-left:1px solid #bebebe; |
|
2487 | border-left:1px solid #bebebe; | |
2490 | border-right:1px solid #b1b1b1; |
|
2488 | border-right:1px solid #b1b1b1; | |
2491 | border-bottom:1px solid #afafaf; |
|
2489 | border-bottom:1px solid #afafaf; | |
2492 | color:#515151; |
|
2490 | color:#515151; | |
2493 | outline:none; |
|
2491 | outline:none; | |
2494 | margin:0; |
|
2492 | margin:0; | |
2495 | padding:6px 12px; |
|
2493 | padding:6px 12px; | |
2496 | } |
|
2494 | } | |
2497 |
|
2495 | |||
2498 | div.form div.fields div.field div.highlight,#content div.box div.form div.fields div.buttons div.highlight { |
|
2496 | div.form div.fields div.field div.highlight,#content div.box div.form div.fields div.buttons div.highlight { | |
2499 | display:inline; |
|
2497 | display:inline; | |
2500 | } |
|
2498 | } | |
2501 |
|
2499 | |||
2502 | #content div.box div.form div.fields div.buttons,div.form div.fields div.buttons { |
|
2500 | #content div.box div.form div.fields div.buttons,div.form div.fields div.buttons { | |
2503 | margin:10px 0 0 200px; |
|
2501 | margin:10px 0 0 200px; | |
2504 | padding:0; |
|
2502 | padding:0; | |
2505 | } |
|
2503 | } | |
2506 |
|
2504 | |||
2507 | #content div.box-left div.form div.fields div.buttons,#content div.box-right div.form div.fields div.buttons,div.box-left div.form div.fields div.buttons,div.box-right div.form div.fields div.buttons { |
|
2505 | #content div.box-left div.form div.fields div.buttons,#content div.box-right div.form div.fields div.buttons,div.box-left div.form div.fields div.buttons,div.box-right div.form div.fields div.buttons { | |
2508 | margin:10px 0 0; |
|
2506 | margin:10px 0 0; | |
2509 | } |
|
2507 | } | |
2510 |
|
2508 | |||
2511 | #content div.box table td.user,#content div.box table td.address { |
|
2509 | #content div.box table td.user,#content div.box table td.address { | |
2512 | width:10%; |
|
2510 | width:10%; | |
2513 | text-align:center; |
|
2511 | text-align:center; | |
2514 | } |
|
2512 | } | |
2515 |
|
2513 | |||
2516 | #content div.box div.action div.button,#login div.form div.fields div.field div.input div.link,#register div.form div.fields div.field div.input div.link { |
|
2514 | #content div.box div.action div.button,#login div.form div.fields div.field div.input div.link,#register div.form div.fields div.field div.input div.link { | |
2517 | text-align:right; |
|
2515 | text-align:right; | |
2518 | margin:6px 0 0; |
|
2516 | margin:6px 0 0; | |
2519 | padding:0; |
|
2517 | padding:0; | |
2520 | } |
|
2518 | } | |
2521 |
|
2519 | |||
2522 | #content div.box div.action div.button input.ui-button,#login div.form div.fields div.buttons input.ui-button,#register div.form div.fields div.buttons input.ui-button { |
|
2520 | #content div.box div.action div.button input.ui-button,#login div.form div.fields div.buttons input.ui-button,#register div.form div.fields div.buttons input.ui-button { | |
2523 | background:#e5e3e3 url("../images/button.png") repeat-x; |
|
2521 | background:#e5e3e3 url("../images/button.png") repeat-x; | |
2524 | border-top:1px solid #DDD; |
|
2522 | border-top:1px solid #DDD; | |
2525 | border-left:1px solid #c6c6c6; |
|
2523 | border-left:1px solid #c6c6c6; | |
2526 | border-right:1px solid #DDD; |
|
2524 | border-right:1px solid #DDD; | |
2527 | border-bottom:1px solid #c6c6c6; |
|
2525 | border-bottom:1px solid #c6c6c6; | |
2528 | color:#515151; |
|
2526 | color:#515151; | |
2529 | margin:0; |
|
2527 | margin:0; | |
2530 | padding:6px 12px; |
|
2528 | padding:6px 12px; | |
2531 | } |
|
2529 | } | |
2532 |
|
2530 | |||
2533 | #content div.box div.action div.button input.ui-state-hover,#login div.form div.fields div.buttons input.ui-state-hover,#register div.form div.fields div.buttons input.ui-state-hover { |
|
2531 | #content div.box div.action div.button input.ui-state-hover,#login div.form div.fields div.buttons input.ui-state-hover,#register div.form div.fields div.buttons input.ui-state-hover { | |
2534 | background:#b4b4b4 url("../images/button_selected.png") repeat-x; |
|
2532 | background:#b4b4b4 url("../images/button_selected.png") repeat-x; | |
2535 | border-top:1px solid #ccc; |
|
2533 | border-top:1px solid #ccc; | |
2536 | border-left:1px solid #bebebe; |
|
2534 | border-left:1px solid #bebebe; | |
2537 | border-right:1px solid #b1b1b1; |
|
2535 | border-right:1px solid #b1b1b1; | |
2538 | border-bottom:1px solid #afafaf; |
|
2536 | border-bottom:1px solid #afafaf; | |
2539 | color:#515151; |
|
2537 | color:#515151; | |
2540 | margin:0; |
|
2538 | margin:0; | |
2541 | padding:6px 12px; |
|
2539 | padding:6px 12px; | |
2542 | } |
|
2540 | } | |
2543 |
|
2541 | |||
2544 | #content div.box div.pagination div.results,#content div.box div.pagination-wh div.results { |
|
2542 | #content div.box div.pagination div.results,#content div.box div.pagination-wh div.results { | |
2545 | text-align:left; |
|
2543 | text-align:left; | |
2546 | float:left; |
|
2544 | float:left; | |
2547 | margin:0; |
|
2545 | margin:0; | |
2548 | padding:0; |
|
2546 | padding:0; | |
2549 | } |
|
2547 | } | |
2550 |
|
2548 | |||
2551 | #content div.box div.pagination div.results span,#content div.box div.pagination-wh div.results span { |
|
2549 | #content div.box div.pagination div.results span,#content div.box div.pagination-wh div.results span { | |
2552 | height:1%; |
|
2550 | height:1%; | |
2553 | display:block; |
|
2551 | display:block; | |
2554 | float:left; |
|
2552 | float:left; | |
2555 | background:#ebebeb url("../images/pager.png") repeat-x; |
|
2553 | background:#ebebeb url("../images/pager.png") repeat-x; | |
2556 | border-top:1px solid #dedede; |
|
2554 | border-top:1px solid #dedede; | |
2557 | border-left:1px solid #cfcfcf; |
|
2555 | border-left:1px solid #cfcfcf; | |
2558 | border-right:1px solid #c4c4c4; |
|
2556 | border-right:1px solid #c4c4c4; | |
2559 | border-bottom:1px solid #c4c4c4; |
|
2557 | border-bottom:1px solid #c4c4c4; | |
2560 | color:#4A4A4A; |
|
2558 | color:#4A4A4A; | |
2561 | font-weight:700; |
|
2559 | font-weight:700; | |
2562 | margin:0; |
|
2560 | margin:0; | |
2563 | padding:6px 8px; |
|
2561 | padding:6px 8px; | |
2564 | } |
|
2562 | } | |
2565 |
|
2563 | |||
2566 | #content div.box div.pagination ul.pager li.disabled,#content div.box div.pagination-wh a.disabled { |
|
2564 | #content div.box div.pagination ul.pager li.disabled,#content div.box div.pagination-wh a.disabled { | |
2567 | color:#B4B4B4; |
|
2565 | color:#B4B4B4; | |
2568 | padding:6px; |
|
2566 | padding:6px; | |
2569 | } |
|
2567 | } | |
2570 |
|
2568 | |||
2571 | #login,#register { |
|
2569 | #login,#register { | |
2572 | width:520px; |
|
2570 | width:520px; | |
2573 | margin:10% auto 0; |
|
2571 | margin:10% auto 0; | |
2574 | padding:0; |
|
2572 | padding:0; | |
2575 | } |
|
2573 | } | |
2576 |
|
2574 | |||
2577 | #login div.color,#register div.color { |
|
2575 | #login div.color,#register div.color { | |
2578 | clear:both; |
|
2576 | clear:both; | |
2579 | overflow:hidden; |
|
2577 | overflow:hidden; | |
2580 | background:#FFF; |
|
2578 | background:#FFF; | |
2581 | margin:10px auto 0; |
|
2579 | margin:10px auto 0; | |
2582 | padding:3px 3px 3px 0; |
|
2580 | padding:3px 3px 3px 0; | |
2583 | } |
|
2581 | } | |
2584 |
|
2582 | |||
2585 | #login div.color a,#register div.color a { |
|
2583 | #login div.color a,#register div.color a { | |
2586 | width:20px; |
|
2584 | width:20px; | |
2587 | height:20px; |
|
2585 | height:20px; | |
2588 | display:block; |
|
2586 | display:block; | |
2589 | float:left; |
|
2587 | float:left; | |
2590 | margin:0 0 0 3px; |
|
2588 | margin:0 0 0 3px; | |
2591 | padding:0; |
|
2589 | padding:0; | |
2592 | } |
|
2590 | } | |
2593 |
|
2591 | |||
2594 | #login div.title h5,#register div.title h5 { |
|
2592 | #login div.title h5,#register div.title h5 { | |
2595 | color:#fff; |
|
2593 | color:#fff; | |
2596 | margin:10px; |
|
2594 | margin:10px; | |
2597 | padding:0; |
|
2595 | padding:0; | |
2598 | } |
|
2596 | } | |
2599 |
|
2597 | |||
2600 | #login div.form div.fields div.field,#register div.form div.fields div.field { |
|
2598 | #login div.form div.fields div.field,#register div.form div.fields div.field { | |
2601 | clear:both; |
|
2599 | clear:both; | |
2602 | overflow:hidden; |
|
2600 | overflow:hidden; | |
2603 | margin:0; |
|
2601 | margin:0; | |
2604 | padding:0 0 10px; |
|
2602 | padding:0 0 10px; | |
2605 | } |
|
2603 | } | |
2606 |
|
2604 | |||
2607 | #login div.form div.fields div.field span.error-message,#register div.form div.fields div.field span.error-message { |
|
2605 | #login div.form div.fields div.field span.error-message,#register div.form div.fields div.field span.error-message { | |
2608 | height:1%; |
|
2606 | height:1%; | |
2609 | display:block; |
|
2607 | display:block; | |
2610 | color:red; |
|
2608 | color:red; | |
2611 | margin:8px 0 0; |
|
2609 | margin:8px 0 0; | |
2612 | padding:0; |
|
2610 | padding:0; | |
2613 | max-width: 320px; |
|
2611 | max-width: 320px; | |
2614 | } |
|
2612 | } | |
2615 |
|
2613 | |||
2616 | #login div.form div.fields div.field div.label label,#register div.form div.fields div.field div.label label { |
|
2614 | #login div.form div.fields div.field div.label label,#register div.form div.fields div.field div.label label { | |
2617 | color:#000; |
|
2615 | color:#000; | |
2618 | font-weight:700; |
|
2616 | font-weight:700; | |
2619 | } |
|
2617 | } | |
2620 |
|
2618 | |||
2621 | #login div.form div.fields div.field div.input,#register div.form div.fields div.field div.input { |
|
2619 | #login div.form div.fields div.field div.input,#register div.form div.fields div.field div.input { | |
2622 | float:left; |
|
2620 | float:left; | |
2623 | margin:0; |
|
2621 | margin:0; | |
2624 | padding:0; |
|
2622 | padding:0; | |
2625 | } |
|
2623 | } | |
2626 |
|
2624 | |||
2627 | #login div.form div.fields div.field div.checkbox,#register div.form div.fields div.field div.checkbox { |
|
2625 | #login div.form div.fields div.field div.checkbox,#register div.form div.fields div.field div.checkbox { | |
2628 | margin:0 0 0 184px; |
|
2626 | margin:0 0 0 184px; | |
2629 | padding:0; |
|
2627 | padding:0; | |
2630 | } |
|
2628 | } | |
2631 |
|
2629 | |||
2632 | #login div.form div.fields div.field div.checkbox label,#register div.form div.fields div.field div.checkbox label { |
|
2630 | #login div.form div.fields div.field div.checkbox label,#register div.form div.fields div.field div.checkbox label { | |
2633 | color:#565656; |
|
2631 | color:#565656; | |
2634 | font-weight:700; |
|
2632 | font-weight:700; | |
2635 | } |
|
2633 | } | |
2636 |
|
2634 | |||
2637 | #login div.form div.fields div.buttons input,#register div.form div.fields div.buttons input { |
|
2635 | #login div.form div.fields div.buttons input,#register div.form div.fields div.buttons input { | |
2638 | color:#000; |
|
2636 | color:#000; | |
2639 | font-size:1em; |
|
2637 | font-size:1em; | |
2640 | font-weight:700; |
|
2638 | font-weight:700; | |
2641 | font-family:Verdana, Helvetica, Sans-Serif; |
|
2639 | font-family:Verdana, Helvetica, Sans-Serif; | |
2642 | margin:0; |
|
2640 | margin:0; | |
2643 | } |
|
2641 | } | |
2644 |
|
2642 | |||
2645 | #changeset_content .container .wrapper,#graph_content .container .wrapper { |
|
2643 | #changeset_content .container .wrapper,#graph_content .container .wrapper { | |
2646 | width:600px; |
|
2644 | width:600px; | |
2647 | } |
|
2645 | } | |
2648 |
|
2646 | |||
2649 | #changeset_content .container .left,#graph_content .container .left { |
|
2647 | #changeset_content .container .left,#graph_content .container .left { | |
2650 | float:left; |
|
2648 | float:left; | |
2651 | width:70%; |
|
2649 | width:70%; | |
2652 | padding-left:5px; |
|
2650 | padding-left:5px; | |
2653 | } |
|
2651 | } | |
2654 |
|
2652 | |||
2655 | #changeset_content .container .left .date,.ac .match { |
|
2653 | #changeset_content .container .left .date,.ac .match { | |
2656 | font-weight:700; |
|
2654 | font-weight:700; | |
2657 | padding-top: 5px; |
|
2655 | padding-top: 5px; | |
2658 | padding-bottom:5px; |
|
2656 | padding-bottom:5px; | |
2659 | } |
|
2657 | } | |
2660 |
|
2658 | |||
2661 | div#legend_container table td,div#legend_choices table td { |
|
2659 | div#legend_container table td,div#legend_choices table td { | |
2662 | border:none !important; |
|
2660 | border:none !important; | |
2663 | height:20px !important; |
|
2661 | height:20px !important; | |
2664 | padding:0 !important; |
|
2662 | padding:0 !important; | |
2665 | } |
|
2663 | } | |
2666 |
|
2664 | |||
2667 | #q_filter{ |
|
2665 | #q_filter{ | |
2668 | border:0 none; |
|
2666 | border:0 none; | |
2669 | color:#AAAAAA; |
|
2667 | color:#AAAAAA; | |
2670 | margin-bottom:-4px; |
|
2668 | margin-bottom:-4px; | |
2671 | margin-top:-4px; |
|
2669 | margin-top:-4px; | |
2672 | padding-left:3px; |
|
2670 | padding-left:3px; | |
2673 | } |
|
2671 | } | |
2674 |
|
2672 |
1 | NO CONTENT: modified file |
|
NO CONTENT: modified file | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: modified file |
|
NO CONTENT: modified file | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: modified file |
|
NO CONTENT: modified file | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: modified file |
|
NO CONTENT: modified file | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: modified file |
|
NO CONTENT: modified file | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: modified file |
|
NO CONTENT: modified file | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: modified file |
|
NO CONTENT: modified file | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
This diff has been collapsed as it changes many lines, (1396 lines changed) Show them Hide them |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
This diff has been collapsed as it changes many lines, (1392 lines changed) Show them Hide them |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
The requested commit or file is too big and content was truncated. Show full diff |
General Comments 0
You need to be logged in to leave comments.
Login now