rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+
|
(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,
|
a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+
|
b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,
|
(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c, a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,
|
b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,
|
form.findField("driver").setValue(
|
ObjectLib.forEach(dsInfo,function(v,k){ var f =form.findField(k) if (f && !f.getValue()){ f.setValue(v) } }) /* form.findField("driver").setValue(
|
C.ds.edit=function(name){ var center_tabs = Ext.getCmp("center_tabs"); var tabId="ds_edit_" + name; if (!center_tabs.findById(tabId)){ var submitFn=function(){ var form = Ext.getCmp("ds_form" + name).form; form.findField("url").enable() if (form.isValid()) { form.submit({ waitMsg:'Saving...', callback:function(){ updateUrl(); C.dSstore.reload(); } }); }else{ Ext.MessageBox.alert('Errors', 'Please fix the errors noted.'); } } var updateUrl = function(){ var form = config.ds.getForm(); var values = form.getValues(); var dsInfo = dbProperties[values.type]; if (dsInfo && dsInfo.file_url){ form.findField("location").show() form.findField("location").getEl().up('.x-form-item').setDisplayed(true) } else { form.findField("location").hide() form.findField("location").setValue("network") form.findField("location").getEl().up('.x-form-item').setDisplayed(false) } if (form.findField("location").getValue() == "file"){ form.findField("server").hide() form.findField("server").getEl().up('.x-form-item').setDisplayed(false); form.findField("port").hide() form.findField("port").getEl().up('.x-form-item').setDisplayed(false); form.findField("db").hide() form.findField("db").getEl().up('.x-form-item').setDisplayed(false); form.findField("file").show() form.findField("file").getEl().up('.x-form-item').setDisplayed(true); } else { form.findField("server").show() form.findField("server").getEl().up('.x-form-item').setDisplayed(true); form.findField("port").show() form.findField("port").getEl().up('.x-form-item').setDisplayed(true); form.findField("db").show() form.findField("db").getEl().up('.x-form-item').setDisplayed(true); form.findField("file").hide() form.findField("file").getEl().up('.x-form-item').setDisplayed(false); } if (form.findField("type").getValue() == "other"){ form.findField("server").hide() form.findField("server").getEl().up('.x-form-item').setDisplayed(false); form.findField("port").hide() form.findField("port").getEl().up('.x-form-item').setDisplayed(false); form.findField("db").hide() form.findField("db").getEl().up('.x-form-item').setDisplayed(false); form.findField("file").hide() form.findField("file").getEl().up('.x-form-item').setDisplayed(false); } if (dsInfo && dsInfo.driver.length){ form.findField("url").setDisabled(true); var location = form.findField("location").getValue(); if (location == "file"){ form.findField("url").setValue( new Ext.Template(dsInfo.file_url).apply(values) ); } else { form.findField("url").setValue( new Ext.Template(dsInfo.url).apply(values) ); } form.findField("driver").setValue( dsInfo.driver ); } else { form.findField("url").setDisabled(false) } } var config ={ id:tabId, title:"Datasource " + name, closable:true, layout:"border", /* functions */ ds:{ getFormPanel:function(){ return Ext.getCmp("ds_form" + name); }, getForm:function(){ return this.getFormPanel().getForm(); } }, items:[{ /* center */ region:"center", frame:false, bodyStyle:"padding:3px;", title:"Editing Datasource '" + name + "'", header:true, layout:"fit", items:[{ id:"ds_form" + name, trackResetOnLoad:true, xtype:"form", url:'?fuseaction=ds_save&name=' + name, bodyStyle:"padding:5px", /* layout:"fit", */ defaults:{ xtype:"textfield", style:{ width:150 }, grow:true, growMin:150, listeners:{ change:updateUrl } }, labelAlign:"right", keys:{ key: [10,13], fn: submitFn }, items:[{ xtype:"fieldset", title:"Copy/Rename", collapsible: true, collapsed:true, autoHeight:true, width: 300, defaultType: 'textfield', bodyStyle:"margin-bottom:10px;", items:[{ fieldLabel: 'Copy to', name: 'copy_name', allowBlank:true },{ fieldLabel: 'Rename to', name: 'new_name', allowBlank:true }] },{ fieldLabel: 'Description', name: 'desc', allowBlank:true },{ xtype:"combo", fieldLabel: 'Database Type', name: 'type', store: new Ext.data.SimpleStore({ fields: ['type'], data: ObjectLib.getKeys(dbProperties).map(function(key){return [key]}) }), displayField:'type', typeAhead: true, mode: 'local', triggerAction: 'all', selectOnFocus:true, editable:false, allowBlank:false, listeners:{ select:function(combo,record,index){ updateUrl(); } } },{ xtype:"combo", fieldLabel: 'Use case-sensitive names?', hiddenName: 'case_sensitive', store: new Ext.data.SimpleStore({ fields: ['key','label'], data: [ [0,"No"], [1,"Yes"], ] }), displayField:'label', valueField:'key', typeAhead: true, mode: 'local', triggerAction: 'all', selectOnFocus:true, editable:false, allowBlank:false },{ fieldLabel: 'Driver', name: 'driver', allowBlank:true },{ xtype:"combo", fieldLabel: 'Location', name: 'location', store: new Ext.data.SimpleStore({ fields: ['type'], data: [["file"],["network"]] }), displayField:'type', typeAhead: true, mode: 'local', triggerAction: 'all', selectOnFocus:true, editable:false, allowBlank:false, listeners:{ select:function(combo,record,index){ updateUrl(); } } },{ fieldLabel: 'Server', name: 'server', allowBlank:true },{ fieldLabel: 'Port', name: 'port', allowBlank:true },{ fieldLabel: 'Database', name: 'db', allowBlank:true },{ fieldLabel: 'File', name: 'file', allowBlank:true },{ fieldLabel: 'Username', name: 'username', allowBlank:true },{ fieldLabel: 'Password', name: 'password', inputType:"password", allowBlank:true },{ fieldLabel: 'URL', name: 'url', style:{ width:"100%" }, allowBlank:true }], buttons:[{ /* Save */ text:"Save", handler:submitFn },{ /* delete */ text:"Delete This Datasource", handler:function(){ Ext.MessageBox.confirm("Warning","Delete this datsource '" + name +"'?",function(btn){ if (btn == 'yes') { C.body.mask("Deleting datasource..."); Ext.Ajax.request({ url:'?fuseaction=ds_delete&name=' + name, callback:function(options,success,response){ C.infoMsg("Datasource '" + name + "' deleted."); if (C.dSstore) C.dSstore.reload(); Ext.getCmp("center_tabs").remove(Ext.getCmp(tabId)); C.body.unmask(); } }) } }) } }], listeners:{ beforerender:function(){ Ext.Ajax.request({ url:"?fuseaction=get_ds&name=" + name, waitMsg:"Loading...", callback:C.cbHandler(function(result){ if (result.success){ if (!result.data.location){ result.data.location="network"; } config.ds.getForm().setValues(result.data); updateUrl(); } return result.success; }) }) }, /* actioncomplete */ actioncomplete:function(form,action){ if (action.type == "submit"){ //C.infoMsg("Datasource " + name + " saved."); if (C.dSstore) C.dSstore.reload(); if (action.result.name && name != action.result.name){ C.ds.edit(action.result.name); Ext.getCmp("center_tabs").remove(Ext.getCmp(tabId)); } if (action.result.copied){ C.ds.edit(form.getValues().copy_name); form.setValues({copy_name:""}); } if (action.result.message){ C.infoMsg(action.result.message); } } }, /* actionfailed */ actionfailed:C.defaultActionFailed } }] }] } C.addTab(center_tabs,config); var formPanel =Ext.getCmp("ds_form" + name); } center_tabs.activate(tabId) }
|
);
|
); */
|
C.ds.edit=function(name){ var center_tabs = Ext.getCmp("center_tabs"); var tabId="ds_edit_" + name; if (!center_tabs.findById(tabId)){ var submitFn=function(){ var form = Ext.getCmp("ds_form" + name).form; form.findField("url").enable() if (form.isValid()) { form.submit({ waitMsg:'Saving...', callback:function(){ updateUrl(); C.dSstore.reload(); } }); }else{ Ext.MessageBox.alert('Errors', 'Please fix the errors noted.'); } } var updateUrl = function(){ var form = config.ds.getForm(); var values = form.getValues(); var dsInfo = dbProperties[values.type]; if (dsInfo && dsInfo.file_url){ form.findField("location").show() form.findField("location").getEl().up('.x-form-item').setDisplayed(true) } else { form.findField("location").hide() form.findField("location").setValue("network") form.findField("location").getEl().up('.x-form-item').setDisplayed(false) } if (form.findField("location").getValue() == "file"){ form.findField("server").hide() form.findField("server").getEl().up('.x-form-item').setDisplayed(false); form.findField("port").hide() form.findField("port").getEl().up('.x-form-item').setDisplayed(false); form.findField("db").hide() form.findField("db").getEl().up('.x-form-item').setDisplayed(false); form.findField("file").show() form.findField("file").getEl().up('.x-form-item').setDisplayed(true); } else { form.findField("server").show() form.findField("server").getEl().up('.x-form-item').setDisplayed(true); form.findField("port").show() form.findField("port").getEl().up('.x-form-item').setDisplayed(true); form.findField("db").show() form.findField("db").getEl().up('.x-form-item').setDisplayed(true); form.findField("file").hide() form.findField("file").getEl().up('.x-form-item').setDisplayed(false); } if (form.findField("type").getValue() == "other"){ form.findField("server").hide() form.findField("server").getEl().up('.x-form-item').setDisplayed(false); form.findField("port").hide() form.findField("port").getEl().up('.x-form-item').setDisplayed(false); form.findField("db").hide() form.findField("db").getEl().up('.x-form-item').setDisplayed(false); form.findField("file").hide() form.findField("file").getEl().up('.x-form-item').setDisplayed(false); } if (dsInfo && dsInfo.driver.length){ form.findField("url").setDisabled(true); var location = form.findField("location").getValue(); if (location == "file"){ form.findField("url").setValue( new Ext.Template(dsInfo.file_url).apply(values) ); } else { form.findField("url").setValue( new Ext.Template(dsInfo.url).apply(values) ); } form.findField("driver").setValue( dsInfo.driver ); } else { form.findField("url").setDisabled(false) } } var config ={ id:tabId, title:"Datasource " + name, closable:true, layout:"border", /* functions */ ds:{ getFormPanel:function(){ return Ext.getCmp("ds_form" + name); }, getForm:function(){ return this.getFormPanel().getForm(); } }, items:[{ /* center */ region:"center", frame:false, bodyStyle:"padding:3px;", title:"Editing Datasource '" + name + "'", header:true, layout:"fit", items:[{ id:"ds_form" + name, trackResetOnLoad:true, xtype:"form", url:'?fuseaction=ds_save&name=' + name, bodyStyle:"padding:5px", /* layout:"fit", */ defaults:{ xtype:"textfield", style:{ width:150 }, grow:true, growMin:150, listeners:{ change:updateUrl } }, labelAlign:"right", keys:{ key: [10,13], fn: submitFn }, items:[{ xtype:"fieldset", title:"Copy/Rename", collapsible: true, collapsed:true, autoHeight:true, width: 300, defaultType: 'textfield', bodyStyle:"margin-bottom:10px;", items:[{ fieldLabel: 'Copy to', name: 'copy_name', allowBlank:true },{ fieldLabel: 'Rename to', name: 'new_name', allowBlank:true }] },{ fieldLabel: 'Description', name: 'desc', allowBlank:true },{ xtype:"combo", fieldLabel: 'Database Type', name: 'type', store: new Ext.data.SimpleStore({ fields: ['type'], data: ObjectLib.getKeys(dbProperties).map(function(key){return [key]}) }), displayField:'type', typeAhead: true, mode: 'local', triggerAction: 'all', selectOnFocus:true, editable:false, allowBlank:false, listeners:{ select:function(combo,record,index){ updateUrl(); } } },{ xtype:"combo", fieldLabel: 'Use case-sensitive names?', hiddenName: 'case_sensitive', store: new Ext.data.SimpleStore({ fields: ['key','label'], data: [ [0,"No"], [1,"Yes"], ] }), displayField:'label', valueField:'key', typeAhead: true, mode: 'local', triggerAction: 'all', selectOnFocus:true, editable:false, allowBlank:false },{ fieldLabel: 'Driver', name: 'driver', allowBlank:true },{ xtype:"combo", fieldLabel: 'Location', name: 'location', store: new Ext.data.SimpleStore({ fields: ['type'], data: [["file"],["network"]] }), displayField:'type', typeAhead: true, mode: 'local', triggerAction: 'all', selectOnFocus:true, editable:false, allowBlank:false, listeners:{ select:function(combo,record,index){ updateUrl(); } } },{ fieldLabel: 'Server', name: 'server', allowBlank:true },{ fieldLabel: 'Port', name: 'port', allowBlank:true },{ fieldLabel: 'Database', name: 'db', allowBlank:true },{ fieldLabel: 'File', name: 'file', allowBlank:true },{ fieldLabel: 'Username', name: 'username', allowBlank:true },{ fieldLabel: 'Password', name: 'password', inputType:"password", allowBlank:true },{ fieldLabel: 'URL', name: 'url', style:{ width:"100%" }, allowBlank:true }], buttons:[{ /* Save */ text:"Save", handler:submitFn },{ /* delete */ text:"Delete This Datasource", handler:function(){ Ext.MessageBox.confirm("Warning","Delete this datsource '" + name +"'?",function(btn){ if (btn == 'yes') { C.body.mask("Deleting datasource..."); Ext.Ajax.request({ url:'?fuseaction=ds_delete&name=' + name, callback:function(options,success,response){ C.infoMsg("Datasource '" + name + "' deleted."); if (C.dSstore) C.dSstore.reload(); Ext.getCmp("center_tabs").remove(Ext.getCmp(tabId)); C.body.unmask(); } }) } }) } }], listeners:{ beforerender:function(){ Ext.Ajax.request({ url:"?fuseaction=get_ds&name=" + name, waitMsg:"Loading...", callback:C.cbHandler(function(result){ if (result.success){ if (!result.data.location){ result.data.location="network"; } config.ds.getForm().setValues(result.data); updateUrl(); } return result.success; }) }) }, /* actioncomplete */ actioncomplete:function(form,action){ if (action.type == "submit"){ //C.infoMsg("Datasource " + name + " saved."); if (C.dSstore) C.dSstore.reload(); if (action.result.name && name != action.result.name){ C.ds.edit(action.result.name); Ext.getCmp("center_tabs").remove(Ext.getCmp(tabId)); } if (action.result.copied){ C.ds.edit(form.getValues().copy_name); form.setValues({copy_name:""}); } if (action.result.message){ C.infoMsg(action.result.message); } } }, /* actionfailed */ actionfailed:C.defaultActionFailed } }] }] } C.addTab(center_tabs,config); var formPanel =Ext.getCmp("ds_form" + name); } center_tabs.activate(tabId) }
|
[1,"Yes"],
|
[1,"Yes"]
|
C.ds.edit=function(name){ var center_tabs = Ext.getCmp("center_tabs"); var tabId="ds_edit_" + name; if (!center_tabs.findById(tabId)){ var submitFn=function(){ var form = Ext.getCmp("ds_form" + name).form; form.findField("url").enable() if (form.isValid()) { form.submit({ waitMsg:'Saving...', callback:function(){ updateUrl(); C.dSstore.reload(); } }); }else{ Ext.MessageBox.alert('Errors', 'Please fix the errors noted.'); } } var updateUrl = function(){ var form = config.ds.getForm(); var values = form.getValues(); var dsInfo = dbProperties[values.type]; if (dsInfo && dsInfo.file_url){ form.findField("location").show() form.findField("location").getEl().up('.x-form-item').setDisplayed(true) } else { form.findField("location").hide() form.findField("location").setValue("network") form.findField("location").getEl().up('.x-form-item').setDisplayed(false) } if (form.findField("location").getValue() == "file"){ form.findField("server").hide() form.findField("server").getEl().up('.x-form-item').setDisplayed(false); form.findField("port").hide() form.findField("port").getEl().up('.x-form-item').setDisplayed(false); form.findField("db").hide() form.findField("db").getEl().up('.x-form-item').setDisplayed(false); form.findField("file").show() form.findField("file").getEl().up('.x-form-item').setDisplayed(true); } else { form.findField("server").show() form.findField("server").getEl().up('.x-form-item').setDisplayed(true); form.findField("port").show() form.findField("port").getEl().up('.x-form-item').setDisplayed(true); form.findField("db").show() form.findField("db").getEl().up('.x-form-item').setDisplayed(true); form.findField("file").hide() form.findField("file").getEl().up('.x-form-item').setDisplayed(false); } if (form.findField("type").getValue() == "other"){ form.findField("server").hide() form.findField("server").getEl().up('.x-form-item').setDisplayed(false); form.findField("port").hide() form.findField("port").getEl().up('.x-form-item').setDisplayed(false); form.findField("db").hide() form.findField("db").getEl().up('.x-form-item').setDisplayed(false); form.findField("file").hide() form.findField("file").getEl().up('.x-form-item').setDisplayed(false); } if (dsInfo && dsInfo.driver.length){ form.findField("url").setDisabled(true); var location = form.findField("location").getValue(); if (location == "file"){ form.findField("url").setValue( new Ext.Template(dsInfo.file_url).apply(values) ); } else { form.findField("url").setValue( new Ext.Template(dsInfo.url).apply(values) ); } ObjectLib.forEach(dsInfo,function(v,k){ var f =form.findField(k) if (f && !f.getValue()){ f.setValue(v) } }) /* form.findField("driver").setValue( dsInfo.driver ); */ } else { form.findField("url").setDisabled(false) } } var config ={ id:tabId, title:"Datasource " + name, closable:true, layout:"border", /* functions */ ds:{ getFormPanel:function(){ return Ext.getCmp("ds_form" + name); }, getForm:function(){ return this.getFormPanel().getForm(); } }, items:[{ /* center */ region:"center", frame:false, bodyStyle:"padding:3px;", title:"Editing Datasource '" + name + "'", header:true, layout:"fit", items:[{ id:"ds_form" + name, trackResetOnLoad:true, xtype:"form", url:'?fuseaction=ds_save&name=' + name, bodyStyle:"padding:5px", /* layout:"fit", */ defaults:{ xtype:"textfield", style:{ width:150 }, grow:true, growMin:150, listeners:{ change:updateUrl } }, labelAlign:"right", keys:{ key: [10,13], fn: submitFn }, items:[{ xtype:"fieldset", title:"Copy/Rename", collapsible: true, collapsed:true, autoHeight:true, width: 300, defaultType: 'textfield', bodyStyle:"margin-bottom:10px;", items:[{ fieldLabel: 'Copy to', name: 'copy_name', allowBlank:true },{ fieldLabel: 'Rename to', name: 'new_name', allowBlank:true }] },{ fieldLabel: 'Description', name: 'desc', allowBlank:true },{ xtype:"combo", fieldLabel: 'Database Type', name: 'type', store: new Ext.data.SimpleStore({ fields: ['type'], data: ObjectLib.getKeys(dbProperties).map(function(key){return [key]}) }), displayField:'type', typeAhead: true, mode: 'local', triggerAction: 'all', selectOnFocus:true, editable:false, allowBlank:false, listeners:{ select:function(combo,record,index){ updateUrl(); } } },{ xtype:"combo", fieldLabel: 'Use case-sensitive names?', hiddenName: 'case_sensitive', store: new Ext.data.SimpleStore({ fields: ['key','label'], data: [ [0,"No"], [1,"Yes"], ] }), displayField:'label', valueField:'key', typeAhead: true, mode: 'local', triggerAction: 'all', selectOnFocus:true, editable:false, allowBlank:false },{ fieldLabel: 'Driver', name: 'driver', allowBlank:true },{ xtype:"combo", fieldLabel: 'Location', name: 'location', store: new Ext.data.SimpleStore({ fields: ['type'], data: [["file"],["network"]] }), displayField:'type', typeAhead: true, mode: 'local', triggerAction: 'all', selectOnFocus:true, editable:false, allowBlank:false, listeners:{ select:function(combo,record,index){ updateUrl(); } } },{ fieldLabel: 'Server', name: 'server', allowBlank:true },{ fieldLabel: 'Port', name: 'port', allowBlank:true },{ fieldLabel: 'Database', name: 'db', allowBlank:true },{ fieldLabel: 'File', name: 'file', allowBlank:true },{ fieldLabel: 'Username', name: 'username', allowBlank:true },{ fieldLabel: 'Password', name: 'password', inputType:"password", allowBlank:true },{ fieldLabel: 'URL', name: 'url', style:{ width:"100%" }, allowBlank:true }], buttons:[{ /* Save */ text:"Save", handler:submitFn },{ /* delete */ text:"Delete This Datasource", handler:function(){ Ext.MessageBox.confirm("Warning","Delete this datsource '" + name +"'?",function(btn){ if (btn == 'yes') { C.body.mask("Deleting datasource..."); Ext.Ajax.request({ url:'?fuseaction=ds_delete&name=' + name, callback:function(options,success,response){ C.infoMsg("Datasource '" + name + "' deleted."); if (C.dSstore) C.dSstore.reload(); Ext.getCmp("center_tabs").remove(Ext.getCmp(tabId)); C.body.unmask(); } }) } }) } }], listeners:{ beforerender:function(){ Ext.Ajax.request({ url:"?fuseaction=get_ds&name=" + name, waitMsg:"Loading...", callback:C.cbHandler(function(result){ if (result.success){ if (!result.data.location){ result.data.location="network"; } config.ds.getForm().setValues(result.data); updateUrl(); } return result.success; }) }) }, /* actioncomplete */ actioncomplete:function(form,action){ if (action.type == "submit"){ //C.infoMsg("Datasource " + name + " saved."); if (C.dSstore) C.dSstore.reload(); if (action.result.name && name != action.result.name){ C.ds.edit(action.result.name); Ext.getCmp("center_tabs").remove(Ext.getCmp(tabId)); } if (action.result.copied){ C.ds.edit(form.getValues().copy_name); form.setValues({copy_name:""}); } if (action.result.message){ C.infoMsg(action.result.message); } } }, /* actionfailed */ actionfailed:C.defaultActionFailed } }] }] } C.addTab(center_tabs,config); var formPanel =Ext.getCmp("ds_form" + name); } center_tabs.activate(tabId) }
|
config.contentsCss = 'gui/themes/default/css/testlink.css';
|
CKEDITOR.editorConfig = function( config ){ // You can use theses definitions if you buy ckfinder // more informations on http://ckfinder.com/ //config.filebrowserBrowseUrl = '/third_party/ckfinder/ckfinder.html'; //config.filebrowserImageBrowseUrl = '/third_party/ckfinder/ckfinder.html?Type=Images'; //config.filebrowserFlashBrowseUrl = '/third_party/ckfinder/ckfinder.html?Type=Flash'; //config.filebrowserUploadUrl = '/third_party/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; //config.filebrowserImageUploadUrl = '/third_party/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images'; //config.filebrowserFlashUploadUrl = '/third_party/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'; // choose your prefered ckedtior skin // available skins: kama, office2003, v2 config.skin = 'office2003'; // do not check "Replace actual contents" checkbox as default config.templates_replaceContent = false; // default Toolbar config.toolbar_Testlink = [ ['Source','Templates','SpellChecker','Find','Undo','Redo','-', 'NumberedList','BulletedList','-', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-', 'Outdent','Indent','-', 'Table','HorizontalRule',], '/', ['Format','Bold','Italic','Underline','Strike','-', 'Subscript','Superscript','-','TextColor','BGColor','RemoveFormat','-', 'Link','Image','Anchor','SpecialChar'] ]; // Toolbar with all available features - can be used as template for custom toolbars // '-' creates toolbar seperator // '/' creates a new toolbar "line" // [...] defines sub-toolbars config.toolbar_Full = [ ['Source','-','NewPage','Preview','-','Templates'], ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellChecker'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], '/', ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['Link','Unlink','Anchor'], ['Image','Table','HorizontalRule','PageBreak'], '/', ['Style','Format','Font','FontSize'], ['TextColor','BGColor'], ['Maximize','ShowBlocks','-','About'] ];};
|
|
config.templates_replaceContent = false;
|
CKEDITOR.editorConfig = function( config ){ // You can use theses definitions if you buy ckfinder // more informations on http://ckfinder.com/ //config.filebrowserBrowseUrl = '/third_party/ckfinder/ckfinder.html'; //config.filebrowserImageBrowseUrl = '/third_party/ckfinder/ckfinder.html?Type=Images'; //config.filebrowserFlashBrowseUrl = '/third_party/ckfinder/ckfinder.html?Type=Flash'; //config.filebrowserUploadUrl = '/third_party/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; //config.filebrowserImageUploadUrl = '/third_party/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images'; //config.filebrowserFlashUploadUrl = '/third_party/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'; // choose your prefered ckedtior skin // available skins: kama, office2003, v2 config.skin = 'office2003'; // default Toolbar config.toolbar_Testlink = [ ['Source','Templates','SpellChecker','Find','Undo','Redo','-', 'NumberedList','BulletedList','-', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-', 'Outdent','Indent','-', 'Table','HorizontalRule',], '/', ['Format','Bold','Italic','Underline','Strike','-', 'Subscript','Superscript','-','TextColor','BGColor','RemoveFormat','-', 'Link','Image','Anchor','SpecialChar'] ]; // Toolbar with all available features - can be used as template for custom toolbars // '-' creates toolbar seperator // '/' creates a new toolbar "line" // [...] defines sub-toolbars config.toolbar_Full = [ ['Source','-','NewPage','Preview','-','Templates'], ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellChecker'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], '/', ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['Link','Unlink','Anchor'], ['Image','Table','HorizontalRule','PageBreak'], '/', ['Style','Format','Font','FontSize'], ['TextColor','BGColor'], ['Maximize','ShowBlocks','-','About'] ];};
|
|
c.css({position:"relative",top:0,left:0})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments);a={options:a[1],duration:a[2],callback:a[3]};var b=f.effects[c];return b&&!f.fx.off?b.call(this,a):this},_show:f.fn.show,show:function(c){if(!c||
|
{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"});c.css({position:"relative",top:0,left:0})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a= 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=
|
c.css({position:"relative",top:0,left:0})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments);a={options:a[1],duration:a[2],callback:a[3]};var b=f.effects[c];return b&&!f.fx.off?b.call(this,a):this},_show:f.fn.show,show:function(c){if(!c||
|
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.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
|
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"===
|
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.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
|
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
|
-1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false;
|
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
|
0},odd:function(g,h){return h%2===1},lt:function(g,h,k){return h<k[3]-0},gt:function(g,h,k){return h>k[3]-0},nth:function(g,h,k){return k[3]-0===h},eq:function(g,h,k){return k[3]-0===h}},filter:{PSEUDO:function(g,h,k,l){var q=h[1],p=m.filters[q];if(p)return p(g,k,h,l);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=h[3];k=0;for(l=h.length;k<l;k++)if(h[k]===g)return false;return true}else o.error("Syntax error, unrecognized expression: "+
|
setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=
|
0},odd:function(g,h){return h%2===1},lt:function(g,h,k){return h<k[3]-0},gt:function(g,h,k){return h>k[3]-0},nth:function(g,h,k){return k[3]-0===h},eq:function(g,h,k){return k[3]-0===h}},filter:{PSEUDO:function(g,h,k,l){var q=h[1],p=m.filters[q];if(p)return p(g,k,h,l);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=h[3];k=0;for(l=h.length;k<l;k++)if(h[k]===g)return false;return true}else o.error("Syntax error, unrecognized expression: "+
|
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
|
toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=this.selector+"."+s+"("+v+")";return z},each:function(j,s){return b.each(this,j,s)},ready:function(j){b.bindReady();if(b.isReady)j.call(t,b);else q&&q.push(j);return this},eq:function(j){return j=== -1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false;
|
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
|
Symphony.Language.Dictionary = $.extend(Symphony.Language.Dictionary, strings); }
|
Symphony.Message.post(Symphony.Language.get('Reordering was unsuccessful.'), 'reorder error'); },
|
error: function() { Symphony.Language.Dictionary = $.extend(Symphony.Language.Dictionary, strings); }
|
1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
|
!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&&
|
1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
|
ORBEON.util.Dom.removeClass(detailsHidden, "xforms-disabled"); ORBEON.util.Dom.removeClass(detailsHidden, "xforms-disabled-subsequent"); ORBEON.util.Dom.addClass(detailsShown, "xforms-disabled-subsequent");
|
YAHOO.util.Dom.removeClass(detailsHidden, "xforms-disabled"); YAHOO.util.Dom.removeClass(detailsHidden, "xforms-disabled-subsequent"); YAHOO.util.Dom.addClass(detailsShown, "xforms-disabled-subsequent");
|
errorPanelClosed: function(type, args, formID) { var errorPanel = ORBEON.xforms.Globals.formErrorPanel[formID]; var errorBodyDiv = errorPanel.errorDetailsDiv.parentNode.parentNode; var detailsHidden = ORBEON.util.Dom.getChildElementByClass(errorBodyDiv, "xforms-error-panel-details-hidden"); var detailsShown = ORBEON.util.Dom.getChildElementByClass(errorBodyDiv, "xforms-error-panel-details-shown"); ORBEON.util.Dom.removeClass(detailsHidden, "xforms-disabled"); ORBEON.util.Dom.removeClass(detailsHidden, "xforms-disabled-subsequent"); ORBEON.util.Dom.addClass(detailsShown, "xforms-disabled-subsequent"); },
|
ORBEON.util.Dom.addClass(detailsHidden, "xforms-disabled-subsequent"); ORBEON.util.Dom.removeClass(detailsShown, "xforms-disabled"); ORBEON.util.Dom.removeClass(detailsShown, "xforms-disabled-subsequent");
|
YAHOO.util.Dom.addClass(detailsHidden, "xforms-disabled-subsequent"); YAHOO.util.Dom.removeClass(detailsShown, "xforms-disabled"); YAHOO.util.Dom.removeClass(detailsShown, "xforms-disabled-subsequent");
|
errorShowHideDetails: function() { var errorBodyDiv = this.parentNode.parentNode.parentNode; var detailsHidden = ORBEON.util.Dom.getChildElementByClass(errorBodyDiv, "xforms-error-panel-details-hidden"); var detailsShown = ORBEON.util.Dom.getChildElementByClass(errorBodyDiv, "xforms-error-panel-details-shown"); if (this.className == "xforms-error-panel-show-details") { ORBEON.util.Dom.addClass(detailsHidden, "xforms-disabled-subsequent"); ORBEON.util.Dom.removeClass(detailsShown, "xforms-disabled"); ORBEON.util.Dom.removeClass(detailsShown, "xforms-disabled-subsequent"); } else { ORBEON.util.Dom.removeClass(detailsHidden, "xforms-disabled"); ORBEON.util.Dom.removeClass(detailsHidden, "xforms-disabled-subsequent"); ORBEON.util.Dom.addClass(detailsShown, "xforms-disabled-subsequent"); } },
|
ORBEON.util.Dom.removeClass(detailsHidden, "xforms-disabled"); ORBEON.util.Dom.removeClass(detailsHidden, "xforms-disabled-subsequent"); ORBEON.util.Dom.addClass(detailsShown, "xforms-disabled-subsequent");
|
YAHOO.util.Dom.removeClass(detailsHidden, "xforms-disabled"); YAHOO.util.Dom.removeClass(detailsHidden, "xforms-disabled-subsequent"); YAHOO.util.Dom.addClass(detailsShown, "xforms-disabled-subsequent");
|
errorShowHideDetails: function() { var errorBodyDiv = this.parentNode.parentNode.parentNode; var detailsHidden = ORBEON.util.Dom.getChildElementByClass(errorBodyDiv, "xforms-error-panel-details-hidden"); var detailsShown = ORBEON.util.Dom.getChildElementByClass(errorBodyDiv, "xforms-error-panel-details-shown"); if (this.className == "xforms-error-panel-show-details") { ORBEON.util.Dom.addClass(detailsHidden, "xforms-disabled-subsequent"); ORBEON.util.Dom.removeClass(detailsShown, "xforms-disabled"); ORBEON.util.Dom.removeClass(detailsShown, "xforms-disabled-subsequent"); } else { ORBEON.util.Dom.removeClass(detailsHidden, "xforms-disabled"); ORBEON.util.Dom.removeClass(detailsHidden, "xforms-disabled-subsequent"); ORBEON.util.Dom.addClass(detailsShown, "xforms-disabled-subsequent"); } },
|
.replace(/"/g, '&qout;');
|
.replace(/"/g, '"');
|
var escape = exports.escape = function (value) { return value .replace(/&/g, '&') .replace(/</g, '<') .replace(/>/g, '>') .replace(/'/g, ''') .replace(/"/g, '&qout;');};
|
b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});e.extend(e.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(a,b){var c=new RegExp(e.ui.autocomplete.escapeRegex(b),"i");return e.grep(a,function(d){return c.test(d.label||d.value||
|
this;e.each(b,function(c,d){f._renderItem(a,d)})},_renderItem:function(a,b){return e("<li></li>").data("item.autocomplete",b).append(e("<a></a>").text(b.label)).appendTo(a)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});e.extend(e.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")},filter:function(a,b){var f=new RegExp(e.ui.autocomplete.escapeRegex(b),"i");return e.grep(a,function(c){return f.test(c.label||c.value||c)})}})})(jQuery);
|
b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});e.extend(e.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(a,b){var c=new RegExp(e.ui.autocomplete.escapeRegex(b),"i");return e.grep(a,function(d){return c.test(d.label||d.value||
|
utils.iter.reduce(this, function (p, c, idx, list, next) {
|
iter.reduce(this, function (p, c, idx, list, next) {
|
node_list.evaluate = function (context, callback) { utils.iter.reduce(this, function (p, c, idx, list, next) { c(context, function (error, result) { next(error, p + result); }); }, '', callback); };
|
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(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,h){return h===0},last:function(g,h,k,l){return h===l.length-1},even:function(g,h){return h%2=== 0},odd:function(g,h){return h%2===1},lt:function(g,h,k){return h<k[3]-0},gt:function(g,h,k){return h>k[3]-0},nth:function(g,h,k){return k[3]-0===h},eq:function(g,h,k){return k[3]-0===h}},filter:{PSEUDO:function(g,h,k,l){var q=h[1],p=m.filters[q];if(p)return p(g,k,h,l);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=h[3];k=0;for(l=h.length;k<l;k++)if(h[k]===g)return false;return true}else o.error("Syntax error, unrecognized expression: "+
|
setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=
|
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(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,h){return h===0},last:function(g,h,k,l){return h===l.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,k){return h<k[3]-0},gt:function(g,h,k){return h>k[3]-0},nth:function(g,h,k){return k[3]-0===h},eq:function(g,h,k){return k[3]-0===h}},filter:{PSEUDO:function(g,h,k,l){var q=h[1],p=m.filters[q];if(p)return p(g,k,h,l);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=h[3];k=0;for(l=h.length;k<l;k++)if(h[k]===g)return false;return true}else o.error("Syntax error, unrecognized expression: "+
|
"events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent= a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
|
Y(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=t.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp= c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ca;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=ca;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ca;this.stopPropagation()},isDefaultPrevented:U,isPropagationStopped:U,isImmediatePropagationStopped:U};
|
"events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
|
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)|| c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
|
-1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false; if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K<Q;K++)if((j=arguments[K])!=null)for(s in j){v=G[s];z=j[s];if(G!==z)if(ga&&z&&(b.isPlainObject(z)||(H=b.isArray(z)))){if(H){H=false;v=v&&b.isArray(v)?v:[]}else v=v&&b.isPlainObject(v)?v:{};G[s]=b.extend(ga,v,z)}else if(z!==B)G[s]=z}return G};b.extend({noConflict:function(j){E.$=e;if(j)E.jQuery=d;return b},isReady:false,readyWait:1,ready:function(j){j===true&&b.readyWait--;
|
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
|
listChannel = shared.keys.getItemPropertyChannel(itemId, propName), listLength = this._listLength[listChannel] || 0
|
listLength = this._listLength[listKey] || 0
|
this.extendList = function(itemId, propName, maxLen) { if (!itemId || !propName || !maxLen) { logger.error("observe requires three arguments", itemId, propName, maxLen); } var listKey = shared.keys.getItemPropertyKey(itemId, propName), listChannel = shared.keys.getItemPropertyChannel(itemId, propName), listLength = this._listLength[listChannel] || 0 if (maxLen <= listLength) { return } this._listLength[listChannel] = maxLen var args = { key: listKey, from: listLength, to: maxLen } this.requestResponse('FIN_REQUEST_EXTEND_LIST', args, bind(this, function(items) { var mutation = { id: itemId, prop: propName, op: 'splice', args: [items], index: listLength } this._handleItemMutation(mutation) })) }
|
this._listLength[listChannel] = maxLen
|
this._listLength[listKey] = maxLen
|
this.extendList = function(itemId, propName, maxLen) { if (!itemId || !propName || !maxLen) { logger.error("observe requires three arguments", itemId, propName, maxLen); } var listKey = shared.keys.getItemPropertyKey(itemId, propName), listChannel = shared.keys.getItemPropertyChannel(itemId, propName), listLength = this._listLength[listChannel] || 0 if (maxLen <= listLength) { return } this._listLength[listChannel] = maxLen var args = { key: listKey, from: listLength, to: maxLen } this.requestResponse('FIN_REQUEST_EXTEND_LIST', args, bind(this, function(items) { var mutation = { id: itemId, prop: propName, op: 'splice', args: [items], index: listLength } this._handleItemMutation(mutation) })) }
|
this._handleItemMutation(mutation)
|
this._handleMutation(mutation)
|
this.extendList = function(itemId, propName, maxLen) { if (!itemId || !propName || !maxLen) { logger.error("observe requires three arguments", itemId, propName, maxLen); } var listKey = shared.keys.getItemPropertyKey(itemId, propName), listChannel = shared.keys.getItemPropertyChannel(itemId, propName), listLength = this._listLength[listChannel] || 0 if (maxLen <= listLength) { return } this._listLength[listChannel] = maxLen var args = { key: listKey, from: listLength, to: maxLen } this.requestResponse('FIN_REQUEST_EXTEND_LIST', args, bind(this, function(items) { var mutation = { id: itemId, prop: propName, op: 'splice', args: [items], index: listLength } this._handleItemMutation(mutation) })) }
|
}
|
},
|
ExtendsNode: function (item) { return function (context) { context.extends = context.get(item); return ''; }; }
|
callback(http.parseUri('http:
|
callback(querystring.parse(url.parse('http:
|
exports.extractPost = function(req, callback) { req.setBodyEncoding('utf-8'); var body = ''; req.addListener('data', function(chunk) { body += chunk; }); req.addListener('end', function() { callback(http.parseUri('http://fake/?' + body).params); });}
|
req.addListener('body', function(chunk) {
|
req.addListener('data', function(chunk) {
|
exports.extractPost = function(req, callback) { req.setBodyEncoding('utf-8'); var body = ''; req.addListener('body', function(chunk) { body += chunk; }); req.addListener('complete', function() { callback(http.parseUri('http://fake/?' + body).params); });}
|
req.addListener('complete', function() {
|
req.addListener('end', function() {
|
exports.extractPost = function(req, callback) { req.setBodyEncoding('utf-8'); var body = ''; req.addListener('body', function(chunk) { body += chunk; }); req.addListener('complete', function() { callback(http.parseUri('http://fake/?' + body).params); });}
|
}else{
|
}else if (e){
|
var f = function(){ var functions = arguments.callee.chainArray; var $this = this; //var args = Array.parse(arguments); var finalState=functions.reduce(function(state,f,index,array){ if (state.exitChain) return state; f.chain = state; f.chain.index = index; f.chain.array = array; f.chain.exit = function(retval){ throw {retval:retval} } try{ state.lastReturn=f.apply($this,state.args); } catch(e){ if ("retval" in e){ state.lastReturn = e.retval; state.exitChain=true }else{ throw e; } } state.args = f.chain.args return state; },{ exitChain:false, lastReturn:undefined, args:Array.parse(arguments) }) return finalState.lastReturn; }
|
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,
|
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);return}b.ready()}}var b=function(j,s){return new b.fn.init(j,s)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,
|
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,
|
"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},
|
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("toggle",3),a,b,d);return this},fadeTo:function(a,b,d,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,e)},animate:function(a,b,d,e){var f=c.speed(b,
|
"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},
|
fail: function (message) { throw new AssertFailedException(message);
|
fail: function (message, callback) { var exception = new AssertFailedException(message); if (callback) { callback(exception); } else { throw exception; }
|
fail: function (message) { throw new AssertFailedException(message); }
|
failure: function(result, request) { showLoginForm(); }
|
failure: function(form, action) { obj = Ext.util.JSON.decode(action.response.responseText); Ext.Msg.alert('', obj.reason); }
|
failure: function(result, request) { showLoginForm(); }
|
if (ORBEON.util.Dom.hasClass(editorInstance.LinkedField, "xforms-incremental"))
|
if (YAHOO.util.Dom.hasClass(editorInstance.LinkedField, "xforms-incremental"))
|
function FCKeditor_OnComplete(editorInstance) { // Save reference to XForms element (textarea) in document for event handlers that receive the document editorInstance.EditorDocument.xformsElement = editorInstance.LinkedField; // Register value change handler when in incremental mode if (ORBEON.util.Dom.hasClass(editorInstance.LinkedField, "xforms-incremental")) editorInstance.Events.AttachEvent("OnSelectionChange", xformsHtmlEditorChange); // Register focus/blur events for Gecko YAHOO.util.Event.addListener(editorInstance.EditorDocument, "focus", ORBEON.xforms.Events.focus); YAHOO.util.Event.addListener(editorInstance.EditorDocument, "blur", ORBEON.xforms.Events.blur); // Register focus/blur events for IE YAHOO.util.Event.addListener(editorInstance.EditorDocument, "focusin", ORBEON.xforms.Events.focus); YAHOO.util.Event.addListener(editorInstance.EditorDocument, "focusout", ORBEON.xforms.Events.blur); // Load other editors in the queue if (ORBEON.xforms.Globals.fckEditorsToLoad.length > 0) { var fckEditor = ORBEON.xforms.Globals.fckEditorsToLoad.shift(); fckEditor.ReplaceTextarea(); ORBEON.xforms.Controls.updateHTMLAreaClasses(YAHOO.util.Dom.get(fckEditor.InstanceName)); } else { ORBEON.xforms.Globals.fckEditorLoading = false; if (typeof xformsPageLoadedServer != "undefined") xformsPageLoadedServer(); } // Work around for bug #308473 (http://tinyurl.com/2jv62f) // // About the bug: // // On IE6 (but not IE7), when a FCK editor is used on the page, the first time we change a class on a tr around // the drop-down a "death flash" happens and if the drop-down was open it gets closed and its value is set to // empty string. This creates the "death flash" right when the page is first loaded instead of doing it later, // to avoid the issue described in bug #308473. // // Issue with the fix: // // On some deployments with some versions of IE this is causing the page to load and become blank until users // move around the mouse on the page. Since this is caused by the FCK editor and we will be moving to using the // YUI RTE, we will leave this open for now. // // When to remove this: // // This comment can be removed after the switch to YUI RTE. // //if (ORBEON.xforms.Globals.isRenderingEngineTrident) // document.body.className = document.body.className;}
|
if (TC_EDITOR == "fckeditor") {
|
if (tc_editor == "fckeditor") {
|
function FCKEditorChanged(){ if (TC_EDITOR == "fckeditor") { for (var editorname in FCKeditorAPI.Instances) { if (FCKeditorAPI.GetInstance(editorname).IsDirty()) { return true; } } } return false;}
|
thisObj.renderSubfeature(param.feature, param.featDiv, val);
|
thisObj.renderSubfeature(param.feature, param.featDiv, val, param.displayStart, param.displayEnd);
|
function FeatureTrack(trackMeta, url, refSeq, browserParams) { //trackMeta: object with: // key: display text track name // label: internal track name (no spaces, odd characters) //url: URL of the track's JSON file //refSeq: object with: // start: refseq start // end: refseq end //browserParams: object with: // changeCallback: function to call once JSON is loaded // trackPadding: distance in px between tracks // baseUrl: base URL for the URL in trackMeta Track.call(this, trackMeta.label, trackMeta.key, false, browserParams.changeCallback); this.fields = {}; this.features = new NCList(); this.refSeq = refSeq; this.baseUrl = (browserParams.baseUrl ? browserParams.baseUrl : ""); //number of histogram bins per block this.numBins = 25; this.histLabel = false; this.padding = 5; this.trackPadding = browserParams.trackPadding; this.trackMeta = trackMeta; this.load(this.baseUrl + url); var thisObj = this; this.subfeatureCallback = function(i, val, param) { thisObj.renderSubfeature(param.feature, param.featDiv, val); };}
|
b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});e.extend(e.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(a,b){var c=new RegExp(e.ui.autocomplete.escapeRegex(b),"i");return e.grep(a,function(d){return c.test(d.label||d.value|| d)})}})})(jQuery);
|
"\\$&")},filter:function(a,b){var f=new RegExp(e.ui.autocomplete.escapeRegex(b),"i");return e.grep(a,function(c){return f.test(c.label||c.value||c)})}})})(jQuery);
|
b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});e.extend(e.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(a,b){var c=new RegExp(e.ui.autocomplete.escapeRegex(b),"i");return e.grep(a,function(d){return c.test(d.label||d.value||d)})}})})(jQuery);
|
for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length- 1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
|
return{set:m,expr:g}};k.filter=function(g,i,n,m){for(var p,q,u=g,y=[],F=i,M=i&&i[0]&&k.isXML(i[0]);g&&i.length;){for(var N in o.filter)if((p=o.leftMatch[N].exec(g))!=null&&p[2]){var O,D,R=o.filter[N];D=p[1];q=false;p.splice(1,1);if(D.substr(D.length-1)!=="\\"){if(F===y)y=[];if(o.preFilter[N])if(p=o.preFilter[N](p,F,n,y,m,M)){if(p===true)continue}else q=O=true;if(p)for(var j=0;(D=F[j])!=null;j++)if(D){O=R(D,p,j,F);var s=m^!!O;if(n&&O!=null)if(s)q=true;else F[j]=false;else if(s){y.push(D);q=true}}if(O!== B){n||(F=y);g=g.replace(o.match[N],"");if(!q)return[];break}}}if(g===u)if(q==null)k.error(g);else break;u=g}return F};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var o=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,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+\-]*)\))?/,
|
for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
|
$j('.tainted').each(function() { $j(this).removeClass('tainted');
|
$('.tainted').each(function() { $(this).removeClass('tainted');
|
function filter_clean_all() { filter_named_filter_clean(); $j('.tainted').each(function() { $j(this).removeClass('tainted'); });}
|
var changed_form = $j('[name=filters_open]').serialize();
|
var changed_form = $('[name=filters_open]').serialize();
|
function filter_highlight_changes(item) { filter_toggle_field_changed( item ); /* Check if form is different that started with */ var changed_form = $j('[name=filters_open]').serialize(); if( begin_form == changed_form ) { filter_clean_all(); }}
|
var selected_text = $j('[name=source_query_id] option:selected').html();
|
var selected_text = $('[name=source_query_id] option:selected').html();
|
function filter_named_filter_clean() { /* be sure it's clean whether it's stored filter or not */ var selected_text = $j('[name=source_query_id] option:selected').html(); if( selected_text.charAt(0) == '*' ) { $j('[name=source_query_id]').removeClass('tainted'); var reset_text = selected_text.substring(2,selected_text.length); $j('[name=source_query_id] option:selected').html(reset_text); }}
|
$j('[name=source_query_id]').removeClass('tainted');
|
$('[name=source_query_id]').removeClass('tainted');
|
function filter_named_filter_clean() { /* be sure it's clean whether it's stored filter or not */ var selected_text = $j('[name=source_query_id] option:selected').html(); if( selected_text.charAt(0) == '*' ) { $j('[name=source_query_id]').removeClass('tainted'); var reset_text = selected_text.substring(2,selected_text.length); $j('[name=source_query_id] option:selected').html(reset_text); }}
|
$j('[name=source_query_id] option:selected').html(reset_text);
|
$('[name=source_query_id] option:selected').html(reset_text);
|
function filter_named_filter_clean() { /* be sure it's clean whether it's stored filter or not */ var selected_text = $j('[name=source_query_id] option:selected').html(); if( selected_text.charAt(0) == '*' ) { $j('[name=source_query_id]').removeClass('tainted'); var reset_text = selected_text.substring(2,selected_text.length); $j('[name=source_query_id] option:selected').html(reset_text); }}
|
var stored_query_id = $j('[name=source_query_id]').val();
|
var stored_query_id = $('[name=source_query_id]').val();
|
function filter_named_filter_dirty() { var stored_query_id = $j('[name=source_query_id]').val(); if( stored_query_id == -1 ) { /* Only make it dirty if it's a stored filter */ return; } /* stored query in filter is tainted */ var selected_text = $j('[name=source_query_id] option:selected').html(); if( selected_text.charAt(0) != '*' ) { $j('[name=source_query_id] option:selected').prepend('* '); $j('[name=source_query_id]').addClass('tainted'); }}
|
var selected_text = $j('[name=source_query_id] option:selected').html();
|
var selected_text = $('[name=source_query_id] option:selected').html();
|
function filter_named_filter_dirty() { var stored_query_id = $j('[name=source_query_id]').val(); if( stored_query_id == -1 ) { /* Only make it dirty if it's a stored filter */ return; } /* stored query in filter is tainted */ var selected_text = $j('[name=source_query_id] option:selected').html(); if( selected_text.charAt(0) != '*' ) { $j('[name=source_query_id] option:selected').prepend('* '); $j('[name=source_query_id]').addClass('tainted'); }}
|
$j('[name=source_query_id] option:selected').prepend('* '); $j('[name=source_query_id]').addClass('tainted');
|
$('[name=source_query_id] option:selected').prepend('* '); $('[name=source_query_id]').addClass('tainted');
|
function filter_named_filter_dirty() { var stored_query_id = $j('[name=source_query_id]').val(); if( stored_query_id == -1 ) { /* Only make it dirty if it's a stored filter */ return; } /* stored query in filter is tainted */ var selected_text = $j('[name=source_query_id] option:selected').html(); if( selected_text.charAt(0) != '*' ) { $j('[name=source_query_id] option:selected').prepend('* '); $j('[name=source_query_id]').addClass('tainted'); }}
|
g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[]; for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
|
l;g.sort(w);if(h)for(var i=1;i<g.length;i++)g[i]===g[i-1]&&g.splice(i--,1)}return g};k.matches=function(g,i){return k(g,null,null,i)};k.matchesSelector=function(g,i){return k(i,null,null,[g]).length>0};k.find=function(g,i,n){var m;if(!g)return[];for(var p=0,q=o.order.length;p<q;p++){var u,y=o.order[p];if(u=o.leftMatch[y].exec(g)){var F=u[1];u.splice(1,1);if(F.substr(F.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");m=o.find[y](u,i,n);if(m!=null){g=g.replace(o.match[y],"");break}}}}m||(m=i.getElementsByTagName("*")); return{set:m,expr:g}};k.filter=function(g,i,n,m){for(var p,q,u=g,y=[],F=i,M=i&&i[0]&&k.isXML(i[0]);g&&i.length;){for(var N in o.filter)if((p=o.leftMatch[N].exec(g))!=null&&p[2]){var O,D,R=o.filter[N];D=p[1];q=false;p.splice(1,1);if(D.substr(D.length-1)!=="\\"){if(F===y)y=[];if(o.preFilter[N])if(p=o.preFilter[N](p,F,n,y,m,M)){if(p===true)continue}else q=O=true;if(p)for(var j=0;(D=F[j])!=null;j++)if(D){O=R(D,p,j,F);var s=m^!!O;if(n&&O!=null)if(s)q=true;else F[j]=false;else if(s){y.push(D);q=true}}if(O!==
|
g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
|
min = Math.abs(num - numArray[0]);
|
min = Math.abs(num - numArray[i]);
|
Util.findNearest = function(numArray, num) { var minIndex = 0; var min = Math.abs(num - numArray[0]); for (var i = 0; i < numArray.length; i++) { if (Math.abs(num - numArray[i]) < min) { minIndex = i; min = Math.abs(num - numArray[0]); } } return minIndex;}
|
console.log(el);
|
Joint.findPos = function(el){ console.log(el); var p = point(0, 0); if (el.offsetParent){ while (el){ p.offset(el.offsetLeft, el.offsetTop); el = el.offsetParent; } } return p;};
|
|
} else { p.offset(el.parentNode.offsetLeft, el.parentNode.offsetTop);
|
Joint.findPos = function(el){ console.log(el); var p = point(0, 0); if (el.offsetParent){ while (el){ p.offset(el.offsetLeft, el.offsetTop); el = el.offsetParent; } } return p;};
|
|
console.log(el);
|
Joint.findPos = function(el){ var p = point(0, 0); if (el.offsetParent){ while (el){ p.offset(el.offsetLeft, el.offsetTop); el = el.offsetParent; } } return p;};
|
|
while (cursor.nodeType != ELEMENT_TYPE || !ORBEON.util.Dom.hasClass(cursor, "xforms-repeat-delimiter")) {
|
while (cursor.nodeType != ELEMENT_TYPE || !YAHOO.util.Dom.hasClass(cursor, "xforms-repeat-delimiter")) {
|
findRepeatDelimiter: function(repeatId, index) { // Find id of repeat begin for the current repeatId var parentRepeatIndexes = ""; { var currentId = repeatId; while (true) { var parent = ORBEON.xforms.Globals.repeatTreeChildToParent[currentId]; if (parent == null) break; var grandParent = ORBEON.xforms.Globals.repeatTreeChildToParent[parent]; parentRepeatIndexes = (grandParent == null ? XFORMS_SEPARATOR_1 : XFORMS_SEPARATOR_2) + ORBEON.xforms.Globals.repeatIndexes[parent] + parentRepeatIndexes; currentId = parent; } } var beginElementId = "repeat-begin-" + repeatId + parentRepeatIndexes; var beginElement = YAHOO.util.Dom.get(beginElementId); if (!beginElement) return null; var cursor = beginElement; var cursorPosition = 0; while (true) { while (cursor.nodeType != ELEMENT_TYPE || !ORBEON.util.Dom.hasClass(cursor, "xforms-repeat-delimiter")) { cursor = cursor.nextSibling; if (!cursor) return null; } cursorPosition++; if (cursorPosition == index) break; cursor = cursor.nextSibling; } return cursor; },
|
this.headerHeight = this.headerContainer.clientHeight; if (this.height != 'auto') { var newBodyHeight = this.divContainer.clientHeight - this.headerHeight; YAHOO.util.Dom.setStyle(this.bodyContainer, 'height', newBodyHeight + 'px'); }
|
finish: function () { this.setSizes(); if (this.scrollH) { YAHOO.util.Event.addListener(this.bodyContainer, 'scroll', YAHOO.xbl.fr.Datatable.prototype.scrollHandler, this, true); this.width = this.divContainer.clientWidth; if (this.tableWidth > this.width) { this.bodyContainer.style.overflowX = "scroll"; } } else { this.width = this.tableWidth; } this.initColumns(); // Now that the table has been properly sized, reconsider its // "resizeability" if (this.hasFixedWidthContainer && this.hasFixedWidthTable) { // These are fixed width tables without horizontal scroll bars // and as we don't know how to resize their columns properly, // we'd better consider that as variable width this.hasFixedWidthContainer = false; this.hasFixedWidthTable = false; } // Sometimes, in IE / quirks mode, the height or width is miscalculated and that forces an horizontal scroll bar... if (YAHOO.env.ua.ie > 0 && (YAHOO.env.ua.ie < 8 || document.compatMode == "BackCompat")) { // Make sure we don't have a vertical bar if not required if (this.scrollH && ! this.scrollV) { var limit = 1000; while (limit > 0 && this.table.parentNode.clientWidth < this.pxWidth - 2) { this.tableHeight += 1; this.height = this.tableHeight + "px"; this.bodyContainer.style.height = this.height; limit -= 1; } } // Make sure we don't have an horizontal bar if not required if (this.scrollV && ! this.scrollH) { var limit = 50; while (limit > 0 && this.table.clientWidth > this.table.parentNode.clientWidth) { this.tableWidth -= 1; var w = this.tableWidth + "px"; this.table.style.width = w; this.headerTable.style.width = w; limit -= 1; } } } },
|
|
var limit = 1000;
|
limit = 1000;
|
finish: function () { this.setSizes(); if (this.scrollH) { YAHOO.util.Event.addListener(this.bodyContainer, 'scroll', YAHOO.xbl.fr.Datatable.prototype.scrollHandler, this, true); this.width = this.divContainer.clientWidth; if (this.tableWidth > this.width) { this.bodyContainer.style.overflowX = "scroll"; } } else { this.width = this.tableWidth; } this.initColumns(); // Now that the table has been properly sized, reconsider its // "resizeability" if (this.hasFixedWidthContainer && this.hasFixedWidthTable) { // These are fixed width tables without horizontal scroll bars // and as we don't know how to resize their columns properly, // we'd better consider that as variable width this.hasFixedWidthContainer = false; this.hasFixedWidthTable = false; } // Sometimes, in IE / quirks mode, the height or width is miscalculated and that forces an horizontal scroll bar... if (YAHOO.env.ua.ie > 0 && (YAHOO.env.ua.ie < 8 || document.compatMode == "BackCompat")) { // Make sure we don't have a vertical bar if not required if (this.scrollH && ! this.scrollV) { var limit = 1000; while (limit > 0 && this.table.parentNode.clientWidth < this.pxWidth - 2) { this.tableHeight += 1; this.height = this.tableHeight + "px"; this.bodyContainer.style.height = this.height; limit -= 1; } } // Make sure we don't have an horizontal bar if not required if (this.scrollV && ! this.scrollH) { var limit = 50; while (limit > 0 && this.table.clientWidth > this.table.parentNode.clientWidth) { this.tableWidth -= 1; var w = this.tableWidth + "px"; this.table.style.width = w; this.headerTable.style.width = w; limit -= 1; } } } },
|
var limit = 50;
|
limit = 50;
|
finish: function () { this.setSizes(); if (this.scrollH) { YAHOO.util.Event.addListener(this.bodyContainer, 'scroll', YAHOO.xbl.fr.Datatable.prototype.scrollHandler, this, true); this.width = this.divContainer.clientWidth; if (this.tableWidth > this.width) { this.bodyContainer.style.overflowX = "scroll"; } } else { this.width = this.tableWidth; } this.initColumns(); // Now that the table has been properly sized, reconsider its // "resizeability" if (this.hasFixedWidthContainer && this.hasFixedWidthTable) { // These are fixed width tables without horizontal scroll bars // and as we don't know how to resize their columns properly, // we'd better consider that as variable width this.hasFixedWidthContainer = false; this.hasFixedWidthTable = false; } // Sometimes, in IE / quirks mode, the height or width is miscalculated and that forces an horizontal scroll bar... if (YAHOO.env.ua.ie > 0 && (YAHOO.env.ua.ie < 8 || document.compatMode == "BackCompat")) { // Make sure we don't have a vertical bar if not required if (this.scrollH && ! this.scrollV) { var limit = 1000; while (limit > 0 && this.table.parentNode.clientWidth < this.pxWidth - 2) { this.tableHeight += 1; this.height = this.tableHeight + "px"; this.bodyContainer.style.height = this.height; limit -= 1; } } // Make sure we don't have an horizontal bar if not required if (this.scrollV && ! this.scrollH) { var limit = 50; while (limit > 0 && this.table.clientWidth > this.table.parentNode.clientWidth) { this.tableWidth -= 1; var w = this.tableWidth + "px"; this.table.style.width = w; this.headerTable.style.width = w; limit -= 1; } } } },
|
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(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,h){return h===0},last:function(g,h,k,l){return h===l.length-1},even:function(g,h){return h%2===
|
setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=
|
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(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,h){return h===0},last:function(g,h,k,l){return h===l.length-1},even:function(g,h){return h%2===
|
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
|
-1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false;
|
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
|
FirstOfNode: function (choices) {
|
FirstOfNode: function () { var choices = Array.prototype.slice.apply(arguments);
|
FirstOfNode: function (choices) { return function (context) { var i, val; for (i = 0; i < choices.length; i++) { var val = context.get(choices[i]); if (val) { return val; } } return ''; } },
|
var val = context.get(choices[i]);
|
val = context.get(choices[i]);
|
FirstOfNode: function (choices) { return function (context) { var i, val; for (i = 0; i < choices.length; i++) { var val = context.get(choices[i]); if (val) { return val; } } return ''; } },
|
}
|
};
|
FirstOfNode: function (choices) { return function (context) { var i, val; for (i = 0; i < choices.length; i++) { var val = context.get(choices[i]); if (val) { return val; } } return ''; } },
|
}
|
},
|
fitsInViewport: function(element) { // Viewport coordinates var viewportFirstTop = YAHOO.util.Dom.getDocumentScrollTop(); var viewportFirstLeft = YAHOO.util.Dom.getDocumentScrollLeft(); var viewportSecondTop = viewportFirstTop + YAHOO.util.Dom.getViewportHeight(); var viewportSecondLeft = viewportFirstLeft + YAHOO.util.Dom.getViewportWidth(); var viewportRegion = new YAHOO.util.Region(viewportFirstTop, viewportSecondLeft, viewportSecondTop, viewportFirstLeft); // Element coordinates var elementRegion = YAHOO.util.Dom.getRegion(element); return viewportRegion.top <= elementRegion.top && viewportRegion.left <= elementRegion.left && elementRegion.bottom <= viewportRegion.bottom && elementRegion.right <= viewportRegion.right; }
|
fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop|| d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,
|
fix:function(a){if(a[c.expando])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||t;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=t.documentElement;d=t.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop|| d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==B)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,Y(a.origType,a.selector),c.extend({},a,{handler:Ka,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,
|
fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,
|
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.sections.length)return;this.filmstrip=new Element('div',{id:'gl_slide_hr'}).injectAfter(this.content);this.buildToolbar();this.buildFrame();if(window.ie)this.fixIE();this.scroller=$('scroller');this.startposition=$(this.sections[0].id.replace('-tab','-pane')).getPosition().x;this.scroller.scrollFX=new Fx.Scroll(this.scroller,this.options.scrollFX);if(this.options.active)this.scrollSection(this.options.active.test(/-tab|-pane/)?this.options.active:this.options.active+'-tab');else this.scrollSection(this.sectionptr[0])},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('.tab-title');title=h1.innerHTML;h1.empty().remove();lis.push(new Element('li',{id:el.id.replace('-pane','-tab'),events:{'click':function(){this.addClass('active');that.scrollSection(this)},'mouseover':function(){this.addClass('hover');this.addClass('active')},'mouseout':function(){this.removeClass('hover');this.removeClass('active')}}}).setHTML(title))},this);this.filmstrip.adopt(new Element('ul',{id:'gl_slide-tabs',styles:{width:this.options.dimensions.width}}).adopt(lis),new Element('hr'))},buildFrame:function(){var that=this,events={'click':function(){that.scrollArrow(this)},'mouseover':function(){this.addClass('hover')},'mouseout':function(){this.removeClass('hover')}};this.filmstrip.adopt(new Element('div',{id:'frame',styles:this.options.dimensions}).adopt(new Element('div',{'class':'button','id':'left','events':events}),new Element('div',{id:'scroller',styles:{width:this.options.dimensions.width-102,height:this.options.dimensions.height}}).adopt(this.content.setStyle('width',this.sections.length*1600)),new Element('div',{'class':'button','id':'right','events':events})))},fixIE:function(){this.filmstrip.getElement('hr').setStyle('display','none')},scrollSection:function(element){element=$($(element||this.sections[0]).id.replace('-pane','-tab'));var oldactive=element.getParent().getElement('.current');if(oldactive)oldactive.removeClass('current');element.addClass('current');var offset=$(element.id.replace('-tab','-pane')).getPosition().x-this.startposition;this.scroller.scrollFX.scrollTo(offset,false)},scrollArrow:function(element){var direction=Math.pow(-1,['left','right'].indexOf(element.id)+1);var current=this.sectionptr.indexOf(this.filmstrip.getElement('.current').id);var to=current+direction;this.scrollSection(this.sectionptr[to<0?this.sectionptr.length-1:to%this.sectionptr.length])}});gl_Slide.implement(new Options);
|
fixIE:function(){ this.filmstrip.getElement('hr').setStyle('display','none') },
|
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.sections.length)return;this.filmstrip=new Element('div',{id:'gl_slide_hr'}).injectAfter(this.content);this.buildToolbar();this.buildFrame();if(window.ie)this.fixIE();this.scroller=$('scroller');this.startposition=$(this.sections[0].id.replace('-tab','-pane')).getPosition().x;this.scroller.scrollFX=new Fx.Scroll(this.scroller,this.options.scrollFX);if(this.options.active)this.scrollSection(this.options.active.test(/-tab|-pane/)?this.options.active:this.options.active+'-tab');else this.scrollSection(this.sectionptr[0])},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('.tab-title');title=h1.innerHTML;h1.empty().remove();lis.push(new Element('li',{id:el.id.replace('-pane','-tab'),events:{'click':function(){this.addClass('active');that.scrollSection(this)},'mouseover':function(){this.addClass('hover');this.addClass('active')},'mouseout':function(){this.removeClass('hover');this.removeClass('active')}}}).setHTML(title))},this);this.filmstrip.adopt(new Element('ul',{id:'gl_slide-tabs',styles:{width:this.options.dimensions.width}}).adopt(lis),new Element('hr'))},buildFrame:function(){var that=this,events={'click':function(){that.scrollArrow(this)},'mouseover':function(){this.addClass('hover')},'mouseout':function(){this.removeClass('hover')}};this.filmstrip.adopt(new Element('div',{id:'frame',styles:this.options.dimensions}).adopt(new Element('div',{'class':'button','id':'left','events':events}),new Element('div',{id:'scroller',styles:{width:this.options.dimensions.width-102,height:this.options.dimensions.height}}).adopt(this.content.setStyle('width',this.sections.length*1600)),new Element('div',{'class':'button','id':'right','events':events})))},fixIE:function(){this.filmstrip.getElement('hr').setStyle('display','none')},scrollSection:function(element){element=$($(element||this.sections[0]).id.replace('-pane','-tab'));var oldactive=element.getParent().getElement('.current');if(oldactive)oldactive.removeClass('current');element.addClass('current');var offset=$(element.id.replace('-tab','-pane')).getPosition().x-this.startposition;this.scroller.scrollFX.scrollTo(offset,false)},scrollArrow:function(element){var direction=Math.pow(-1,['left','right'].indexOf(element.id)+1);var current=this.sectionptr.indexOf(this.filmstrip.getElement('.current').id);var to=current+direction;this.scrollSection(this.sectionptr[to<0?this.sectionptr.length-1:to%this.sectionptr.length])}});gl_Slide.implement(new Options);
|
el.style.display="inline-block";
|
var ver = getIeVersion(); if (ver < 8) { el.style.display="inline-block"; }
|
function FixIE(el){if(el.currentStyle!=null && el.currentStyle.hasLayout!=null && el.currentStyle.hasLayout==false) el.style.display="inline-block";}
|
if (!axis || !axis.labelWidth || !axis.labelHeight) return;
|
function fixupAxisBox(axis) { // set remaining bounding box coordinates if (axis.direction == "x") { axis.box.left = plotOffset.left; axis.box.width = plotWidth; } else { axis.box.top = plotOffset.top; axis.box.height = plotHeight; } }
|
|
function flush() {
|
exports.flush = function () {
|
function flush() { cache = {};}
|
}
|
};
|
function flush() { cache = {};}
|
fn: function() { this._messageDialog.hide(); this._messageQueue.shift(); if (this._messageQueue.length > 0) this._showMessage(); },
|
fn: function(event, event, keyListener) { var targetId = keyListener.observer; var additionalAttributes = ["text", keyListener.text]; if (! YAHOO.lang.isUndefined(keyListener.modifier)) { additionalAttributes.push("modifiers"); additionalAttributes.push(keyListener.modifier); } var event = new ORBEON.xforms.Server.Event(keyListener.form, targetId, null, null, "keypress", null, null, null, null, null, additionalAttributes); ORBEON.xforms.Server.fireEvents([event], false); }
|
fn: function() { this._messageDialog.hide(); this._messageQueue.shift(); if (this._messageQueue.length > 0) this._showMessage(); },
|
fn: function(event, event, keyListener) {
|
fn: function(eventName, eventObject, keyListener) {
|
fn: function(event, event, keyListener) { // YUI doesn't give us the target of the event, so we provide the observer as the target to the server var targetId = keyListener.observer; var additionalAttributes = ["text", keyListener.text]; if (! YAHOO.lang.isUndefined(keyListener.modifier)) { additionalAttributes.push("modifiers"); additionalAttributes.push(keyListener.modifier); } var event = new ORBEON.xforms.Server.Event(keyListener.form, targetId, null, null, "keypress", null, null, null, null, null, additionalAttributes); ORBEON.xforms.Server.fireEvents([event], false); }
|
$.fn.dataTableExt.oPagination={two_button:{fnInit:function(oSettings,fnCallbackDraw){oSettings.nPrevious=document.createElement("div"); oSettings.nNext=document.createElement("div");if(oSettings.sTableId!==""){oSettings.nPaginate.setAttribute("id",oSettings.sTableId+"_paginate"); oSettings.nPrevious.setAttribute("id",oSettings.sTableId+"_previous");oSettings.nNext.setAttribute("id",oSettings.sTableId+"_next") }oSettings.nPrevious.className="paginate_disabled_previous";oSettings.nNext.className="paginate_disabled_next"; oSettings.nPaginate.appendChild(oSettings.nPrevious);oSettings.nPaginate.appendChild(oSettings.nNext); $(oSettings.nPaginate).insertAfter(oSettings.nTable);$(oSettings.nPrevious).click(function(){oSettings.iDisplayStart-=oSettings.iDisplayLength; if(oSettings.iDisplayStart<0){oSettings.iDisplayStart=0}fnCallbackDraw(oSettings) });$(oSettings.nNext).click(function(){if(oSettings.iDisplayStart+oSettings.iDisplayLength<oSettings.aiDisplay.length){oSettings.iDisplayStart+=oSettings.iDisplayLength }fnCallbackDraw(oSettings)})},fnUpdate:function(oSettings,fnCallbackDraw){oSettings.nPrevious.className=(oSettings.iDisplayStart===0)?"paginate_disabled_previous":"paginate_enabled_previous";
|
_oExt.oPagination={two_button:{fnInit:function(oSettings,nPaging,fnCallbackDraw){var nPrevious,nNext,nPreviousInner,nNextInner; if(!oSettings.bJUI){nPrevious=document.createElement("div");nNext=document.createElement("div") }else{nPrevious=document.createElement("a");nNext=document.createElement("a");nNextInner=document.createElement("span"); nNextInner.className=oSettings.oClasses.sPageJUINext;nNext.appendChild(nNextInner); nPreviousInner=document.createElement("span");nPreviousInner.className=oSettings.oClasses.sPageJUIPrev; nPrevious.appendChild(nPreviousInner)}nPrevious.className=oSettings.oClasses.sPagePrevDisabled; nNext.className=oSettings.oClasses.sPageNextDisabled;nPrevious.title=oSettings.oLanguage.oPaginate.sPrevious; nNext.title=oSettings.oLanguage.oPaginate.sNext;nPaging.appendChild(nPrevious);nPaging.appendChild(nNext); $(nPrevious).click(function(){if(oSettings.oApi._fnPageChange(oSettings,"previous")){fnCallbackDraw(oSettings) }});$(nNext).click(function(){if(oSettings.oApi._fnPageChange(oSettings,"next")){fnCallbackDraw(oSettings) }});$(nPrevious).bind("selectstart",function(){return false});$(nNext).bind("selectstart",function(){return false });if(oSettings.sTableId!==""&&typeof oSettings.aanFeatures.p=="undefined"){nPaging.setAttribute("id",oSettings.sTableId+"_paginate"); nPrevious.setAttribute("id",oSettings.sTableId+"_previous");nNext.setAttribute("id",oSettings.sTableId+"_next") }},fnUpdate:function(oSettings,fnCallbackDraw){if(!oSettings.aanFeatures.p){return
|
$.fn.dataTableExt.oPagination={two_button:{fnInit:function(oSettings,fnCallbackDraw){oSettings.nPrevious=document.createElement("div");oSettings.nNext=document.createElement("div");if(oSettings.sTableId!==""){oSettings.nPaginate.setAttribute("id",oSettings.sTableId+"_paginate");oSettings.nPrevious.setAttribute("id",oSettings.sTableId+"_previous");oSettings.nNext.setAttribute("id",oSettings.sTableId+"_next")}oSettings.nPrevious.className="paginate_disabled_previous";oSettings.nNext.className="paginate_disabled_next";oSettings.nPaginate.appendChild(oSettings.nPrevious);oSettings.nPaginate.appendChild(oSettings.nNext);$(oSettings.nPaginate).insertAfter(oSettings.nTable);$(oSettings.nPrevious).click(function(){oSettings.iDisplayStart-=oSettings.iDisplayLength;if(oSettings.iDisplayStart<0){oSettings.iDisplayStart=0}fnCallbackDraw(oSettings)});$(oSettings.nNext).click(function(){if(oSettings.iDisplayStart+oSettings.iDisplayLength<oSettings.aiDisplay.length){oSettings.iDisplayStart+=oSettings.iDisplayLength}fnCallbackDraw(oSettings)})},fnUpdate:function(oSettings,fnCallbackDraw){oSettings.nPrevious.className=(oSettings.iDisplayStart===0)?"paginate_disabled_previous":"paginate_enabled_previous";
|
}fnCallbackDraw(oSettings)})},fnUpdate:function(oSettings,fnCallbackDraw){oSettings.nPrevious.className=(oSettings.iDisplayStart===0)?"paginate_disabled_previous":"paginate_enabled_previous"; oSettings.nNext.className=(oSettings.iDisplayEnd==oSettings.aiDisplay.length)?"paginate_disabled_next":"paginate_enabled_next" }},iFullNumbersShowPages:5,full_numbers:{fnInit:function(oSettings,fnCallbackDraw){var nFirst=document.createElement("span");
|
}},fnUpdate:function(oSettings,fnCallbackDraw){if(!oSettings.aanFeatures.p){return }var an=oSettings.aanFeatures.p;for(var i=0,iLen=an.length;i<iLen;i++){if(an[i].childNodes.length!==0){an[i].childNodes[0].className=(oSettings._iDisplayStart===0)?oSettings.oClasses.sPagePrevDisabled:oSettings.oClasses.sPagePrevEnabled; an[i].childNodes[1].className=(oSettings.fnDisplayEnd()==oSettings.fnRecordsDisplay())?oSettings.oClasses.sPageNextDisabled:oSettings.oClasses.sPageNextEnabled }}}},iFullNumbersShowPages:5,full_numbers:{fnInit:function(oSettings,nPaging,fnCallbackDraw){var nFirst=document.createElement("span");
|
}fnCallbackDraw(oSettings)})},fnUpdate:function(oSettings,fnCallbackDraw){oSettings.nPrevious.className=(oSettings.iDisplayStart===0)?"paginate_disabled_previous":"paginate_enabled_previous";oSettings.nNext.className=(oSettings.iDisplayEnd==oSettings.aiDisplay.length)?"paginate_disabled_next":"paginate_enabled_next"}},iFullNumbersShowPages:5,full_numbers:{fnInit:function(oSettings,fnCallbackDraw){var nFirst=document.createElement("span");
|
}}else{iCorrector++}}}}}return null};this.fnUpdate=function(mData,iRow,iColumn,bRedraw){var oSettings=_fnSettingsFromNode(this[0]); var iVisibleColumn;var sRendered;if(typeof bRedraw=="undefined"){bRedraw=true}if(typeof mData!="object"){oSettings.aoData[iRow]._aData[iColumn]=mData; if(oSettings.aoColumns[iColumn].fnRender!==null&&oSettings.aoColumns[iColumn].bUseRendered){sRendered=oSettings.aoColumns[iColumn].fnRender({iDataRow:iRow,iDataColumn:iColumn,aData:oSettings.aoData[iRow]._aData}); oSettings.aoData[iRow]._aData[iColumn]=sRendered}iVisibleColumn=_fnColumnIndexToVisible(oSettings,iColumn); if(iVisibleColumn!==null){oSettings.aoData[iRow].nTr.getElementsByTagName("td")[iVisibleColumn].innerHTML=oSettings.aoData[iRow]._aData[iColumn] }}else{if(mData.length!=oSettings.aoColumns.length){alert("Warning: An array passed to fnUpdate must have the same number of columns as the table in question - in this case "+oSettings.aoColumns.length); return 1}for(var i=0;i<mData.length;i++){oSettings.aoData[iRow]._aData[i]=mData[i]; if(oSettings.aoColumns[i].fnRender!==null&&oSettings.aoColumns[i].bUseRendered){sRendered=oSettings.aoColumns[i].fnRender({iDataRow:iRow,iDataColumn:i,aData:oSettings.aoData[iRow]._aData}); oSettings.aoData[iRow]._aData[i]=sRendered}iVisibleColumn=_fnColumnIndexToVisible(oSettings,i); if(iVisibleColumn!==null){oSettings.aoData[iRow].nTr.getElementsByTagName("td")[iVisibleColumn].innerHTML=oSettings.aoData[iRow]._aData[i] }}}_fnBuildSearchArray(oSettings,1);if(bRedraw){_fnReDraw(oSettings)}return 0};function _fnExternApiFunc(sFunc){return function(){var aArgs=[_fnSettingsFromNode(this[0])].concat(Array.prototype.slice.call(arguments));
|
}}else{iCorrector++}}}}return null};this.fnUpdate=function(mData,mRow,iColumn,bRedraw){var oSettings=_fnSettingsFromNode(this[_oExt.iApiIndex]); var iVisibleColumn;var sDisplay;var iRow=(typeof mRow=="object")?_fnNodeToDataIndex(oSettings,mRow):mRow; if(typeof mData!="object"){sDisplay=mData;oSettings.aoData[iRow]._aData[iColumn]=sDisplay; if(oSettings.aoColumns[iColumn].fnRender!==null){sDisplay=oSettings.aoColumns[iColumn].fnRender({iDataRow:iRow,iDataColumn:iColumn,aData:oSettings.aoData[iRow]._aData,oSettings:oSettings}); if(oSettings.aoColumns[iColumn].bUseRendered){oSettings.aoData[iRow]._aData[iColumn]=sDisplay }}iVisibleColumn=_fnColumnIndexToVisible(oSettings,iColumn);if(iVisibleColumn!==null){oSettings.aoData[iRow].nTr.getElementsByTagName("td")[iVisibleColumn].innerHTML=sDisplay }}else{if(mData.length!=oSettings.aoColumns.length){alert("DataTables warning: An array passed to fnUpdate must have the same number of columns as the table in question - in this case "+oSettings.aoColumns.length); return 1}for(var i=0;i<mData.length;i++){sDisplay=mData[i];oSettings.aoData[iRow]._aData[i]=sDisplay; if(oSettings.aoColumns[i].fnRender!==null){sDisplay=oSettings.aoColumns[i].fnRender({iDataRow:iRow,iDataColumn:i,aData:oSettings.aoData[iRow]._aData,oSettings:oSettings}); if(oSettings.aoColumns[i].bUseRendered){oSettings.aoData[iRow]._aData[i]=sDisplay }}iVisibleColumn=_fnColumnIndexToVisible(oSettings,i);if(iVisibleColumn!==null){oSettings.aoData[iRow].nTr.getElementsByTagName("td")[iVisibleColumn].innerHTML=sDisplay }}}_fnBuildSearchArray(oSettings,1);if(typeof bRedraw!="undefined"&&bRedraw){_fnReDraw(oSettings) }return 0};this.fnSetColumnVis=function(iCol,bShow){var oSettings=_fnSettingsFromNode(this[_oExt.iApiIndex]);
|
}}else{iCorrector++}}}}}return null};this.fnUpdate=function(mData,iRow,iColumn,bRedraw){var oSettings=_fnSettingsFromNode(this[0]);var iVisibleColumn;var sRendered;if(typeof bRedraw=="undefined"){bRedraw=true}if(typeof mData!="object"){oSettings.aoData[iRow]._aData[iColumn]=mData;if(oSettings.aoColumns[iColumn].fnRender!==null&&oSettings.aoColumns[iColumn].bUseRendered){sRendered=oSettings.aoColumns[iColumn].fnRender({iDataRow:iRow,iDataColumn:iColumn,aData:oSettings.aoData[iRow]._aData});oSettings.aoData[iRow]._aData[iColumn]=sRendered}iVisibleColumn=_fnColumnIndexToVisible(oSettings,iColumn);if(iVisibleColumn!==null){oSettings.aoData[iRow].nTr.getElementsByTagName("td")[iVisibleColumn].innerHTML=oSettings.aoData[iRow]._aData[iColumn]}}else{if(mData.length!=oSettings.aoColumns.length){alert("Warning: An array passed to fnUpdate must have the same number of columns as the table in question - in this case "+oSettings.aoColumns.length);return 1}for(var i=0;i<mData.length;i++){oSettings.aoData[iRow]._aData[i]=mData[i];if(oSettings.aoColumns[i].fnRender!==null&&oSettings.aoColumns[i].bUseRendered){sRendered=oSettings.aoColumns[i].fnRender({iDataRow:iRow,iDataColumn:i,aData:oSettings.aoData[iRow]._aData});oSettings.aoData[iRow]._aData[i]=sRendered}iVisibleColumn=_fnColumnIndexToVisible(oSettings,i);if(iVisibleColumn!==null){oSettings.aoData[iRow].nTr.getElementsByTagName("td")[iVisibleColumn].innerHTML=oSettings.aoData[iRow]._aData[i]}}}_fnBuildSearchArray(oSettings,1);if(bRedraw){_fnReDraw(oSettings)}return 0};function _fnExternApiFunc(sFunc){return function(){var aArgs=[_fnSettingsFromNode(this[0])].concat(Array.prototype.slice.call(arguments));
|
c.target===d&&setTimeout(function(){e(document).one("mousedown",function(f){f.target!==a.element[0]&&f.target!==d&&!e.ui.contains(d,f.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,d){d=d.item.data("item.autocomplete");false!==a._trigger("focus",null,{item:d})&&/^key/.test(c.originalEvent.type)&&a.element.val(d.value)},selected:function(c,d){d=d.item.data("item.autocomplete");var f=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();
|
"body",b)[0]).mousedown(function(c){var d=a.menu.element[0];e(c.target).closest(".ui-menu-item").length||setTimeout(function(){e(document).one("mousedown",function(g){g.target!==a.element[0]&&g.target!==d&&!e.ui.contains(d,g.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,d){d=d.item.data("item.autocomplete");false!==a._trigger("focus",c,{item:d})&&/^key/.test(c.originalEvent.type)&&a.element.val(d.value)},selected:function(c,d){d=d.item.data("item.autocomplete");
|
c.target===d&&setTimeout(function(){e(document).one("mousedown",function(f){f.target!==a.element[0]&&f.target!==d&&!e.ui.contains(d,f.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,d){d=d.item.data("item.autocomplete");false!==a._trigger("focus",null,{item:d})&&/^key/.test(c.originalEvent.type)&&a.element.val(d.value)},selected:function(c,d){d=d.item.data("item.autocomplete");var f=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();
|
this.focus = function() { this.addClassName('focused'); }
|
this.focus = function() { this.addClassName('focused'); gFocusedPanel = this; }
|
this.focus = function() { this.addClassName('focused'); }
|
focusProperty = shared.keys.getFocusProperty(propName), subId
|
focusProp = shared.keys.getFocusProperty(propName), sendFocusInfo = { session: sessionId, user: gUserId, time: fin.now() }, subId, observation, releaseFn
|
this.focus = function(itemId, propName, onBlurCallback) { var sessionId = this._sessionId, focusProperty = shared.keys.getFocusProperty(propName), subId subId = this.observe(itemId, focusProperty, bind(this, function(mutation, newSession) { if (!newSession || newSession == sessionId) { return } this.release(subId) onBlurCallback() })) this.set(itemId, '_focus', sessionId) }
|
subId = this.observe(itemId, focusProperty, bind(this, function(mutation, newSession) { if (!newSession || newSession == sessionId) { return }
|
this.set(itemId, focusProp, JSON.stringify(sendFocusInfo)) observation = { id: itemId, property: focusProp, useCache: false, snapshot: false } subId = this._observe(observation, bind(this, function(mutation, focusJSON) { if (!subId) { return } var focusInfo try { focusInfo = JSON.parse(focusJSON) } catch(e) { } if (focusInfo.session == sessionId) { return } releaseFn() onBlurCallback(focusInfo) })) releaseFn = bind(this, function () { if (!subId) { return }
|
this.focus = function(itemId, propName, onBlurCallback) { var sessionId = this._sessionId, focusProperty = shared.keys.getFocusProperty(propName), subId subId = this.observe(itemId, focusProperty, bind(this, function(mutation, newSession) { if (!newSession || newSession == sessionId) { return } this.release(subId) onBlurCallback() })) this.set(itemId, '_focus', sessionId) }
|
onBlurCallback() })) this.set(itemId, '_focus', sessionId)
|
subId = null this.set(itemId, focusProp, null) }) return releaseFn
|
this.focus = function(itemId, propName, onBlurCallback) { var sessionId = this._sessionId, focusProperty = shared.keys.getFocusProperty(propName), subId subId = this.observe(itemId, focusProperty, bind(this, function(mutation, newSession) { if (!newSession || newSession == sessionId) { return } this.release(subId) onBlurCallback() })) this.set(itemId, '_focus', sessionId) }
|
this._labelListPanel.focus();
|
if (this._labelViewPanel) { this._labelViewPanel.focus(); } else { this._labelListPanel.focus(); }
|
this.focus = function() { this._labelListPanel.focus(); }
|
function focusInputField(id,bSelect)
|
function focusInputField(id,selectIt)
|
function focusInputField(id,bSelect){ var f = document.getElementById(id); if (f) { f.focus(); if (bSelect) f.select(); }}
|
if (bSelect)
|
if(selectIt) {
|
function focusInputField(id,bSelect){ var f = document.getElementById(id); if (f) { f.focus(); if (bSelect) f.select(); }}
|
}
|
function focusInputField(id,bSelect){ var f = document.getElementById(id); if (f) { f.focus(); if (bSelect) f.select(); }}
|
|
console.log(this._currentScroll + panelElement.offsetWidth, panelElement.offsetLeft)
|
this.focusPanel = function(panel) { if (!panel) { return; } this._blurFocusedPanel(); this._focusIndex = this._getPanelIndex(panel); panel.focus(); var panelElement = panel.getElement(); this._currentScroll = this._element.scrollLeft; if (panelElement.offsetLeft - this._offset < this._currentScroll) { // scroll left by panel's width, or all the way to panel if way off screen this._targetScroll = Math.min(this._currentScroll - panelElement.offsetWidth, panelElement.offsetLeft - this._offset); this._scrollAnimation.animate(); } else if (panelElement.offsetLeft + panelElement.offsetWidth > this._currentScroll + this._element.offsetWidth) { // scroll right by panel's width, or all the way to panel if way off screen console.log(this._currentScroll + panelElement.offsetWidth, panelElement.offsetLeft) this._targetScroll = Math.max(this._currentScroll + panelElement.offsetWidth, panelElement.offsetLeft - (this._element.offsetWidth - panelElement.offsetWidth) + 40); this._scrollAnimation.animate(); } }
|
|
if (onBerlinDe) streetFocus = jQuery("#streetNameField").val() + '%20Berlin'; var swBerlin = "6881778.529613,1467590.9428711"; var nwBerlin = "6920608.5399765,1518650.8777585"; var viewPortBias = "&bounds="+swBerlin+"|"+nwBerlin; var url = HIDDEN_SERVICE_URL + 'geoProxy.php?q=' + urlencode(streetFocus) + viewPortBias + '&output=json&oe=utf8' + '&sensotr=false&key='; if (onBerlinDe) url += berlinKey; else url += kiezKey; if (onBerlinDe) url += '=de';
|
var viewPortBias = "&bounds="; if (onBerlinDe | mapTitle.indexOf("international") == -1 | mapTitle.indexOf("Deut") != -1) { streetFocus = jQuery("#streetNameField").val() + '%20Berlin'; } else { var bounds = calculateInitialBounds() viewPortBias += ""+bounds.left+","+bounds.bottom+"|"+bounds.right+","+bounds.top; } var key = kiezKey; var locale = ""; if (onBerlinDe) { key = berlinKey; locale += '&gl=de'; } var body = '{"method": "geoCode", "params": ["'+streetFocus+'", "'+key+'", "'+locale+'"]}';
|
function focusRequest() { if (debug) log('focusRqeust for ' + streetFocus); var streetFocus = jQuery("#streetNameField").val(); if (onBerlinDe) streetFocus = jQuery("#streetNameField").val() + '%20Berlin'; //lo var swBerlin = "6881778.529613,1467590.9428711"; var nwBerlin = "6920608.5399765,1518650.8777585"; var viewPortBias = "&bounds="+swBerlin+"|"+nwBerlin; var url = HIDDEN_SERVICE_URL + 'geoProxy.php?q=' + urlencode(streetFocus) + viewPortBias + '&output=json&oe=utf8' + '&sensotr=false&key='; if (onBerlinDe) url += berlinKey; else url += kiezKey; if (onBerlinDe) url += '=de'; // var viewPortURL = "1338106.6169795,6831635.8390675|1614197.1630961,6955769.5729803"; jQuery.ajax({ type: "GET", url: url, dataType: 'json', success: function(obj) { // alternative_items = null; autocomplete_item = 0; alternative_items = obj.Placemark; if (alternative_items.length == 1) { select_current_item(); focus_current_item(); } else if (alternative_items.length > 1) { show_alternatives_list(jQuery("#focusAlternatives")); // select_alternative_item(autocomplete_item); select_current_item(); focus_current_item(); } else { var item = alternative_items[autocomplete_item]; var toLonLat= new OpenLayers.LonLat(item.Point.coordinates[0], item.Point.coordinates[1]); map.setCenter(toLonLat.transform(map.displayProjection, map.projection), 15); } }, error: function(x, s, e){log('.. wrong street ?! (' + x.statusText+')');} }); if (!checkIfAllCategoriesSelected()) showAllMarker(); }
|
type: "GET", url: url,
|
type: "POST", url: SERVICE_URL, data: body, beforeSend: function(xhr) { xhr.setRequestHeader("Content-Type", "application/json") xhr.setRequestHeader("Charset", "UTF-8") },
|
function focusRequest() { if (debug) log('focusRqeust for ' + streetFocus); var streetFocus = jQuery("#streetNameField").val(); if (onBerlinDe) streetFocus = jQuery("#streetNameField").val() + '%20Berlin'; //lo var swBerlin = "6881778.529613,1467590.9428711"; var nwBerlin = "6920608.5399765,1518650.8777585"; var viewPortBias = "&bounds="+swBerlin+"|"+nwBerlin; var url = HIDDEN_SERVICE_URL + 'geoProxy.php?q=' + urlencode(streetFocus) + viewPortBias + '&output=json&oe=utf8' + '&sensotr=false&key='; if (onBerlinDe) url += berlinKey; else url += kiezKey; if (onBerlinDe) url += '=de'; // var viewPortURL = "1338106.6169795,6831635.8390675|1614197.1630961,6955769.5729803"; jQuery.ajax({ type: "GET", url: url, dataType: 'json', success: function(obj) { // alternative_items = null; autocomplete_item = 0; alternative_items = obj.Placemark; if (alternative_items.length == 1) { select_current_item(); focus_current_item(); } else if (alternative_items.length > 1) { show_alternatives_list(jQuery("#focusAlternatives")); // select_alternative_item(autocomplete_item); select_current_item(); focus_current_item(); } else { var item = alternative_items[autocomplete_item]; var toLonLat= new OpenLayers.LonLat(item.Point.coordinates[0], item.Point.coordinates[1]); map.setCenter(toLonLat.transform(map.displayProjection, map.projection), 15); } }, error: function(x, s, e){log('.. wrong street ?! (' + x.statusText+')');} }); if (!checkIfAllCategoriesSelected()) showAllMarker(); }
|
async: true,
|
function focusRequest() { if (debug) log('focusRqeust for ' + streetFocus); var streetFocus = jQuery("#streetNameField").val(); if (onBerlinDe) streetFocus = jQuery("#streetNameField").val() + '%20Berlin'; //lo var swBerlin = "6881778.529613,1467590.9428711"; var nwBerlin = "6920608.5399765,1518650.8777585"; var viewPortBias = "&bounds="+swBerlin+"|"+nwBerlin; var url = HIDDEN_SERVICE_URL + 'geoProxy.php?q=' + urlencode(streetFocus) + viewPortBias + '&output=json&oe=utf8' + '&sensotr=false&key='; if (onBerlinDe) url += berlinKey; else url += kiezKey; if (onBerlinDe) url += '=de'; // var viewPortURL = "1338106.6169795,6831635.8390675|1614197.1630961,6955769.5729803"; jQuery.ajax({ type: "GET", url: url, dataType: 'json', success: function(obj) { // alternative_items = null; autocomplete_item = 0; alternative_items = obj.Placemark; if (alternative_items.length == 1) { select_current_item(); focus_current_item(); } else if (alternative_items.length > 1) { show_alternatives_list(jQuery("#focusAlternatives")); // select_alternative_item(autocomplete_item); select_current_item(); focus_current_item(); } else { var item = alternative_items[autocomplete_item]; var toLonLat= new OpenLayers.LonLat(item.Point.coordinates[0], item.Point.coordinates[1]); map.setCenter(toLonLat.transform(map.displayProjection, map.projection), 15); } }, error: function(x, s, e){log('.. wrong street ?! (' + x.statusText+')');} }); if (!checkIfAllCategoriesSelected()) showAllMarker(); }
|
|
YAHOO.util.Assert.isTrue(isGroup || isRepeat);
|
foldAncestors: function(startNode, startValue, foldFunction, stopValue) { var FN = ORBEON.xforms.FlatNesting; // Determine if this a group or a repeat var isGroup = FN.isGroupBegin(startNode); var isRepeat = FN.isRepeatDelimiter(startNode); YAHOO.util.Assert.isTrue(isGroup || isRepeat); // Iterate over previous sibling nodes var depth = 0; var currentNode = startNode; var currentValue = startValue; while (true) { currentNode = YAHOO.util.Dom.getPreviousSibling(currentNode); if (currentNode == null) break; if (currentNode.nodeType == ELEMENT_TYPE) { if (FN.isEnd(currentNode)) depth++; if (FN.isBegin(currentNode)) depth--; if (depth < 0 && ((isGroup && FN.isGroupEnd(currentNode)) || (isRepeat && FN.isRepeatBegin(currentNode)))) { currentValue = foldFunction(currentNode, currentValue); if (currentValue == stopValue) return stopValue; } } } return currentValue; },
|
|
YAHOO.util.Assert.isTrue(isGroup || isRepeat);
|
foldDescendants: function(startNode, startValue, foldFunction, stopValue) { var FN = ORBEON.xforms.FlatNesting; // Determine if this a group or a repeat var isGroup = this.isGroupBegin(startNode); var isRepeat = this.isRepeatDelimiter(startNode); YAHOO.util.Assert.isTrue(isGroup || isRepeat); // Iterate of following sibling nodes var depth = 0; var stopDepth = 0; var currentNode = startNode; var valueStack = []; var currentValue = startValue; while (true) { currentNode = YAHOO.util.Dom.getNextSibling(currentNode); if (currentNode == null) break; if (currentNode.nodeType == ELEMENT_TYPE) { if (this.isBegin(currentNode)) { // Begin marker depth++; if (stopDepth > 0) { stopDepth++; } else { valueStack.push(currentValue); currentValue = foldFunction(currentNode, currentValue); if (currentValue == stopValue) stopDepth++; } } else if (this.isEnd(currentNode)) { // End marker depth--; if (depth < 0) break; if (stopDepth > 0) { stopDepth--; } else { currentValue = valueStack.pop(); } } else if (isRepeat && depth == 0 && this.isRepeatDelimiter(currentNode)) { // Next repeat delimiter break; } else { // Other element if (stopDepth == 0) currentValue = foldFunction(currentNode, currentValue); } } } return currentValue; },
|
|
return utils.html.escape("" + value);
|
return html.escape("" + value);
|
force_escape: function (value, arg, safety) { safety.is_safe = true; return utils.html.escape("" + value); },
|
format: function(object) { var prefCache = new Fireformat.PrefCache("extensions.firebug.fireformatCssFormatter"),
|
format: function(object, prefs) { var prefCache = prefs || new Fireformat.PrefCache("extensions.firebug.fireformatCssFormatter"),
|
format: function(object) { var prefCache = new Fireformat.PrefCache("extensions.firebug.fireformatCssFormatter"), writer = new Fireformat.Writer(prefCache); new CSSFormatter(writer, prefCache).printNode(object); return writer.toString(); }
|
format: function(object) { var prefCache = new Fireformat.PrefCache("extensions.firebug.fireformatHtmlFormatter"),
|
format: function(object, prefs) { var prefCache = prefs || new Fireformat.PrefCache("extensions.firebug.fireformatHtmlFormatter"),
|
format: function(object) { var prefCache = new Fireformat.PrefCache("extensions.firebug.fireformatHtmlFormatter"), writer = new Fireformat.Writer(prefCache); new DOMFormatter(object.ownerDocument || object, writer, prefCache).printNode(object); return writer.toString(); }
|
ds=String(dV.getDate()); ms=String(dV.getMonth()+1); d=("0"+dV.getDate()).substring(ds.length-1,ds.length+1); m=("0"+(dV.getMonth()+1)).substring(ms.length-1,ms.length+1); y=dV.getFullYear(); switch (dF) { case "d/m/Y": return d+"/"+m+"/"+y; case "d.m.Y": return d+"."+m+"."+y; case "Y/m/d": return y+"/"+m+"/"+d; default : return m+"/"+d+"/"+y;
|
ds=String(dV.getDate()); ms=String(dV.getMonth()+1); d=("0"+dV.getDate()).substring(ds.length-1,ds.length+1); m=("0"+(dV.getMonth()+1)).substring(ms.length-1,ms.length+1); y=dV.getFullYear(); switch (dF) { case "d/m/Y": return d+"/"+m+"/"+y; case "d.m.Y": return d+"."+m+"."+y; case "Y/m/d": return y+"/"+m+"/"+d; default : return m+"/"+d+"/"+y; }
|
function formatDate(dV,dF){ds=String(dV.getDate());ms=String(dV.getMonth()+1);d=("0"+dV.getDate()).substring(ds.length-1,ds.length+1);m=("0"+(dV.getMonth()+1)).substring(ms.length-1,ms.length+1);y=dV.getFullYear();switch (dF) {case "d/m/Y":return d+"/"+m+"/"+y;case "d.m.Y":return d+"."+m+"."+y;case "Y/m/d":return y+"/"+m+"/"+d;default :return m+"/"+d+"/"+y;}}
|
}
|
function formatDate(dV,dF){ds=String(dV.getDate());ms=String(dV.getMonth()+1);d=("0"+dV.getDate()).substring(ds.length-1,ds.length+1);m=("0"+(dV.getMonth()+1)).substring(ms.length-1,ms.length+1);y=dV.getFullYear();switch (dF) {case "d/m/Y":return d+"/"+m+"/"+y;case "d.m.Y":return d+"."+m+"."+y;case "Y/m/d":return y+"/"+m+"/"+d;default :return m+"/"+d+"/"+y;}}
|
|
ds=String(dV.getDate()); ms=String(dV.getMonth()+1); d=("0"+dV.getDate()).substring(ds.length-1,ds.length+1); m=("0"+(dV.getMonth()+1)).substring(ms.length-1,ms.length+1); y=dV.getFullYear();
|
var ds=String(dV.getDate()); var ms=String(dV.getMonth()+1); var d=("0"+dV.getDate()).substring(ds.length-1,ds.length+1); var m=("0"+(dV.getMonth()+1)).substring(ms.length-1,ms.length+1); var y=dV.getFullYear();
|
function formatDate(dV,dF){ds=String(dV.getDate());ms=String(dV.getMonth()+1);d=("0"+dV.getDate()).substring(ds.length-1,ds.length+1);m=("0"+(dV.getMonth()+1)).substring(ms.length-1,ms.length+1);y=dV.getFullYear();switch (dF) {case "d/m/Y":return d+"/"+m+"/"+y;case "d.m.Y":return d+"."+m+"."+y;case "Y/m/d":return y+"/"+m+"/"+d;default :return m+"/"+d+"/"+y;}}
|
if (milliseconds) result.push(milliseconds +" milliseconds");
|
if (milliseconds) result.push(Math.round(milliseconds) +" milliseconds");
|
Date.formatInterval = function(interval, value){ var second = 1000; var minute = second*60; var hour = minute*60; var day = hour*24; var week = day*7; var year = day*365; var result=[] var years = Math.floor(interval/year); interval = interval % year; if (years) result.push(years +" years"); var weeks = Math.floor(interval/week); interval = interval % week; if (weeks) result.push(weeks +" weeks"); var days = Math.floor(interval/day); interval = interval % day; if (days) result.push(days +" days"); var hours = Math.floor(interval/hour); interval = interval % hour; if (hours) result.push(hours +" hours"); var minutes = Math.floor(interval/minute); interval = interval % minute; if (minutes) result.push(minutes +" minutes"); var seconds = Math.floor(interval/second); interval = interval % second; if (seconds) result.push(seconds +" seconds"); var milliseconds = interval; if (milliseconds) result.push(milliseconds +" milliseconds"); return result.join(", ") };
|
Date.formatInterval = function(interval, value){
|
Date.formatInterval = function(interval,precision){ if (!precision) precision = Date.MILLI interval = Math.floor(interval/Date.getInterval(precision))*Date.getInterval(precision);
|
Date.formatInterval = function(interval, value){ var second = 1000; var minute = second*60; var hour = minute*60; var day = hour*24; var week = day*7; var year = day*365; var result=[] var years = Math.floor(interval/year); interval = interval % year; if (years) result.push(years +" years"); var weeks = Math.floor(interval/week); interval = interval % week; if (weeks) result.push(weeks +" weeks"); var days = Math.floor(interval/day); interval = interval % day; if (days) result.push(days +" days"); var hours = Math.floor(interval/hour); interval = interval % hour; if (hours) result.push(hours +" hours"); var minutes = Math.floor(interval/minute); interval = interval % minute; if (minutes) result.push(minutes +" minutes"); var seconds = Math.floor(interval/second); interval = interval % second; if (seconds) result.push(seconds +" seconds"); var milliseconds = interval; if (milliseconds) result.push(Math.round(milliseconds) +" milliseconds"); return result.join(", ") };
|
ForNode: function (itemname, listname, node_list, isReversed) {
|
ForNode: function (node_list, empty_list, itemname, listname, isReversed) {
|
ForNode: function (itemname, listname, node_list, isReversed) { return function (context, callback) { var forloop = { parentloop: context.get('forloop') }, list = context.get(listname), out = ''; if (! list instanceof Array) { return nodes.TextNode(''); } if (isReversed) { list = list.slice(0).reverse(); } context.push(); context.set('forloop', forloop); function inner(p, c, idx, list, next) { process.mixin(forloop, { counter: idx + 1, counter0: idx, revcounter: list.length - idx, revcounter0: list.length - (idx + 1), first: idx === 0, last: idx === list.length - 1 }); context.set(itemname, c); node_list.evaluate( context, function (error, result) { next(error, p + result); }); } utils.iter.reduce(list, inner, '', function (error, result) { context.pop(); callback(error, result); }); }; },
|
if (! list instanceof Array) { return nodes.TextNode(''); }
|
if (! list instanceof Array) { throw 'list not iterable' }
|
ForNode: function (itemname, listname, node_list, isReversed) { return function (context, callback) { var forloop = { parentloop: context.get('forloop') }, list = context.get(listname), out = ''; if (! list instanceof Array) { return nodes.TextNode(''); } if (isReversed) { list = list.slice(0).reverse(); } context.push(); context.set('forloop', forloop); function inner(p, c, idx, list, next) { process.mixin(forloop, { counter: idx + 1, counter0: idx, revcounter: list.length - idx, revcounter0: list.length - (idx + 1), first: idx === 0, last: idx === list.length - 1 }); context.set(itemname, c); node_list.evaluate( context, function (error, result) { next(error, p + result); }); } utils.iter.reduce(list, inner, '', function (error, result) { context.pop(); callback(error, result); }); }; },
|
utils.iter.reduce(list, inner, '', function (error, result) {
|
iter.reduce(list, inner, '', function (error, result) {
|
ForNode: function (itemname, listname, node_list, isReversed) { return function (context, callback) { var forloop = { parentloop: context.get('forloop') }, list = context.get(listname), out = ''; if (! list instanceof Array) { return nodes.TextNode(''); } if (isReversed) { list = list.slice(0).reverse(); } context.push(); context.set('forloop', forloop); function inner(p, c, idx, list, next) { process.mixin(forloop, { counter: idx + 1, counter0: idx, revcounter: list.length - idx, revcounter0: list.length - (idx + 1), first: idx === 0, last: idx === list.length - 1 }); context.set(itemname, c); node_list.evaluate( context, function (error, result) { next(error, p + result); }); } utils.iter.reduce(list, inner, '', function (error, result) { context.pop(); callback(error, result); }); }; },
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.