rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.item...
this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css...
this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.item...
ORBEON.util.Dom.addClass(parentSpan, "xforms-selected"); ORBEON.util.Dom.removeClass(parentSpan, "xforms-deselected");
YAHOO.util.Dom.addClass(parentSpan, "xforms-selected"); YAHOO.util.Dom.removeClass(parentSpan, "xforms-deselected");
_setRadioCheckboxClasses: function(target) { // Update xforms-selected/xforms-deselected classes on the parent <span> element var checkboxInputs = target.getElementsByTagName("input"); for (var checkboxInputIndex = 0; checkboxInputIndex < checkboxInputs.length; checkboxInputIndex++) { ...
ORBEON.util.Dom.addClass(parentSpan, "xforms-deselected"); ORBEON.util.Dom.removeClass(parentSpan, "xforms-selected");
YAHOO.util.Dom.addClass(parentSpan, "xforms-deselected"); YAHOO.util.Dom.removeClass(parentSpan, "xforms-selected");
_setRadioCheckboxClasses: function(target) { // Update xforms-selected/xforms-deselected classes on the parent <span> element var checkboxInputs = target.getElementsByTagName("input"); for (var checkboxInputIndex = 0; checkboxInputIndex < checkboxInputs.length; checkboxInputIndex++) { ...
currentTooltip.destroy(); tooltipForControl[control.id] = true;
currentTooltip.cfg.setProperty("disabled", true);
_setTooltipMessage: function(control, message, tooltipForControl) { // If we have a YUI tooltip for this control, update the tooltip var currentTooltip = tooltipForControl[control.id]; if (currentTooltip) { if (currentTooltip == true) { // Message used to be empty: we ...
currentTooltip.cfg.setProperty("disabled", false);
_setTooltipMessage: function(control, message, tooltipForControl) { // If we have a YUI tooltip for this control, update the tooltip var currentTooltip = tooltipForControl[control.id]; if (currentTooltip) { if (currentTooltip == true) { // Message used to be empty: we ...
this._queryChannelHandler = bind(this, function(channelBytes, messageBytes) { var message = messageBytes.toString() if (!this._clientConnected) { logger.warn("Received query mutation event even though redis client is closed", message) return; } this.sendFrame('FIN_EVENT_QUERY_MUTATED', message) }) this._itemChannelHan...
this._itemChannelHandler = bind(this, function(key, mutationBytes) {
this._setupHandlers = function() { this._queryChannelHandler = bind(this, function(channelBytes, messageBytes) { var message = messageBytes.toString() if (!this._clientConnected) { logger.warn("Received query mutation event even though redis client is closed", message) return; } this.sendFrame('FIN_EVE...
this.sendFrame('FIN_EVENT_ITEM_MUTATED', mutationInfo.json)
this.sendFrame('FIN_EVENT_MUTATION', mutationInfo.json)
this._setupHandlers = function() { this._queryChannelHandler = bind(this, function(channelBytes, messageBytes) { var message = messageBytes.toString() if (!this._clientConnected) { logger.warn("Received query mutation event even though redis client is closed", message) return; } this.sendFrame('FIN_EVE...
var itemId = args.id, propName = args.prop, channel = shared.keys.getItemPropertyChannel(itemId, propName)
var type = args.type, key = args.key
this._setupHandlers = function() { this._queryChannelHandler = bind(this, function(channelBytes, messageBytes) { var message = messageBytes.toString() if (!this._clientConnected) { logger.warn("Received query mutation event even though redis client is closed", message) return; } this.sendFrame('FIN_EVE...
logger.log("Subcribe to item channel", channel) this._redisClient.subscribeTo(channel, this._itemChannelHandler)
logger.log("Subscribe redis channel:", key) this._redisClient.subscribeTo(key, this._itemChannelHandler)
this._setupHandlers = function() { this._queryChannelHandler = bind(this, function(channelBytes, messageBytes) { var message = messageBytes.toString() if (!this._clientConnected) { logger.warn("Received query mutation event even though redis client is closed", message) return; } this.sendFrame('FIN_EVE...
if (args.snapshot === false) { return } this.server.getItemProperty(itemId, propName, bind(this, function(value, key) { var mutation = { op: 'set', id: itemId, prop: propName, args: [value] } this.sendFrame('FIN_EVENT_ITEM_MUTATED', JSON.stringify(mutation)) }))
if (args.snapshot != false) { this.server.retrieveStateMutation(key, type, bind(this, function(mutation) { this.sendFrame('FIN_EVENT_MUTATION', JSON.stringify(mutation)) })) }
this._setupHandlers = function() { this._queryChannelHandler = bind(this, function(channelBytes, messageBytes) { var message = messageBytes.toString() if (!this._clientConnected) { logger.warn("Received query mutation event even though redis client is closed", message) return; } this.sendFrame('FIN_EVE...
this.handleRequest('FIN_REQUEST_UNSUBSCRIBE', bind(this, function(channel) { this._redisClient.unsubscribeFrom(channel)
this.handleRequest('FIN_REQUEST_UNSUBSCRIBE', bind(this, function(key) { this._redisClient.unsubscribeFrom(key)
this._setupHandlers = function() { this._queryChannelHandler = bind(this, function(channelBytes, messageBytes) { var message = messageBytes.toString() if (!this._clientConnected) { logger.warn("Received query mutation event even though redis client is closed", message) return; } this.sendFrame('FIN_EVE...
this.handleRequest('FIN_REQUEST_QUERY', bind(this, function(queryJSON) { var channel = shared.keys.getQueryChannel(queryJSON) this._redisClient.subscribeTo(channel, this._queryChannelHandler) this.server.getQuerySet(queryJSON, bind(this, function(membersBytes) { var members = [] for (var i=0, memberBytes; memberBytes...
this.handleRequest('FIN_REQUEST_MONITOR_QUERY', bind(this, function(queryJSON) { this.server.monitorQuery(queryJSON)
this._setupHandlers = function() { this._queryChannelHandler = bind(this, function(channelBytes, messageBytes) { var message = messageBytes.toString() if (!this._clientConnected) { logger.warn("Received query mutation event even though redis client is closed", message) return; } this.sendFrame('FIN_EVE...
this.handleRequest('FIN_REQUEST_MUTATE_ITEM', bind(this, function(mutation){
this.handleRequest('FIN_REQUEST_MUTATE', bind(this, function(mutation){
this._setupHandlers = function() { this._queryChannelHandler = bind(this, function(channelBytes, messageBytes) { var message = messageBytes.toString() if (!this._clientConnected) { logger.warn("Received query mutation event even though redis client is closed", message) return; } this.sendFrame('FIN_EVE...
channel = shared.keys.getItemPropertyChannel(itemId, propName),
channel = shared.keys.getItemPropertyChannel(itemId, propName)
this._setupHandlers = function() { this._queryChannelHandler = bind(this, function(channelBytes, messageBytes) { var message = messageBytes.toString() if (!this._clientConnected) { logger.warn("Received query mutation event even though redis client is closed", message) return; } this.sendFrame('FIN_EVE...
this._messageDialog.setBody(this._messageQueue[0]);
var span = document.createElement("span"); OD.setStringValue(span, this._messageQueue[0]); this._messageDialog.setBody(span);
_showMessage: function() { this._messageDialog.setBody(this._messageQueue[0]); this._messageDialog.show(); },
d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||"&#160;"));break;case "width":e=true;break}c.Widget.prototype._setOption.apply(d,arguments);e&&d._size()},_size:function(){var a=this.options,b;this.element.css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=...
g&&typeof b==="string"&&e.resizable("option","handles",b);!g&&b!==false&&d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||"&#160;"));break}c.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var a=this.options,b,d;this.element.show().css({width:"auto",minHeight:...
d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||"&#160;"));break;case "width":e=true;break}c.Widget.prototype._setOption.apply(d,arguments);e&&d._size()},_size:function(){var a=this.options,b;this.element.css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=...
close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this._trigger("close",a);this.menu.element.hide();this.menu.deactivate()}},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(a){if(a.length&&a[0].label&&a[0].va...
"string")return{label:b,value:b};return e.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(a){this._renderMenu(this.menu.element.empty().zIndex(this.element.zIndex()+1),a);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position(e.extend({of:this.element},this.options.p...
close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this._trigger("close",a);this.menu.element.hide();this.menu.deactivate()}},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(a){if(a.length&&a[0].label&&a[0].va...
d(this);a.html(a.data("label.tabs")).removeData("label.tabs")})},_tabify:function(a){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var b=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d("li:has(a[href])",this.list);this.anchors=...
d(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(b){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var a=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.ancho...
d(this);a.html(a.data("label.tabs")).removeData("label.tabs")})},_tabify:function(a){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var b=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d("li:has(a[href])",this.list);this.anchors=...
f[k](d)}else{if(e.collapsible&&f)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide...
f[k](d)}else{if(e.collapsible&&f)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide...
this.active.next().addClass("ui-accordion-content-active");var f=this.active.next(),g={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:f},h=this.active=c([]);this._toggle(h,f,g)}},_toggle:function(a,b,d,f,g){var h=this,e=h.options;h.toShow=a;h.toHide=b;h.data=d;var j=function(){if(h)return h._c...
var allowMultipleSelection = ORBEON.util.Dom.hasClass(treeDiv, "xforms-select"); var showToolTip = ORBEON.util.Dom.hasClass(treeDiv, "xforms-show-tooltip");
var allowMultipleSelection = YAHOO.util.Dom.hasClass(treeDiv, "xforms-select"); var showToolTip = YAHOO.util.Dom.hasClass(treeDiv, "xforms-show-tooltip");
_tree: function(treeDiv) { var controlId = treeDiv.id; var allowMultipleSelection = ORBEON.util.Dom.hasClass(treeDiv, "xforms-select"); var showToolTip = ORBEON.util.Dom.hasClass(treeDiv, "xforms-show-tooltip"); if (ORBEON.util.Utils.isNewXHTMLLayout()) treeDiv = treeDiv.getElements...
ORBEON.util.Dom.removeClass(ORBEON.util.Utils.isNewXHTMLLayout() ? treeDiv.parentNode : treeDiv, "xforms-initially-hidden");
YAHOO.util.Dom.removeClass(ORBEON.util.Utils.isNewXHTMLLayout() ? treeDiv.parentNode : treeDiv, "xforms-initially-hidden");
_tree: function(treeDiv) { var controlId = treeDiv.id; var allowMultipleSelection = ORBEON.util.Dom.hasClass(treeDiv, "xforms-select"); var showToolTip = ORBEON.util.Dom.hasClass(treeDiv, "xforms-show-tooltip"); if (ORBEON.util.Utils.isNewXHTMLLayout()) treeDiv = treeDiv.getElements...
treeDiv.xformsAllowMultipleSelection = ORBEON.util.Dom.hasClass(treeDiv, "xforms-select");
treeDiv.xformsAllowMultipleSelection = allowMultipleSelection;
_tree: function(treeDiv) { var controlId = treeDiv.id; if (ORBEON.util.Utils.isNewXHTMLLayout()) treeDiv = treeDiv.getElementsByTagName("div")[0]; // Save in the control if it allows multiple selection treeDiv.xformsAllowMultipleSelection = ORBEON.util.Dom.hasClass(treeDiv, "x...
ORBEON.xforms.Globals.serverValue[controlId] = treeDiv.value
ORBEON.xforms.ServerValueStore.set(controlId, treeDiv.value);
_tree: function(treeDiv) { var controlId = treeDiv.id; var allowMultipleSelection = YAHOO.util.Dom.hasClass(treeDiv, "xforms-select"); var showToolTip = YAHOO.util.Dom.hasClass(treeDiv, "xforms-show-tooltip"); if (ORBEON.util.Utils.isNewXHTMLLayout()) treeDiv = treeDiv.getElementsBy...
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(c=0;c<e;c+=1)this....
this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===c)return this._value();this._setOption("value",a);return this},_setOption:function(a,d){if(a==="value"){this.options.value=d;this._refreshValue();this._trigger("change");this._value()===this.max&&this._trigger("complete")}...
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(c=0;c<e;c+=1)this....
b);for(var c in b)if(b[c]==null||b[c]==G)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.4"}});var y=(new Date).getTime();d.extend(L.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){E...
b);for(var c in b)if(b[c]==null||b[c]==G)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.6"}});var y=(new Date).getTime();d.extend(K.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){E...
b);for(var c in b)if(b[c]==null||b[c]==G)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.4"}});var y=(new Date).getTime();d.extend(L.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){E...
{version:"1.8.4"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(),10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),...
{version:"1.8.6"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(),10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),...
{version:"1.8.4"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(),10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),...
true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentEleme...
a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);re...
true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentEleme...
d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parser...
c.handleSuccess(b,w,e,f);else c.handleError(b,w,e,p);d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")},b.timeout);try{w.send(l||b.data=...
d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parser...
e(this).parent())}).mouseleave(function(){a.deactivate()})},activate:function(a,b){this.deactivate();if(this.hasScroll()){var c=b.offset().top-this.element.offset().top,d=this.element.attr("scrollTop"),f=this.element.height();if(c<0)this.element.attr("scrollTop",d+c);else c>f&&this.element.attr("scrollTop",d+c-f+b.heig...
c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?...
e(this).parent())}).mouseleave(function(){a.deactivate()})},activate:function(a,b){this.deactivate();if(this.hasScroll()){var c=b.offset().top-this.element.offset().top,d=this.element.attr("scrollTop"),f=this.element.height();if(c<0)this.element.attr("scrollTop",d+c);else c>f&&this.element.attr("scrollTop",d+c-f+b.heig...
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));
activeTabChange: function(event) { 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")...
getTrigger("deselect", this.yuiTabView.getTabIndex(event.prevValue)).click();
getTrigger.call(this, "deselect", this.yuiTabView.getTabIndex(event.prevValue)).click();
activeTabChange: function(event) { 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")...
getTrigger("select", this.yuiTabView.getTabIndex(event.newValue)).click();
getTrigger.call(this, "select", this.yuiTabView.getTabIndex(event.newValue)).click();
activeTabChange: function(event) { 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")...
e;var b=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){b.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-foc...
(function(c){c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.2",plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1]...
e;var b=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){b.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-foc...
function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&...
c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.han...
function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&...
charCode: e.charCode,
events.add = function(element, eventName, handler, dontIncludeEvent) { // Is removeEvent going to work properly when we wrap the handler in another function? function normalizeEvent(e) { e = e || event if (!e.target) { e.target = e.srcElement } var eventObj = { charCode: e.charCode, keyCode: e.keyCode, ...
if (eventObj.charCode == 13 && eventObj.keyCode == 13) { eventObj.charCode = 0
if (e.type == 'keypress') { eventObj.charCode = (eventObj.charCode == 13 && eventObj.keyCode == 13) ? 0 : e.charCode
events.add = function(element, eventName, handler, dontIncludeEvent) { // Is removeEvent going to work properly when we wrap the handler in another function? function normalizeEvent(e) { e = e || event if (!e.target) { e.target = e.srcElement } var eventObj = { charCode: e.charCode, keyCode: e.keyCode, ...
this.add = function(signal, callback) { if (!this._pool[signal]) { this._pool[signal] = {} }
this.add = function(name, callback) { if (!this._pool[name]) { this._pool[name] = {} this._counts[name] = 0 } this._counts[name]++
this.add = function(signal, callback) { if (!this._pool[signal]) { this._pool[signal] = {} } var id = 'p' + this._uniqueId++ this._pool[signal][id] = callback return id }
this._pool[signal][id] = callback
this._pool[name][id] = callback
this.add = function(signal, callback) { if (!this._pool[signal]) { this._pool[signal] = {} } var id = 'p' + this._uniqueId++ this._pool[signal][id] = callback return id }
},initAttributes:function(E){YAHOO.widget.Toolbar.superclass.initAttributes.call(this,E);this.addClass(this.CLASS_CONTAINER);this.setAttributeConfig("buttonType",{value:E.buttonType||"basic",writeOnce:true,validator:function(F){switch(F){case"advanced":case"basic":return true;}return false;},method:function(F){if(F=="a...
(function(){var b=YAHOO.util.Dom,a=YAHOO.util.Event,c=YAHOO.lang;if(YAHOO.widget.Button){YAHOO.widget.ToolbarButtonAdvanced=YAHOO.widget.Button;YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType="rich";YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue=function(f){var e=this.getMenu().getItems();if(e.length==...
},initAttributes:function(E){YAHOO.widget.Toolbar.superclass.initAttributes.call(this,E);this.addClass(this.CLASS_CONTAINER);this.setAttributeConfig("buttonType",{value:E.buttonType||"basic",writeOnce:true,validator:function(F){switch(F){case"advanced":case"basic":return true;}return false;},method:function(F){if(F=="a...
i){c[i]&&e[i+"Class"](c[i])});q=o(n.call(this));e.attr("className",u);e.animate(t(h,q),a,b,function(){f.each(p,function(v,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments)})})};f.fn.extend({_addClass:...
b;b=null}return this.each(function(){var e=f(this),g=e.attr("style")||" ",h=p(o.call(this)),r,v=e.attr("className");f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});r=p(o.call(this));e.attr("className",v);e.animate(u(h,r),a,b,function(){f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="obje...
i){c[i]&&e[i+"Class"](c[i])});q=o(n.call(this));e.attr("className",u);e.animate(t(h,q),a,b,function(){f.each(p,function(v,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments)})})};f.fn.extend({_addClass:...
cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(thi...
colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.e...
cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(thi...
addslashes: function (value, arg) { return utils.string.add_slashes("" + value); },
addslashes: function (value, arg) { return string_utils.add_slashes("" + value); },
addslashes: function (value, arg) { return utils.string.add_slashes("" + value); },
this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.paren...
this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.paren...
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.ap...
if (count<0 || count > this.length) return "";
String.prototype.after=function(count){ return this.slice(count); };
global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, tex...
script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),l=qb.test(h);b.url=b.url.replace(ub,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&t...
global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, tex...
var processURI="./xmlhttprequest.php";var liveReq=false;if(window.XMLHttpRequest){liveReq=new XMLHttpRequest()}function AjaxLoad(a,c,b){if(liveReq&&liveReq.readyState<4){liveReq.abort()}if(window.XMLHttpRequest){}else{if(window.ActiveXObject){liveReq=new ActiveXObject("Microsoft.XMLHTTP")}}name=this.id;liveReq.onreadys...
var processURI="./xmlhttprequest.php";var liveReq=false;if(window.XMLHttpRequest){liveReq=new XMLHttpRequest()}function AjaxLoad(a,c,b){if(liveReq&&liveReq.readyState<4){liveReq.abort()}if(window.XMLHttpRequest){}else{if(window.ActiveXObject){liveReq=new ActiveXObject("Microsoft.XMLHTTP")}}name=this.id;liveReq.onreadys...
var processURI="./xmlhttprequest.php";var liveReq=false;if(window.XMLHttpRequest){liveReq=new XMLHttpRequest()}function AjaxLoad(a,c,b){if(liveReq&&liveReq.readyState<4){liveReq.abort()}if(window.XMLHttpRequest){}else{if(window.ActiveXObject){liveReq=new ActiveXObject("Microsoft.XMLHTTP")}}name=this.id;liveReq.onreadys...
document.getElementById( targetElementId ).innerHTML = "Loading...";
document.getElementById( targetElementId ).innerHTML = loading_lang;
function AjaxLoad( targetElementId, queryString, elementIdToHide ) { if (liveReq && liveReq.readyState < 4) { liveReq.abort(); } if (window.XMLHttpRequest) { // branch for IE/Windows ActiveX version } else if (window.ActiveXObject) { liveReq = new ActiveXObject("Microsoft.XMLHTTP"); } name = this.id; liveReq.onready...
var doUdateSuggestionList = ! this.justMadeSelection && this.yuiAutoComplete.isFocused(); if (doUdateSuggestionList)
var doUpdateSuggestionList = ! this.justMadeSelection && ORBEON.xforms.Globals.currentFocusControlId == this.searchControl.id; if (doUpdateSuggestionList)
ajaxResponseProcessed: function() { // Get new list of values var query = this.searchField.value; var oldList = this.lastSuggestionList; var newList = this.getCurrentValues(query); var doUdateSuggestionList = // If the user just selected something before which trigg...
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c...
c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},pa...
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c...
animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[...
d)}for(a=0;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||e?this.each(function(){var f=e?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(S("tog...
animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[...
165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},p=["add","remove","toggle"],s={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.ani...
lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},q=["add"...
165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},p=["add","remove","toggle"],s={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.ani...
c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[...
c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(ba);ba=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.pr...
c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[...
try { view.apply(null, args); } catch (e) { debuginfo.last_e = e; show_500(req, res, e); }
read_arguments(req, function (error) { if (error) { return show_500(req, res, error); } try { view.apply(null, args); } catch (e) { debuginfo.last_e = e; show_500(req, res, e); } });
var app = function(req, res) { debuginfo.last_request = req; debuginfo.last_response = res; var path = url.parse(req.url)["pathname"]; var view = show_404; var args = [req, res]; for (var pair, i = 0; pair = compiled[i]; i++) { //sys.puts("Matching " + pair[0] + ...
return (ORBEON.util.Dom.hasClass(control, "xforms-type-date") || ORBEON.util.Dom.hasClass(control, "xforms-type-dateTime"))
return (YAHOO.util.Dom.hasClass(control, "xforms-type-date") || YAHOO.util.Dom.hasClass(control, "xforms-type-dateTime"))
appliesToControl: function(control) { return (ORBEON.util.Dom.hasClass(control, "xforms-type-date") || ORBEON.util.Dom.hasClass(control, "xforms-type-dateTime")) && ORBEON.util.Properties.datePicker.get() == "yui"; },
applyState: function(state) {this.collapsed = state.collapsed;},
applyState: function (state) { var config = this.colModel.config; if (state.group) { var groupColAvailable = false; for (var i=0; i < config.length; i++) { if (config[i].dataIndex === state.group) { groupColAvailable = true; } } if (!groupColAvailable) { delete state.group; } } if (state.sort) { var sortColAvailable ...
applyState: function(state) {this.collapsed = state.collapsed;},
assertEquals: function (actual, expected) {
assertEquals: function (actual, expected, callback) {
assertEquals: function (actual, expected) { if (!isEqual(actual, expected)) { throw new AssertFailedException( '\nExpected: ' + sys.inspect(actual) + '\nActual: ' + sys.inspect(expected) + '\n' ); } },
throw new AssertFailedException(
var exception = new AssertFailedException(
assertEquals: function (actual, expected) { if (!isEqual(actual, expected)) { throw new AssertFailedException( '\nExpected: ' + sys.inspect(actual) + '\nActual: ' + sys.inspect(expected) + '\n' ); } },
}
if (callback) { callback(exception); } else { throw exception; } };
assertEquals: function (actual, expected) { if (!isEqual(actual, expected)) { throw new AssertFailedException( '\nExpected: ' + sys.inspect(actual) + '\nActual: ' + sys.inspect(expected) + '\n' ); } },
var formID = ORBEON.xforms.Globals.requestForm.id;
asyncRequest: function() { try { ORBEON.xforms.Globals.requestTryCount++; YAHOO.util.Connect.setDefaultPostHeader(false); YAHOO.util.Connect.initHeader("Content-Type", "application/xml"); var callback = { success: ORBEON.xforms.Server.handleResponseA...
YAHOO.util.Connect.asyncRequest("POST", ORBEON.xforms.Globals.xformsServerURL, callback, ORBEON.xforms.Globals.requestDocument);
var formID = ORBEON.xforms.Globals.requestForm.id; YAHOO.util.Connect.asyncRequest("POST", ORBEON.xforms.Globals.xformsServerURL[formID], callback, ORBEON.xforms.Globals.requestDocument);
asyncRequest: function() { try { ORBEON.xforms.Globals.requestTryCount++; YAHOO.util.Connect.setDefaultPostHeader(false); YAHOO.util.Connect.initHeader("Content-Type", "application/xml"); var callback = { success: ORBEON.xforms.Server.handleResponseA...
if ($('#override-title-checkbox', context).size()) {
if ($('.menu-block-menu-tree-configure-form', context).size()) {
attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Process the form if its in a Panel overlay. if ...
$('#override-title-checkbox', context).change( function() { if ($('#override-title-checkbox:checked').length) { $('#edit-title-link-wrapper').slideUp('fast');
$('.menu-block-override-title', context).change( function() { if ($('.menu-block-override-title:checked').length) { $('.menu-block-title-link').slideUp('fast');
attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Process the form if its in a Panel overlay. if ...
$('#edit-title-link-wrapper').slideDown('fast');
$('.menu-block-title-link').slideDown('fast');
attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Process the form if its in a Panel overlay. if ...
if ($('#override-title-checkbox:checked').length) { $('#edit-title-link-wrapper').css('display', 'none');
if ($('.menu-block-override-title:checked').length) { $('.menu-block-title-link').css('display', 'none');
attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Process the form if its in a Panel overlay. if ...
else {
else if ($('.menu-block-configure-form', context).size()) {
attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Process the form if its in a Panel overlay. if ...
$('#edit-title', context).change( function() { if ($('#edit-title').val()) { $('#edit-title-link-wrapper').slideUp('fast');
$('input[name="title"]', context).change( function() { if ($('input[name="title"]').val()) { $('.menu-block-title-link').slideUp('fast');
attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Process the form if its in a Panel overlay. if ...
if ($('#edit-title', context).val()) { $('#edit-title-link-wrapper').css('display', 'none');
if ($('input[name="title"]', context).val()) { $('.menu-block-title-link').css('display', 'none');
attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Process the form if its in a Panel overlay. if ...
$('#edit-parent', context)
$('.menu-block-parent', context)
attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Process the form if its in a Panel overlay. if ...
$('#edit-parent-menu', context).change( function() { $('#edit-parent') .html(Drupal.settings.menu_block.parent_options[$('#edit-parent-menu').val()])
$('.menu-block-parent-menu', context).change( function() { $('.menu-block-parent') .html(Drupal.settings.menu_block.parent_options[$('.menu-block-parent-menu').val()])
attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Process the form if its in a Panel overlay. if ...
$('#edit-follow', context).change( function() { if ($('#edit-follow:checked').length) { $('#edit-follow-parent-wrapper').slideDown('fast');
$('.menu-block-follow', context).change( function() { if ($('.menu-block-follow:checked').length) { $('.menu-block-follow-parent').slideDown('fast');
attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Process the form if its in a Panel overlay. if ...
$('#edit-follow-parent-wrapper').slideUp('fast');
$('.menu-block-follow-parent').slideUp('fast');
attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Process the form if its in a Panel overlay. if ...
if (!$('#edit-follow:checked', context).length) { $('#edit-follow-parent-wrapper', context).css('display', 'none');
if (!$('.menu-block-follow:checked', context).length) { $('.menu-block-follow-parent', context).css('display', 'none');
attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Process the form if its in a Panel overlay. if ...
for (var i = this.joints.length - 1; i >= 0; --i){ var engine = this.joints[i].engine;
for (var i = this.joints().length - 1; i >= 0; --i){ var engine = this.joints()[i].engine;
Raphael.el.attr = function(){ // is it a getter or el is not a joint object? if ((arguments.length == 1 && (typeof arguments[0] === "string" || typeof arguments[0] === "array")) || (typeof this.joints === "undefined")){ return _attr.apply(this, arguments); // yes } // old attributes var o = {}; for (v...
"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,k,l,q,p){h=g[1].replace(/\\/g,"");if(!p&&m.attrMap[h])g[1]=m.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,k,l,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]...
CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g...
"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,k,l,q,p){h=g[1].replace(/\\/g,"");if(!p&&m.attrMap[h])g[1]=m.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,k,l,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]...
var n = this.attrs;
var n = this.attrs, positionChanged = false, strokeChanged = false; if (o.x != n.x || o.y != n.y || o.cx != n.cx || o.cy != n.cy || o.path != n.path || o.r != n.r){ positionChanged = true; } if (o.stroke != n.stroke){ strokeChanged = true; }
Raphael.el.attr = function(){ // is it a getter or el is not a joint object? if ((arguments.length == 1 && (typeof arguments[0] === "string" || typeof arguments[0] === "array")) || (typeof this.joints === "undefined")){ return _attr.apply(this, arguments); // yes } // old attributes var o = {}; for (v...
if (o.x != n.x || o.y != n.y || o.cx != n.cx || o.cy != n.cy || o.path != n.path || o.r != n.r){
if (positionChanged){
Raphael.el.attr = function(){ // is it a getter or el is not a joint object? if ((arguments.length == 1 && (typeof arguments[0] === "string" || typeof arguments[0] === "array")) || (typeof this.joints === "undefined")){ return _attr.apply(this, arguments); // yes } // old attributes var o = {}; for (v...
if (o.stroke != n.stroke){
if (strokeChanged){
Raphael.el.attr = function(){ // is it a getter or el is not a joint object? if ((arguments.length == 1 && (typeof arguments[0] === "string" || typeof arguments[0] === "array")) || (typeof this.joints === "undefined")){ return _attr.apply(this, arguments); // yes } // old attributes var o = {}; for (v...
c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!...
attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return B;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d==...
c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!...
AutoescapeNode: function (enable, node_list) {
AutoescapeNode: function (node_list, enable) { if (enable.toLowerCase() === 'on') { enable = true; } else { enable = false; }
AutoescapeNode: function (enable, node_list) { return function (context) { var before = context.autoescaping; context.autoescaping = enable; out = node_list.evaluate( context ); context.autoescaping = before; return out; } },
if (pos[key]) {
if (pos[key] != null) {
function axisToCanvasCoords(pos) { // get canvas coords from the first pair of x/y found in pos var res = {}, i, axis, key; for (i = 0; i < xaxes.length; ++i) { axis = xaxes[i]; if (axis && axis.used) { key = "x" + axis.n; ...
function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0...
a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);re...
function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0...
if (count<0 || count > this.length) return "";
String.prototype.before=function(count){ return this.substr(0,this.length-count); };
if (__DEV__) { if (name in behaviors) { throw new Error( 'JX.behavior("'+name+'", ...): '+ 'behavior is already registered.'); } if (!control_function) { throw new Error( 'JX.behavior("'+name+'", <nothing>): '+ 'initialization function is required.'); } if (typeof control_function != 'function') { throw new Error( 'JX....
if (__DEV__) { if (name in JX.behavior._behaviors) { throw new Error( 'JX.behavior("'+name+'", ...): '+ 'behavior is already registered.');
JX.behavior = function(name, control_function) { if (__DEV__) { if (name in behaviors) { throw new Error( 'JX.behavior("'+name+'", ...): '+ 'behavior is already registered.'); } if (!control_function) { throw new Error( 'JX.behavior("'+name+'", <nothing>): '+...
behaviors[name] = control_function; };
if (!control_function) { throw new Error( 'JX.behavior("'+name+'", <nothing>): '+ 'initialization function is required.'); } if (typeof control_function != 'function') { throw new Error( 'JX.behavior("'+name+'", <garbage>): '+ 'initialization function is not a function.'); } } JX.behavior._behaviors[name] = control_fun...
JX.behavior = function(name, control_function) { if (__DEV__) { if (name in behaviors) { throw new Error( 'JX.behavior("'+name+'", ...): '+ 'behavior is already registered.'); } if (!control_function) { throw new Error( 'JX.behavior("'+name+'", <nothing>): '+...
JX.bind = function(context, func) {
JX.bind = function(context, func, more) {
JX.bind = function(context, func/*, arg, arg, ...*/) { if (__DEV__) { if (typeof func != 'function') { throw new Error('Attempting to bind something that is not a function.'); } } var bound = JX.$A(arguments).slice(2); return function() { return func.apply(context || window, bound.concat(JX.$A(argumen...
throw new Error('Attempting to bind something that is not a function.');
throw new Error( 'JX.bind(context, <yuck>, ...): '+ 'Attempting to bind something that is not a function.');
JX.bind = function(context, func/*, arg, arg, ...*/) { if (__DEV__) { if (typeof func != 'function') { throw new Error('Attempting to bind something that is not a function.'); } } var bound = JX.$A(arguments).slice(2); return function() { return func.apply(context || window, bound.concat(JX.$A(argumen...
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHan...
if(!b.readyWait||j!==true&&!b.isReady){if(!t.body)return setTimeout(b.ready,1);b.isReady=true;if(!(j!==true&&--b.readyWait>0))if(q){var s=0,v=q;for(q=null;j=v[s++];)j.call(t,b);b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}},bindReady:function(){if(!p){p=true;if(t.readyState==="complete")return setTimeout(b.read...
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHan...
BlockNode: function (name, node_list) {
BlockNode: function (node_list, name) {
BlockNode: function (name, node_list) { return function (context) { var out = ''; // init block list if it isn't already if (!context.blocks[name]) { context.blocks[name] = []; } // put this block in front of list context.blocks...
utils.iter.reduce( context.blocks[name], inner, '', function (error, result) {
iter.reduce( context.blocks[name], inner, '', function (error, result) {
BlockNode: function (node_list, name) { /* upon execution each block stores it's nodelist in the context * indexed by the blocks name. As templates are executed from child to * parent, similar named blocks add their nodelist to an array of * nodelists (still indexed by the blocks name...
if (! ORBEON.util.Dom.hasClass(this.groupElement, "xforms-visited"))
if (! YAHOO.util.Dom.hasClass(this.groupElement, "xforms-visited"))
blur: function() { this.hasFocus = false; var cleanString = this.visibleInputElement.value.replace(new RegExp("[\\s,]", "g"), ""); // Remove prefix if at the beginning of the string if (cleanString.indexOf(this.prefix) == 0) cleanString = cleanString.substring(this.prefix.leng...
a.previous=f}false!==a._trigger("select",c,{item:d})&&a.element.val(d.value);a.close(c);a.selectedItem=d},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");e.fn.bgiframe&&this.menu.element.bgiframe()}...
var g=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();a.previous=g;setTimeout(function(){a.previous=g},1)}false!==a._trigger("select",c,{item:d})&&a.element.val(d.value);a.term=a.element.val();a.close(c);a.selectedItem=d},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element...
a.previous=f}false!==a._trigger("select",c,{item:d})&&a.element.val(d.value);a.close(c);a.selectedItem=d},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");e.fn.bgiframe&&this.menu.element.bgiframe()}...
if (! ORBEON.util.Dom.hasClass(this.groupElement, "xforms-visited")) { ORBEON.xforms.Events.runOnNext(ORBEON.xforms.Events.ajaxResponseProcessedEvent, function() { ORBEON.xforms.Controls.updateInvalidVisited(this.groupElement); }, this, true); }
if (! ORBEON.util.Dom.hasClass(this.groupElement, "xforms-visited")) ORBEON.xforms.Controls.updateInvalidVisitedOnNextAjaxResponse(this.groupElement);
blur: function() { this.hasFocus = false; var cleanString = this.visibleInputElement.value.replace(new RegExp("[\\s,]", "g"), ""); // Remove prefix if at the beginning of the string if (cleanString.indexOf(this.prefix) == 0) cleanString = cleanString.substring(this.prefix.leng...
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS...
f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h...
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS...
__.boundPoint = function(r, type, p){
boundPoint: function(r, type, p){
__.boundPoint = function(r, type, p){ var rCenter = r.center(); if (type === "circle" || type === "ellipse"){ return ellipse(rCenter.x, rCenter.y, r.width/2, r.height/2).intersectionWithLineFromCenterToPoint(p); } // BUG: in lines intersection, can be all null // it happens when point is located on the bb bound...
if (type === "circle" || type === "ellipse"){ return ellipse(rCenter.x, rCenter.y, r.width/2, r.height/2).intersectionWithLineFromCenterToPoint(p);
if (type === "circle" || type === "ellipse"){ return ellipse(rCenter, r.width/2, r.height/2).intersectionWithLineFromCenterToPoint(p);
__.boundPoint = function(r, type, p){ var rCenter = r.center(); if (type === "circle" || type === "ellipse"){ return ellipse(rCenter.x, rCenter.y, r.width/2, r.height/2).intersectionWithLineFromCenterToPoint(p); } // BUG: in lines intersection, can be all null // it happens when point is located on the bb bound...
};
},
__.boundPoint = function(r, type, p){ var rCenter = r.center(); if (type === "circle" || type === "ellipse"){ return ellipse(rCenter.x, rCenter.y, r.width/2, r.height/2).intersectionWithLineFromCenterToPoint(p); } // BUG: in lines intersection, can be all null // it happens when point is located on the bb bound...
var gl_Slide=new Class({options:{active:'',fx:{wait:false,duration:350},scrollFX:{wait:false,transition:Fx.Transitions.Sine.easeInOut},dimensions:{width:722,height:200}},initialize:function(contents,options){this.setOptions(options);this.content=$(contents);this.sections=this.content.getElements('.tab-pane');if(!this.s...
buildFrame:function(){ var that=this, events={ 'click':function(){ that.scrollArrow(this); that.autoScrollStop();}, 'mouseover':function(){ this.addClass('hover'); that.autoScrollStop();}, 'mouseout':function(){ this.removeClass('hover'); that.autoScrollStart();} }; this.filmstrip.adopt(new Element('div',{ id:this.opt...
var gl_Slide=new Class({options:{active:'',fx:{wait:false,duration:350},scrollFX:{wait:false,transition:Fx.Transitions.Sine.easeInOut},dimensions:{width:722,height:200}},initialize:function(contents,options){this.setOptions(options);this.content=$(contents);this.sections=this.content.getElements('.tab-pane');if(!this.s...
return new WaitAjaxResponseDataSource(function(query) { return autoComplete.getCurrentValues(query); });
return new WaitAjaxResponseDataSource(function(query) { return autoComplete.getCurrentValues(query); }, {});
buildNullDataSource: function() { var autoComplete = this; var WaitAjaxResponseDataSource = function(oLiveData, oConfigs) { this.dataType = YAHOO.util.DataSourceBase.TYPE_JSFUNCTION; oLiveData = oLiveData || function() {}; this.constructor.superclass.constructor.call(t...
var gl_Slide=new Class({options:{active:'',fx:{wait:false,duration:350},scrollFX:{wait:false,transition:Fx.Transitions.Sine.easeInOut},dimensions:{width:722,height:200}},initialize:function(contents,options){this.setOptions(options);this.content=$(contents);this.sections=this.content.getElements('.tab-pane');if(!this.s...
buildToolbar:function(){ var lis=[]; var that=this; this.sectionptr=[]; var h1,title; this.sections.each(function(el){ el.setStyles({width:this.options.dimensions.width-102,height:this.options.dimensions.height }); this.sectionptr.push(el.id.replace('-pane','-tab')); h1=el.getElement('.'+this.options.cssvars.customID+'...
var gl_Slide=new Class({options:{active:'',fx:{wait:false,duration:350},scrollFX:{wait:false,transition:Fx.Transitions.Sine.easeInOut},dimensions:{width:722,height:200}},initialize:function(contents,options){this.setOptions(options);this.content=$(contents);this.sections=this.content.getElements('.tab-pane');if(!this.s...
g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(...
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"===g.type},image:function(g){return"image"===g.type},reset:function(g...
g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(...