rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
logger.log('recv', id, name, JSON.stringify(args))
|
logger.debug('recv', id, name, JSON.stringify(args))
|
this.frameReceived = function(id, name, args) { logger.log('recv', id, name, JSON.stringify(args)) if (!this._eventHandlers[name]) { logger.warn('Received event without handler', name) return } var eventHandler = this._eventHandlers[name] setTimeout(function(){ eventHandler(args) }, 0) }
|
if (!this._authenticatedUser) { this.sendFrame('FIN_DEMAND_AUTHENTICATE') return }
|
this.frameReceived = function(id, name, args) { this._log('recv', id, name, JSON.stringify(args)) if (!this._requestHandlers[name]) { logger.warn('Received request without handler', name) return } this._requestHandlers[name](args) }
|
|
var o = { test: { sub: { func: function () { cnt++; return cnt; } } } }
|
func: function () { return 'tobis'; },
|
var o = { test: { sub: { func: function () { cnt++; return cnt; } } } }
|
"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||
|
Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&a>-1E4?a:0},custom:function(a,b,d){function e(l){return f.step(l)}
|
"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||
|
get: function(id) { var cachedControl = this._idToControl[id]; if (cachedControl == null) { return null; } else if (cachedControl == ORBEON.util.Dom.get(id)) { return ORBEON.xforms.ServerValueStore._idToValue[id]; } else { this._idToControl[id] = null; ORBEON.xforms.ServerValueStore._idToValue[id] = null; return null; } },
|
get: function(controlId) { return document.getElementById(controlId); },
|
get: function(id) { var cachedControl = this._idToControl[id]; if (cachedControl == null) { // We known nothing about this control return null; } else if (cachedControl == ORBEON.util.Dom.get(id)) { // We have the value and it is for the right control return ORBEON.xforms.ServerValueStore._idToValue[id]; } else { // We have a value but it is for an obsolete control this._idToControl[id] = null; ORBEON.xforms.ServerValueStore._idToValue[id] = null; return null; } },
|
a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b===
|
if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"}},set:function(d,e){if(Fa.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f=
|
a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b===
|
this.get = function(signal) { return this._pool[signal]
|
this.get = function(name) { return this._pool[name]
|
this.get = function(signal) { return this._pool[signal] }
|
if (this.scrollH) {
|
if (this.scrollV) {
|
getActualOriginalTableWidth: function () { var pxWidth; if (this.originalWidth.indexOf('%') != - 1) { if (this.scrollH) { pxWidth = this.divContainer.clientWidth - 21; } else { pxWidth = this.divContainer.clientWidth - 2; } } else if (this.originalWidth == 'auto') { pxWidth = this.table.clientWidth; } else { pxWidth = this.divContainer.clientWidth - 2; } return pxWidth; },
|
pxWidth = this.divContainer.clientWidth - 2;
|
pxWidth = this.divContainer.clientWidth;
|
getActualOriginalTableWidth: function () { var pxWidth; if (this.originalWidth.indexOf('%') != - 1) { if (this.scrollH) { pxWidth = this.divContainer.clientWidth - 21; } else { pxWidth = this.divContainer.clientWidth - 2; } } else if (this.originalWidth == 'auto') { pxWidth = this.table.clientWidth; } else { pxWidth = this.divContainer.clientWidth - 2; } return pxWidth; },
|
if (ORBEON.xforms.Globals.isRenderingEngineTrident) { return element.getAttribute(name); } else { if (element.hasAttribute(name)) { if (ORBEON.xforms.Globals.isRenderingEngineWebCore) { return ORBEON.util.String.replace(element.getAttribute(name), "&", "&");
|
if (ORBEON.xforms.Globals.isRenderingEngineTrident) { return element.getAttribute(name); } else { if (element.hasAttribute(name)) { if (ORBEON.xforms.Globals.isRenderingEngineWebCore) { return ORBEON.util.String.replace(element.getAttribute(name), "&", "&"); } else { return element.getAttribute(name); }
|
getAttribute: function(element, name) { if (ORBEON.xforms.Globals.isRenderingEngineTrident) { // IE incorrectly already return null when the attribute is not there, // but this happens to be what we want to do here return element.getAttribute(name); } else { // Other browsers that follow the spec return an empty string when the attribute is not there, // so we use hasAttribute() which is not implemented by IE to detect that case. if (element.hasAttribute(name)) { if (ORBEON.xforms.Globals.isRenderingEngineWebCore) { return ORBEON.util.String.replace(element.getAttribute(name), "&", "&"); } else { return element.getAttribute(name); } } else { return null; } } },
|
return element.getAttribute(name);
|
return null;
|
getAttribute: function(element, name) { if (ORBEON.xforms.Globals.isRenderingEngineTrident) { // IE incorrectly already return null when the attribute is not there, // but this happens to be what we want to do here return element.getAttribute(name); } else { // Other browsers that follow the spec return an empty string when the attribute is not there, // so we use hasAttribute() which is not implemented by IE to detect that case. if (element.hasAttribute(name)) { if (ORBEON.xforms.Globals.isRenderingEngineWebCore) { return ORBEON.util.String.replace(element.getAttribute(name), "&", "&"); } else { return element.getAttribute(name); } } else { return null; } } },
|
} else { return null;
|
getAttribute: function(element, name) { if (ORBEON.xforms.Globals.isRenderingEngineTrident) { // IE incorrectly already return null when the attribute is not there, // but this happens to be what we want to do here return element.getAttribute(name); } else { // Other browsers that follow the spec return an empty string when the attribute is not there, // so we use hasAttribute() which is not implemented by IE to detect that case. if (element.hasAttribute(name)) { if (ORBEON.xforms.Globals.isRenderingEngineWebCore) { return ORBEON.util.String.replace(element.getAttribute(name), "&", "&"); } else { return element.getAttribute(name); } } else { return null; } } },
|
|
} },
|
},
|
getAttribute: function(element, name) { if (ORBEON.xforms.Globals.isRenderingEngineTrident) { // IE incorrectly already return null when the attribute is not there, // but this happens to be what we want to do here return element.getAttribute(name); } else { // Other browsers that follow the spec return an empty string when the attribute is not there, // so we use hasAttribute() which is not implemented by IE to detect that case. if (element.hasAttribute(name)) { if (ORBEON.xforms.Globals.isRenderingEngineWebCore) { return ORBEON.util.String.replace(element.getAttribute(name), "&", "&"); } else { return element.getAttribute(name); } } else { return null; } } },
|
var a = (dir == x ? xaxes : yaxes)[number - 1];
|
var a = (dir == "x" ? xaxes : yaxes)[number - 1];
|
plot.getAxis = function (dir, number) { var a = (dir == x ? xaxes : yaxes)[number - 1]; if (a && !a.used) a = null; return a; };
|
null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case "top":b=0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":c=0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();
|
[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.6",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case "top":b=0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":c= 0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();var a={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")},b=f("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,
|
null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case "top":b=0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":c=0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();
|
nM=(dV.getMonth()+a)%12; nY=dV.getFullYear()+parseInt((dV.getMonth()+a)/12,10);
|
var nM=(dV.getMonth()+a)%12; var nY=dV.getFullYear()+parseInt((dV.getMonth()+a)/12,10);
|
function getButtonCode(mD,dV,a,lb,dF){nM=(dV.getMonth()+a)%12;nY=dV.getFullYear()+parseInt((dV.getMonth()+a)/12,10);if (nM<0){nM+=12;nY+=-1;}return "<button onClick='drawCalendar(\""+mD+"\","+nY+","+nM+","+1+",\""+dF+"\");'>"+lb+"</button>";}
|
for (var i = 0; i < parent.childNodes.length; i++) { var child = parent.childNodes[i]; if (ORBEON.util.Dom.isElement(child) && ORBEON.util.Dom.hasClass(child, clazz)) { return child;
|
for (var i = 0; i < parent.childNodes.length; i++) { var child = parent.childNodes[i]; if (ORBEON.util.Dom.isElement(child) && YAHOO.util.Dom.hasClass(child, clazz)) { return child; }
|
getChildElementByClass: function(parent, clazz) { for (var i = 0; i < parent.childNodes.length; i++) { var child = parent.childNodes[i]; if (ORBEON.util.Dom.isElement(child) && ORBEON.util.Dom.hasClass(child, clazz)) { return child; } } return null; },
|
} return null; },
|
return null; },
|
getChildElementByClass: function(parent, clazz) { for (var i = 0; i < parent.childNodes.length; i++) { var child = parent.childNodes[i]; if (ORBEON.util.Dom.isElement(child) && ORBEON.util.Dom.hasClass(child, clazz)) { return child; } } return null; },
|
for (var i = 0; i < parent.childNodes.length; i++) { var child = parent.childNodes[i]; if (ORBEON.util.Dom.isElement(child)) { if (position == 0) return child; position--;
|
for (var i = 0; i < parent.childNodes.length; i++) { var child = parent.childNodes[i]; if (ORBEON.util.Dom.isElement(child)) { if (position == 0) return child; position--; }
|
getChildElementByIndex: function(parent, position) { for (var i = 0; i < parent.childNodes.length; i++) { var child = parent.childNodes[i]; if (ORBEON.util.Dom.isElement(child)) { if (position == 0) return child; position--; } } return null; },
|
} return null; },
|
return null; },
|
getChildElementByIndex: function(parent, position) { for (var i = 0; i < parent.childNodes.length; i++) { var child = parent.childNodes[i]; if (ORBEON.util.Dom.isElement(child)) { if (position == 0) return child; position--; } } return null; },
|
var nodes = []; for (var i = 0; i < parent.childNodes.length; i++) { var child = parent.childNodes[i]; if (ORBEON.util.Dom.isElement(child) && ORBEON.util.Dom.hasClass(child, clazz)) { nodes[nodes.length] = child;
|
var nodes = []; for (var i = 0; i < parent.childNodes.length; i++) { var child = parent.childNodes[i]; if (ORBEON.util.Dom.isElement(child) && YAHOO.util.Dom.hasClass(child, clazz)) { nodes[nodes.length] = child; }
|
getChildElementsByClass: function(parent, clazz) { var nodes = []; for (var i = 0; i < parent.childNodes.length; i++) { var child = parent.childNodes[i]; if (ORBEON.util.Dom.isElement(child) && ORBEON.util.Dom.hasClass(child, clazz)) { nodes[nodes.length] = child; } } return nodes.length == 0 ? null : nodes; },
|
} return nodes.length == 0 ? null : nodes; },
|
return nodes.length == 0 ? null : nodes; },
|
getChildElementsByClass: function(parent, clazz) { var nodes = []; for (var i = 0; i < parent.childNodes.length; i++) { var child = parent.childNodes[i]; if (ORBEON.util.Dom.isElement(child) && ORBEON.util.Dom.hasClass(child, clazz)) { nodes[nodes.length] = child; } } return nodes.length == 0 ? null : nodes; },
|
var autoComplete = this;
|
getCurrentValues: function(query) { var autoComplete = this; var result = []; // YUI autocomplete give us an escaped string query = unescape(query); // Look again for the element, as on IE the <select> is recreated when the itemset changes, and so can't be cached var select1Element = this.container.getElementsByTagName("select")[0]; var options = select1Element.options; var foundExactMatch = false; if (query != "") { var queryLowerCase = query.toLowerCase(); var itemsCount = options.length / 2; for (var optionIndex = 0; optionIndex < itemsCount; optionIndex++) { var option = options[optionIndex]; // We only do filtering for the static itemset mode if (this.isDynamicItemset() || option.value.toLowerCase().indexOf(queryLowerCase) == 0) result[result.length] = [ option.value, options[itemsCount + optionIndex].value ]; if (option.value == query) foundExactMatch = true; } } // If the value in the search field is not in the itemset, set the external value to empty string if (! foundExactMatch) ORBEON.xforms.Document.setValue(this.externalValueInput.id, ""); // If the result only contains one item, and its label is equal to the current value // Set the external value to the value of this option if (result.length == 1 && result[0][0] == query) { ORBEON.xforms.Document.setValue(this.externalValueInput.id, result[0][1]); // Don't return any suggestion result = []; } this.lastSuggestionList = result; return result; }
|
|
if ((typeof($this.opts.dialog_filter) === 'object') && ($this.opts.dialog_filter != null)) { $.extend(a,$this.opts.dialog_filter); $this.opts.dialog_filter=null; var filter_len=a.length; for(var i=0;i < filter_len; i++ ) { var chks=$('#filter input:checkbox','#pv_dlg_plh'+i); if (chks.length) { chks.attr('checked',true); for (var j=0;j < a[i].length; j++) chks.filter('[value='+a[i][j]+']').attr('checked',false); } } return a; } for(var i=0;i < data_row_length; i++ ) $('#filter input:checkbox','#pv_dlg_plh'+i).not(':checked').each(function(){a[i].push($(this).val())}) return a; }
|
if ( (typeof ($this.opts.dialog_filter) === 'object') && ($this.opts.dialog_filter != null) ) { $.extend (a,$this.opts.dialog_filter); return a; } for (var i=0;i < data_row_length; i++ ) $ ('#filter input:checkbox','#pv_dlg_plh'+i).not (':checked').each (function() { a[i].push ($ (this).val() ) }) return a; }
|
,getDialogFilter:function($this,data_row_length)//ac tas EXCLUDE filter with multiple values { var a=jpv_create_2Darray(data_row_length); if ((typeof($this.opts.dialog_filter) === 'object') && ($this.opts.dialog_filter != null)) { /* //try to restore filters we don't have dialogs before 1-st prepare. we can resore filters on another dataset so keys will not be equals to filter values; so do this once, check length, and clear restore data and on next prepare we recreate filter as needed */ $.extend(a,$this.opts.dialog_filter); //copy to a so length will not be less than data_row_length $this.opts.dialog_filter=null; //clear not needed var filter_len=a.length; for(var i=0;i < filter_len; i++ ) { var chks=$('#filter input:checkbox','#pv_dlg_plh'+i); //try to check/uncheck keys in dialogs if exists if (chks.length) { chks.attr('checked',true); for (var j=0;j < a[i].length; j++) chks.filter('[value='+a[i][j]+']').attr('checked',false); } } return a; } for(var i=0;i < data_row_length; i++ ) $('#filter input:checkbox','#pv_dlg_plh'+i).not(':checked').each(function(){a[i].push($(this).val())}) return a; }
|
var b = this._getDoc().body; if (b === null) { return null;
|
try { var b = this._getDoc().body; if (b === null) { return null; } return this._getDoc().body.innerHTML; } catch (e) { return '';
|
getEditorHTML: function() { var b = this._getDoc().body; if (b === null) { return null; } return this._getDoc().body.innerHTML; },
|
return this._getDoc().body.innerHTML;
|
getEditorHTML: function() { var b = this._getDoc().body; if (b === null) { return null; } return this._getDoc().body.innerHTML; },
|
|
element = YAHOO.util.Dom.get('repeat-begin-' + id);
|
element = YAHOO.util.Dom.get("repeat-begin-" + id);
|
function getElement(id) { var element = YAHOO.util.Dom.get(id); if (element == null) { // Try to find repeat (some events xxforms-nodeset-changed can target the repeat) element = YAHOO.util.Dom.get("repeat-begin-" + id); if (element == null) { // Try getting repeat delimiter var separatorPosition = Math.max(id.lastIndexOf(XFORMS_SEPARATOR_1), id.lastIndexOf(XFORMS_SEPARATOR_2)); if (separatorPosition != -1) { var repeatID = id.substring(0, separatorPosition); var iteration = id.substring(separatorPosition + 1); element = ORBEON.util.Utils.findRepeatDelimiter(repeatID, iteration); if (element == null) { // If everything else has failed, the id might be an xforms:repeat id! element = YAHOO.util.Dom.get('repeat-begin-' + id); } } } } return element; }
|
var separatorPosition = Math.max(id.lastIndexOf(XFORMS_SEPARATOR_1), id.lastIndexOf(XFORMS_SEPARATOR_2)); if (separatorPosition != -1) { var repeatID = id.substring(0, separatorPosition); var iteration = id.substring(separatorPosition + 1); element = ORBEON.util.Utils.findRepeatDelimiter(repeatID, iteration); if (element == null) { element = YAHOO.util.Dom.get('repeat-begin-' + id);
|
element = YAHOO.util.Dom.get("repeat-begin-" + id); if (element == null) { var separatorPosition = Math.max(id.lastIndexOf(XFORMS_SEPARATOR_1), id.lastIndexOf(XFORMS_SEPARATOR_2)); if (separatorPosition != -1) { var repeatID = id.substring(0, separatorPosition); var iteration = id.substring(separatorPosition + 1); element = ORBEON.util.Utils.findRepeatDelimiter(repeatID, iteration); if (element == null) { element = YAHOO.util.Dom.get('repeat-begin-' + id); }
|
function getElement(id) { var element = YAHOO.util.Dom.get(id); if (element == null) { // Try getting repeat delimiter var separatorPosition = Math.max(id.lastIndexOf(XFORMS_SEPARATOR_1), id.lastIndexOf(XFORMS_SEPARATOR_2)); if (separatorPosition != -1) { var repeatID = id.substring(0, separatorPosition); var iteration = id.substring(separatorPosition + 1); element = ORBEON.util.Utils.findRepeatDelimiter(repeatID, iteration); if (element == null) { // If everything else has failed, the id might be an xforms:repeat id! element = YAHOO.util.Dom.get('repeat-begin-' + id); } } } return element; }
|
return YAHOO.util.Dom.get(controlId); /* var result = document.getElementById(controlId); if (result && (result.id != controlId) && document.all) { result = null; var documentAll = document.all[controlId]; if (documentAll) { if (documentAll.length) { for (var i = 0; i < documentAll.length; i++) { if (documentAll[i].id == controlId) { result = documentAll[i]; break;
|
return YAHOO.util.Dom.get(controlId); /* var result = document.getElementById(controlId); if (result && (result.id != controlId) && document.all) { result = null; var documentAll = document.all[controlId]; if (documentAll) { if (documentAll.length) { for (var i = 0; i < documentAll.length; i++) { if (documentAll[i].id == controlId) { result = documentAll[i]; break; }
|
getElementByIdNoCache: function(controlId) { return YAHOO.util.Dom.get(controlId); /* var result = document.getElementById(controlId); if (result && (result.id != controlId) && document.all) { result = null; var documentAll = document.all[controlId]; if (documentAll) { if (documentAll.length) { for (var i = 0; i < documentAll.length; i++) { if (documentAll[i].id == controlId) { result = documentAll[i]; break; } } } else { result = documentAll; } } } return result; */ },
|
} else { result = documentAll;
|
getElementByIdNoCache: function(controlId) { return YAHOO.util.Dom.get(controlId); /* var result = document.getElementById(controlId); if (result && (result.id != controlId) && document.all) { result = null; var documentAll = document.all[controlId]; if (documentAll) { if (documentAll.length) { for (var i = 0; i < documentAll.length; i++) { if (documentAll[i].id == controlId) { result = documentAll[i]; break; } } } else { result = documentAll; } } } return result; */ },
|
|
} return result; */ },
|
return result; */ },
|
getElementByIdNoCache: function(controlId) { return YAHOO.util.Dom.get(controlId); /* var result = document.getElementById(controlId); if (result && (result.id != controlId) && document.all) { result = null; var documentAll = document.all[controlId]; if (documentAll) { if (documentAll.length) { for (var i = 0; i < documentAll.length; i++) { if (documentAll[i].id == controlId) { result = documentAll[i]; break; } } } else { result = documentAll; } } } return result; */ },
|
getElementByTagName: function(root, tagName) { var result = null; if (YAHOO.lang.isArray(tagName)) { var tagNames = tagName; for (var tagNameIndex = 0; tagNameIndex < tagNames.length; tagNameIndex++) { var tagName = tagNames[tagNameIndex]; var result = ORBEON.util.Dom.getElementByTagName(root, tagName); if (result != null) break } } else { if (root.tagName.toLowerCase() == tagName) { result = root; } else { var matches = root.getElementsByTagName(tagName); if (matches.length == 1) result = matches[0]; } } return result; },
|
getElementByTagName: function(root, tagNameOrArray) { var result = _.isArray(tagNameOrArray) ? _(tagNameOrArray).chain() .map(_.bind(arguments.callee, null, root)) .compact() .first() .value() : root.tagName.toLowerCase() == tagNameOrArray ? root : root.getElementsByTagName(tagNameOrArray)[0]; return _.isUndefined(result) ? null : result; },
|
getElementByTagName: function(root, tagName) { var result = null; if (YAHOO.lang.isArray(tagName)) { // Multiple possible tag name, try each one var tagNames = tagName; for (var tagNameIndex = 0; tagNameIndex < tagNames.length; tagNameIndex++) { var tagName = tagNames[tagNameIndex]; var result = ORBEON.util.Dom.getElementByTagName(root, tagName); if (result != null) break } } else { if (root.tagName.toLowerCase() == tagName) { result = root; } else { var matches = root.getElementsByTagName(tagName); if (matches.length == 1) result = matches[0]; } } return result; },
|
if (typeof(imgSrc) != "undefined") {
|
if (imgSrc != "undefined") {
|
function getGeoObjectInfo(topicId, resultHandler) { // log('requesting info for: ' + topicId); if (resultHandler == 'abc') { resultHandler = jQuery("#sideBarCategories"); } var url = HIDDEN_SERVICE_URL + 'getGeoObjectInfo.php?topicId=' + topicId; // var body = '{"method": "getGeoObjectInfo", "params": ["' + topicId + '"]}'; // '{' + urlencode(streetFocus) + '}'; jQuery.ajax({ type: "GET", url: url, // data: body, dataType: 'json', success: function(obj){ var topic = obj.result; jQuery("#progContainer").hide();//("hidden", "true"); resultHandler.empty(); var imgSrc = getImageSource(topic); if (typeof(imgSrc) != "undefined") { imgSrc = IMAGES_URL + imgSrc; var imgWidth = jQuery("#sideBar").css("width"); resultHandler.append('<img src="'+imgSrc+'" width="' + imgWidth + '">'); } resultHandler.append('<b>'+topic.name+'</b><br/>'); // resultHandler.append('<table width="100%" cellpadding="2" cellspacing="0" id="sideBarCategoriesTable"></table>'); if (onBerlinDe) resultHandler.append(''+getTopicPostalCode(topic) + ' Berlin <br/>'); else resultHandler.append(''+getTopicPostalCode(topic) + ' ' + getTopicCity(topic) + '<br/>'); resultHandler.append(''+getTopicAddress(topic)+'<p/>'); // resultHandler.append("Loaded Topic" + topic.name); topic = stripFieldsContaining(topic, "LAT"); topic = stripFieldsContaining(topic, "LONG"); topic = stripFieldsContaining(topic, "Locked Geometry"); topic = stripFieldsContaining(topic, "Forum / Aktivierung"); topic = stripFieldsContaining(topic, "Image"); topic = stripFieldsContaining(topic, "Icon"); topic = stripFieldsContaining(topic, "YADE"); topic = stripFieldsContaining(topic, "Stadt"); topic = stripFieldsContaining(topic, "Address"); topic = stripFieldsContaining(topic, "Name"); topic = stripFieldsContaining(topic, "Description"); topic = stripFieldsContaining(topic, "Timestamp"); topic = stripFieldsContaining(topic, "OriginId"); var propertyList = '<p>'; //<table width="100%" cellpadding="2" border="0"><tbody>'; for (var i=0; i < topic.properties.length; i++) { // propertyList += '<tr>'; propertyList += '<p><span class="propertyLabel">'+topic.properties[i].label+': </span>'; if (topic.properties[i].type == 0) { // Type Single propertyList += '<span class="propertyField">'+topic.properties[i].value+'</span></p>'; } else { // Type Multi propertyList += '<span class="propertyField">'; for (var k=0; k < topic.properties[i].values.length; k++) { stringValue = topic.properties[i].values[k].name; var htmlValue = ""; if (stringValue.startsWith("http://")) { htmlValue = makeWebpageLink(stringValue, topic.name); } else { htmlValue = stringValue; } propertyList += '<br/><img style="border-style: none; vertical-align: middle;" ' + ' src="'+ICONS_URL+''+topic.properties[i].values[k].icon+'"> ' + htmlValue; } propertyList += '</span></p>'; } // propertyList += '</tr>'; propertyList += '</p>'; } resultHandler.append(propertyList); // return resultObj = topic; }, // end of success handler error: function(x, s, e){ if (debug) log('Error@GeoObjectInfo Request' + x.statusText); hideProgressFromSideBar(); resultHandler.empty(); resultHandler.append(' <b>Projektbezogener Übertragungsfehler</b><p/>'); resultHandler.append('<table width="100%" cellpadding="2" cellspacing="0" id="sideBarCategoriesTable"><tr>' + '<td class="propertyLabel"> Wir arbeiten noch daran.</td></tr></table>'); // return resultObj = new String('XHRError'); } }); }
|
var imgWidth = jQuery("#sideBar").css("width"); resultHandler.append('<img src="'+imgSrc+'" width="' + imgWidth + '">');
|
resultHandler.append('<img src="'+imgSrc+'"><br/>');
|
function getGeoObjectInfo(topicId, resultHandler) { // log('requesting info for: ' + topicId); if (resultHandler == 'abc') { resultHandler = jQuery("#sideBarCategories"); } var url = HIDDEN_SERVICE_URL + 'getGeoObjectInfo.php?topicId=' + topicId; // var body = '{"method": "getGeoObjectInfo", "params": ["' + topicId + '"]}'; // '{' + urlencode(streetFocus) + '}'; jQuery.ajax({ type: "GET", url: url, // data: body, dataType: 'json', success: function(obj){ var topic = obj.result; jQuery("#progContainer").hide();//("hidden", "true"); resultHandler.empty(); var imgSrc = getImageSource(topic); if (typeof(imgSrc) != "undefined") { imgSrc = IMAGES_URL + imgSrc; var imgWidth = jQuery("#sideBar").css("width"); resultHandler.append('<img src="'+imgSrc+'" width="' + imgWidth + '">'); } resultHandler.append('<b>'+topic.name+'</b><br/>'); // resultHandler.append('<table width="100%" cellpadding="2" cellspacing="0" id="sideBarCategoriesTable"></table>'); if (onBerlinDe) resultHandler.append(''+getTopicPostalCode(topic) + ' Berlin <br/>'); else resultHandler.append(''+getTopicPostalCode(topic) + ' ' + getTopicCity(topic) + '<br/>'); resultHandler.append(''+getTopicAddress(topic)+'<p/>'); // resultHandler.append("Loaded Topic" + topic.name); topic = stripFieldsContaining(topic, "LAT"); topic = stripFieldsContaining(topic, "LONG"); topic = stripFieldsContaining(topic, "Locked Geometry"); topic = stripFieldsContaining(topic, "Forum / Aktivierung"); topic = stripFieldsContaining(topic, "Image"); topic = stripFieldsContaining(topic, "Icon"); topic = stripFieldsContaining(topic, "YADE"); topic = stripFieldsContaining(topic, "Stadt"); topic = stripFieldsContaining(topic, "Address"); topic = stripFieldsContaining(topic, "Name"); topic = stripFieldsContaining(topic, "Description"); topic = stripFieldsContaining(topic, "Timestamp"); topic = stripFieldsContaining(topic, "OriginId"); var propertyList = '<p>'; //<table width="100%" cellpadding="2" border="0"><tbody>'; for (var i=0; i < topic.properties.length; i++) { // propertyList += '<tr>'; propertyList += '<p><span class="propertyLabel">'+topic.properties[i].label+': </span>'; if (topic.properties[i].type == 0) { // Type Single propertyList += '<span class="propertyField">'+topic.properties[i].value+'</span></p>'; } else { // Type Multi propertyList += '<span class="propertyField">'; for (var k=0; k < topic.properties[i].values.length; k++) { stringValue = topic.properties[i].values[k].name; var htmlValue = ""; if (stringValue.startsWith("http://")) { htmlValue = makeWebpageLink(stringValue, topic.name); } else { htmlValue = stringValue; } propertyList += '<br/><img style="border-style: none; vertical-align: middle;" ' + ' src="'+ICONS_URL+''+topic.properties[i].values[k].icon+'"> ' + htmlValue; } propertyList += '</span></p>'; } // propertyList += '</tr>'; propertyList += '</p>'; } resultHandler.append(propertyList); // return resultObj = topic; }, // end of success handler error: function(x, s, e){ if (debug) log('Error@GeoObjectInfo Request' + x.statusText); hideProgressFromSideBar(); resultHandler.empty(); resultHandler.append(' <b>Projektbezogener Übertragungsfehler</b><p/>'); resultHandler.append('<table width="100%" cellpadding="2" cellspacing="0" id="sideBarCategoriesTable"><tr>' + '<td class="propertyLabel"> Wir arbeiten noch daran.</td></tr></table>'); // return resultObj = new String('XHRError'); } }); }
|
htmlValue = makeWebpageLink(stringValue, topic.name); } else {
|
htmlValue = makeWebpageLink(stringValue, stringValue); } else if (stringValue.indexOf("@") != -1) { htmlValue = makeEmailLink(stringValue, stringValue); } else {
|
function getGeoObjectInfo(topicId, resultHandler) { // log('requesting info for: ' + topicId); if (resultHandler == 'abc') { resultHandler = jQuery("#sideBarCategories"); } var url = HIDDEN_SERVICE_URL + 'getGeoObjectInfo.php?topicId=' + topicId; // var body = '{"method": "getGeoObjectInfo", "params": ["' + topicId + '"]}'; // '{' + urlencode(streetFocus) + '}'; jQuery.ajax({ type: "GET", url: url, // data: body, dataType: 'json', success: function(obj){ var topic = obj.result; jQuery("#progContainer").hide();//("hidden", "true"); resultHandler.empty(); var imgSrc = getImageSource(topic); if (typeof(imgSrc) != "undefined") { imgSrc = IMAGES_URL + imgSrc; var imgWidth = jQuery("#sideBar").css("width"); resultHandler.append('<img src="'+imgSrc+'" width="' + imgWidth + '">'); } resultHandler.append('<b>'+topic.name+'</b><br/>'); // resultHandler.append('<table width="100%" cellpadding="2" cellspacing="0" id="sideBarCategoriesTable"></table>'); if (onBerlinDe) resultHandler.append(''+getTopicPostalCode(topic) + ' Berlin <br/>'); else resultHandler.append(''+getTopicPostalCode(topic) + ' ' + getTopicCity(topic) + '<br/>'); resultHandler.append(''+getTopicAddress(topic)+'<p/>'); // resultHandler.append("Loaded Topic" + topic.name); topic = stripFieldsContaining(topic, "LAT"); topic = stripFieldsContaining(topic, "LONG"); topic = stripFieldsContaining(topic, "Locked Geometry"); topic = stripFieldsContaining(topic, "Forum / Aktivierung"); topic = stripFieldsContaining(topic, "Image"); topic = stripFieldsContaining(topic, "Icon"); topic = stripFieldsContaining(topic, "YADE"); topic = stripFieldsContaining(topic, "Stadt"); topic = stripFieldsContaining(topic, "Address"); topic = stripFieldsContaining(topic, "Name"); topic = stripFieldsContaining(topic, "Description"); topic = stripFieldsContaining(topic, "Timestamp"); topic = stripFieldsContaining(topic, "OriginId"); var propertyList = '<p>'; //<table width="100%" cellpadding="2" border="0"><tbody>'; for (var i=0; i < topic.properties.length; i++) { // propertyList += '<tr>'; propertyList += '<p><span class="propertyLabel">'+topic.properties[i].label+': </span>'; if (topic.properties[i].type == 0) { // Type Single propertyList += '<span class="propertyField">'+topic.properties[i].value+'</span></p>'; } else { // Type Multi propertyList += '<span class="propertyField">'; for (var k=0; k < topic.properties[i].values.length; k++) { stringValue = topic.properties[i].values[k].name; var htmlValue = ""; if (stringValue.startsWith("http://")) { htmlValue = makeWebpageLink(stringValue, topic.name); } else { htmlValue = stringValue; } propertyList += '<br/><img style="border-style: none; vertical-align: middle;" ' + ' src="'+ICONS_URL+''+topic.properties[i].values[k].icon+'"> ' + htmlValue; } propertyList += '</span></p>'; } // propertyList += '</tr>'; propertyList += '</p>'; } resultHandler.append(propertyList); // return resultObj = topic; }, // end of success handler error: function(x, s, e){ if (debug) log('Error@GeoObjectInfo Request' + x.statusText); hideProgressFromSideBar(); resultHandler.empty(); resultHandler.append(' <b>Projektbezogener Übertragungsfehler</b><p/>'); resultHandler.append('<table width="100%" cellpadding="2" cellspacing="0" id="sideBarCategoriesTable"><tr>' + '<td class="propertyLabel"> Wir arbeiten noch daran.</td></tr></table>'); // return resultObj = new String('XHRError'); } }); }
|
var url = HIDDEN_SERVICE_URL + 'getGeoObjectInfo.php?topicId=' + topicId;
|
var url = SERVICE_URL; var body = '{"method": "getGeoObjectInfo", "params": ["' + topicId + '"]}';
|
function getGeoObjectInfo(topicId, resultHandler) { // log('requesting info for: ' + topicId); if (resultHandler == 'abc') { resultHandler = jQuery("#sideBarCategories"); } var url = HIDDEN_SERVICE_URL + 'getGeoObjectInfo.php?topicId=' + topicId; // var body = '{"method": "getGeoObjectInfo", "params": ["' + topicId + '"]}'; // '{' + urlencode(streetFocus) + '}'; jQuery.ajax({ type: "GET", url: url, // data: body, dataType: 'json', success: function(obj){ var topic = obj.result; jQuery("#progContainer").hide();//("hidden", "true"); resultHandler.empty(); var imgSrc = getImageSource(topic); if (imgSrc != "undefined") { imgSrc = IMAGES_URL + imgSrc; // var imgWidth = jQuery("#sideBar").css("width"); resultHandler.append('<img src="'+imgSrc+'"><br/>'); } resultHandler.append('<b>'+topic.name+'</b><br/>'); // resultHandler.append('<table width="100%" cellpadding="2" cellspacing="0" id="sideBarCategoriesTable"></table>'); if (onBerlinDe) resultHandler.append(''+getTopicPostalCode(topic) + ' Berlin <br/>'); else resultHandler.append(''+getTopicPostalCode(topic) + ' ' + getTopicCity(topic) + '<br/>'); resultHandler.append(''+getTopicAddress(topic)+'<p/>'); // resultHandler.append("Loaded Topic" + topic.name); topic = stripFieldsContaining(topic, "LAT"); topic = stripFieldsContaining(topic, "LONG"); topic = stripFieldsContaining(topic, "Locked Geometry"); topic = stripFieldsContaining(topic, "Forum / Aktivierung"); topic = stripFieldsContaining(topic, "Image"); topic = stripFieldsContaining(topic, "Icon"); topic = stripFieldsContaining(topic, "YADE"); topic = stripFieldsContaining(topic, "Stadt"); topic = stripFieldsContaining(topic, "Address"); topic = stripFieldsContaining(topic, "Name"); topic = stripFieldsContaining(topic, "Description"); topic = stripFieldsContaining(topic, "Timestamp"); topic = stripFieldsContaining(topic, "OriginId"); var propertyList = '<p>'; //<table width="100%" cellpadding="2" border="0"><tbody>'; for (var i=0; i < topic.properties.length; i++) { // propertyList += '<tr>'; propertyList += '<p><span class="propertyLabel">'+topic.properties[i].label+': </span>'; if (topic.properties[i].type == 0) { // Type Single propertyList += '<span class="propertyField">'+topic.properties[i].value+'</span></p>'; } else { // Type Multi propertyList += '<span class="propertyField">'; for (var k=0; k < topic.properties[i].values.length; k++) { stringValue = topic.properties[i].values[k].name; var htmlValue = ""; if (stringValue.startsWith("http://")) { htmlValue = makeWebpageLink(stringValue, stringValue); } else if (stringValue.indexOf("@") != -1) { htmlValue = makeEmailLink(stringValue, stringValue); } else { htmlValue = stringValue; } propertyList += '<br/><img style="border-style: none; vertical-align: middle;" ' + ' src="'+ICONS_URL+''+topic.properties[i].values[k].icon+'"> ' + htmlValue; } propertyList += '</span></p>'; } // propertyList += '</tr>'; propertyList += '</p>'; } resultHandler.append(propertyList); // return resultObj = topic; }, // end of success handler error: function(x, s, e){ if (debug) log('Error@GeoObjectInfo Request' + x.statusText); hideProgressFromSideBar(); resultHandler.empty(); resultHandler.append(' <b>Projektbezogener Übertragungsfehler</b><p/>'); resultHandler.append('<table width="100%" cellpadding="2" cellspacing="0" id="sideBarCategoriesTable"><tr>' + '<td class="propertyLabel"> Wir arbeiten noch daran.</td></tr></table>'); // return resultObj = new String('XHRError'); } }); }
|
type: "GET",
|
type: "POST",
|
function getGeoObjectInfo(topicId, resultHandler) { // log('requesting info for: ' + topicId); if (resultHandler == 'abc') { resultHandler = jQuery("#sideBarCategories"); } var url = HIDDEN_SERVICE_URL + 'getGeoObjectInfo.php?topicId=' + topicId; // var body = '{"method": "getGeoObjectInfo", "params": ["' + topicId + '"]}'; // '{' + urlencode(streetFocus) + '}'; jQuery.ajax({ type: "GET", url: url, // data: body, dataType: 'json', success: function(obj){ var topic = obj.result; jQuery("#progContainer").hide();//("hidden", "true"); resultHandler.empty(); var imgSrc = getImageSource(topic); if (imgSrc != "undefined") { imgSrc = IMAGES_URL + imgSrc; // var imgWidth = jQuery("#sideBar").css("width"); resultHandler.append('<img src="'+imgSrc+'"><br/>'); } resultHandler.append('<b>'+topic.name+'</b><br/>'); // resultHandler.append('<table width="100%" cellpadding="2" cellspacing="0" id="sideBarCategoriesTable"></table>'); if (onBerlinDe) resultHandler.append(''+getTopicPostalCode(topic) + ' Berlin <br/>'); else resultHandler.append(''+getTopicPostalCode(topic) + ' ' + getTopicCity(topic) + '<br/>'); resultHandler.append(''+getTopicAddress(topic)+'<p/>'); // resultHandler.append("Loaded Topic" + topic.name); topic = stripFieldsContaining(topic, "LAT"); topic = stripFieldsContaining(topic, "LONG"); topic = stripFieldsContaining(topic, "Locked Geometry"); topic = stripFieldsContaining(topic, "Forum / Aktivierung"); topic = stripFieldsContaining(topic, "Image"); topic = stripFieldsContaining(topic, "Icon"); topic = stripFieldsContaining(topic, "YADE"); topic = stripFieldsContaining(topic, "Stadt"); topic = stripFieldsContaining(topic, "Address"); topic = stripFieldsContaining(topic, "Name"); topic = stripFieldsContaining(topic, "Description"); topic = stripFieldsContaining(topic, "Timestamp"); topic = stripFieldsContaining(topic, "OriginId"); var propertyList = '<p>'; //<table width="100%" cellpadding="2" border="0"><tbody>'; for (var i=0; i < topic.properties.length; i++) { // propertyList += '<tr>'; propertyList += '<p><span class="propertyLabel">'+topic.properties[i].label+': </span>'; if (topic.properties[i].type == 0) { // Type Single propertyList += '<span class="propertyField">'+topic.properties[i].value+'</span></p>'; } else { // Type Multi propertyList += '<span class="propertyField">'; for (var k=0; k < topic.properties[i].values.length; k++) { stringValue = topic.properties[i].values[k].name; var htmlValue = ""; if (stringValue.startsWith("http://")) { htmlValue = makeWebpageLink(stringValue, stringValue); } else if (stringValue.indexOf("@") != -1) { htmlValue = makeEmailLink(stringValue, stringValue); } else { htmlValue = stringValue; } propertyList += '<br/><img style="border-style: none; vertical-align: middle;" ' + ' src="'+ICONS_URL+''+topic.properties[i].values[k].icon+'"> ' + htmlValue; } propertyList += '</span></p>'; } // propertyList += '</tr>'; propertyList += '</p>'; } resultHandler.append(propertyList); // return resultObj = topic; }, // end of success handler error: function(x, s, e){ if (debug) log('Error@GeoObjectInfo Request' + x.statusText); hideProgressFromSideBar(); resultHandler.empty(); resultHandler.append(' <b>Projektbezogener Übertragungsfehler</b><p/>'); resultHandler.append('<table width="100%" cellpadding="2" cellspacing="0" id="sideBarCategoriesTable"><tr>' + '<td class="propertyLabel"> Wir arbeiten noch daran.</td></tr></table>'); // return resultObj = new String('XHRError'); } }); }
|
dataType: 'json',
|
data: body, beforeSend: function(xhr) {xhr.setRequestHeader("Content-Type", "application/json")}, dataType: 'json',
|
function getGeoObjectInfo(topicId, resultHandler) { // log('requesting info for: ' + topicId); if (resultHandler == 'abc') { resultHandler = jQuery("#sideBarCategories"); } var url = HIDDEN_SERVICE_URL + 'getGeoObjectInfo.php?topicId=' + topicId; // var body = '{"method": "getGeoObjectInfo", "params": ["' + topicId + '"]}'; // '{' + urlencode(streetFocus) + '}'; jQuery.ajax({ type: "GET", url: url, // data: body, dataType: 'json', success: function(obj){ var topic = obj.result; jQuery("#progContainer").hide();//("hidden", "true"); resultHandler.empty(); var imgSrc = getImageSource(topic); if (imgSrc != "undefined") { imgSrc = IMAGES_URL + imgSrc; // var imgWidth = jQuery("#sideBar").css("width"); resultHandler.append('<img src="'+imgSrc+'"><br/>'); } resultHandler.append('<b>'+topic.name+'</b><br/>'); // resultHandler.append('<table width="100%" cellpadding="2" cellspacing="0" id="sideBarCategoriesTable"></table>'); if (onBerlinDe) resultHandler.append(''+getTopicPostalCode(topic) + ' Berlin <br/>'); else resultHandler.append(''+getTopicPostalCode(topic) + ' ' + getTopicCity(topic) + '<br/>'); resultHandler.append(''+getTopicAddress(topic)+'<p/>'); // resultHandler.append("Loaded Topic" + topic.name); topic = stripFieldsContaining(topic, "LAT"); topic = stripFieldsContaining(topic, "LONG"); topic = stripFieldsContaining(topic, "Locked Geometry"); topic = stripFieldsContaining(topic, "Forum / Aktivierung"); topic = stripFieldsContaining(topic, "Image"); topic = stripFieldsContaining(topic, "Icon"); topic = stripFieldsContaining(topic, "YADE"); topic = stripFieldsContaining(topic, "Stadt"); topic = stripFieldsContaining(topic, "Address"); topic = stripFieldsContaining(topic, "Name"); topic = stripFieldsContaining(topic, "Description"); topic = stripFieldsContaining(topic, "Timestamp"); topic = stripFieldsContaining(topic, "OriginId"); var propertyList = '<p>'; //<table width="100%" cellpadding="2" border="0"><tbody>'; for (var i=0; i < topic.properties.length; i++) { // propertyList += '<tr>'; propertyList += '<p><span class="propertyLabel">'+topic.properties[i].label+': </span>'; if (topic.properties[i].type == 0) { // Type Single propertyList += '<span class="propertyField">'+topic.properties[i].value+'</span></p>'; } else { // Type Multi propertyList += '<span class="propertyField">'; for (var k=0; k < topic.properties[i].values.length; k++) { stringValue = topic.properties[i].values[k].name; var htmlValue = ""; if (stringValue.startsWith("http://")) { htmlValue = makeWebpageLink(stringValue, stringValue); } else if (stringValue.indexOf("@") != -1) { htmlValue = makeEmailLink(stringValue, stringValue); } else { htmlValue = stringValue; } propertyList += '<br/><img style="border-style: none; vertical-align: middle;" ' + ' src="'+ICONS_URL+''+topic.properties[i].values[k].icon+'"> ' + htmlValue; } propertyList += '</span></p>'; } // propertyList += '</tr>'; propertyList += '</p>'; } resultHandler.append(propertyList); // return resultObj = topic; }, // end of success handler error: function(x, s, e){ if (debug) log('Error@GeoObjectInfo Request' + x.statusText); hideProgressFromSideBar(); resultHandler.empty(); resultHandler.append(' <b>Projektbezogener Übertragungsfehler</b><p/>'); resultHandler.append('<table width="100%" cellpadding="2" cellspacing="0" id="sideBarCategoriesTable"><tr>' + '<td class="propertyLabel"> Wir arbeiten noch daran.</td></tr></table>'); // return resultObj = new String('XHRError'); } }); }
|
if (ORBEON.util.Dom.hasClass(control, "xforms-trigger") || ORBEON.util.Dom.hasClass(control, "xforms-submit")) {
|
if (YAHOO.util.Dom.hasClass(control, "xforms-trigger") || YAHOO.util.Dom.hasClass(control, "xforms-submit")) {
|
getHintMessage: function(control) { if (ORBEON.util.Dom.hasClass(control, "xforms-trigger") || ORBEON.util.Dom.hasClass(control, "xforms-submit")) { var formElement = ORBEON.util.Dom.getElementByTagName(control, ["a", "button"]); return formElement.title; } else { // Element for hint var hintElement = ORBEON.xforms.Controls._getControlLHHA(control, "hint"); return hintElement == null ? "" : hintElement.innerHTML; } },
|
return "";
|
return "undefined";
|
function getImageSource(topic) { for (var i=0; i < topic.properties.length; i++) { if (topic.properties[i].name == "Image / File" && topic.properties[i].value != "") { return topic.properties[i].value; } } return ""; }
|
Date.getInterval = function(interval, value){ if (!interval || !value) return 0;
|
Date.getInterval = function(interval, count){ if (!count) count=1; if (!interval) return 0;
|
Date.getInterval = function(interval, value){ if (!interval || !value) return 0; switch(interval.toLowerCase()){ case Date.MILLI: return value case Date.SECOND: return value * 1000; case Date.MINUTE: return value * 1000 * 60; case Date.HOUR: return value * 1000 * 60 *60; case Date.DAY: return value * 1000 * 60 *60 *24; case Date.MONTH: return value * 1000 * 60 *60 *24*30; case Date.YEAR: return value * 1000 * 60 *60 *24*365; } return 0;};
|
return value
|
return count
|
Date.getInterval = function(interval, value){ if (!interval || !value) return 0; switch(interval.toLowerCase()){ case Date.MILLI: return value case Date.SECOND: return value * 1000; case Date.MINUTE: return value * 1000 * 60; case Date.HOUR: return value * 1000 * 60 *60; case Date.DAY: return value * 1000 * 60 *60 *24; case Date.MONTH: return value * 1000 * 60 *60 *24*30; case Date.YEAR: return value * 1000 * 60 *60 *24*365; } return 0;};
|
return value * 1000;
|
return count * 1000;
|
Date.getInterval = function(interval, value){ if (!interval || !value) return 0; switch(interval.toLowerCase()){ case Date.MILLI: return value case Date.SECOND: return value * 1000; case Date.MINUTE: return value * 1000 * 60; case Date.HOUR: return value * 1000 * 60 *60; case Date.DAY: return value * 1000 * 60 *60 *24; case Date.MONTH: return value * 1000 * 60 *60 *24*30; case Date.YEAR: return value * 1000 * 60 *60 *24*365; } return 0;};
|
return value * 1000 * 60;
|
return count * 1000 * 60;
|
Date.getInterval = function(interval, value){ if (!interval || !value) return 0; switch(interval.toLowerCase()){ case Date.MILLI: return value case Date.SECOND: return value * 1000; case Date.MINUTE: return value * 1000 * 60; case Date.HOUR: return value * 1000 * 60 *60; case Date.DAY: return value * 1000 * 60 *60 *24; case Date.MONTH: return value * 1000 * 60 *60 *24*30; case Date.YEAR: return value * 1000 * 60 *60 *24*365; } return 0;};
|
return value * 1000 * 60 *60;
|
return count * 1000 * 60 *60;
|
Date.getInterval = function(interval, value){ if (!interval || !value) return 0; switch(interval.toLowerCase()){ case Date.MILLI: return value case Date.SECOND: return value * 1000; case Date.MINUTE: return value * 1000 * 60; case Date.HOUR: return value * 1000 * 60 *60; case Date.DAY: return value * 1000 * 60 *60 *24; case Date.MONTH: return value * 1000 * 60 *60 *24*30; case Date.YEAR: return value * 1000 * 60 *60 *24*365; } return 0;};
|
return value * 1000 * 60 *60 *24;
|
return count * 1000 * 60 *60 *24;
|
Date.getInterval = function(interval, value){ if (!interval || !value) return 0; switch(interval.toLowerCase()){ case Date.MILLI: return value case Date.SECOND: return value * 1000; case Date.MINUTE: return value * 1000 * 60; case Date.HOUR: return value * 1000 * 60 *60; case Date.DAY: return value * 1000 * 60 *60 *24; case Date.MONTH: return value * 1000 * 60 *60 *24*30; case Date.YEAR: return value * 1000 * 60 *60 *24*365; } return 0;};
|
return value * 1000 * 60 *60 *24*30;
|
return count * 1000 * 60 *60 *24*30;
|
Date.getInterval = function(interval, value){ if (!interval || !value) return 0; switch(interval.toLowerCase()){ case Date.MILLI: return value case Date.SECOND: return value * 1000; case Date.MINUTE: return value * 1000 * 60; case Date.HOUR: return value * 1000 * 60 *60; case Date.DAY: return value * 1000 * 60 *60 *24; case Date.MONTH: return value * 1000 * 60 *60 *24*30; case Date.YEAR: return value * 1000 * 60 *60 *24*365; } return 0;};
|
return value * 1000 * 60 *60 *24*365;
|
return count * 1000 * 60 *60 *24*365;
|
Date.getInterval = function(interval, value){ if (!interval || !value) return 0; switch(interval.toLowerCase()){ case Date.MILLI: return value case Date.SECOND: return value * 1000; case Date.MINUTE: return value * 1000 * 60; case Date.HOUR: return value * 1000 * 60 *60; case Date.DAY: return value * 1000 * 60 *60 *24; case Date.MONTH: return value * 1000 * 60 *60 *24*30; case Date.YEAR: return value * 1000 * 60 *60 *24*365; } return 0;};
|
if (!this._items[itemId]) { this._items[itemId] = {} }
|
if (!this._items[itemId]) { this._items[itemId] = { _id: itemId } }
|
this.getItemData = function(itemId, callback) { if (!this._items[itemId]) { this._items[itemId] = {} } callback(null, this._items[itemId]) }
|
if (typeof itemId == 'undefined' || !propName) { throw logger.error("itemId and propName are required for shared.keys.getItemPropertyKey") }
|
assert(propName && typeof itemId != 'undefined', "itemId and propName are required for shared.keys.getItemPropertyKey")
|
exports.getItemPropertyKey = function(itemId, propName) { if (typeof itemId == 'undefined' || !propName) { throw logger.error("itemId and propName are required for shared.keys.getItemPropertyKey") } return 'I' + itemId + '@' + propName}
|
return { type: type, id: parts[0], prop: parts[1] }
|
return { type: type, id: parts[0], property: parts[1] }
|
exports.getKeyInfo = function(key) { var type = key[0], parts = key.substr(1).split('@') return { type: type, id: parts[0], prop: parts[1] }}
|
if (ORBEON.util.Dom.hasClass(control, "xforms-trigger") || ORBEON.util.Dom.hasClass(control, "xforms-submit")) {
|
if (YAHOO.util.Dom.hasClass(control, "xforms-trigger") || YAHOO.util.Dom.hasClass(control, "xforms-submit")) {
|
getLabelMessage: function(control) { if (ORBEON.util.Dom.hasClass(control, "xforms-trigger") || ORBEON.util.Dom.hasClass(control, "xforms-submit")) { if (control.tagName.toLowerCase() == "input") { // Image return control.alt; } else { // Link or button return control.innerHTML; } } else if (ORBEON.util.Dom.hasClass(control, "xforms-dialog")) { // Dialog var labelDiv = ORBEON.util.Dom.getChildElementByIndex(control, 0); return labelDiv.innerHTML; } else if (ORBEON.util.Dom.hasClass(control, "xforms-group-appearance-xxforms-fieldset")) { // Group with fieldset/legend var legend = ORBEON.util.Dom.getChildElementByIndex(control, 0); if (legend != null) return legend.innerHTML; } else { var labelElement = ORBEON.xforms.Controls._getControlLHHA(control, "label"); return labelElement.innerHTML; } },
|
} else if (ORBEON.util.Dom.hasClass(control, "xforms-dialog")) {
|
} else if (YAHOO.util.Dom.hasClass(control, "xforms-dialog")) {
|
getLabelMessage: function(control) { if (ORBEON.util.Dom.hasClass(control, "xforms-trigger") || ORBEON.util.Dom.hasClass(control, "xforms-submit")) { if (control.tagName.toLowerCase() == "input") { // Image return control.alt; } else { // Link or button return control.innerHTML; } } else if (ORBEON.util.Dom.hasClass(control, "xforms-dialog")) { // Dialog var labelDiv = ORBEON.util.Dom.getChildElementByIndex(control, 0); return labelDiv.innerHTML; } else if (ORBEON.util.Dom.hasClass(control, "xforms-group-appearance-xxforms-fieldset")) { // Group with fieldset/legend var legend = ORBEON.util.Dom.getChildElementByIndex(control, 0); if (legend != null) return legend.innerHTML; } else { var labelElement = ORBEON.xforms.Controls._getControlLHHA(control, "label"); return labelElement.innerHTML; } },
|
} else if (ORBEON.util.Dom.hasClass(control, "xforms-group-appearance-xxforms-fieldset")) {
|
} else if (YAHOO.util.Dom.hasClass(control, "xforms-group-appearance-xxforms-fieldset")) {
|
getLabelMessage: function(control) { if (ORBEON.util.Dom.hasClass(control, "xforms-trigger") || ORBEON.util.Dom.hasClass(control, "xforms-submit")) { if (control.tagName.toLowerCase() == "input") { // Image return control.alt; } else { // Link or button return control.innerHTML; } } else if (ORBEON.util.Dom.hasClass(control, "xforms-dialog")) { // Dialog var labelDiv = ORBEON.util.Dom.getChildElementByIndex(control, 0); return labelDiv.innerHTML; } else if (ORBEON.util.Dom.hasClass(control, "xforms-group-appearance-xxforms-fieldset")) { // Group with fieldset/legend var legend = ORBEON.util.Dom.getChildElementByIndex(control, 0); if (legend != null) return legend.innerHTML; } else { var labelElement = ORBEON.xforms.Controls._getControlLHHA(control, "label"); return labelElement.innerHTML; } },
|
if (control.tagName.toLowerCase() == "input") { return control.alt;
|
if (ORBEON.util.Utils.isNewXHTMLLayout()) { var labelElement = ORBEON.xforms.Controls._getControlLHHA(control, "control"); return labelElement.innerHTML;
|
getLabelMessage: function(control) { if (YAHOO.util.Dom.hasClass(control, "xforms-trigger") || YAHOO.util.Dom.hasClass(control, "xforms-submit")) { if (control.tagName.toLowerCase() == "input") { // Image return control.alt; } else { // Link or button return control.innerHTML; } } else if (YAHOO.util.Dom.hasClass(control, "xforms-dialog")) { // Dialog var labelDiv = ORBEON.util.Dom.getChildElementByIndex(control, 0); return labelDiv.innerHTML; } else if (YAHOO.util.Dom.hasClass(control, "xforms-group-appearance-xxforms-fieldset")) { // Group with fieldset/legend var legend = ORBEON.util.Dom.getChildElementByIndex(control, 0); if (legend != null) return legend.innerHTML; } else { var labelElement = ORBEON.xforms.Controls._getControlLHHA(control, "label"); return labelElement.innerHTML; } },
|
var options = this.htmlSelect.options;
|
var htmlSelect = this.getHTMLSelect(); var options = htmlSelect.options;
|
getMenuItems: function() { var newMenuItems = []; var options = this.htmlSelect.options; for (var optionIndex = 0; optionIndex < options.length; optionIndex++) { var option = { label: options[optionIndex].text, value: options[optionIndex].value }; newMenuItems.push({ text: option.label, value: option.value, onclick: { fn: this.selectionMade, obj: option, scope: this }}); } return newMenuItems; },
|
Joint.getMousePosition = function(e, r){
|
Joint.getMousePosition = function(e, el){
|
Joint.getMousePosition = function(e, r){ var pos; if (e.pageX || e.pageY) { pos = point(e.pageX, e.pageY); } else { var docEl = document.documentElement, docBody = document.body; pos = point(e.clientX + (docEl.scrollLeft || docBody.scrollLeft) - docEl.clientLeft, e.clientY + (docEl.scrollTop || docBody.scrollTop) - docEl.clientTop); } var rp = Joint.findPos(r.canvas); return point(pos.x - rp.x, pos.y - rp.y);};
|
var rp = Joint.findPos(r.canvas);
|
var rp = Joint.findPos(el);
|
Joint.getMousePosition = function(e, r){ var pos; if (e.pageX || e.pageY) { pos = point(e.pageX, e.pageY); } else { var docEl = document.documentElement, docBody = document.body; pos = point(e.clientX + (docEl.scrollLeft || docBody.scrollLeft) - docEl.clientLeft, e.clientY + (docEl.scrollTop || docBody.scrollTop) - docEl.clientTop); } var rp = Joint.findPos(r.canvas); return point(pos.x - rp.x, pos.y - rp.y);};
|
} else { pos = point(e.clientX + (document.documentElement.scrollLeft || document.body.scrollLeft) - document.documentElement.clientLeft, e.clientY + (document.documentElement.scrollTop || document.body.scrollTop) - document.documentElement.clientTop);
|
} else { var docEl = document.documentElement, docBody = document.body; pos = point(e.clientX + (docEl.scrollLeft || docBody.scrollLeft) - docEl.clientLeft, e.clientY + (docEl.scrollTop || docBody.scrollTop) - docEl.clientTop);
|
Joint.getMousePosition = function(e, r){ var pos; if (e.pageX || e.pageY) { pos = point(e.pageX, e.pageY); } else { pos = point(e.clientX + (document.documentElement.scrollLeft || document.body.scrollLeft) - document.documentElement.clientLeft, e.clientY + (document.documentElement.scrollTop || document.body.scrollTop) - document.documentElement.clientTop); } var rp = Joint.findPos(r.canvas); return point(pos.x - rp.x, pos.y - rp.y);};
|
sb[sb.length] = '<tr>';
|
sb[sb.length] = '<tr class="ygtvrow">';
|
getNodeHtml: function() { this.logger.log("Generating html"); var sb = []; var getNode = 'YAHOO.widget.TreeView.getNode(\'' + this.tree.id + '\',' + this.index + ')'; sb[sb.length] = '<table border="0" cellpadding="0" cellspacing="0">'; sb[sb.length] = '<tr>'; for (var i=0;i<this.depth;++i) { //sb[sb.length] = '<td class="' + this.getDepthStyle(i) + '"> </td>'; sb[sb.length] = '<td class="' + this.getDepthStyle(i) + '"><div class="ygtvspacer"></div></td>'; } sb[sb.length] = '<td'; sb[sb.length] = ' id="' + this.getToggleElId() + '"'; sb[sb.length] = ' class="' + this.getStyle() + '"'; if (this.hasChildren(true)) { sb[sb.length] = ' onmouseover="this.className='; sb[sb.length] = 'YAHOO.widget.TreeView.getNode(\''; sb[sb.length] = this.tree.id + '\',' + this.index + ').getHoverStyle()"'; sb[sb.length] = ' onmouseout="this.className='; sb[sb.length] = 'YAHOO.widget.TreeView.getNode(\''; sb[sb.length] = this.tree.id + '\',' + this.index + ').getStyle()"'; } //sb[sb.length] = ' onclick="javascript:' + this.getToggleLink() + '"> '; sb[sb.length] = ' onclick="javascript:' + this.getToggleLink() + '">'; //sb[sb.length] = '</td>'; sb[sb.length] = '<div class="ygtvspacer"></div></td>'; // check box sb[sb.length] = '<td'; sb[sb.length] = ' id="' + this.getCheckElId() + '"'; sb[sb.length] = ' class="' + this.getCheckStyle() + '"'; sb[sb.length] = ' onclick="javascript:' + this.getCheckLink() + '">'; //sb[sb.length] = ' </td>'; sb[sb.length] = '<div class="ygtvspacer"></div></td>'; sb[sb.length] = '<td>'; sb[sb.length] = '<a'; sb[sb.length] = ' id="' + this.labelElId + '"'; if (this.title) { sb[sb.length] = ' title="' + this.title + '"'; } sb[sb.length] = ' class="' + this.labelStyle + '"'; sb[sb.length] = ' href="' + this.href + '"'; sb[sb.length] = ' target="' + this.target + '"'; sb[sb.length] = ' onclick="return ' + getNode + '.onLabelClick(' + getNode +')"'; if (this.hasChildren(true)) { sb[sb.length] = ' onmouseover="document.getElementById(\''; sb[sb.length] = this.getToggleElId() + '\').className='; sb[sb.length] = 'YAHOO.widget.TreeView.getNode(\''; sb[sb.length] = this.tree.id + '\',' + this.index + ').getHoverStyle()"'; sb[sb.length] = ' onmouseout="document.getElementById(\''; sb[sb.length] = this.getToggleElId() + '\').className='; sb[sb.length] = 'YAHOO.widget.TreeView.getNode(\''; sb[sb.length] = this.tree.id + '\',' + this.index + ').getStyle()"'; } sb[sb.length] = (this.nowrap) ? ' nowrap="nowrap" ' : ''; sb[sb.length] = ' >'; sb[sb.length] = this.label; sb[sb.length] = '</a>'; sb[sb.length] = '</td>'; sb[sb.length] = '</tr>'; sb[sb.length] = '</table>'; return sb.join(""); },
|
function getNotificationBox(aBrowser) { return Browser.getNotificationBox(aBrowser); }
|
getNotificationBox: function getNotificationBox(aBrowser) { let browser = aBrowser || this.selectedBrowser; return browser.parentNode; },
|
function getNotificationBox(aBrowser) { return Browser.getNotificationBox(aBrowser);}
|
this.getProperty = function(propertyName, noDefault) {
|
this.getProperty = function(propertyName, noDefaultValue) {
|
this.getProperty = function(propertyName, noDefault) { if (this._referencedItem) { return this._referencedItem.getProperty(propertyName); } else if (noDefaultValue) { return null } else { return propertyName; } }
|
return null
|
return null;
|
this.getProperty = function(propertyName, noDefault) { if (this._referencedItem) { return this._referencedItem.getProperty(propertyName); } else if (noDefaultValue) { return null } else { return propertyName; } }
|
this.getProperty = function(propertyName) {
|
this.getProperty = function(propertyName, noDefault) {
|
this.getProperty = function(propertyName) { if (this._referencedItem) { return this._referencedItem.getProperty(propertyName); } else { return 'loading...'; } }
|
return 'loading...';
|
return propertyName;
|
this.getProperty = function(propertyName) { if (this._referencedItem) { return this._referencedItem.getProperty(propertyName); } else { return 'loading...'; } }
|
var formDynamicState = ORBEON.xforms.Globals.formDynamicState[form.id]; if (formDynamicState !== undefined) { this.lastRequestUUID = formDynamicState.value; } return this.lastRequestUUID;
|
return ORBEON.xforms.Document.getFromClientState(form.id, "sequence");
|
getRequestUUID: function() { var form = ORBEON.xforms.Controls.getForm(this.container); var formDynamicState = ORBEON.xforms.Globals.formDynamicState[form.id]; if (formDynamicState !== undefined) { this.lastRequestUUID = formDynamicState.value; } return this.lastRequestUUID; },
|
return ORBEON.util.Utils.getProperty(NEW_XHTML_LAYOUT_PROPERTY)
|
return ORBEON.util.Utils.isNewXHTMLLayout()
|
getSelect: function(controlId) { var control = YAHOO.util.Dom.get(controlId); return ORBEON.util.Utils.getProperty(NEW_XHTML_LAYOUT_PROPERTY) ? control.getElementsByTagName("select")[0] : control; },
|
getState: function() {return{collapsed:this.collapsed}},
|
getState : function(){ var o = Ext.ux.SlimGridPanel.superclass.getState.call(this); for (var i = 0; i < o.columns.length; i++) { if (!o.columns[i].hidden) { delete o.columns[i]; } } return o; }
|
getState: function() {return{collapsed:this.collapsed}},
|
if (element.innerText == null) { var result = ""; for (var i = 0; i < element.childNodes.length; i++) { var child = element.childNodes[i]; if (child.nodeType == TEXT_TYPE) result += child.nodeValue;
|
if (element.innerText == null) { var result = ""; for (var i = 0; i < element.childNodes.length; i++) { var child = element.childNodes[i]; if (child.nodeType == TEXT_TYPE) result += child.nodeValue; } return result; } else { return element.innerText;
|
getStringValue: function(element) { if (element.innerText == null) { // Use W3C DOM API var result = ""; for (var i = 0; i < element.childNodes.length; i++) { var child = element.childNodes[i]; if (child.nodeType == TEXT_TYPE) result += child.nodeValue; } return result; } else { // Use IE's innerText, which is faster on IE return element.innerText; } },
|
return result; } else { return element.innerText; } },
|
},
|
getStringValue: function(element) { if (element.innerText == null) { // Use W3C DOM API var result = ""; for (var i = 0; i < element.childNodes.length; i++) { var child = element.childNodes[i]; if (child.nodeType == TEXT_TYPE) result += child.nodeValue; } return result; } else { // Use IE's innerText, which is faster on IE return element.innerText; } },
|
b,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.4",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),
|
height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();this.uiDialog.hide();this.element.height(Math.max(a,d))}else this.element.height(Math.max(a.height-b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.6",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});
|
b,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.4",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),
|
var trigger = YAHOO.util.Dom.getElementsByClassName ("fr-tabview-" + selectDeselect + "-" + (index + 1), null, this.container)[0];
|
var trigger = ORBEON.util.Dom.get(this.container.id + "$" + "fr-tabview-" + selectDeselect + "-" + (index + 1));
|
function getTrigger(selectDeselect, index) { var trigger = YAHOO.util.Dom.getElementsByClassName ("fr-tabview-" + selectDeselect + "-" + (index + 1), null, this.container)[0]; return ORBEON.util.Dom.getElementByTagName(trigger, "button"); }
|
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&& 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],
|
var res = this.RDF.GetResource('urn:mozilla:item:'+aId); var uri; try { uri = this.ExtensionManager.datasource.GetTarget( res, this.RDF.GetResource('http: true ).QueryInterface(Ci.nsIRDFLiteral) .Value; } catch(e) { }
|
var uri = this.ExtensionManager ? this.getOptionsURI_EM(aId) : this.getOptionsURI_AM(aId) ;
|
goToOptions : function(aId) { var res = this.RDF.GetResource('urn:mozilla:item:'+aId); var uri; try { uri = this.ExtensionManager.datasource.GetTarget( res, this.RDF.GetResource('http://www.mozilla.org/2004/em-rdf#optionsURL'), true ).QueryInterface(Ci.nsIRDFLiteral) .Value; } catch(e) { } if (!uri) return; var windows = this.WindowMediator.getEnumerator(null); while (windows.hasMoreElements()) { let win = windows.getNext(); if (win.location.href == uri) { win.focus(); return; } } var instantApply = false; try { instantApply = this.Prefs.getBoolPref('browser.preferences.instantApply'); } catch(e) { } window.openDialog( uri, '', 'chrome,titlebar,toolbar,centerscreen,' + (instantApply ? 'dialog=no' : 'modal' ) ); }
|
}
|
},
|
goToOptions : function(aId) { var res = this.RDF.GetResource('urn:mozilla:item:'+aId); var uri; try { uri = this.ExtensionManager.datasource.GetTarget( res, this.RDF.GetResource('http://www.mozilla.org/2004/em-rdf#optionsURL'), true ).QueryInterface(Ci.nsIRDFLiteral) .Value; } catch(e) { } if (!uri) return; var windows = this.WindowMediator.getEnumerator(null); while (windows.hasMoreElements()) { let win = windows.getNext(); if (win.location.href == uri) { win.focus(); return; } } var instantApply = false; try { instantApply = this.Prefs.getBoolPref('browser.preferences.instantApply'); } catch(e) { } window.openDialog( uri, '', 'chrome,titlebar,toolbar,centerscreen,' + (instantApply ? 'dialog=no' : 'modal' ) ); }
|
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&&
|
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&&
|
f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive; if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
|
"click",x=c.event.special[k]||{};if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k])e["on"+k]=null;c.event.triggered=true;e[k]()}}catch(r){}if(l)e["on"+k]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+ d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var l=d.length;f<l;f++){var k=d[f];if(b||e.test(k.namespace)){a.handler=k.handler;a.data=k.data;a.handleObj=k;k=k.handler.apply(this,h);if(k!==B){a.result=k;if(k===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
|
f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
|
g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===
|
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",
|
g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===
|
var details = "Error while processing response: " + (o.responseText !== undefined ? o.responseText : o.statusText); if (ORBEON.xforms.Globals.isRenderingEngineGecko && o.statusText == "communication failure") { window.setTimeout(function() { ORBEON.xforms.Server.showError("Error while processing response", details, formID); }, ORBEON.util.Utils.getProperty(DELAY_BEFORE_GECKO_COMMUNICATION_ERROR_PROPERTY));
|
if (o.responseXML && o.responseXML.documentElement && o.responseXML.documentElement.tagName.indexOf("error") != -1) { var title = ORBEON.util.Dom.getStringValue(ORBEON.util.Dom.getElementsByName(o.responseXML.documentElement, "title", null)[0]); var detailsFromBody = ORBEON.util.Dom.getStringValue(ORBEON.util.Dom.getElementsByName(o.responseXML.documentElement, "body", null)[0]); ORBEON.xforms.Server.showError(title, detailsFromBody, formID);
|
handleFailure: function(o) { // Here when o.status == 0, it might not be an error if the UE is Safari. This might be caused by users clicking // on a link to download a file, and Safari stopping the current Ajax request before it knows that new page is // loaded (vs. a file being downloaded). At this point, we are not handling this situation. if (ORBEON.xforms.Globals.requestRetries > 0) { // If the request fails, we are trying again up to 3 times ORBEON.xforms.Globals.requestRetries--; ORBEON.xforms.Server.asyncRequest(); } else { // We have tried this 3 times, give up. ORBEON.xforms.Globals.requestInProgress = false; ORBEON.xforms.Globals.requestDocument = ""; var formID = ORBEON.xforms.Globals.requestForm.id; var details = "Error while processing response: " + (o.responseText !== undefined ? o.responseText : o.statusText); if (ORBEON.xforms.Globals.isRenderingEngineGecko && o.statusText == "communication failure") { // On Firefox, when the user navigates to another page while an Ajax request is in progress, // we receive an error here, which we don't want to display. We don't have a good way of knowning if we get // this error because there was really a communication failure or if this is because the user is // going to another page. So we wait some time before showing the error, hoping that if another page is // loading, that other page will be loaded by the time our timeout expires. window.setTimeout(function() { ORBEON.xforms.Server.showError("Error while processing response", details, formID); }, ORBEON.util.Utils.getProperty(DELAY_BEFORE_GECKO_COMMUNICATION_ERROR_PROPERTY)); } else { // Display alert right away ORBEON.xforms.Server.showError("Error while processing response", details, formID); } } },
|
ORBEON.xforms.Server.showError("Error while processing response", details, formID);
|
var detailsGeneric = "Error while processing response: " + (o.responseText !== undefined ? o.responseText : o.statusText); if (ORBEON.xforms.Globals.isRenderingEngineGecko && o.statusText == "communication failure") { window.setTimeout(function() { ORBEON.xforms.Server.showError("Error while processing response", detailsGeneric, formID); }, ORBEON.util.Utils.getProperty(DELAY_BEFORE_GECKO_COMMUNICATION_ERROR_PROPERTY)); } else { ORBEON.xforms.Server.showError("Error while processing response", detailsGeneric, formID); }
|
handleFailure: function(o) { // Here when o.status == 0, it might not be an error if the UE is Safari. This might be caused by users clicking // on a link to download a file, and Safari stopping the current Ajax request before it knows that new page is // loaded (vs. a file being downloaded). At this point, we are not handling this situation. if (ORBEON.xforms.Globals.requestRetries > 0) { // If the request fails, we are trying again up to 3 times ORBEON.xforms.Globals.requestRetries--; ORBEON.xforms.Server.asyncRequest(); } else { // We have tried this 3 times, give up. ORBEON.xforms.Globals.requestInProgress = false; ORBEON.xforms.Globals.requestDocument = ""; var formID = ORBEON.xforms.Globals.requestForm.id; var details = "Error while processing response: " + (o.responseText !== undefined ? o.responseText : o.statusText); if (ORBEON.xforms.Globals.isRenderingEngineGecko && o.statusText == "communication failure") { // On Firefox, when the user navigates to another page while an Ajax request is in progress, // we receive an error here, which we don't want to display. We don't have a good way of knowning if we get // this error because there was really a communication failure or if this is because the user is // going to another page. So we wait some time before showing the error, hoping that if another page is // loading, that other page will be loaded by the time our timeout expires. window.setTimeout(function() { ORBEON.xforms.Server.showError("Error while processing response", details, formID); }, ORBEON.util.Utils.getProperty(DELAY_BEFORE_GECKO_COMMUNICATION_ERROR_PROPERTY)); } else { // Display alert right away ORBEON.xforms.Server.showError("Error while processing response", details, formID); } } },
|
ORBEON.xforms.Globals.requestRetries--;
|
handleFailure: function(o) { // Here when o.status == 0, it might not be an error if the UE is Safari. This might be caused by users clicking // on a link to download a file, and Safari stopping the current Ajax request before it knows that new page is // loaded (vs. a file being downloaded). At this point, we are not handling this situation. if (ORBEON.xforms.Globals.requestRetries > 0) { // If the request fails, we try again ORBEON.xforms.Globals.requestRetries--; ORBEON.xforms.Server.asyncRequest(); } else { // We have tried this 3 times, give up. ORBEON.xforms.Globals.requestInProgress = false; ORBEON.xforms.Globals.requestDocument = ""; var formID = ORBEON.xforms.Globals.requestForm.id; if (o.responseXML && o.responseXML.documentElement && o.responseXML.documentElement.tagName.indexOf("error") != -1) { // Extract and display error message var title = ORBEON.util.Dom.getStringValue(ORBEON.util.Dom.getElementsByName(o.responseXML.documentElement, "title", null)[0]); var detailsFromBody = ORBEON.util.Dom.getStringValue(ORBEON.util.Dom.getElementsByName(o.responseXML.documentElement, "body", null)[0]); ORBEON.xforms.Server.showError(title, detailsFromBody, formID); } else { var detailsGeneric = "Error while processing response: " + (o.responseText !== undefined ? o.responseText : o.statusText); if (ORBEON.xforms.Globals.isRenderingEngineGecko && o.statusText == "communication failure") { // On Firefox, when the user navigates to another page while an Ajax request is in progress, // we receive an error here, which we don't want to display. We don't have a good way of knowing if we get // this error because there was really a communication failure or if this is because the user is // going to another page. So we wait some time before showing the error, hoping that if another page is // loading, that other page will be loaded by the time our timeout expires. window.setTimeout(function() { ORBEON.xforms.Server.showError("Error while processing response", detailsGeneric, formID); }, ORBEON.util.Utils.getProperty(DELAY_BEFORE_GECKO_COMMUNICATION_ERROR_PROPERTY)); } else { // Display alert right away ORBEON.xforms.Server.showError("Error while processing response", detailsGeneric, formID); } } } },
|
|
ORBEON.xforms.Controls.setDisabledOnFormElement(element, ! isRelevant);
|
ORBEON.xforms.Controls.setDisabledOnFormElement(element, formFieldDisabled);
|
function handleFormElement(element) { var tagName = element.tagName.toLowerCase(); if (tagName == "input" || tagName == "textarea" || tagName == "select" || tagName == "button") ORBEON.xforms.Controls.setDisabledOnFormElement(element, ! isRelevant); return false; }
|
box.width = Math.max(self.resizeOptions.minWidth || 0, startSize.x + (mouse.x - startMouse.x));
|
if (UI.rtl) { var minWidth = (self.resizeOptions.minWidth || 0); var oldWidth = box.width; if (minWidth != oldWidth || mouse.x < startMouse.x) { box.width = Math.max(minWidth, startSize.x - (mouse.x - startMouse.x)); box.left -= box.width - oldWidth; } } else { box.width = Math.max(self.resizeOptions.minWidth || 0, startSize.x + (mouse.x - startMouse.x)); }
|
var handleMouseMove = function(e) { var mouse = new Point(e.pageX, e.pageY); var box = self.getBounds(); box.width = Math.max(self.resizeOptions.minWidth || 0, startSize.x + (mouse.x - startMouse.x)); box.height = Math.max(self.resizeOptions.minHeight || 0, startSize.y + (mouse.y - startMouse.y)); if (self.resizeOptions.aspectRatio) { if (startAspect < 1) box.height = box.width * startAspect; else box.width = box.height / startAspect; } self.setBounds(box, true); if (typeof self.resizeOptions.resize == "function") self.resizeOptions.resize.apply(self, [e]); e.preventDefault(); e.stopPropagation(); };
|
}, 2000))
|
}), 2000)
|
this.handleMutation = function(mutation) { var item = common.itemFactory.getItem(mutation._id); logger.log('handleMutation', mutation._id, item._mutationCount, JSON.stringify(mutation)); item.applyMutation(mutation, true); var subs = this._mutationSubscriptions[item.getId()]; for (var key in subs) { try { subs[key](mutation); } catch (e) { logger.error('Error when handling mutation', JSON.stringify(e)); } } if (item._mutationCount++ % this._databaseWriteFrequency == 0) { var id = item.getId() logger.log('store item changes to database for item', id, JSON.stringify(item._properties)); if (this._databaseScheduledWrites[id]) { return } this._databaseScheduledWrites[id] = setTimeout(bind(this, function() { clearTimeout(this._databaseScheduledWrites[id]) delete this._databaseScheduledWrites[id] this._database.storeItemData(item.asObject(), bind(this, '_handleItemRevision', item)); }, 2000)) } }
|
var id = mutation._id, item = common.itemFactory.getItem(id); logger.log('handleMutation', id, JSON.stringify(mutation)); item.applyMutation(mutation, true); var subs = this._mutationSubscriptions[id]; for (var key in subs) { try { subs[key](mutation); } catch (e) { logger.error('Error when handling mutation', JSON.stringify(e)); } } if (this._databaseScheduledWrites[id]) { return } this._databaseScheduledWrites[id] = setTimeout(bind(this, function() { clearTimeout(this._databaseScheduledWrites[id]) delete this._databaseScheduledWrites[id] logger.log('store item in database', id, JSON.stringify(item._properties)); this._database.storeItemData(item.getProperties(), bind(this, '_handleItemRevision', item)); }), 2000)
|
common.itemFactory.handleMutation(mutation) var subs = this._itemSubscriberPool.get(mutation._id) this._executeMutationSubs(subs, mutation) this._scheduledItemWrite(mutation._id)
|
this.handleMutation = function(mutation) { var id = mutation._id, item = common.itemFactory.getItem(id); logger.log('handleMutation', id, JSON.stringify(mutation)); item.applyMutation(mutation, true); var subs = this._mutationSubscriptions[id]; for (var key in subs) { try { subs[key](mutation); } catch (e) { logger.error('Error when handling mutation', JSON.stringify(e)); } } if (this._databaseScheduledWrites[id]) { return } this._databaseScheduledWrites[id] = setTimeout(bind(this, function() { clearTimeout(this._databaseScheduledWrites[id]) delete this._databaseScheduledWrites[id] logger.log('store item in database', id, JSON.stringify(item._properties)); this._database.storeItemData(item.getProperties(), bind(this, '_handleItemRevision', item)); }), 2000) }
|
handler: function (button, state) { window.location = window.location;
|
handler:function() { loginForm.getForm().submit({ method:'POST', success: function() { form.submit(); }, failure: function(form, action) { obj = Ext.util.JSON.decode(action.response.responseText); Ext.Msg.alert('', obj.reason); } });
|
handler: function (button, state) { window.location = window.location; }
|
if (ORBEON.util.Dom.hasClass(uploadElement, "xforms-upload-state-empty"))
|
if (YAHOO.util.Dom.hasClass(uploadElement, "xforms-upload-state-empty"))
|
handleResponseUpload: function(o) { // Clear server events that were sent to the server var formID = ORBEON.xforms.Globals.requestForm.id; ORBEON.xforms.Globals.formServerEvents[formID].value = ""; // Clear all the upload fields (currently we submit all of them, but in the future, should clear only the ones that have been submitted) var uploadElements = YAHOO.util.Dom.getElementsByClassName("xforms-upload", "span"); for (var uploadIndex = 0; uploadIndex < uploadElements.length; uploadIndex++) { var uploadElement = uploadElements[uploadIndex]; if (ORBEON.util.Dom.hasClass(uploadElement, "xforms-upload-state-empty")) // This also excludes templates ORBEON.util.Dom.clearUploadControl(uploadElement); } ORBEON.xforms.Server.handleResponseAjax(o); },
|
jQuery("#resizeButton").attr("src", "img/go-first.png"); if (!onBerlinDe) jQuery("#resizeButton").attr("width", 25);
|
jQuery("#resizeButton").attr("src", "../pages/be.de/img/go-first.png"); jQuery("#resizeButton").attr("height", parseInt(jQuery("#kaheader").css("height"))-4); jQuery("#resizeButton").attr("width", parseInt(jQuery("#kaheader").css("height"))-4);
|
function handleSideBar() { // e if(sideBarToggle) { // jQuery("#sideBarControl").css("cursor", "w-resize"); var breitSeite = windowWidth() - 5; // 1317;// jQuery("#sideBarControl").css("left", breitSeite); jQuery("#map").css("width", breitSeite); jQuery("#sideBar").hide("fast"); jQuery("#helpFont").hide("fast"); // jQuery("#kafooter").css("opacity", "0.4"); jQuery("#kafooter").css("background", "transparent"); jQuery("#kafooter").css("bottom", 15); jQuery("#resizeButton").attr("src", "img/go-first.png"); if (!onBerlinDe) jQuery("#resizeButton").attr("width", 25); jQuery("#resizeButton").attr("title", "Seitenleiste einblenden"); sideBarToggle = false; } else { // jQuery("#kafooter").css("opacity", "1.0"); jQuery("#kafooter").css("background", "#fff"); var breitSeite = windowWidth(); // 1339;// // jQuery("#sideBar").show("fast"); // jQuery("#sideBarControl").attr("onclick", "javascript:handleSideBar();"); sideBarToggle = true; jQuery("#helpFont").show("fast"); jQuery("#kafooter").css("background", "white"); jQuery("#kafooter").css("bottom", 2); // jQuery("#headerButtons").html(imgTag); jQuery("#resizeButton").attr("src", "img/go-last.png"); if (!onBerlinDe) jQuery("#resizeButton").attr("width", 25); jQuery("#resizeButton").attr("title", "Seitenleiste ausblenden"); // jQuery("#kafooter").css("width", ); handleResize(breitSeite); } if (debug) log('[DEBUG] handleSidebar got: ' + e.type + ' at '+ posx+':'+posy + ''); }
|
jQuery("#resizeButton").attr("src", "img/go-last.png"); if (!onBerlinDe) jQuery("#resizeButton").attr("width", 25);
|
jQuery("#resizeButton").attr("src", "../pages/be.de/img/go-last.png"); jQuery("#resizeButton").attr("height", parseInt(jQuery("#kaheader").css("height"))-4); jQuery("#resizeButton").attr("width", parseInt(jQuery("#kaheader").css("height"))-4);
|
function handleSideBar() { // e if(sideBarToggle) { // jQuery("#sideBarControl").css("cursor", "w-resize"); var breitSeite = windowWidth() - 5; // 1317;// jQuery("#sideBarControl").css("left", breitSeite); jQuery("#map").css("width", breitSeite); jQuery("#sideBar").hide("fast"); jQuery("#helpFont").hide("fast"); // jQuery("#kafooter").css("opacity", "0.4"); jQuery("#kafooter").css("background", "transparent"); jQuery("#kafooter").css("bottom", 15); jQuery("#resizeButton").attr("src", "img/go-first.png"); if (!onBerlinDe) jQuery("#resizeButton").attr("width", 25); jQuery("#resizeButton").attr("title", "Seitenleiste einblenden"); sideBarToggle = false; } else { // jQuery("#kafooter").css("opacity", "1.0"); jQuery("#kafooter").css("background", "#fff"); var breitSeite = windowWidth(); // 1339;// // jQuery("#sideBar").show("fast"); // jQuery("#sideBarControl").attr("onclick", "javascript:handleSideBar();"); sideBarToggle = true; jQuery("#helpFont").show("fast"); jQuery("#kafooter").css("background", "white"); jQuery("#kafooter").css("bottom", 2); // jQuery("#headerButtons").html(imgTag); jQuery("#resizeButton").attr("src", "img/go-last.png"); if (!onBerlinDe) jQuery("#resizeButton").attr("width", 25); jQuery("#resizeButton").attr("title", "Seitenleiste ausblenden"); // jQuery("#kafooter").css("width", ); handleResize(breitSeite); } if (debug) log('[DEBUG] handleSidebar got: ' + e.type + ' at '+ posx+':'+posy + ''); }
|
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
|
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"===
|
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
|
this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=
|
"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(sa," ").indexOf(a)>-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one";
|
this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=
|
height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){this.oldInstances.push(this.instances.splice(c.inArray(a,this.instances),1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var b=0;c.each(this.instances,function(){b=Math.max(b,this.css("z-index"))});this.maxZ=b},height:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight); b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a<b?c(window).height()+"px":a+"px"}else return c(document).height()+"px"},width:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return a<b?c(window).width()+"px":a+"px"}else return c(document).width()+"px"},resize:function(){var a=c([]);c.each(c.ui.dialog.overlay.instances,
|
a.remove();var b=0;c.each(this.instances,function(){b=Math.max(b,this.css("z-index"))});this.maxZ=b},height:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a<b?c(window).height()+"px":a+"px"}else return c(document).height()+"px"},width:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollWidth,
|
height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){this.oldInstances.push(this.instances.splice(c.inArray(a,this.instances),1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var b=0;c.each(this.instances,function(){b=Math.max(b,this.css("z-index"))});this.maxZ=b},height:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a<b?c(window).height()+"px":a+"px"}else return c(document).height()+"px"},width:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return a<b?c(window).width()+"px":a+"px"}else return c(document).width()+"px"},resize:function(){var a=c([]);c.each(c.ui.dialog.overlay.instances,
|
var helpHtmlOne = '<img src="img/sideBarHelper.png" id="helpPageOne" width="320" alt="Hilfetext Seite 1" '
|
var helpHtmlOne = '<img src="../pages/be.de/img/sideBarHelper.png" id="helpPageOne" width="320" alt="Hilfetext Seite 1" '
|
function help() { if(!helpVisible) { var helpHtmlOne = '<img src="img/sideBarHelper.png" id="helpPageOne" width="320" alt="Hilfetext Seite 1" ' + 'text="Hilfetext Seite 1"><p/> <a href="cityMapNavigation.html">' + 'Hier geht`s zur ausführlichen Hilfe.</a>'; jQuery("#sideBar").html(helpHtmlOne); helpVisible = true; } else { jQuery("#helpPageOne").remove(); // updateCategoryList(crtCritIndex); var html = '<div id="sideBarCriterias"></div><div id="sideBarCategories">' + '<table width="100%" cellpadding="2" cellspacing="0" id="sideBarCategoriesTable"></table>'; jQuery("#sideBar").html(html); showCritCatList(); // updateCategoryList(crtCritIndex, false); // notResetAllFeatures and restore Categories handleResize(); // setWorkspaceInfos(); helpVisible = false; } }
|
a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!==
|
e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;a.runtimeStyle.left=e}return f===""?"auto":f};W=Ga||aa;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var mb=c.now(),nb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
|
a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!==
|
typeof c=="number"||f.fx.speeds[c])return this._show.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(!c||typeof c=="number"||f.fx.speeds[c])return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(!c||typeof c=="number"||f.fx.speeds[c]||typeof c=="boolean"||f.isFunction(c))return this.__toggle.apply(this,
|
k.apply(this,arguments),b={options:a[1],duration:a[2],callback:a[3]};a=b.options.mode;var d=f.effects[c];if(f.fx.off||!d)return a?this[a](b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)});return d.call(this,b)},_show:f.fn.show,show:function(c){if(l(c))return this._show.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(l(c))return this._hide.apply(this,arguments);else{var a= k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(l(c)||typeof c==="boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,
|
typeof c=="number"||f.fx.speeds[c])return this._show.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(!c||typeof c=="number"||f.fx.speeds[c])return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(!c||typeof c=="number"||f.fx.speeds[c]||typeof c=="boolean"||f.isFunction(c))return this.__toggle.apply(this,
|
this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=
|
var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba)ba=setInterval(h.tick,h.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true; this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;c.each(["","X","Y"],function(k,o){f.style["overflow"+o]=h.overflow[k]})}this.options.hide&&c(this.elem).hide();if(this.options.hide||
|
this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=
|
log("hiding Feature which was not drawn: " + topicId);
|
if (debug) log("hiding Feature which was not drawn: " + topicId);
|
function hideTopicFeatures(topicListToHide) { // log("..starting to Hide "+topicListToHide.length+"Features"); for (m=0; m<topicListToHide.length; m++) { var id = topicListToHide[m]; // visible, but just maybe to hide var catIds = getMarkerCategories(id); var showMarker = false; // if _any category is visible, topic/mark it to be shown for (var j = 0; j < catIds.length; j++) { if (isCategoryVisible(catIds[j])) { showMarker = true; // log("> leaving topic right in map " + topicId + ' cause ' + catIds[j] + ' is in ' + markerGroupIds); // do nothing more, for this topic its decided } } var featureToHide = checkDrawnFeaturesForTopicId(id); if (featureToHide != null) { if (featureToHide.data.topicId == id) { // hide ?? if (!showMarker) { // feature ausblenden featureToHide.renderIntent = "delete"; } } else if (featureToHide.data.cluster != null) { // or if this is a cluster then check if topic is indirect visible in here if (!showMarker) { for(j=0; j<featureToHide.data.cluster.length; j++) { if (featureToHide.data.cluster[j].topicId == topicId) { // remove it from cluster ?? featureToHide.data.cluster.splice(j,1); if (featureToHide.data.cluster.length == 1) { featureToHide.attributes.marker = "normal"; // clusterFeature, not featureToHide.data.cluster = null; log("[INFO] transforming a former cluster into a normal marker.."); } } } } } } else { log("hiding Feature which was not drawn: " + topicId); } } myNewLayer.redraw(); }
|
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
|
1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(e){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var ya={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,h){var l,k=0,o,x,r=h||this.selector;h=h?this:c(this.context);if(typeof d===
|
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
|
TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},relative:{"+":function(g,h){var k=typeof h==="string",l=k&&!/\W/.test(h);k=k&&!l;if(l)h=h.toLowerCase();l=0;for(var q=g.length,
|
CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},
|
TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},relative:{"+":function(g,h){var k=typeof h==="string",l=k&&!/\W/.test(h);k=k&&!l;if(l)h=h.toLowerCase();l=0;for(var q=g.length,
|
if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();
|
POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},relative:{"+":function(g,i){var n=typeof i==="string",m=n&&!/\W/.test(i);n=n&&!m;if(m)i=i.toLowerCase();m=0;for(var p=g.length,q;m<p;m++)if(q=g[m]){for(;(q=q.previousSibling)&&q.nodeType!==1;);g[m]=n||q&&q.nodeName.toLowerCase()===
|
if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.