rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
logError: function(text)
|
logError: function(message)
|
logError: function(text) { var ret = xcall.invoke( 'text = "' + text + '", xcall = { function = logError }'); var parsedRet = parseStore(ret); return isset(parsedRet) && isset(parsedRet.success) && parsedRet.success > 0; },
|
'text = "' + text + '", xcall = { function = logError }');
|
'message = "' + message + '", xcall = { function = logError }');
|
logError: function(text) { var ret = xcall.invoke( 'text = "' + text + '", xcall = { function = logError }'); var parsedRet = parseStore(ret); return isset(parsedRet) && isset(parsedRet.success) && parsedRet.success > 0; },
|
alert("error(s) encountered casting your vote:\n" + errors);
|
alert("login attempt failed:\n" + errors);
|
function loginFinished(req, form) { if(!req.responseXML || !req.responseXML.documentElement) { alert("Error:\n" + req.responseText); return; } var response = req.responseXML.documentElement; if(response.attributes.getNamedItem("result").value.toLowerCase() != "success") { var errors = ""; for(var error = response.firstChild; error; error = error.nextSibling) if(error.firstChild) // it will find the line breaks errors += "\n" + error.firstChild.nodeValue; alert("error(s) encountered casting your vote:\n" + errors); return; } // login worked, so reload the current page window.location.reload();}
|
'info = "' + text + '", xcall = { function = logInfo }');
|
'text = "' + text + '", xcall = { function = logInfo }');
|
logInfo: function(text) { var ret = xcall.invoke( 'info = "' + text + '", xcall = { function = logInfo }'); var parsedRet = parseStore(ret); return isset(parsedRet) && isset(parsedRet.success) && parsedRet.success > 0; },
|
logInfo: function(text)
|
logInfo: function(message)
|
logInfo: function(text) { var ret = xcall.invoke( 'text = "' + text + '", xcall = { function = logInfo }'); var parsedRet = parseStore(ret); return isset(parsedRet) && isset(parsedRet.success) && parsedRet.success > 0; },
|
'text = "' + text + '", xcall = { function = logInfo }');
|
'message = "' + message + '", xcall = { function = logInfo }');
|
logInfo: function(text) { var ret = xcall.invoke( 'text = "' + text + '", xcall = { function = logInfo }'); var parsedRet = parseStore(ret); return isset(parsedRet) && isset(parsedRet.success) && parsedRet.success > 0; },
|
'warning = "' + text + '", xcall = { function = logWarning }');
|
'text = "' + text + '", xcall = { function = logWarning }');
|
logWarning: function(text) { var ret = xcall.invoke( 'warning = "' + text + '", xcall = { function = logWarning }'); var parsedRet = parseStore(ret); return true; },
|
return true;
|
return isset(parsedRet) && isset(parsedRet.success) && parsedRet.success > 0;
|
logWarning: function(text) { var ret = xcall.invoke( 'warning = "' + text + '", xcall = { function = logWarning }'); var parsedRet = parseStore(ret); return true; },
|
logWarning: function(text)
|
logWarning: function(message)
|
logWarning: function(text) { var ret = xcall.invoke( 'text = "' + text + '", xcall = { function = logWarning }'); var parsedRet = parseStore(ret); return isset(parsedRet) && isset(parsedRet.success) && parsedRet.success > 0; },
|
'text = "' + text + '", xcall = { function = logWarning }');
|
'message = "' + message + '", xcall = { function = logWarning }');
|
logWarning: function(text) { var ret = xcall.invoke( 'text = "' + text + '", xcall = { function = logWarning }'); var parsedRet = parseStore(ret); return isset(parsedRet) && isset(parsedRet.success) && parsedRet.success > 0; },
|
(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
|
"`").replace(Ma,"&")}function ma(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this,
|
(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
|
utils.iter.reduce(this, function (p, c, idx, list, next) {
|
iter.reduce(this, function (p, c, idx, list, next) {
|
function make_nodelist() { var node_list = []; node_list.evaluate = function (context, callback) { utils.iter.reduce(this, function (p, c, idx, list, next) { c(context, function (error, result) { next(error, p + result); }); }, '', callback); }; node_list.only_types = function (/*args*/) { var args = Array.prototype.slice.apply(arguments); return this.filter( function (x) { return args.indexOf(x.type) > -1; } ); }; node_list.append = function (node, type) { node.type = type; this.push(node); }; return node_list;}
|
try { view.apply(null, args); } catch (e) { debuginfo.last_e = e; show_500(req, res, e); }
|
read_arguments(req, function (error) { if (error) { return show_500(req, res, error); } try { view.apply(null, args); } catch (e) { debuginfo.last_e = e; show_500(req, res, e); } });
|
exports.makeApp = function(urls, options) { // Compile the regular expressions var compiled = urls.map(function(pair) { return [new RegExp(pair[0]), pair[1]]; }); options = options || {}; var show_404 = (options.show_404 || default_show_404); var show_500 = (options.show_500 || default_show_500); var app = function(req, res) { debuginfo.last_request = req; debuginfo.last_response = res; var path = url.parse(req.url)["pathname"]; var view = show_404; var args = [req, res]; for (var pair, i = 0; pair = compiled[i]; i++) { //sys.puts("Matching " + pair[0] + " against path " + path); var match = pair[0](path); if (match) { //sys.puts(" matched! " + match); // Add matched bits to args match.slice(1).forEach(function(arg) { args.push(arg); }); view = pair[1]; break; } } try { view.apply(null, args); } catch (e) { debuginfo.last_e = e; show_500(req, res, e); } } app.urls = {}; urls.forEach(function (item) { app.urls[item[2]] = item[0]; }); return app;}
|
d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===
|
z,j[z])===false)break}else for(v=j[0];H<G&&s.call(v,H,v)!==false;v=j[++H]);return j},trim:O?function(j){return j==null?"":O.call(j)}:function(j){return j==null?"":j.toString().replace(k,"").replace(o,"")},makeArray:function(j,s){var v=s||[];if(j!=null){var z=b.type(j);j.length==null||z==="string"||z==="function"||z==="regexp"||b.isWindow(j)?M.call(v,j):b.merge(v,j)}return v},inArray:function(j,s){if(s.indexOf)return s.indexOf(j);for(var v=0,z=s.length;v<z;v++)if(s[v]===j)return v;return-1},merge:function(j,
|
d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===
|
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
|
-1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false;
|
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
|
g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
|
l;g.sort(w);if(h)for(var i=1;i<g.length;i++)g[i]===g[i-1]&&g.splice(i--,1)}return g};k.matches=function(g,i){return k(g,null,null,i)};k.matchesSelector=function(g,i){return k(i,null,null,[g]).length>0};k.find=function(g,i,n){var m;if(!g)return[];for(var p=0,q=o.order.length;p<q;p++){var u,y=o.order[p];if(u=o.leftMatch[y].exec(g)){var F=u[1];u.splice(1,1);if(F.substr(F.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");m=o.find[y](u,i,n);if(m!=null){g=g.replace(o.match[y],"");break}}}}m||(m=i.getElementsByTagName("*"));
|
g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
|
a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
|
z,j[z])===false)break}else for(v=j[0];H<G&&s.call(v,H,v)!==false;v=j[++H]);return j},trim:O?function(j){return j==null?"":O.call(j)}:function(j){return j==null?"":j.toString().replace(k,"").replace(o,"")},makeArray:function(j,s){var v=s||[];if(j!=null){var z=b.type(j);j.length==null||z==="string"||z==="function"||z==="regexp"||b.isWindow(j)?M.call(v,j):b.merge(v,j)}return v},inArray:function(j,s){if(s.indexOf)return s.indexOf(j);for(var v=0,z=s.length;v<z;v++)if(s[v]===j)return v;return-1},merge:function(j, s){var v=j.length,z=0;if(typeof s.length==="number")for(var H=s.length;z<H;z++)j[v++]=s[z];else for(;s[z]!==B;)j[v++]=s[z++];j.length=v;return j},grep:function(j,s,v){var z=[],H;v=!!v;for(var G=0,K=j.length;G<K;G++){H=!!s(j[G],G);v!==H&&z.push(j[G])}return z},map:function(j,s,v){for(var z=[],H,G=0,K=j.length;G<K;G++){H=s(j[G],G,v);if(H!=null)z[z.length]=H}return z.concat.apply([],z)},guid:1,proxy:function(j,s,v){if(arguments.length===2)if(typeof s==="string"){v=j;j=v[s];s=B}else if(s&&!b.isFunction(s)){v=
|
a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
|
stop_offset = stopMakerDiv.offset();
|
function mkStop(n, color, opac, sel, stop_elem) { var stop = stop_elem || mkElem('stop',{'stop-color':color,'stop-opacity':opac,offset:n}, curGradient); if(stop_elem) { color = stop_elem.getAttribute('stop-color'); opac = stop_elem.getAttribute('stop-opacity'); n = stop_elem.getAttribute('offset'); } else { curGradient.appendChild(stop); } if(opac === null) opac = 1; var picker_d = 'M-6.2,0.9c3.6-4,6.7-4.3,6.7-12.4c-0.2,7.9,3.1,8.8,6.5,12.4c3.5,3.8,2.9,9.6,0,12.3c-3.1,2.8-10.4,2.7-13.2,0C-9.6,9.9-9.4,4.4-6.2,0.9z'; var pathbg = mkElem('path',{ d: picker_d, fill: 'url(#jGraduate_trans)', transform: 'translate(' + (10 + n * MAX) + ', 26)' }, stopGroup); var path = mkElem('path',{ d: picker_d, fill: color, 'fill-opacity': opac, transform: 'translate(' + (10 + n * MAX) + ', 26)', stroke: '#000', 'stroke-width': 1.5 }, stopGroup); $(path).mousedown(function(e) { selectStop(this); drag = cur_stop; $win.mousemove(dragColor).mouseup(remDrags); e.preventDefault(); return false; }).data('stop', stop).data('bg', pathbg).dblclick(function() { $('div.jGraduate_LightBox').show(); var colorhandle = this; var stopOpacity = +stop.getAttribute('stop-opacity') || 1; var stopColor = stop.getAttribute('stop-color') || 1; var thisAlpha = (parseFloat(stopOpacity)*255).toString(16); while (thisAlpha.length < 2) { thisAlpha = "0" + thisAlpha; } color = stopColor.substr(1) + thisAlpha; $('#'+id+'_jGraduate_stopPicker').css({'left': 100, 'bottom': 15}).jPicker({ window: { title: "Pick the start color and opacity for the gradient" }, images: { clientPath: $settings.images.clientPath }, color: { active: color, alphaSupport: true } }, function(color, arg2){ stopColor = color.val('hex') ? ('#'+color.val('hex')) : "none"; stopOpacity = color.val('a') !== null ? color.val('a')/256 : 1; colorhandle.setAttribute('fill', stopColor); colorhandle.setAttribute('fill-opacity', stopOpacity); stop.setAttribute('stop-color', stopColor); stop.setAttribute('stop-opacity', stopOpacity); $('div.jGraduate_LightBox').hide(); $('#'+id+'_jGraduate_stopPicker').hide(); }, null, function() { $('div.jGraduate_LightBox').hide(); $('#'+id+'_jGraduate_stopPicker').hide(); }); }); $(curGradient).find('stop').each(function() { var cur_s = $(this); if(+this.getAttribute('offset') > n) { if(!color) { var newcolor = this.getAttribute('stop-color'); var newopac = this.getAttribute('stop-opacity'); stop.setAttribute('stop-color', newcolor); path.setAttribute('fill', newcolor); stop.setAttribute('stop-opacity', newopac === null ? 1 : newopac); path.setAttribute('fill-opacity', newopac === null ? 1 : newopac); } cur_s.before(stop); return false; } }); if(sel) selectStop(path); return stop; }
|
|
if (! ORBEON.util.Dom.hasClass(document.body, "xforms-disable-hint-as-tooltip")
|
if (! YAHOO.util.Dom.hasClass(document.body, "xforms-disable-hint-as-tooltip")
|
mouseout: function(event) { var target = ORBEON.xforms.Events._findParentXFormsControl(YAHOO.util.Event.getTarget(event)); if (target != null) { // Send the mouseout event to the YUI tooltip to handle the case where: (1) we get the mouseover event, (2) we // create a YUI tooltip, (3) the mouseout happens before the YUI dialog got a chance to register its listener // on mouseout, (4) the YUI dialog is only dismissed after autodismissdelay (5 seconds) leaving a trail. var yuiTooltip = ORBEON.xforms.Globals.hintTooltipForControl[target.id]; if (! ORBEON.util.Dom.hasClass(document.body, "xforms-disable-hint-as-tooltip") && YAHOO.lang.isObject(yuiTooltip)) { yuiTooltip.onContextMouseOut.call(target.id, event, yuiTooltip); } } },
|
if (ORBEON.util.Dom.hasClass(target, "xforms-dialog-appearance-minimal")) {
|
var yuiTooltip = ORBEON.xforms.Globals.hintTooltipForControl[target.id]; if (! ORBEON.util.Dom.hasClass(document.body, "xforms-disable-hint-as-tooltip") && YAHOO.lang.isObject(yuiTooltip)) { yuiTooltip.onContextMouseOut.call(target.id, event, yuiTooltip);
|
mouseout: function(event) { var target = ORBEON.xforms.Events._findParentXFormsControl(YAHOO.util.Event.getTarget(event)); if (target != null) { if (ORBEON.util.Dom.hasClass(target, "xforms-dialog-appearance-minimal")) { // Minimal dialog: register listener to maybe close the dialog// ORBEON.xforms.Globals.dialogMinimalLastMouseOut[yuiDialog.element.id] = new Date().getTime();// window.setTimeout(function() {// ORBEON.xforms.Events.dialogMinimalCheckMouseIn(yuiDialog);// },// XFORMS_DELAY_BEFORE_CLOSE_MINIMAL_DIALOG_IN_MS); } } },
|
this._trigger("blur");this.active=null}},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(a,b,c){if(this.active){a=this.active[a+"All"](".ui-menu-item").eq(0);a.length?this.activate(c,a):this.activate(c,this.element.children(b))}else this.activate(c, this.element.children(b))},nextPage:function(a){if(this.hasScroll())if(!this.active||this.last())this.activate(a,this.element.children(":first"));else{var b=this.active.offset().top,c=this.element.height(),d=this.element.children("li").filter(function(){var f=e(this).offset().top-b-c+e(this).height();return f<10&&f>-10});d.length||(d=this.element.children(":last"));this.activate(a,d)}else this.activate(a,this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(a){if(this.hasScroll())if(!this.active||
|
deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(a,b,f){if(this.active){a=this.active[a+"All"](".ui-menu-item").eq(0); a.length?this.activate(f,a):this.activate(f,this.element.children(b))}else this.activate(f,this.element.children(b))},nextPage:function(a){if(this.hasScroll())if(!this.active||this.last())this.activate(a,this.element.children(".ui-menu-item:first"));else{var b=this.active.offset().top,f=this.element.height(),c=this.element.children(".ui-menu-item").filter(function(){var d=e(this).offset().top-b-f+e(this).height();return d<10&&d>-10});c.length||(c=this.element.children(".ui-menu-item:last"));this.activate(a,
|
this._trigger("blur");this.active=null}},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(a,b,c){if(this.active){a=this.active[a+"All"](".ui-menu-item").eq(0);a.length?this.activate(c,a):this.activate(c,this.element.children(b))}else this.activate(c,this.element.children(b))},nextPage:function(a){if(this.hasScroll())if(!this.active||this.last())this.activate(a,this.element.children(":first"));else{var b=this.active.offset().top,c=this.element.height(),d=this.element.children("li").filter(function(){var f=e(this).offset().top-b-c+e(this).height();return f<10&&f>-10});d.length||(d=this.element.children(":last"));this.activate(a,d)}else this.activate(a,this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(a){if(this.hasScroll())if(!this.active||
|
id: shared.keys.getItemPropertyKey(itemID, prop)
|
id: shared.keys.getItemPropertyKey(itemID, resolved.property)
|
this.mutate = function(op, id, prop, args) { var resolved = this._resolveCachedPropertyChain(id, prop), itemID = this._getItemID(resolved.id) var mutation = { op: op, args: args, prop: resolved.property, id: shared.keys.getItemPropertyKey(itemID, prop) // this should be called key } if (itemID != this._localID) { this.send('FIN_REQUEST_MUTATE', mutation) } this._handleMutation(mutation) }
|
var itemId = mutation.id, propName = mutation.prop,
|
var key = mutation.id, propName = shared.keys.getKeyInfo(key).property,
|
this.mutateItem = function(mutation, originConnection, callback) { var itemId = mutation.id, propName = mutation.prop, operation = this._operationMap[mutation.op], args = Array.prototype.slice.call(mutation.args, 0) connId = originConnection.getId(), mutationBytes = connId.length + connId + JSON.stringify(mutation), args.unshift(shared.keys.getItemPropertyKey(itemId, propName)) logger.log('Apply and publish mutation', operation, args) if (callback) { args.push(callback) } this._redisClient[operation].apply(this._redisClient, args) // TODO clients should subscribe against pattern channels, // e.g. for item props *:1@type:* and for prop channels *:#type:* // mutations then come with a single publication channel, // e.g. :1@type:#type: for a mutation that changes the type of item 1 var itemPropChannel = shared.keys.getItemPropertyChannel(itemId, propName) var propChannel = shared.keys.getPropertyChannel(propName) this._redisClient.publish(itemPropChannel, mutationBytes) this._redisClient.publish(propChannel, mutationBytes) }
|
mutationBytes = connId.length + connId + JSON.stringify(mutation),
|
mutationBytes = connId.length + connId + JSON.stringify(mutation)
|
this.mutateItem = function(mutation, originConnection, callback) { var itemId = mutation.id, propName = mutation.prop, operation = this._operationMap[mutation.op], args = Array.prototype.slice.call(mutation.args, 0) connId = originConnection.getId(), mutationBytes = connId.length + connId + JSON.stringify(mutation), args.unshift(shared.keys.getItemPropertyKey(itemId, propName)) logger.log('Apply and publish mutation', operation, args) if (callback) { args.push(callback) } this._redisClient[operation].apply(this._redisClient, args) // TODO clients should subscribe against pattern channels, // e.g. for item props *:1@type:* and for prop channels *:#type:* // mutations then come with a single publication channel, // e.g. :1@type:#type: for a mutation that changes the type of item 1 var itemPropChannel = shared.keys.getItemPropertyChannel(itemId, propName) var propChannel = shared.keys.getPropertyChannel(propName) this._redisClient.publish(itemPropChannel, mutationBytes) this._redisClient.publish(propChannel, mutationBytes) }
|
args.unshift(shared.keys.getItemPropertyKey(itemId, propName))
|
args.unshift(key)
|
this.mutateItem = function(mutation, originConnection, callback) { var itemId = mutation.id, propName = mutation.prop, operation = this._operationMap[mutation.op], args = Array.prototype.slice.call(mutation.args, 0) connId = originConnection.getId(), mutationBytes = connId.length + connId + JSON.stringify(mutation), args.unshift(shared.keys.getItemPropertyKey(itemId, propName)) logger.log('Apply and publish mutation', operation, args) if (callback) { args.push(callback) } this._redisClient[operation].apply(this._redisClient, args) // TODO clients should subscribe against pattern channels, // e.g. for item props *:1@type:* and for prop channels *:#type:* // mutations then come with a single publication channel, // e.g. :1@type:#type: for a mutation that changes the type of item 1 var itemPropChannel = shared.keys.getItemPropertyChannel(itemId, propName) var propChannel = shared.keys.getPropertyChannel(propName) this._redisClient.publish(itemPropChannel, mutationBytes) this._redisClient.publish(propChannel, mutationBytes) }
|
var itemPropChannel = shared.keys.getItemPropertyChannel(itemId, propName)
|
this.mutateItem = function(mutation, originConnection, callback) { var itemId = mutation.id, propName = mutation.prop, operation = this._operationMap[mutation.op], args = Array.prototype.slice.call(mutation.args, 0) connId = originConnection.getId(), mutationBytes = connId.length + connId + JSON.stringify(mutation), args.unshift(shared.keys.getItemPropertyKey(itemId, propName)) logger.log('Apply and publish mutation', operation, args) if (callback) { args.push(callback) } this._redisClient[operation].apply(this._redisClient, args) // TODO clients should subscribe against pattern channels, // e.g. for item props *:1@type:* and for prop channels *:#type:* // mutations then come with a single publication channel, // e.g. :1@type:#type: for a mutation that changes the type of item 1 var itemPropChannel = shared.keys.getItemPropertyChannel(itemId, propName) var propChannel = shared.keys.getPropertyChannel(propName) this._redisClient.publish(itemPropChannel, mutationBytes) this._redisClient.publish(propChannel, mutationBytes) }
|
|
this._redisClient.publish(itemPropChannel, mutationBytes)
|
this._redisClient.publish(key, mutationBytes)
|
this.mutateItem = function(mutation, originConnection, callback) { var itemId = mutation.id, propName = mutation.prop, operation = this._operationMap[mutation.op], args = Array.prototype.slice.call(mutation.args, 0) connId = originConnection.getId(), mutationBytes = connId.length + connId + JSON.stringify(mutation), args.unshift(shared.keys.getItemPropertyKey(itemId, propName)) logger.log('Apply and publish mutation', operation, args) if (callback) { args.push(callback) } this._redisClient[operation].apply(this._redisClient, args) // TODO clients should subscribe against pattern channels, // e.g. for item props *:1@type:* and for prop channels *:#type:* // mutations then come with a single publication channel, // e.g. :1@type:#type: for a mutation that changes the type of item 1 var itemPropChannel = shared.keys.getItemPropertyChannel(itemId, propName) var propChannel = shared.keys.getPropertyChannel(propName) this._redisClient.publish(itemPropChannel, mutationBytes) this._redisClient.publish(propChannel, mutationBytes) }
|
16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return m.transparent;return m[f.trim(c).toLowerCase()]}function r(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return l(b)}function n(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle, a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function o(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in s||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function t(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d=
|
a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+c}},se:function(b,a,c){return d.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return d.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return d.extend(this._change.n.apply(this,
|
16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return m.transparent;return m[f.trim(c).toLowerCase()]}function r(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return l(b)}function n(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function o(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in s||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function t(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d=
|
e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
|
"`").replace(Ma,"&")}function ma(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this, e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a,
|
e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
|
h=h.toLowerCase();q=b}q("parentNode",h,l,g,p,k)},"~":function(g,h,k){var l=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,l,g,p,k)}},find:{ID:function(g,h,k){if(typeof h.getElementById!=="undefined"&&!k)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var k=[];h=h.getElementsByName(g[1]);for(var l=0,q=h.length;l<q;l++)h[l].getAttribute("name")===g[1]&&k.push(h[l]);return k.length===0?null:k}},
|
l?p.parentNode:p.parentNode===h;l&&k.filter(h,g,true)}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[]; h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},
|
h=h.toLowerCase();q=b}q("parentNode",h,l,g,p,k)},"~":function(g,h,k){var l=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,l,g,p,k)}},find:{ID:function(g,h,k){if(typeof h.getElementById!=="undefined"&&!k)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var k=[];h=h.getElementsByName(g[1]);for(var l=0,q=h.length;l<q;l++)h[l].getAttribute("name")===g[1]&&k.push(h[l]);return k.length===0?null:k}},
|
for (var icol = 0; icol < this.headerColumns.length; icol++) { var headerColumn = this.headerColumns[icol]; if (headerColumn.parentNode === null) { return true; } var divs = YAHOO.util.Dom.getElementsByClassName('yui-dt-liner', 'div', headerColumn); if (divs.length > 0) { var div = divs[0]; if (div === undefined) { return true; } else { var className = 'dt-' + this.id + '-col-' + (icol + 1); if (div.style.width === "" && ! YAHOO.util.Dom.hasClass(div, className)) { return true; } } } } return false;
|
needsRedraw: function() { return this.headerColumns[0].parentNode === null; for (var icol = 0; icol < this.headerColumns.length; icol++) { var headerColumn = this.headerColumns[icol]; if (headerColumn.parentNode === null) { return true; } var divs = YAHOO.util.Dom.getElementsByClassName('yui-dt-liner', 'div', headerColumn); if (divs.length > 0) { var div = divs[0]; if (div === undefined) { return true; } else { var className = 'dt-' + this.id + '-col-' + (icol + 1); if (div.style.width === "" && ! YAHOO.util.Dom.hasClass(div, className)) { return true; } } } } return false; },
|
|
d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
|
c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,
|
d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
|
this.element.children(b))},nextPage:function(a){if(this.hasScroll())if(!this.active||this.last())this.activate(a,this.element.children(":first"));else{var b=this.active.offset().top,c=this.element.height(),d=this.element.children("li").filter(function(){var f=e(this).offset().top-b-c+e(this).height();return f<10&&f>-10});d.length||(d=this.element.children(":last"));this.activate(a,d)}else this.activate(a,this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(a){if(this.hasScroll())if(!this.active||
|
a.length?this.activate(f,a):this.activate(f,this.element.children(b))}else this.activate(f,this.element.children(b))},nextPage:function(a){if(this.hasScroll())if(!this.active||this.last())this.activate(a,this.element.children(".ui-menu-item:first"));else{var b=this.active.offset().top,f=this.element.height(),c=this.element.children(".ui-menu-item").filter(function(){var d=e(this).offset().top-b-f+e(this).height();return d<10&&d>-10});c.length||(c=this.element.children(".ui-menu-item:last"));this.activate(a, c)}else this.activate(a,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(a){if(this.hasScroll())if(!this.active||this.first())this.activate(a,this.element.children(".ui-menu-item:last"));else{var b=this.active.offset().top,f=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var c=e(this).offset().top-b+f-e(this).height();return c<10&&c>-10});result.length||(result=this.element.children(".ui-menu-item:first"));
|
this.element.children(b))},nextPage:function(a){if(this.hasScroll())if(!this.active||this.last())this.activate(a,this.element.children(":first"));else{var b=this.active.offset().top,c=this.element.height(),d=this.element.children("li").filter(function(){var f=e(this).offset().top-b-c+e(this).height();return f<10&&f>-10});d.length||(d=this.element.children(":last"));this.activate(a,d)}else this.activate(a,this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(a){if(this.hasScroll())if(!this.active||
|
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
|
if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K<Q;K++)if((j=arguments[K])!=null)for(s in j){v=G[s];z=j[s];if(G!==z)if(ga&&z&&(b.isPlainObject(z)||(H=b.isArray(z)))){if(H){H=false;v=v&&b.isArray(v)?v:[]}else v=v&&b.isPlainObject(v)?v:{};G[s]=b.extend(ga,v,z)}else if(z!==B)G[s]=z}return G};b.extend({noConflict:function(j){E.$=e;if(j)E.jQuery=d;return b},isReady:false,readyWait:1,ready:function(j){j===true&&b.readyWait--;
|
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
|
a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
|
l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");v.type="text/javascript";if(b.support.scriptEval)v.appendChild(t.createTextNode(j));else v.text=j;s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v)if(K)for(z in j){if(s.apply(j[z],v)===false)break}else for(;H<G;){if(s.apply(j[H++],v)===false)break}else if(K)for(z in j){if(s.call(j[z],
|
a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
|
a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
|
!F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&&
|
a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
|
charCode: e.charCode,
|
function normalizeEvent(e) { e = e || event if (!e.target) { e.target = e.srcElement } var eventObj = { charCode: e.charCode, keyCode: e.keyCode, metaKey: e.metaKey, __realEventObject: e } if (eventObj.charCode == 13 && eventObj.keyCode == 13) { eventObj.charCode = 0 // in Webkit, return gives a charCode as well as a keyCode. Should only be a keyCode } handler(dontIncludeEvent ? null : eventObj) }
|
|
if (eventObj.charCode == 13 && eventObj.keyCode == 13) { eventObj.charCode = 0
|
if (e.type == 'keypress') { eventObj.charCode = (eventObj.charCode == 13 && eventObj.keyCode == 13) ? 0 : e.charCode
|
function normalizeEvent(e) { e = e || event if (!e.target) { e.target = e.srcElement } var eventObj = { charCode: e.charCode, keyCode: e.keyCode, metaKey: e.metaKey, __realEventObject: e } if (eventObj.charCode == 13 && eventObj.keyCode == 13) { eventObj.charCode = 0 // in Webkit, return gives a charCode as well as a keyCode. Should only be a keyCode } handler(dontIncludeEvent ? null : eventObj) }
|
if (typeof text == "string") { return text.replace(XFORMS_REGEXP_CR, ""); } else { return text;
|
if (typeof text == "string") { return text.replace(XFORMS_REGEXP_CR, ""); } else { return text; }
|
normalizeSerializedHTML: function(text) { // Mmmh, the caller might pass an integer, e.g. for the slider. Not sure if fixing this here is the best way. if (typeof text == "string") { return text.replace(XFORMS_REGEXP_CR, ""); } else { return text; } }
|
}
|
normalizeSerializedHTML: function(text) { // Mmmh, the caller might pass an integer, e.g. for the slider. Not sure if fixing this here is the best way. if (typeof text == "string") { return text.replace(XFORMS_REGEXP_CR, ""); } else { return text; } }
|
|
callback(false, utils.date.format_date(new Date(), format));
|
callback(false, date_utils.format_date(new Date(), format));
|
NowNode: function (format) { if (format.match(/^["']/)) { format = format.slice(1, -1); } return function (context, callback) { callback(false, utils.date.format_date(new Date(), format)); }; }
|
}
|
},
|
NowNode: function (format) { if (format.match(/^["']/)) { format = format.slice(1, -1); } return function (context, callback) { callback(false, utils.date.format_date(new Date(), format)); }; }
|
1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
|
g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0},odd:function(g,i){return i%2===1},lt:function(g,i,n){return i<n[3]-0},gt:function(g,i,n){return i>n[3]-0},nth:function(g,i,n){return n[3]- 0===i},eq:function(g,i,n){return n[3]-0===i}},filter:{PSEUDO:function(g,i,n,m){var p=i[1],q=o.filters[p];if(q)return q(g,n,i,m);else if(p==="contains")return(g.textContent||g.innerText||k.getText([g])||"").indexOf(i[3])>=0;else if(p==="not"){i=i[3];n=0;for(m=i.length;n<m;n++)if(i[n]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+p)},CHILD:function(g,i){var n=i[1],m=g;switch(n){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(n===
|
1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
|
if (YAHOO.env.ua.ie != 0 && YAHOO.env.ua.ie <= 7) { var tables = element.getElementsByTagName("table"); window.setTimeout(function() { element.className = element.className; for (var tableIndex = 0; tableIndex < tables.length; tableIndex++) { var table = tables[tableIndex]; table.className = table.className; } }, ORBEON.util.Utils.getProperty(INTERNAL_SHORT_DELAY_PROPERTY)); } },
|
if (YAHOO.env.ua.ie != 0 && YAHOO.env.ua.ie <= 7) { var tables = element.getElementsByTagName("table"); window.setTimeout(function() { element.className = element.className; for (var tableIndex = 0; tableIndex < tables.length; tableIndex++) { var table = tables[tableIndex]; table.className = table.className; } }, ORBEON.util.Properties.internalShortDelay.get()); } },
|
nudgeAferDelay: function(element) { if (YAHOO.env.ua.ie != 0 && YAHOO.env.ua.ie <= 7) { var tables = element.getElementsByTagName("table"); window.setTimeout(function() { element.className = element.className; for (var tableIndex = 0; tableIndex < tables.length; tableIndex++) { var table = tables[tableIndex]; table.className = table.className; } }, ORBEON.util.Utils.getProperty(INTERNAL_SHORT_DELAY_PROPERTY)); } },
|
a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function o(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in s||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function t(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d=
|
16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return n.transparent;return n[f.trim(c).toLowerCase()]}function s(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return m(b)}function o(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle, a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function p(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in t||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function u(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d=
|
a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function o(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in s||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function t(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d=
|
function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");
|
c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;k=k.events}else if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}if(!o)h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem, arguments):B};o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")}else{r=[];h.namespace=""}h.type=l;if(!h.guid)h.guid=d.guid;var A=k[l],C=c.event.special[l]||{};if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false)if(a.addEventListener)a.addEventListener(l,o,false);else a.attachEvent&&a.attachEvent("on"+l,o)}if(C.add){C.add.call(a,h);if(!h.handler.guid)h.handler.guid=
|
function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");
|
e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r= j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
|
e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a, "margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a});return d}function qa(a){if(!ea[a]){var b=c("<"+
|
e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
|
return this._observe(itemId, propName, callback)
|
return this._observe({ id: itemId, property: propName }, callback)
|
this.observe = function(itemId, propName, callback) { if (!itemId || !propName || !callback) { logger.error("observe requires three arguments", itemId, propName, callback); } return this._observe(itemId, propName, callback) }
|
var subId = this._observe(itemId, propName, callback, { snapshot: false })
|
var subId = this._observe({ id: itemId, property: propName, snapshot: false }, callback)
|
this.observeList = function(itemId, propName, callback, length) { if (!itemId || !propName || !callback) { logger.error("observe requires at least three arguments", itemId, propName, callback, length); } var subId = this._observe(itemId, propName, callback, { snapshot: false }) this.extendList(itemId, propName, length || 10) return subId }
|
return this._observe(this._localId, propName, callback, { local: true })
|
return this._observe({ id: this._localId, property: propName, local: true }, callback)
|
this.observeLocal = function(propName, callback) { if (!propName || !callback) { logger.error("observeLocal requires two arguments", propName, callback); } return this._observe(this._localId, propName, callback, { local: true }) }
|
f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":
|
e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ia.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;a&&!Ia.test(a.nodeName)&& c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==B)return this.each(function(){if(h=fa(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=fa(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();
|
f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":
|
$('#page-share .attach .title').val( data.title ); $('#page-share .attach .description').val( data.description );
|
var title = $('<div />').html(data.title).text(); $('#page-share .attach .title').val ( title ); $('#page-share .attach .description').html ( data.description );
|
jLoader.Page_share.Text.OnBlur = function ( pElement, pParent ) { element = $(pElement); if ( typeof currentLink != "undefined" ) { if ( currentLink == element.val() ) { return ( false ); } } if ( element.hasClass ( 'link' ) ) { $('#page-share .attach').hide(); $('#page-share .loading').show(); if ( element.val() == "" ) { $('#page-share .loading').hide(); return ( false ); } var jsonUrl = "/api/page/scrape?url=" + element.val(); $.getJSON(jsonUrl, function(data) { $('#page-share .attach .title').val( data.title ); $('#page-share .attach .description').val( data.description ); if ( typeof item == 'undefined' ) item = $('#page-share .attach .thumb').clone(); $('#page-share .attach .thumbs').empty(); if (typeof data.images != 'undefined' ) { $.each( data.images, function(key, value){ item.children().attr('src', value ); $('#page-share .attach .thumbs').append(item.html()); }); $('#page-share .attach .thumbnail').first().addClass ( 'selected' ); $('#page-share .thumbs-scroll').show(); } else { $('#page-share .thumbs-scroll').hide(); } $('#page-share .loading').hide(); $('#page-share .attach').show(); }); }}
|
jTranslations[pElement.id] = "friends"; if ( $(pElement).parent().attr('class') == 'profile-friends-circle-remove' ) { return ( confirm ( __("Confirm Delete Circle") ) ); } return ( true );
|
jLoader.Profile_friends.Anchor.OnClick = function ( pElement, pParent ) {}
|
|
jLoader.Page_share.Checkbox.OnClick = function ( pElement, pParent ) {
|
jLoader.Page_share.Button.OnClick = function ( pElement, pParent ) {
|
jLoader.Page_share.Checkbox.OnClick = function ( pElement, pParent ) { element = $(pElement); parent = element.parent(); if ( parent.hasClass ( 'everybody' ) ) { if (pElement.checked ) { $('#page-share .friends input').attr ( 'checked', false ); $('#page-share .circle input').attr ( 'checked', false ); $('#page-share .nobody input').attr ( 'checked', false ); } } else if ( parent.hasClass ( 'friends' ) ) { if (pElement.checked ) { $('#page-share .everybody input').attr ( 'checked', false ); $('#page-share .circle input').attr ( 'checked', false ); $('#page-share .nobody input').attr ( 'checked', false ); } } else if ( parent.hasClass ( 'circle' ) ) { if (pElement.checked ) { $('#page-share .everybody input').attr ( 'checked', false ); $('#page-share .friends input').attr ( 'checked', false ); $('#page-share .nobody input').attr ( 'checked', false ); } } else if ( parent.hasClass ( 'nobody' ) ) { if (pElement.checked ) { $('#page-share .everybody input').attr ( 'checked', false ); $('#page-share .friends input').attr ( 'checked', false ); $('#page-share .circle input').attr ( 'checked', false ); } } elements = $("#page-share .privacy-list .item" ); checked = false; for ( e = 0; e < elements.length; e++ ) { if ( $(':checkbox', elements[e] ).attr('checked' ) ) checked = true; } if ( !checked ) { $('#page-share .nobody input').attr ( 'checked', true ); } return ( true );}
|
if ( parent.hasClass ( 'everybody' ) ) { if (pElement.checked ) { $('#page-share .friends input').attr ( 'checked', false ); $('#page-share .circle input').attr ( 'checked', false ); $('#page-share .nobody input').attr ( 'checked', false );
|
if ( parent.hasClass ( 'thumbs-scroll' ) ) { var current = $('#page-share .attach .selected'); if ( element.hasClass ( 'scroll-next' ) ) { if ( current.next().parent().html() ) { $('#page-share .attach .selected').next().addClass ( 'selected' ); $('#page-share .attach .selected').first().removeClass ( 'selected' ); } } else if ( element.hasClass ( 'scroll-previous' ) ) { if ( current.prev().parent().html() ) { var current = $('#page-share .attach .selected'); $('#page-share .attach .selected').prev().addClass ( 'selected' ); current.removeClass ( 'selected' ); }
|
jLoader.Page_share.Checkbox.OnClick = function ( pElement, pParent ) { element = $(pElement); parent = element.parent(); if ( parent.hasClass ( 'everybody' ) ) { if (pElement.checked ) { $('#page-share .friends input').attr ( 'checked', false ); $('#page-share .circle input').attr ( 'checked', false ); $('#page-share .nobody input').attr ( 'checked', false ); } } else if ( parent.hasClass ( 'friends' ) ) { if (pElement.checked ) { $('#page-share .everybody input').attr ( 'checked', false ); $('#page-share .circle input').attr ( 'checked', false ); $('#page-share .nobody input').attr ( 'checked', false ); } } else if ( parent.hasClass ( 'circle' ) ) { if (pElement.checked ) { $('#page-share .everybody input').attr ( 'checked', false ); $('#page-share .friends input').attr ( 'checked', false ); $('#page-share .nobody input').attr ( 'checked', false ); } } else if ( parent.hasClass ( 'nobody' ) ) { if (pElement.checked ) { $('#page-share .everybody input').attr ( 'checked', false ); $('#page-share .friends input').attr ( 'checked', false ); $('#page-share .circle input').attr ( 'checked', false ); } } elements = $("#page-share .privacy-list .item" ); checked = false; for ( e = 0; e < elements.length; e++ ) { if ( $(':checkbox', elements[e] ).attr('checked' ) ) checked = true; } if ( !checked ) { $('#page-share .nobody input').attr ( 'checked', true ); } return ( true );}
|
} else if ( parent.hasClass ( 'friends' ) ) { if (pElement.checked ) { $('#page-share .everybody input').attr ( 'checked', false ); $('#page-share .circle input').attr ( 'checked', false ); $('#page-share .nobody input').attr ( 'checked', false ); } } else if ( parent.hasClass ( 'circle' ) ) { if (pElement.checked ) { $('#page-share .everybody input').attr ( 'checked', false ); $('#page-share .friends input').attr ( 'checked', false ); $('#page-share .nobody input').attr ( 'checked', false ); } } else if ( parent.hasClass ( 'nobody' ) ) { if (pElement.checked ) { $('#page-share .everybody input').attr ( 'checked', false ); $('#page-share .friends input').attr ( 'checked', false ); $('#page-share .circle input').attr ( 'checked', false ); } } elements = $("#page-share .privacy-list .item" ); checked = false; for ( e = 0; e < elements.length; e++ ) { if ( $(':checkbox', elements[e] ).attr('checked' ) ) checked = true; } if ( !checked ) { $('#page-share .nobody input').attr ( 'checked', true );
|
var current = $('#page-share .attach .selected'); $('#page-share input[name=LinkThumb]').val ( current.attr ('src') ); return ( false );
|
jLoader.Page_share.Checkbox.OnClick = function ( pElement, pParent ) { element = $(pElement); parent = element.parent(); if ( parent.hasClass ( 'everybody' ) ) { if (pElement.checked ) { $('#page-share .friends input').attr ( 'checked', false ); $('#page-share .circle input').attr ( 'checked', false ); $('#page-share .nobody input').attr ( 'checked', false ); } } else if ( parent.hasClass ( 'friends' ) ) { if (pElement.checked ) { $('#page-share .everybody input').attr ( 'checked', false ); $('#page-share .circle input').attr ( 'checked', false ); $('#page-share .nobody input').attr ( 'checked', false ); } } else if ( parent.hasClass ( 'circle' ) ) { if (pElement.checked ) { $('#page-share .everybody input').attr ( 'checked', false ); $('#page-share .friends input').attr ( 'checked', false ); $('#page-share .nobody input').attr ( 'checked', false ); } } else if ( parent.hasClass ( 'nobody' ) ) { if (pElement.checked ) { $('#page-share .everybody input').attr ( 'checked', false ); $('#page-share .friends input').attr ( 'checked', false ); $('#page-share .circle input').attr ( 'checked', false ); } } elements = $("#page-share .privacy-list .item" ); checked = false; for ( e = 0; e < elements.length; e++ ) { if ( $(':checkbox', elements[e] ).attr('checked' ) ) checked = true; } if ( !checked ) { $('#page-share .nobody input').attr ( 'checked', true ); } return ( true );}
|
if (ORBEON.util.Dom.hasClass(srcElement, "xforms-dnd") && srcElement.nodeName.toLowerCase() == destElement.getEl().nodeName.toLowerCase()) {
|
if (YAHOO.util.Dom.hasClass(srcElement, "xforms-dnd") && srcElement.nodeName.toLowerCase() == destElement.getEl().nodeName.toLowerCase()) {
|
onDragOver: function(e, id) { var srcElement = this.getEl(); var srcDelimiter = YAHOO.util.Dom.getPreviousSibling(srcElement); var destElement = YAHOO.util.Dom.get(id)[0]; if (ORBEON.util.Dom.hasClass(srcElement, "xforms-dnd") && srcElement.nodeName.toLowerCase() == destElement.getEl().nodeName.toLowerCase()) { var parent = destElement.getEl().parentNode; this.overElement = destElement.getEl(); parent.removeChild(srcDelimiter); parent.removeChild(srcElement); if (this.goingUp) { var insertionReferenceElement = this.overElement; parent.insertBefore(srcElement, insertionReferenceElement); parent.insertBefore(srcDelimiter, insertionReferenceElement); } else { var insertionReferenceElement = YAHOO.util.Dom.getNextSibling(this.overElement); parent.insertBefore(srcDelimiter, insertionReferenceElement); parent.insertBefore(srcElement, insertionReferenceElement); } YAHOO.util.DragDropMgr.refreshCache(); } },
|
jLoader.Page_share.Textarea.OnKeyDown = function ( pElement, pParent ) { jLoader.Page_share.Textarea.CheckForLink ( pElement, pParent );
|
jLoader.Page_share.Text.OnKeyDown = function ( pElement, pParent ) { element = $(pElement); element.keypress(function(e) { if (e.which == 13) { element.blur(); } });
|
jLoader.Page_share.Textarea.OnKeyDown = function ( pElement, pParent ) { jLoader.Page_share.Textarea.CheckForLink ( pElement, pParent );}
|
return;
|
} else { onload.push(func);
|
JX.onload = function(func) { if (loaded) { func(); return; } onload.push(func); }
|
onload.push(func);
|
JX.onload = function(func) { if (loaded) { func(); return; } onload.push(func); }
|
|
this.subscribe(_BEFORE_HIDE, onPanelBeforeHide, m_oFocusedElement);
|
var sEvent = (this.cfg.getProperty("modal") === true) ? "hideMask" : _BEFORE_HIDE; this.subscribe(sEvent, restoreFocus, m_oFocusedElement);
|
var onPanelBeforeShow = function () { this.subscribe(_BEFORE_HIDE, onPanelBeforeHide, m_oFocusedElement); };
|
var htmlForm = $("#post-html-for-validation"); if (htmlForm.length === 0) { htmlForm = $('<form id="post-html-for-validation" method="post" action="' + "http: } htmlForm[0].submit();
|
var htmlForm = document.createElement("form"), htmlInput = document.createElement("input"); htmlForm.action = "http: htmlForm.method = "post"; htmlForm.enctype = "multipart/form-data"; htmlForm.target = "_blank"; htmlInput.type = "text"; htmlInput.name = "fragment"; htmlInput.value = xhr.responseText; htmlForm.appendChild(htmlInput); document.body.appendChild(htmlForm); htmlForm.submit(); htmlForm.parentNode.removeChild(htmlForm);
|
xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var htmlForm = $("#post-html-for-validation"); if (htmlForm.length === 0) { htmlForm = $('<form id="post-html-for-validation" method="post" action="' + "http://validator.w3.org/check" + '" target="_blank"><input type="text" id="fragment" name="fragment" value=\'' + xhr.responseText.replace(/'/g, "‘") + '\'></form>').appendTo(document.body); } htmlForm[0].submit(); } };
|
$('<form id="post-html-for-validation" method="post" action="' + "http:
|
htmlForm = $('<form id="post-html-for-validation" method="post" action="' + "http:
|
xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var htmlForm = $("#post-html-for-validation"); if (htmlForm.length === 0) { $('<form id="post-html-for-validation" method="post" action="' + "http://validator.w3.org/check" + '" target="_blank"><input type="text" id="fragment" name="fragment" value=\'' + xhr.responseText.replace(/'/g, "‘") + '\'></form>').appendTo(document.body); } htmlForm[0].submit(); } };
|
chrome.extension.sendRequest({ sendPageHTMLToValidator : true, pageHTML : xhr.responseText } );
|
$('<form id="post-html-for-validation" method="post" action="' + "http:
|
xhr.onreadystatechange = function () { if (xhr.readyState === 4) { chrome.extension.sendRequest({ sendPageHTMLToValidator : true, pageHTML : xhr.responseText } ); } };
|
false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",
|
A.src=b.url;if(!d){var C=false;A.onload=A.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){C=true;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);A.onload=A.onreadystatechange=null;r&&A.parentNode&&r.removeChild(A)}}}r.insertBefore(A,r.firstChild);return B}var J=false,w=b.xhr();if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);try{if(b.data!=null&&!l||a&&a.contentType)w.setRequestHeader("Content-Type",
|
false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",
|
$('<form id="post-html-for-validation" method="post" action="' + "http:
|
var htmlForm = $("#post-html-for-validation"); if (htmlForm.length === 0) { $('<form id="post-html-for-validation" method="post" action="' + "http: } htmlForm[0].submit();
|
xhr.onreadystatechange = function () { if (xhr.readyState === 4) { $('<form id="post-html-for-validation" method="post" action="' + "http://validator.w3.org/check" + '" target="_blank"><input type="text" id="fragment" name="fragment" value=\'' + xhr.responseText.replace(/'/g, "‘") + '\'></form>').appendTo(document.body)[0].submit(); } };
|
}
|
},
|
onRendered: function(control, callback) { if (renderedCustomEvents[control.id] === true) { // Already rendered. callback(); } else { // Create custom event if necessary if (renderedCustomEvents[control.id] === undefined) renderedCustomEvents[control.id] = new YAHOO.util.CustomEvent("rteRendered"); // Custom event was already created renderedCustomEvents[control.id].subscribe(callback); } }
|
document.getElementById(datePicker.idField).value = dt.format("m/d/Y");
|
document.getElementById(datePicker.idField).value = dt.format(datePicker.format);
|
function onSelect(datePicker,date){ var dt = new Date(date); document.getElementById(datePicker.idField).value = dt.format("m/d/Y"); datePicker.destroy();}
|
f.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.attr("scrollTop"),scrollLeft:d.element.attr("scrollLeft")};c.ui.dialog.maxZ+=1;d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;d.next().length&&d.appendTo("body");a._size();a._position(b.position);d.show(b.show); a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(f){if(f.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),e=g.filter(":first");g=g.filter(":last");if(f.target===g[0]&&!f.shiftKey){e.focus(1);return false}else if(f.target===e[0]&&f.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._trigger("open");a._isOpen=true;return a}},_createButtons:function(a){var b=this,d=false,
|
d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),f=g.filter(":first");g=g.filter(":last");if(e.target===g[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target===f[0]&&e.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus(); a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("<div></div>").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a,function(){return!(d=true)});if(d){c.each(a,function(f,h){h=c.isFunction(h)?{click:h,text:f}:h;f=c('<button type="button"></button>').attr(h,true).unbind("click").click(function(){h.click.apply(b.element[0],
|
f.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.attr("scrollTop"),scrollLeft:d.element.attr("scrollLeft")};c.ui.dialog.maxZ+=1;d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;d.next().length&&d.appendTo("body");a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(f){if(f.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),e=g.filter(":first");g=g.filter(":last");if(f.target===g[0]&&!f.shiftKey){e.focus(1);return false}else if(f.target===e[0]&&f.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._trigger("open");a._isOpen=true;return a}},_createButtons:function(a){var b=this,d=false,
|
window.open(fRoot + url, "Assignment Overview", windowCfg);
|
window.open(fRoot+url, '_blank', windowCfg);
|
function openAssignmentOverviewWindow(user_id, build_id, tplan_id) { var url = "lib/testcases/tcAssignedToUser.php"; url += "?user_id=" + user_id + "&build_id=" + build_id + "&tplan_id=" + tplan_id; var windowCfg = "width=800,height=600,resizable=yes,scrollbars=yes,dependent=yes"; window.open(fRoot + url, "Assignment Overview", windowCfg);}
|
var windowCfg = "width=800,height=600,resizable=yes,scrollbars=yes,dependent=yes";
|
var width = getCookie("AssignmentOverviewWidth"); var height = getCookie("AssignmentOverviewHeight"); if (width == null) { var width = "800"; } if (height == null) { var height = "600"; } var windowCfg = "width="+width+",height="+height+",resizable=yes,scrollbars=yes,dependent=yes"; alert(windowCfg);
|
function openAssignmentOverviewWindow(user_id, build_id, tplan_id) { var url = "lib/testcases/tcAssignedToUser.php"; url += "?user_id=" + user_id + "&build_id=" + build_id + "&tplan_id=" + tplan_id; var windowCfg = "width=800,height=600,resizable=yes,scrollbars=yes,dependent=yes"; window.open(fRoot+url, '_blank', windowCfg);}
|
alert(windowCfg);
|
function openAssignmentOverviewWindow(user_id, build_id, tplan_id) { var url = "lib/testcases/tcAssignedToUser.php"; url += "?user_id=" + user_id + "&build_id=" + build_id + "&tplan_id=" + tplan_id; // 20101008 - asimon - BUGID 3311 var width = getCookie("AssignmentOverviewWidth"); var height = getCookie("AssignmentOverviewHeight"); if (width == null) { var width = "800"; } if (height == null) { var height = "600"; } var windowCfg = "width="+width+",height="+height+",resizable=yes,scrollbars=yes,dependent=yes"; alert(windowCfg); window.open(fRoot+url, '_blank', windowCfg);}
|
|
var windowCfg = "width=510,height=270,resizable=yes,dependent=yes,scrollbars=yes";
|
var windowCfg = "width=800,height=600,resizable=yes,dependent=yes,scrollbars=yes";
|
function openExecEditWindow(exec_id,tcversion_id,tplan_id,tproject_id){ var target_url = "lib/execute/editExecution.php"; var windowCfg = "width=510,height=270,resizable=yes,dependent=yes,scrollbars=yes"; window.open(fRoot+target_url+"?exec_id="+exec_id+"&tcversion_id="+tcversion_id+"&tplan_id="+tplan_id+"&tproject_id="+tproject_id, "execution_notes",windowCfg);}
|
var windowCfg = "width=800,height=600,resizable=yes,dependent=yes,scrollbars=yes";
|
var width = getCookie("ExecEditPopupWidth"); var height = getCookie("ExecEditPopupHeight"); if (width == null) { var width = "800"; } if (height == null) { var height = "600"; } var windowCfg = "width="+width+",height="+height+",resizable=yes,scrollbars=yes,dependent=yes";
|
function openExecEditWindow(exec_id,tcversion_id,tplan_id,tproject_id){ var target_url = "lib/execute/editExecution.php"; var windowCfg = "width=800,height=600,resizable=yes,dependent=yes,scrollbars=yes"; window.open(fRoot+target_url+"?exec_id="+exec_id+"&tcversion_id="+tcversion_id+"&tplan_id="+tplan_id+"&tproject_id="+tproject_id, "execution_notes",windowCfg);}
|
var windowCfg = "width=800,height=600,resizable=yes,scrollbars=yes,dependent=yes";
|
var width = getCookie("TCExecPopupWidth"); var height = getCookie("TCExecPopupHeight"); if (width == null) { var width = "800"; } if (height == null) { var height = "600"; } var windowCfg = "width="+width+",height="+height+",resizable=yes,scrollbars=yes,dependent=yes"; alert(windowCfg);
|
function openExecutionWindow(tc_id, tcversion_id, build_id, tplan_id, platform_id) { var url = "lib/execute/execSetResults.php?" + "version_id=" + tcversion_id + "&level=testcase&id=" + tc_id + "&tplan_id=" + tplan_id + "&setting_build=" + build_id + "&setting_platform=" + platform_id; var windowCfg = "width=800,height=600,resizable=yes,scrollbars=yes,dependent=yes"; window.open(fRoot+url, '_blank', windowCfg);}
|
alert(windowCfg);
|
function openExecutionWindow(tc_id, tcversion_id, build_id, tplan_id, platform_id) { var url = "lib/execute/execSetResults.php?" + "version_id=" + tcversion_id + "&level=testcase&id=" + tc_id + "&tplan_id=" + tplan_id + "&setting_build=" + build_id + "&setting_platform=" + platform_id; // 20101008 - asimon - BUGID 3311 var width = getCookie("TCExecPopupWidth"); var height = getCookie("TCExecPopupHeight"); if (width == null) { var width = "800"; } if (height == null) { var height = "600"; } var windowCfg = "width="+width+",height="+height+",resizable=yes,scrollbars=yes,dependent=yes"; alert(windowCfg); window.open(fRoot+url, '_blank', windowCfg);}
|
|
function openImportResult(windows_title) { wref = window.open(fRoot+"lib/results/resultsImport.php",
|
function openImportResult(windows_title,tplan_id,build_id,platform_id) { args = "tplanID=" + tplan_id + "&buildID=" + build_id + "&platformID=" + platform_id; wref = window.open(fRoot+"lib/results/resultsImport.php?"+args,
|
function openImportResult(windows_title) { wref = window.open(fRoot+"lib/results/resultsImport.php", windows_title,"menubar=no,width=650,height=500,toolbar=no,scrollbars=yes"); wref.focus();}
|
map.zoomTo(11);
|
if (onBerlinDe) map.zoomTo(LEVEL_OF_CITY_ZOOM);
|
function openLayersInit(openBounds){ var options = { projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), units: "m", maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34) }; map = new OpenLayers.Map('map', options); var mapnik = new OpenLayers.Layer.TMS("OpenStreetMap", "http://tile.openstreetmap.org/", {type: 'png', getURL: osm_getTileURL, displayOutsideMaxExtent: true, attribution: '<a href="http://www.openstreetmap.org/">OpenStreetMap</a>', numZoomLevels: 25} ); map.events.register("movestart", map, function (evnt) { // log("baseLayerBounds"+map.getBoundFromBaseLayer()); if (map.getExtent()!= null) log("evt: " + map.getExtent().getCenterLonLat()); }); var googleBaseLayer = new OpenLayers.Layer.Google("Google Maps", {sphericalMercator:true, numZoomLevels: 25} ); // districtLayer.setVisibility(true); if (onBerlinDe) map.addLayers([googleBaseLayer, mapnik]); // , markerLayer else map.addLayers([mapnik, googleBaseLayer]); // MapControl Setup nav = new OpenLayers.Control.NavigationHistory(); // parent control must be added to the map map.addControl(nav); // panel = new OpenLayers.Control.Panel( {div: document.getElementById("navPanel")} ); // OpenLayers.Control.CustomLayerSwitcher = OpenLayers.Class(OpenLayers.Control.LayerSwitcher, { // CLASS_NAME: "OpenLayers.Control.CustomLayerSwitcher" // }); // myLayerSwitcher.moveTo(new OpenLayers.Pixel(50, 300)); // myLayerSwitcher.moveTo(new OpenLayers.Pixel(150, 400)); myLayerSwitcher = new OpenLayers.Control.LayerSwitcher({ 'div':OpenLayers.Util.getElement('mapSwitcher'), activeColor: "white" }); map.addControl(myLayerSwitcher); panel.addControls([nav.next, nav.previous]); map.addControl(panel); // layerSwitcher, NavigationHistory, Panel // setBounds if (debug) log('[Info] mapBounds will be set to: ' + openBounds); map.zoomToExtent(openBounds.transform(map.displayProjection, map.projection)); map.zoomTo(11); }
|
maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34)
|
maxExtent: openBounds
|
function openLayersInit(openBounds){ // Map Options var options = { projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), units: "m", maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34) }; map = new OpenLayers.Map('map', options); // BaseLayer var mapnik = new OpenLayers.Layer.TMS("OpenStreetMap", "http://tile.openstreetmap.org/", {type: 'png', getURL: osm_getTileURL, displayOutsideMaxExtent: true, attribution: '<a href="http://www.openstreetmap.org/">OpenStreetMap</a>', numZoomLevels: 25} ); var googleBaseLayer = new OpenLayers.Layer.Google("Google Maps", {sphericalMercator:true, numZoomLevels: 25} ); if (onBerlinDe) map.addLayers([googleBaseLayer, mapnik]); // , markerLayer else map.addLayers([mapnik, googleBaseLayer]); // // MapControl Setup nav = new OpenLayers.Control.NavigationHistory(); myLayerSwitcher = OpenLayers.Control.CustomLayerSwitcher = OpenLayers.Class(OpenLayers.Control.LayerSwitcher, { CLASS_NAME: "OpenLayers.Control.CustomLayerSwitcher" }); // myLayerSwitcher.moveTo(new OpenLayers.Pixel(50, 300)); // myLayerSwitcher.moveTo(new OpenLayers.Pixel(150, 400)); // parent control must be added to the map map.addControl(nav); map.events.register("movestart", map, function (evnt) { // log("baseLayerBounds"+map.getBoundFromBaseLayer()); if (map.getExtent()!= null && debug) log("evt: " + map.getExtent().getCenterLonLat()); }); // // panel = new OpenLayers.Control.Panel( {div: document.getElementById("navPanel")} ); myLayerSwitcher = new OpenLayers.Control.LayerSwitcher({ 'div':OpenLayers.Util.getElement('mapSwitcher'), activeColor: "white" }); map.addControl(myLayerSwitcher); // event binding for the new hover controlMenu ### ToDo: find a better place for this jQuery("#mapControl").bind("mouseover", overMapControl); jQuery("#mapControl").bind("mouseout", outMapControl); // if (!onBerlinDe) panel.addControls([nav.next, nav.previous]); map.addControl(panel); // layerSwitcher, NavigationHistory, Panel // setBounds if (debug) log('[Info] mapBounds will be set to: ' + openBounds); map.zoomToExtent(openBounds.transform(map.displayProjection, map.projection)); if (onBerlinDe) map.zoomTo(LEVEL_OF_CITY_ZOOM); }
|
else map.addLayers([mapnik, googleBaseLayer]);
|
else map.addLayers([googleBaseLayer, mapnik]);
|
function openLayersInit(openBounds){ // Map Options var options = { projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), units: "m", maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34) }; map = new OpenLayers.Map('map', options); // BaseLayer var mapnik = new OpenLayers.Layer.TMS("OpenStreetMap", "http://tile.openstreetmap.org/", {type: 'png', getURL: osm_getTileURL, displayOutsideMaxExtent: true, attribution: '<a href="http://www.openstreetmap.org/">OpenStreetMap</a>', numZoomLevels: 25} ); var googleBaseLayer = new OpenLayers.Layer.Google("Google Maps", {sphericalMercator:true, numZoomLevels: 25} ); if (onBerlinDe) map.addLayers([googleBaseLayer, mapnik]); // , markerLayer else map.addLayers([mapnik, googleBaseLayer]); // // MapControl Setup nav = new OpenLayers.Control.NavigationHistory(); myLayerSwitcher = OpenLayers.Control.CustomLayerSwitcher = OpenLayers.Class(OpenLayers.Control.LayerSwitcher, { CLASS_NAME: "OpenLayers.Control.CustomLayerSwitcher" }); // myLayerSwitcher.moveTo(new OpenLayers.Pixel(50, 300)); // myLayerSwitcher.moveTo(new OpenLayers.Pixel(150, 400)); // parent control must be added to the map map.addControl(nav); map.events.register("movestart", map, function (evnt) { // log("baseLayerBounds"+map.getBoundFromBaseLayer()); if (map.getExtent()!= null && debug) log("evt: " + map.getExtent().getCenterLonLat()); }); // // panel = new OpenLayers.Control.Panel( {div: document.getElementById("navPanel")} ); myLayerSwitcher = new OpenLayers.Control.LayerSwitcher({ 'div':OpenLayers.Util.getElement('mapSwitcher'), activeColor: "white" }); map.addControl(myLayerSwitcher); // event binding for the new hover controlMenu ### ToDo: find a better place for this jQuery("#mapControl").bind("mouseover", overMapControl); jQuery("#mapControl").bind("mouseout", outMapControl); // if (!onBerlinDe) panel.addControls([nav.next, nav.previous]); map.addControl(panel); // layerSwitcher, NavigationHistory, Panel // setBounds if (debug) log('[Info] mapBounds will be set to: ' + openBounds); map.zoomToExtent(openBounds.transform(map.displayProjection, map.projection)); if (onBerlinDe) map.zoomTo(LEVEL_OF_CITY_ZOOM); }
|
windowCfg="width=800,height=400,resizable=yes,scrollbars=yes,dependent=yes";
|
var width = getCookie("ReqSpecPopupWidth"); var height = getCookie("ReqSpecPopupHeight"); if (width == null) { var width = "800"; } if (height == null) { var height = "600"; } var windowCfg = "width="+width+",height="+height+",resizable=yes,scrollbars=yes,dependent=yes"; alert(windowCfg);
|
function openLinkedReqSpecWindow(reqspec_id, anchor){ if (anchor == null) { anchor = ''; } else { anchor = '#' + anchor; } var windowCfg=''; var feature_url = "lib/requirements/reqSpecView.php"; feature_url += "?req_spec_id=" + reqspec_id + anchor; windowCfg="width=800,height=400,resizable=yes,scrollbars=yes,dependent=yes"; window.open(fRoot+feature_url,"RequirementSpecification",windowCfg);}
|
windowCfg="width=510,height=300,resizable=yes,scrollbars=yes,dependent=yes";
|
windowCfg="width=800,height=400,resizable=yes,scrollbars=yes,dependent=yes";
|
function openLinkedReqSpecWindow(reqspec_id, anchor){ if (anchor == null) { anchor = ''; } else { anchor = '#' + anchor; } var windowCfg=''; var feature_url = "lib/requirements/reqSpecView.php"; feature_url += "?req_spec_id=" + reqspec_id + anchor; windowCfg="width=510,height=300,resizable=yes,scrollbars=yes,dependent=yes"; window.open(fRoot+feature_url,"Requirement Specification",windowCfg);}
|
alert(windowCfg);
|
function openLinkedReqSpecWindow(reqspec_id, anchor){ if (anchor == null) { anchor = ''; } else { anchor = '#' + anchor; } var windowCfg=''; var feature_url = "lib/requirements/reqSpecView.php"; feature_url += "?req_spec_id=" + reqspec_id + anchor; // 20101008 - asimon - BUGID 3311 var width = getCookie("ReqSpecPopupWidth"); var height = getCookie("ReqSpecPopupHeight"); if (width == null) { var width = "800"; } if (height == null) { var height = "600"; } var windowCfg = "width="+width+",height="+height+",resizable=yes,scrollbars=yes,dependent=yes"; alert(windowCfg); window.open(fRoot+feature_url,"RequirementSpecification",windowCfg);}
|
|
windowCfg="width=800,height=400,resizable=yes,scrollbars=yes,dependent=yes";
|
var width = getCookie("ReqPopupWidth"); var height = getCookie("ReqPopupHeight"); if (width == null) { var width = "800"; } if (height == null) { var height = "600"; } var windowCfg = "width="+width+",height="+height+",resizable=yes,scrollbars=yes,dependent=yes"; alert(windowCfg);
|
function openLinkedReqWindow(req_id, anchor){ if (anchor == null) { anchor = ''; } else { anchor = '#' + anchor; } var windowCfg=''; var feature_url = "lib/requirements/reqView.php"; feature_url += "?showReqSpecTitle=1&requirement_id=" + req_id + anchor; windowCfg="width=800,height=400,resizable=yes,scrollbars=yes,dependent=yes"; window.open(fRoot+feature_url,"Requirement",windowCfg);}
|
windowCfg="width=510,height=300,resizable=yes,scrollbars=yes,dependent=yes";
|
windowCfg="width=800,height=400,resizable=yes,scrollbars=yes,dependent=yes";
|
function openLinkedReqWindow(req_id, anchor){ if (anchor == null) { anchor = ''; } else { anchor = '#' + anchor; } var windowCfg=''; var feature_url = "lib/requirements/reqView.php"; feature_url += "?showReqSpecTitle=1&requirement_id=" + req_id + anchor; windowCfg="width=510,height=300,resizable=yes,scrollbars=yes,dependent=yes"; window.open(fRoot+feature_url,"Requirement",windowCfg);}
|
alert(windowCfg);
|
function openLinkedReqWindow(req_id, anchor){ if (anchor == null) { anchor = ''; } else { anchor = '#' + anchor; } var windowCfg=''; var feature_url = "lib/requirements/reqView.php"; feature_url += "?showReqSpecTitle=1&requirement_id=" + req_id + anchor; // 20101008 - asimon - BUGID 3311 var width = getCookie("ReqPopupWidth"); var height = getCookie("ReqPopupHeight"); if (width == null) { var width = "800"; } if (height == null) { var height = "600"; } var windowCfg = "width="+width+",height="+height+",resizable=yes,scrollbars=yes,dependent=yes"; alert(windowCfg); window.open(fRoot+feature_url,"Requirement",windowCfg);}
|
|
var windowCfg = "width=800,height=600,resizable=yes,scrollbars=yes,dependent=yes";
|
var width = getCookie("TCEditPopupWidth"); var height = getCookie("TCEditPopupHeight"); if (width == null) { var width = "800"; } if (height == null) { var height = "600"; } var windowCfg = "width="+width+",height="+height+",resizable=yes,scrollbars=yes,dependent=yes"; alert(windowCfg);
|
function openTCEditWindow(tc_id) { var url = "lib/testcases/archiveData.php?edit=testcase&id=" + tc_id; var windowCfg = "width=800,height=600,resizable=yes,scrollbars=yes,dependent=yes"; window.open(fRoot+url, '_blank', windowCfg);}
|
alert(windowCfg);
|
function openTCEditWindow(tc_id) { var url = "lib/testcases/archiveData.php?edit=testcase&id=" + tc_id; // 20101008 - asimon - BUGID 3311 var width = getCookie("TCEditPopupWidth"); var height = getCookie("TCEditPopupHeight"); if (width == null) { var width = "800"; } if (height == null) { var height = "600"; } var windowCfg = "width="+width+",height="+height+",resizable=yes,scrollbars=yes,dependent=yes"; alert(windowCfg); window.open(fRoot+url, '_blank', windowCfg);}
|
|
this.tableHeight = this.table.clientHeight;
|
this.tableHeight = this.table.clientHeight + 5;
|
ORBEON.widgets.datatable.prototype.optimizeWidth = function (minWidth) { this.headerContainer.style.position = "absolute"; this.headerContainer.style.width = "2500px"; var savedWidth = this.table.style.width; this.table.style.width = "auto"; var width = this.table.clientWidth; this.tableHeight = this.table.clientHeight; this.headerContainer.style.position = ""; this.headerContainer.style.width = ""; this.table.style.width = savedWidth; if (minWidth > width) { return minWidth; } return width;}
|
this.alpha = options.alpha || 100;
|
this.alpha = isNaN(options.alpha) ? 100 : options.alpha;
|
Paint: function(opt) { var options = opt || {}; this.alpha = options.alpha || 100; // copy paint object if (options.copy) { this.type = options.copy.type; this.alpha = options.copy.alpha; this.solidColor = null; this.linearGradient = null; this.radialGradient = null; switch(this.type) { case "none": break; case "solidColor": this.solidColor = options.copy.solidColor; break; case "linearGradient": this.linearGradient = $.cloneNode(options.copy.linearGradient); break; case "radialGradient": this.radialGradient = $.cloneNode(options.copy.radialGradient); break; } } // create linear gradient paint else if (options.linearGradient) { this.type = "linearGradient"; this.solidColor = null; this.radialGradient = null; this.linearGradient = $.cloneNode(options.linearGradient); } // create linear gradient paint else if (options.radialGradient) { this.type = "radialGradient"; this.solidColor = null; this.linearGradient = null; this.radialGradient = $.cloneNode(options.radialGradient); } // create solid color paint else if (options.solidColor) { this.type = "solidColor"; this.solidColor = options.solidColor; } // create empty paint else { this.type = "none"; this.solidColor = null; this.linearGradient = null; this.radialGradient = null; } }
|
this.radialGradient = null;
|
Paint: function(opt) { var options = opt || {}; this.alpha = options.alpha || 100; // copy paint object if (options.copy) { this.type = options.copy.type; this.alpha = options.copy.alpha; this.solidColor = null; this.linearGradient = null; this.radialGradient = null; switch(this.type) { case "none": break; case "solidColor": this.solidColor = options.copy.solidColor; break; case "linearGradient": this.linearGradient = $.cloneNode(options.copy.linearGradient); break; case "radialGradient": this.radialGradient = $.cloneNode(options.copy.radialGradient); break; } } // create linear gradient paint else if (options.linearGradient) { this.type = "linearGradient"; this.solidColor = null; this.linearGradient = $.cloneNode(options.linearGradient); } // create linear gradient paint else if (options.radialGradient) { this.type = "radialGradient"; this.solidColor = null; this.radialGradient = $.cloneNode(options.radialGradient); } // create solid color paint else if (options.solidColor) { this.type = "solidColor"; this.solidColor = options.solidColor; } // create empty paint else { this.type = "none"; this.solidColor = null; this.linearGradient = null; } }
|
|
"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional; if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");
|
c.handleSuccess(b,w,e,f);else c.handleError(b,w,e,p);d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")},b.timeout);try{w.send(l||b.data==null?null:b.data)}catch(n){c.handleError(b,w,null,n);c.handleComplete(b,w,e,f)}b.async||L();return w}},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;d[d.length]= encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===B)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)da(f,a[f],b,e);return d.join("&").replace(tb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess",
|
"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");
|
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",
|
true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===
|
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",
|
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode", d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
|
c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,
|
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
|
if (d[i].data) {
|
if (d[i].data != null) {
|
function parseData(d) { var res = []; for (var i = 0; i < d.length; ++i) { var s = $.extend(true, {}, options.series); if (d[i].data) { s.data = d[i].data; // move the data instead of deep-copy delete d[i].data; $.extend(true, s, d[i]); d[i].data = s.data; } else s.data = d[i]; res.push(s); } return res; }
|
"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+ a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
|
!F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&&
|
"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
|
var idLength = mutationBytes[0] - 48, mutationString = mutationBytes.toString(),
|
var mutationJSON, originId if (mutationBytes[0] == jsonBeginCharCode) { mutationJSON = mutationBytes.toString() } else { var idLength = mutationBytes[0] - 48, mutationString = mutationBytes.toString()
|
exports.parseMutationBytes = function(mutationBytes) { // The first byte gives length of connection id var idLength = mutationBytes[0] - 48, mutationString = mutationBytes.toString(), originId = mutationString.substr(1, idLength) mutationJSON = mutationString.substr(1 + idLength) return { json: mutationJSON, originId: originId }}
|
}
|
exports.parseMutationBytes = function(mutationBytes) { // The first byte gives length of connection id var idLength = mutationBytes[0] - 48, mutationString = mutationBytes.toString(), originId = mutationString.substr(1, idLength) mutationJSON = mutationString.substr(1 + idLength) return { json: mutationJSON, originId: originId }}
|
|
var defaults = require('./template_defaults'); this.tags = defaults.tags; this.nodes = defaults.nodes;
|
function Parser(input) { this.token_list = tokenize(input); this.indent = 0; this.blocks = {};}
|
|
__.path = function(commands, attrs){ return __.raphael.path(commands.join(" ")).attr(attrs); };
|
path: function(commands, attrs){ return this.raphael.path(commands.join(" ")).attr(attrs); },
|
__.path = function(commands, attrs){ return __.raphael.path(commands.join(" ")).attr(attrs); };
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.