rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
try { this.transport = new ActiveXObject('Msxml2.XMLHTTP'); }
|
try { this.xhr = new ActiveXObject('Msxml2.XMLHTTP'); }
|
callService : function(method, parameters, options) { if (options) { for (var property in options) this.options[property] = options[property]; } try { this.transport = new XMLHttpRequest();} catch(e) { try { this.transport = new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) { try { this.transport = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e){ dispatchError(0, "Cannot create request object"); } } } this.transport.onreadystatechange = this.onStateChange.pwgBind(this); var url = this.urlRoot+"ws.php?format=json"; var body = "method="+method; if (parameters) { for (var property in parameters) { if ( typeof parameters[property] == 'object' && parameters[property]) { for (var i=0; i<parameters[property].length; i++) body += "&"+property+"[]="+encodeURIComponent(parameters[property][i]); } else body += "&"+property+"="+encodeURIComponent(parameters[property]); } } if (this.options.method == "POST" ) { this.transport.open(this.options.method, url, this.options.async); this.transport.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); this.transport.send(body); } else { url += "&"+body; this.transport.open(this.options.method, url, this.options.async); this.transport.send(null); } },
|
try { this.transport = new ActiveXObject('Microsoft.XMLHTTP'); }
|
try { this.xhr = new ActiveXObject('Microsoft.XMLHTTP'); }
|
callService : function(method, parameters, options) { if (options) { for (var property in options) this.options[property] = options[property]; } try { this.transport = new XMLHttpRequest();} catch(e) { try { this.transport = new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) { try { this.transport = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e){ dispatchError(0, "Cannot create request object"); } } } this.transport.onreadystatechange = this.onStateChange.pwgBind(this); var url = this.urlRoot+"ws.php?format=json"; var body = "method="+method; if (parameters) { for (var property in parameters) { if ( typeof parameters[property] == 'object' && parameters[property]) { for (var i=0; i<parameters[property].length; i++) body += "&"+property+"[]="+encodeURIComponent(parameters[property][i]); } else body += "&"+property+"="+encodeURIComponent(parameters[property]); } } if (this.options.method == "POST" ) { this.transport.open(this.options.method, url, this.options.async); this.transport.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); this.transport.send(body); } else { url += "&"+body; this.transport.open(this.options.method, url, this.options.async); this.transport.send(null); } },
|
dispatchError(0, "Cannot create request object");
|
this.error(0, "Cannot create request object"); return;
|
callService : function(method, parameters, options) { if (options) { for (var property in options) this.options[property] = options[property]; } try { this.transport = new XMLHttpRequest();} catch(e) { try { this.transport = new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) { try { this.transport = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e){ dispatchError(0, "Cannot create request object"); } } } this.transport.onreadystatechange = this.onStateChange.pwgBind(this); var url = this.urlRoot+"ws.php?format=json"; var body = "method="+method; if (parameters) { for (var property in parameters) { if ( typeof parameters[property] == 'object' && parameters[property]) { for (var i=0; i<parameters[property].length; i++) body += "&"+property+"[]="+encodeURIComponent(parameters[property][i]); } else body += "&"+property+"="+encodeURIComponent(parameters[property]); } } if (this.options.method == "POST" ) { this.transport.open(this.options.method, url, this.options.async); this.transport.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); this.transport.send(body); } else { url += "&"+body; this.transport.open(this.options.method, url, this.options.async); this.transport.send(null); } },
|
this.transport.onreadystatechange = this.onStateChange.pwgBind(this);
|
this.xhr.onreadystatechange = pwgBind(this, this.onStateChange);
|
callService : function(method, parameters, options) { if (options) { for (var property in options) this.options[property] = options[property]; } try { this.transport = new XMLHttpRequest();} catch(e) { try { this.transport = new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) { try { this.transport = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e){ dispatchError(0, "Cannot create request object"); } } } this.transport.onreadystatechange = this.onStateChange.pwgBind(this); var url = this.urlRoot+"ws.php?format=json"; var body = "method="+method; if (parameters) { for (var property in parameters) { if ( typeof parameters[property] == 'object' && parameters[property]) { for (var i=0; i<parameters[property].length; i++) body += "&"+property+"[]="+encodeURIComponent(parameters[property][i]); } else body += "&"+property+"="+encodeURIComponent(parameters[property]); } } if (this.options.method == "POST" ) { this.transport.open(this.options.method, url, this.options.async); this.transport.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); this.transport.send(body); } else { url += "&"+body; this.transport.open(this.options.method, url, this.options.async); this.transport.send(null); } },
|
for (var property in parameters)
|
for (var prop in parameters)
|
callService : function(method, parameters, options) { if (options) { for (var property in options) this.options[property] = options[property]; } try { this.transport = new XMLHttpRequest();} catch(e) { try { this.transport = new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) { try { this.transport = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e){ dispatchError(0, "Cannot create request object"); } } } this.transport.onreadystatechange = this.onStateChange.pwgBind(this); var url = this.urlRoot+"ws.php?format=json"; var body = "method="+method; if (parameters) { for (var property in parameters) { if ( typeof parameters[property] == 'object' && parameters[property]) { for (var i=0; i<parameters[property].length; i++) body += "&"+property+"[]="+encodeURIComponent(parameters[property][i]); } else body += "&"+property+"="+encodeURIComponent(parameters[property]); } } if (this.options.method == "POST" ) { this.transport.open(this.options.method, url, this.options.async); this.transport.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); this.transport.send(body); } else { url += "&"+body; this.transport.open(this.options.method, url, this.options.async); this.transport.send(null); } },
|
if ( typeof parameters[property] == 'object' && parameters[property])
|
if ( typeof parameters[prop] == 'object' && parameters[prop])
|
callService : function(method, parameters, options) { if (options) { for (var property in options) this.options[property] = options[property]; } try { this.transport = new XMLHttpRequest();} catch(e) { try { this.transport = new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) { try { this.transport = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e){ dispatchError(0, "Cannot create request object"); } } } this.transport.onreadystatechange = this.onStateChange.pwgBind(this); var url = this.urlRoot+"ws.php?format=json"; var body = "method="+method; if (parameters) { for (var property in parameters) { if ( typeof parameters[property] == 'object' && parameters[property]) { for (var i=0; i<parameters[property].length; i++) body += "&"+property+"[]="+encodeURIComponent(parameters[property][i]); } else body += "&"+property+"="+encodeURIComponent(parameters[property]); } } if (this.options.method == "POST" ) { this.transport.open(this.options.method, url, this.options.async); this.transport.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); this.transport.send(body); } else { url += "&"+body; this.transport.open(this.options.method, url, this.options.async); this.transport.send(null); } },
|
for (var i=0; i<parameters[property].length; i++) body += "&"+property+"[]="+encodeURIComponent(parameters[property][i]);
|
for (var i=0; i<parameters[prop].length; i++) body += "&"+prop+"[]="+encodeURIComponent(parameters[prop][i]);
|
callService : function(method, parameters, options) { if (options) { for (var property in options) this.options[property] = options[property]; } try { this.transport = new XMLHttpRequest();} catch(e) { try { this.transport = new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) { try { this.transport = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e){ dispatchError(0, "Cannot create request object"); } } } this.transport.onreadystatechange = this.onStateChange.pwgBind(this); var url = this.urlRoot+"ws.php?format=json"; var body = "method="+method; if (parameters) { for (var property in parameters) { if ( typeof parameters[property] == 'object' && parameters[property]) { for (var i=0; i<parameters[property].length; i++) body += "&"+property+"[]="+encodeURIComponent(parameters[property][i]); } else body += "&"+property+"="+encodeURIComponent(parameters[property]); } } if (this.options.method == "POST" ) { this.transport.open(this.options.method, url, this.options.async); this.transport.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); this.transport.send(body); } else { url += "&"+body; this.transport.open(this.options.method, url, this.options.async); this.transport.send(null); } },
|
body += "&"+property+"="+encodeURIComponent(parameters[property]);
|
body += "&"+prop+"="+encodeURIComponent(parameters[prop]);
|
callService : function(method, parameters, options) { if (options) { for (var property in options) this.options[property] = options[property]; } try { this.transport = new XMLHttpRequest();} catch(e) { try { this.transport = new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) { try { this.transport = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e){ dispatchError(0, "Cannot create request object"); } } } this.transport.onreadystatechange = this.onStateChange.pwgBind(this); var url = this.urlRoot+"ws.php?format=json"; var body = "method="+method; if (parameters) { for (var property in parameters) { if ( typeof parameters[property] == 'object' && parameters[property]) { for (var i=0; i<parameters[property].length; i++) body += "&"+property+"[]="+encodeURIComponent(parameters[property][i]); } else body += "&"+property+"="+encodeURIComponent(parameters[property]); } } if (this.options.method == "POST" ) { this.transport.open(this.options.method, url, this.options.async); this.transport.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); this.transport.send(body); } else { url += "&"+body; this.transport.open(this.options.method, url, this.options.async); this.transport.send(null); } },
|
{ this.transport.open(this.options.method, url, this.options.async); this.transport.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); this.transport.send(body); }
|
this.xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
callService : function(method, parameters, options) { if (options) { for (var property in options) this.options[property] = options[property]; } try { this.transport = new XMLHttpRequest();} catch(e) { try { this.transport = new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) { try { this.transport = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e){ dispatchError(0, "Cannot create request object"); } } } this.transport.onreadystatechange = this.onStateChange.pwgBind(this); var url = this.urlRoot+"ws.php?format=json"; var body = "method="+method; if (parameters) { for (var property in parameters) { if ( typeof parameters[property] == 'object' && parameters[property]) { for (var i=0; i<parameters[property].length; i++) body += "&"+property+"[]="+encodeURIComponent(parameters[property][i]); } else body += "&"+property+"="+encodeURIComponent(parameters[property]); } } if (this.options.method == "POST" ) { this.transport.open(this.options.method, url, this.options.async); this.transport.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); this.transport.send(body); } else { url += "&"+body; this.transport.open(this.options.method, url, this.options.async); this.transport.send(null); } },
|
this.transport.open(this.options.method, url, this.options.async); this.transport.send(null);
|
body = null; } this.xhr.open(this.options.method, url, this.options.async); try { this.xhr.send(body); } catch(e) { this.error(0, e.message);
|
callService : function(method, parameters, options) { if (options) { for (var property in options) this.options[property] = options[property]; } try { this.transport = new XMLHttpRequest();} catch(e) { try { this.transport = new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) { try { this.transport = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e){ dispatchError(0, "Cannot create request object"); } } } this.transport.onreadystatechange = this.onStateChange.pwgBind(this); var url = this.urlRoot+"ws.php?format=json"; var body = "method="+method; if (parameters) { for (var property in parameters) { if ( typeof parameters[property] == 'object' && parameters[property]) { for (var i=0; i<parameters[property].length; i++) body += "&"+property+"[]="+encodeURIComponent(parameters[property][i]); } else body += "&"+property+"="+encodeURIComponent(parameters[property]); } } if (this.options.method == "POST" ) { this.transport.open(this.options.method, url, this.options.async); this.transport.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); this.transport.send(body); } else { url += "&"+body; this.transport.open(this.options.method, url, this.options.async); this.transport.send(null); } },
|
Ext.msg.Alert("Couldn't cancel", "Sorry, the job couldn't be cancelled.");
|
Ext.Msg.alert("Couldn't cancel", "Sorry, the job couldn't be cancelled.");
|
cancelCallback : function(successfullyCancelled) { if (successfullyCancelled) { this.stopProgress(); this.showAllMessages("Job was cancelled"); this.fireEvent('cancel', successfullyCancelled); } else { Ext.msg.Alert("Couldn't cancel", "Sorry, the job couldn't be cancelled."); } },
|
if (successfullyCancelled) { this.stopProgress();
|
this.stopProgress(); this.fireEvent('cancel', successfullyCancelled); if (!successfullyCancelled) { Ext.Msg.alert("Couldn't cancel", "Sorry, the job couldn't be cancelled."); } else {
|
cancelCallback : function(successfullyCancelled) { if (successfullyCancelled) { this.stopProgress(); this.showAllMessages("Job was cancelled"); this.fireEvent('cancel', successfullyCancelled); } else { Ext.Msg.alert("Couldn't cancel", "Sorry, the job couldn't be cancelled."); } },
|
this.fireEvent('cancel', successfullyCancelled); } else { Ext.Msg.alert("Couldn't cancel", "Sorry, the job couldn't be cancelled.");
|
cancelCallback : function(successfullyCancelled) { if (successfullyCancelled) { this.stopProgress(); this.showAllMessages("Job was cancelled"); this.fireEvent('cancel', successfullyCancelled); } else { Ext.Msg.alert("Couldn't cancel", "Sorry, the job couldn't be cancelled."); } },
|
|
var customizable = true;
|
var customizable = false;
|
var cb = function(analysisInfo) { if (analysisInfo.type) { var customizable = true; var analysisType = ''; if (analysisInfo.type === 'TWIA') { analysisType = 'Two-way ANOVA with interactions'; customizable = true; } else if (analysisInfo.type === 'TWA') { analysisType = 'Two-way ANOVA without interactions'; customizable = true; } else if (analysisInfo.type === 'TTEST') { analysisType = 'T-test (two-sample)'; } else if (analysisInfo.type === 'OSTTEST') { analysisType = 'T-test (one-sample)'; } else if (analysisInfo.type === 'OWA') { analysisType = 'One-way ANOVA'; } else { analysisType = 'Generic ANOVA/ANCOVA'; // TODO: allow choice of the factors customizable = true; } // ask for confirmation. var w = new Ext.Window({ autoCreate : true, resizable : false, constrain : true, constrainHeader : true, minimizable : false, maximizable : false, stateful : false, modal : true, shim : true, buttonAlign : "center", width : 400, height : 100, minHeight : 80, plain : true, footer : true, closable : true, title : 'Differential expression analysis', html : 'Please confirm. The analysis performed will be a ' + analysisType + '. Previous analysis results for this experiment will be deleted.', buttons : [{ text : 'Proceed', handler : function(btn, text) { var callParams = []; callParams.push(id); Ext.getBody().mask(); callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler(); k.handleWait(data, true); this.relayEvents(k, ['done']); Ext.getBody().unmask(); k.on('done', function(payload) { this.fireEvent('differential', payload); }); }.createDelegate(this), errorHandler : function(error) { Ext.Msg.alert("Diff. Analysis failed", error); Ext.getBody().unmask(); }.createDelegate(this) }); DifferentialExpressionAnalysisController.run.apply(this, callParams); w.close(); } }, { text : 'Cancel', handler : function() { w.close(); } }, { disabled : !customizable, hidden : !customizable, text : 'Customize', handler : function() { w.close(); customize(analysisInfo); } }], iconCls : Ext.MessageBox.QUESTION }); w.show(); } else { /* * System couldn't guess the analysis type, so force user to customize. */ customize(analysisInfo); } };
|
height : 100,
|
height : 130,
|
var cb = function(analysisInfo) { if (analysisInfo.type) { var customizable = true; var analysisType = ''; if (analysisInfo.type === 'TWIA') { analysisType = 'Two-way ANOVA with interactions'; customizable = true; } else if (analysisInfo.type === 'TWA') { analysisType = 'Two-way ANOVA without interactions'; customizable = true; } else if (analysisInfo.type === 'TTEST') { analysisType = 'T-test (two-sample)'; } else if (analysisInfo.type === 'OSTTEST') { analysisType = 'T-test (one-sample)'; } else if (analysisInfo.type === 'OWA') { analysisType = 'One-way ANOVA'; } else { analysisType = 'Generic ANOVA/ANCOVA'; // TODO: allow choice of the factors customizable = true; } // ask for confirmation. var w = new Ext.Window({ autoCreate : true, resizable : false, constrain : true, constrainHeader : true, minimizable : false, maximizable : false, stateful : false, modal : true, shim : true, buttonAlign : "center", width : 400, height : 100, minHeight : 80, plain : true, footer : true, closable : true, title : 'Differential expression analysis', html : 'Please confirm. The analysis performed will be a ' + analysisType + '. Previous analysis results for this experiment will be deleted.', buttons : [{ text : 'Proceed', handler : function(btn, text) { var callParams = []; callParams.push(id); Ext.getBody().mask(); callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler(); k.handleWait(data, true); this.relayEvents(k, ['done']); Ext.getBody().unmask(); k.on('done', function(payload) { this.fireEvent('differential', payload); }); }.createDelegate(this), errorHandler : function(error) { Ext.Msg.alert("Diff. Analysis failed", error); Ext.getBody().unmask(); }.createDelegate(this) }); DifferentialExpressionAnalysisController.run.apply(this, callParams); w.close(); } }, { text : 'Cancel', handler : function() { w.close(); } }, { disabled : !customizable, hidden : !customizable, text : 'Customize', handler : function() { w.close(); customize(analysisInfo); } }], iconCls : Ext.MessageBox.QUESTION }); w.show(); } else { /* * System couldn't guess the analysis type, so force user to customize. */ customize(analysisInfo); } };
|
+ '. Previous analysis results for this experiment will be deleted.',
|
+ '. If there is an existing analysis on the same factor(s), it will be deleted.',
|
var cb = function(analysisInfo) { if (analysisInfo.type) { var customizable = true; var analysisType = ''; if (analysisInfo.type === 'TWIA') { analysisType = 'Two-way ANOVA with interactions'; customizable = true; } else if (analysisInfo.type === 'TWA') { analysisType = 'Two-way ANOVA without interactions'; customizable = true; } else if (analysisInfo.type === 'TTEST') { analysisType = 'T-test (two-sample)'; } else if (analysisInfo.type === 'OSTTEST') { analysisType = 'T-test (one-sample)'; } else if (analysisInfo.type === 'OWA') { analysisType = 'One-way ANOVA'; } else { analysisType = 'Generic ANOVA/ANCOVA'; // TODO: allow choice of the factors customizable = true; } // ask for confirmation. var w = new Ext.Window({ autoCreate : true, resizable : false, constrain : true, constrainHeader : true, minimizable : false, maximizable : false, stateful : false, modal : true, shim : true, buttonAlign : "center", width : 400, height : 100, minHeight : 80, plain : true, footer : true, closable : true, title : 'Differential expression analysis', html : 'Please confirm. The analysis performed will be a ' + analysisType + '. Previous analysis results for this experiment will be deleted.', buttons : [{ text : 'Proceed', handler : function(btn, text) { var callParams = []; callParams.push(id); Ext.getBody().mask(); callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler(); k.handleWait(data, true); this.relayEvents(k, ['done']); Ext.getBody().unmask(); k.on('done', function(payload) { this.fireEvent('differential', payload); }); }.createDelegate(this), errorHandler : function(error) { Ext.Msg.alert("Diff. Analysis failed", error); Ext.getBody().unmask(); }.createDelegate(this) }); DifferentialExpressionAnalysisController.run.apply(this, callParams); w.close(); } }, { text : 'Cancel', handler : function() { w.close(); } }, { disabled : !customizable, hidden : !customizable, text : 'Customize', handler : function() { w.close(); customize(analysisInfo); } }], iconCls : Ext.MessageBox.QUESTION }); w.show(); } else { /* * System couldn't guess the analysis type, so force user to customize. */ customize(analysisInfo); } };
|
analysisType = 'T-test';
|
analysisType = 'T-test (two-sample)'; } else if (analysisInfo.type === 'OSTTEST') { analysisType = 'T-test (one-sample)';
|
var cb = function(analysisInfo) { if (analysisInfo.type) { var customizable = false; var analysisType = ''; if (analysisInfo.type === 'TWIA') { analysisType = 'Two-way ANOVA with interactions'; customizable = true; } else if (analysisInfo.type === 'TWA') { analysisType = 'Two-way ANOVA without interactions'; customizable = true; } else if (analysisInfo.type === 'TTEST') { analysisType = 'T-test'; } else if (analysisInfo.type === 'OWA') { analysisType = 'One-way ANOVA'; } // ask for confirmation. var w = new Ext.Window({ autoCreate : true, resizable : false, constrain : true, constrainHeader : true, minimizable : false, maximizable : false, stateful : false, modal : true, shim : true, buttonAlign : "center", width : 400, height : 100, minHeight : 80, plain : true, footer : true, closable : true, title : 'Differential expression analysis', html : 'Please confirm. The analysis performed will be a ' + analysisType + '. Previous analysis results for this experiment will be deleted.', buttons : [{ text : 'Proceed', handler : function(btn, text) { var callParams = []; callParams.push(id); Ext.getBody().mask(); callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler(); k.handleWait(data, true); this.relayEvents(k, ['done']); Ext.getBody().unmask(); k.on('done', function(payload) { this.fireEvent('differential', payload); }); }.createDelegate(this), errorHandler : function(error) { Ext.Msg.alert("Diff. Analysis failed", error); Ext.getBody().unmask(); }.createDelegate(this) }); DifferentialExpressionAnalysisController.run.apply(this, callParams); w.close(); } }, { text : 'Cancel', handler : function() { w.close(); } }, { disabled : !customizable, hidden : !customizable, text : 'Customize', handler : function() { w.close(); customize(analysisInfo); } }], iconCls : Ext.MessageBox.QUESTION }); w.show(); } else { /* * System couldn't guess the analysis type, so force user to customize. */ customize(analysisInfo); } };
|
this.relayEvents(k, ['done']);
|
this.relayEvents(k, ['done', 'fail']);
|
var cb = function(analysisInfo) { if (analysisInfo.type) { var customizable = false; var analysisType = ''; if (analysisInfo.type === 'TWIA') { analysisType = 'Two-way ANOVA with interactions'; customizable = true; } else if (analysisInfo.type === 'TWA') { analysisType = 'Two-way ANOVA without interactions'; customizable = true; } else if (analysisInfo.type === 'TTEST') { analysisType = 'T-test (two-sample)'; } else if (analysisInfo.type === 'OSTTEST') { analysisType = 'T-test (one-sample)'; } else if (analysisInfo.type === 'OWA') { analysisType = 'One-way ANOVA'; } else { analysisType = 'Generic ANOVA/ANCOVA'; customizable = true; } // ask for confirmation. var w = new Ext.Window({ autoCreate : true, resizable : false, constrain : true, constrainHeader : true, minimizable : false, maximizable : false, stateful : false, modal : true, shim : true, buttonAlign : "center", width : 400, height : 130, minHeight : 80, plain : true, footer : true, closable : true, title : 'Differential expression analysis', html : 'Please confirm. The analysis performed will be a ' + analysisType + '. If there is an existing analysis on the same factor(s), it will be deleted.', buttons : [{ text : 'Proceed', handler : function(btn, text) { var callParams = []; callParams.push(id); Ext.getBody().mask(); callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler(); k.handleWait(data, true); this.relayEvents(k, ['done']); Ext.getBody().unmask(); k.on('done', function(payload) { this.fireEvent('differential', payload); }); }.createDelegate(this), errorHandler : function(error) { Ext.Msg.alert("Diff. Analysis failed", error); Ext.getBody().unmask(); }.createDelegate(this) }); DifferentialExpressionAnalysisController.run.apply(this, callParams); w.close(); } }, { text : 'Cancel', handler : function() { w.close(); } }, { disabled : !customizable, hidden : !customizable, text : 'Customize', handler : function() { w.close(); customize(analysisInfo); } }], iconCls : Ext.MessageBox.QUESTION }); w.show(); } else { /* * System couldn't guess the analysis type, so force user to customize. */ customize(analysisInfo); } };
|
this.refresh([this.experimentalFactor]);
|
if (efId === null) { this.store.removeAll(); } else { this.refresh([this.experimentalFactor]); }
|
changeExperimentalFactor : function(efId) { this.experimentalFactor.id = efId; this.store.rejectChanges(); // reset. this.refresh([this.experimentalFactor]); // causes a load. this.getTopToolbar().setExperimentalFactor(efId); },
|
hideLoadingGif();
|
function changeNickname(newNick){ $.ajax({ url: "/nickname", type: "POST", data: { "new_nick": newNick }, success: function(msg){ $("#nick_text").hide(); $("#hi_msg").text("Hi " + newNick); }, error: on_ajax_fail });}
|
|
this.log("changeOptions");
|
changeOptions: function() { this.log("changeOptions"); this._populateFromMaster(); },
|
|
if(this.options.required) { this.requiredText = new Element('em', { 'html' : this.getText({set:'Jx',key:'field',value:'requiredText'}), 'class' : 'required' }); this.requiredText.inject(this.label); }
|
changeText: function (lang) { this.parent(); if ($defined(this.options.label)) { this.label.set('html', this.getText(this.options.label) + this.options.labelSeparator); } if ($defined(this.requiredText)) { this.requiredText.set('html',MooTools.lang.get('Jx','field').requiredText); } },
|
|
this.ok.setLabel({set:'Jx',key:'confirm',value:'affirmitiveLabel'});
|
this.ok.setLabel({set:'Jx',key:'confirm',value:'affirmativeLabel'});
|
changeText: function (lang) { this.parent(); if ($defined(this.ok)) { this.ok.setLabel({set:'Jx',key:'confirm',value:'affirmitiveLabel'}); } if ($defined(this.cancel)) { this.cancel.setLabel({set:'Jx',key:'confirm',value:'negativeLabel'}); } if(Jx.type(this.options.question) === 'object') { this.question.set('html', this.getText(this.options.question)) } }
|
this.parent(); this.render();
|
this.parent(); this.resize(); this.resizeRowsCols();
|
changeText : function(lang) { this.parent(); this.render(); }
|
}
|
},
|
changeText: function (lang) { this.options.busyMask['message'] = MooTools.lang.get('Jx','widget').busyMessage; //if the mask is being used then recreate it with the new text if (this.busy) { this.setBusy(false); this.setBusy(true); } }
|
}
|
},
|
changeText: function (lang) { this.parent(); if ($defined(this.requiredText)) { this.requiredText.set('html',MooTools.lang.get('Jx','field').requiredText); } }
|
}
|
},
|
changeText: function (lang) { this.parent(); //TODO: change this class so that we can access these properties without too much voodoo... if($defined(this.closeB)) { this.closeB.setTooltip({set:'Jx',key:'panel',value:'closeTooltip'}); } if ($defined(this.closeM)) { this.closeM.setLabel({set:'Jx',key:'panel',value:'closeLabel'}); } if ($defined(this.maxB)) { this.maxB.setTooltip({set:'Jx',key:'panel',value:'maximizeTooltip'}); } if ($defined(this.colB)) { this.colB.setTooltip({set:'Jx',key:'panel',value:'collapseTooltip'}); } if ($defined(this.colM)) { if (this.options.closed == true) { this.colM.setLabel({set:'Jx',key:'panel',value:'expandLabel'}); } else { this.colM.setLabel({set:'Jx',key:'panel',value:'collapseLabel'}); } } if (this.options.label && this.domLabel) { this.setLabel(this.options.label); } // TODO: is this the right method to call? // if toolbars left/right are used and localized, they may change their size.. this.layoutContent(); }
|
if(this.options.popup.button.submit.label.length == 0) this.popup.button.submit.label = MooTools.lang.get('Jx','plugin.editor').submitButton; if(this.options.popup.button.cancel.label.length == 0) this.popup.button.cancel.label = MooTools.lang.get('Jx','plugin.editor').cancelButton;
|
if(this.popup.button.submit != null) { this.popup.button.submit.cleanup(); this.popup.button.cancel.cleanup(); this.popup.button.submit = null; this.popup.button.cancel = null; this.setPopUpButtons(); }
|
changeText: function (lang) { this.parent(); if (this.options.popup.use && this.options.popup.useButtons) { if(this.options.popup.button.submit.label.length == 0) this.popup.button.submit.label = MooTools.lang.get('Jx','plugin.editor').submitButton; if(this.options.popup.button.cancel.label.length == 0) this.popup.button.cancel.label = MooTools.lang.get('Jx','plugin.editor').cancelButton; } }
|
if ($defined(this.options.label)) {
|
if ($defined(this.options.label) && this.label) {
|
changeText: function (lang) { this.parent(); if ($defined(this.options.label)) { this.label.set('html', this.getText(this.options.label) + this.options.labelSeparator); } if(this.options.required) { this.requiredText = new Element('em', { 'html' : this.getText({set:'Jx',key:'field',value:'requiredText'}), 'class' : 'required' }); this.requiredText.inject(this.label); } if ($defined(this.requiredText)) { this.requiredText.set('html',this.getText({set:'Jx',key:'field',value:'requiredText'})); } },
|
};
|
}
|
function childrenOf(node) { return $("table.treeTable tbody tr." + options.childPrefix + node[0].id); };
|
t.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m)return n.getElementsByClassName(i[1])};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)}:t.documentElement.compareDocumentPosition?
|
i=i.toLowerCase();q=a}q("previousSibling",i,p,g,m,n)}},find:{ID:function(g,i,n){if(typeof i.getElementById!=="undefined"&&!n)return(g=i.getElementById(g[1]))&&g.parentNode?[g]:[]},NAME:function(g,i){if(typeof i.getElementsByName!=="undefined"){for(var n=[],m=i.getElementsByName(g[1]),p=0,q=m.length;p<q;p++)m[p].getAttribute("name")===g[1]&&n.push(m[p]);return n.length===0?null:n}},TAG:function(g,i){return i.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,i,n,m,p,q){g=" "+g[1].replace(/\\/g, "")+" ";if(q)return g;q=0;for(var u;(u=i[q])!=null;q++)if(u)if(p^(u.className&&(" "+u.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))n||m.push(u);else if(n)i[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n,
|
t.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m)return n.getElementsByClassName(i[1])};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)}:t.documentElement.compareDocumentPosition?
|
return string.replace(/[\'\s\(\)]/g, "_");
|
return string.replace(/[\\\/\"\'\s\(\),\.]/g, " ");
|
function cleanName(string) { return string.replace(/[\'\s\(\)]/g, "_");}
|
return string.replace(/[\'\s]/g, "_");
|
return string.replace(/[\'\s\(\)]/g, "_");
|
function cleanName(string) { return string.replace(/[\'\s]/g, "_");}
|
return string.replace(/[\\\/\"\'\s\(\),\.]/g, " ");
|
return string.replace(/[\\\/\"\'\s\(\),\.;]/g, "_");
|
function cleanName(string) { return string.replace(/[\\\/\"\'\s\(\),\.]/g, " ");}
|
this.contentClone.destroy();
|
cleanup: function() { this.list.removeEvent('remove', this.bound.remove); this.list.destroy(); this.list = null; if (this.button) { this.domObj.eliminate('jxMenu'); this.domObj = null; this.button.removeEvent('click', this.bound.show); this.button.domA.removeEvents({ mouseenter: this.bound.mouseenter, mouseleave: this.bound.mouseleave }); this.button.destroy(); this.button = null; } this.subDomObj.removeEvents({ mouseenter: this.bound.mouseenter, mouseleave: this.bound.mouseleave }); this.subDomObj.removeEvents(); this.contentContainer.removeEvent('contextmenu', this.bound.stop); this.subDomObj.destroy(); this.contentContainer.destroy(); this.bound.remove = null; this.bound.show = null; this.bound.stop = null; this.bound.mouseenter = null; this.bound.mouseleave = null; this.bound.keypress = null; this.bound.hide = null; this.parent(); },
|
|
mouseenter: this.onMouseEnter, mouseleave: this.onMouseLeave
|
mouseenter: this.bound.mouseenter, mouseleave: this.bound.mouseleave
|
cleanup: function() { this.list.removeEvent('remove', this.bound.remove); this.list.destroy(); this.list = null; if (this.button) { this.domObj.eliminate('jxMenu'); this.domObj = null; this.button.removeEvent('click', this.bound.show); this.button.domA.removeEvents({ mouseenter: this.onMouseEnter, mouseleave: this.onMouseLeave }); this.button.destroy(); this.button = null; } this.subDomObj.removeEvents({ mouseenter: this.onMouseEnter, mouseleave: this.onMouseLeave }); this.subDomObj.removeEvents(); this.contentContainer.removeEvent('contextmenu', this.bound.stop); this.subDomObj.destroy(); this.contentContainer.destroy(); this.bound.onRemove = null; this.bound.show = null; this.bound.stop = null; this.parent(); },
|
this.bound.onRemove = null;
|
this.bound.remove = null;
|
cleanup: function() { this.list.removeEvent('remove', this.bound.remove); this.list.destroy(); this.list = null; if (this.button) { this.domObj.eliminate('jxMenu'); this.domObj = null; this.button.removeEvent('click', this.bound.show); this.button.domA.removeEvents({ mouseenter: this.onMouseEnter, mouseleave: this.onMouseLeave }); this.button.destroy(); this.button = null; } this.subDomObj.removeEvents({ mouseenter: this.onMouseEnter, mouseleave: this.onMouseLeave }); this.subDomObj.removeEvents(); this.contentContainer.removeEvent('contextmenu', this.bound.stop); this.subDomObj.destroy(); this.contentContainer.destroy(); this.bound.onRemove = null; this.bound.show = null; this.bound.stop = null; this.parent(); },
|
this.bound.mouseenter = null; this.bound.mouseleave = null; this.bound.keypress = null; this.bound.hide = null;
|
cleanup: function() { this.list.removeEvent('remove', this.bound.remove); this.list.destroy(); this.list = null; if (this.button) { this.domObj.eliminate('jxMenu'); this.domObj = null; this.button.removeEvent('click', this.bound.show); this.button.domA.removeEvents({ mouseenter: this.onMouseEnter, mouseleave: this.onMouseLeave }); this.button.destroy(); this.button = null; } this.subDomObj.removeEvents({ mouseenter: this.onMouseEnter, mouseleave: this.onMouseLeave }); this.subDomObj.removeEvents(); this.contentContainer.removeEvent('contextmenu', this.bound.stop); this.subDomObj.destroy(); this.contentContainer.destroy(); this.bound.onRemove = null; this.bound.show = null; this.bound.stop = null; this.parent(); },
|
|
MooTools.lang.removeEvent('langChange', this.bound.changeText);
|
if (this.options.useLang && $defined(this.bound.changeText)) { MooTools.lang.removeEvent('langChange', this.bound.changeText); }
|
cleanup: function () { //detach plugins if (this.plugins.getLength > 0) { this.plugins.each(function (plugin) { plugin.detach(); plugin.destroy(); }, this); } this.plugins.empty(); MooTools.lang.removeEvent('langChange', this.bound.changeText); this.bound = null; },
|
$("<option/>").text("-- Select a metric --").appendTo("#verplot2metr"); $("<option/>").text("-- Select a metric --").appendTo("#verplot1metr");
|
function cleanup() { $("#verplot2metr").empty(); $("#verplot1metr").empty(); $('#verplot1plot').empty(); $('#verplot2plot').empty(); $("#dirs thead tr").empty(); $("#dirs tbody").empty(); $("#files thead tr").empty(); $("#files tbody").empty();}
|
|
this.setActive(!this.options.active);
|
this.setActive.delay(1,this,!this.options.active);
|
clicked: function(obj) { if (this.options.enabled) { if (this.options.toggle) { this.setActive(!this.options.active); } this.fireEvent('click', this); if (this.owner && this.owner.deactivate) { this.owner.deactivate(obj.event); } } },
|
this.fireEvent('click', this);
|
this.fireEvent.delay(1, this, ['click', {obj: this}]); this.blur.delay(1,this);
|
clicked: function(obj) { if (this.options.enabled) { if (this.options.toggle) { this.setActive(!this.options.active); } this.fireEvent('click', this); if (this.owner && this.owner.deactivate) { this.owner.deactivate(obj.event); } } },
|
this.owner.deactivate(obj.event);
|
this.owner.deactivate.delay(1, this.owner, obj.event);
|
clicked: function(obj) { if (this.options.enabled) { if (this.options.toggle) { this.setActive(!this.options.active); } this.fireEvent('click', this); if (this.owner && this.owner.deactivate) { this.owner.deactivate(obj.event); } } },
|
this.blur.delay(1,this);
|
this.blur();
|
clicked: function(obj) { if (this.options.enabled) { if (this.options.toggle) { this.setActive.delay(1,this,!this.options.active); } this.fireEvent.delay(1, this, ['click', {obj: this}]); this.blur.delay(1,this); if (this.owner && this.owner.deactivate) { this.owner.deactivate.delay(1, this.owner, obj.event); } } },
|
return false;
|
clicked: function(obj) { if (this.options.enabled) { if (this.options.toggle) { this.setActive.delay(1,this,!this.options.active); } this.fireEvent.delay(1, this, ['click', {obj: this}]); this.blur.delay(1,this); if (this.owner && this.owner.deactivate) { this.owner.deactivate.delay(1, this.owner, obj.event); } } },
|
|
} if(this.options.loadOnDemand || !this.options.cacheContent) { this.loadContent(this.content);
|
clicked: function(e) { if (!this.options.enabled) { return; } /* find out what we are contained by if we don't already know */ if (!this.owner) { this.owner = document.body; var node = document.id(this.domObj.parentNode); while (node != document.body && this.owner == document.body) { var flyout = node.retrieve('jxFlyout'); if (flyout) { this.owner = flyout; break; } else { node = document.id(node.parentNode); } } } if (Jx.Button.Flyout.Stack[Jx.Button.Flyout.Stack.length - 1] == this) { this.hide(); return; } else if (this.owner != document.body) { /* if we are part of another flyout, close any open flyouts * inside the parent and register this as the current flyout */ if (this.owner.currentFlyout == this) { /* if the flyout to close is this flyout, * hide this and return */ this.hide(); return; } else if (this.owner.currentFlyout) { this.owner.currentFlyout.hide(); } this.owner.currentFlyout = this; } else { /* if we are at the top level, close the entire stack before * we open */ while (Jx.Button.Flyout.Stack.length) { Jx.Button.Flyout.Stack[Jx.Button.Flyout.Stack.length - 1].hide(); } } // now we go on the stack. Jx.Button.Flyout.Stack.push(this); this.fireEvent('beforeOpen'); this.options.active = true; this.domA.addClass(this.options.activeClass); this.contentContainer.setStyle('visibility','hidden'); document.id(document.body).adopt(this.contentContainer); this.content.getChildren().each(function(child) { if (child.resize) { child.resize(); } }); this.showChrome(this.contentContainer); var rel = this.options.positionElement || this.domObj; var pos = $merge(this.options.position, { offsets: this.chromeOffsets }); this.position(this.contentContainer, rel, pos); /* we have to size the container for IE to render the chrome correctly * there is some horrible peekaboo bug in IE 6 */ this.contentContainer.setContentBoxSize(document.id(this.content).getMarginBoxSize()); this.stack(this.contentContainer); this.contentContainer.setStyle('visibility',''); document.addEvent('keydown', this.keypressHandler); document.addEvent('click', this.clickHandler); this.fireEvent('open', this); },
|
|
document.addEvent('keydown', this.keypressWatcher); document.addEvent('click', this.hideWatcher);
|
document.addEvent('keydown', this.keypressHandler); document.addEvent('click', this.clickHandler);
|
clicked: function(e) { if (!this.options.enabled) { return; } /* find out what we are contained by if we don't already know */ if (!this.owner) { this.owner = document.body; var node = document.id(this.domObj.parentNode); while (node != document.body && this.owner == document.body) { var flyout = node.retrieve('jxFlyout'); if (flyout) { this.owner = flyout; break; } else { node = document.id(node.parentNode); } } } if (Jx.Button.Flyout.Stack[Jx.Button.Flyout.Stack.length - 1] == this) { this.hide(); return; } else if (this.owner != document.body) { /* if we are part of another flyout, close any open flyouts * inside the parent and register this as the current flyout */ if (this.owner.currentFlyout == this) { /* if the flyout to close is this flyout, * hide this and return */ this.hide(); return; } else if (this.owner.currentFlyout) { this.owner.currentFlyout.hide(); } this.owner.currentFlyout = this; } else { /* if we are at the top level, close the entire stack before * we open */ while (Jx.Button.Flyout.Stack.length) { Jx.Button.Flyout.Stack[Jx.Button.Flyout.Stack.length - 1].hide(); } } // now we go on the stack. Jx.Button.Flyout.Stack.push(this); this.options.active = true; this.domA.addClass(this.options.activeClass); this.contentContainer.setStyle('visibility','hidden'); document.id(document.body).adopt(this.contentContainer); this.content.getChildren().each(function(child) { if (child.resize) { child.resize(); } }); this.showChrome(this.contentContainer); this.position(this.contentContainer, this.domObj, { horizontal: ['left left', 'right right'], vertical: ['bottom top', 'top bottom'], offsets: this.chromeOffsets }); /* we have to size the container for IE to render the chrome correctly * there is some horrible peekaboo bug in IE 6 */ this.contentContainer.setContentBoxSize(document.id(this.content).getMarginBoxSize()); this.contentContainer.setStyle('visibility',''); document.addEvent('keydown', this.keypressWatcher); document.addEvent('click', this.hideWatcher); this.fireEvent('open', this); },
|
this.position(this.contentContainer, this.domObj, { horizontal: ['left left', 'right right'], vertical: ['bottom top', 'top bottom'], offsets: this.chromeOffsets
|
var rel = this.options.positionElement || this.domObj; var pos = $merge(this.options.position, { offsets: this.chromeOffsets
|
clicked: function(e) { if (!this.options.enabled) { return; } /* find out what we are contained by if we don't already know */ if (!this.owner) { this.owner = document.body; var node = document.id(this.domObj.parentNode); while (node != document.body && this.owner == document.body) { var flyout = node.retrieve('jxFlyout'); if (flyout) { this.owner = flyout; break; } else { node = document.id(node.parentNode); } } } if (Jx.Button.Flyout.Stack[Jx.Button.Flyout.Stack.length - 1] == this) { this.hide(); return; } else if (this.owner != document.body) { /* if we are part of another flyout, close any open flyouts * inside the parent and register this as the current flyout */ if (this.owner.currentFlyout == this) { /* if the flyout to close is this flyout, * hide this and return */ this.hide(); return; } else if (this.owner.currentFlyout) { this.owner.currentFlyout.hide(); } this.owner.currentFlyout = this; } else { /* if we are at the top level, close the entire stack before * we open */ while (Jx.Button.Flyout.Stack.length) { Jx.Button.Flyout.Stack[Jx.Button.Flyout.Stack.length - 1].hide(); } } // now we go on the stack. Jx.Button.Flyout.Stack.push(this); this.fireEvent('beforeOpen'); this.options.active = true; this.domA.addClass(this.options.activeClass); this.contentContainer.setStyle('visibility','hidden'); document.id(document.body).adopt(this.contentContainer); this.content.getChildren().each(function(child) { if (child.resize) { child.resize(); } }); this.showChrome(this.contentContainer); this.position(this.contentContainer, this.domObj, { horizontal: ['left left', 'right right'], vertical: ['bottom top', 'top bottom'], offsets: this.chromeOffsets }); /* we have to size the container for IE to render the chrome correctly * there is some horrible peekaboo bug in IE 6 */ this.contentContainer.setContentBoxSize(document.id(this.content).getMarginBoxSize()); this.stack(this.contentContainer); this.contentContainer.setStyle('visibility',''); document.addEvent('keydown', this.keypressHandler); document.addEvent('click', this.clickHandler); this.fireEvent('open', this); },
|
this.position(this.contentContainer, rel, pos);
|
clicked: function(e) { if (!this.options.enabled) { return; } /* find out what we are contained by if we don't already know */ if (!this.owner) { this.owner = document.body; var node = document.id(this.domObj.parentNode); while (node != document.body && this.owner == document.body) { var flyout = node.retrieve('jxFlyout'); if (flyout) { this.owner = flyout; break; } else { node = document.id(node.parentNode); } } } if (Jx.Button.Flyout.Stack[Jx.Button.Flyout.Stack.length - 1] == this) { this.hide(); return; } else if (this.owner != document.body) { /* if we are part of another flyout, close any open flyouts * inside the parent and register this as the current flyout */ if (this.owner.currentFlyout == this) { /* if the flyout to close is this flyout, * hide this and return */ this.hide(); return; } else if (this.owner.currentFlyout) { this.owner.currentFlyout.hide(); } this.owner.currentFlyout = this; } else { /* if we are at the top level, close the entire stack before * we open */ while (Jx.Button.Flyout.Stack.length) { Jx.Button.Flyout.Stack[Jx.Button.Flyout.Stack.length - 1].hide(); } } // now we go on the stack. Jx.Button.Flyout.Stack.push(this); this.fireEvent('beforeOpen'); this.options.active = true; this.domA.addClass(this.options.activeClass); this.contentContainer.setStyle('visibility','hidden'); document.id(document.body).adopt(this.contentContainer); this.content.getChildren().each(function(child) { if (child.resize) { child.resize(); } }); this.showChrome(this.contentContainer); this.position(this.contentContainer, this.domObj, { horizontal: ['left left', 'right right'], vertical: ['bottom top', 'top bottom'], offsets: this.chromeOffsets }); /* we have to size the container for IE to render the chrome correctly * there is some horrible peekaboo bug in IE 6 */ this.contentContainer.setContentBoxSize(document.id(this.content).getMarginBoxSize()); this.stack(this.contentContainer); this.contentContainer.setStyle('visibility',''); document.addEvent('keydown', this.keypressHandler); document.addEvent('click', this.clickHandler); this.fireEvent('open', this); },
|
|
els.lightbox.hide(); els.overlay.fadeOut({ duration: this.overlayDuration }); els.shim.hide();
|
response = window.frames['ux-lightbox-shim'].response; if(!response.url) { els.lightbox.hide(); els.overlay.fadeOut({ duration: this.overlayDuration }); els.shim.hide(); }
|
close: function(){ els.lightbox.hide(); els.overlay.fadeOut({ duration: this.overlayDuration }); els.shim.hide(); this.fireEvent('close', this); },
|
item_id = $(item).attr('id')
|
var item_id = $(item).attr('id'); var tag_name, tag_store;
|
var collectPickedTags = function(){ var good_prefix = 'interesting-tag-'; var bad_prefix = 'ignored-tag-'; var good_re = RegExp('^' + good_prefix); var bad_re = RegExp('^' + bad_prefix); interestingTags = {}; ignoredTags = {}; $('.deletable-tag').each( function(i,item){ item_id = $(item).attr('id') if (good_re.test(item_id)){ tag_name = item_id.replace(good_prefix,''); tag_store = interestingTags; reason = 'good'; } else if (bad_re.test(item_id)){ tag_name = item_id.replace(bad_prefix,''); tag_store = ignoredTags; reason = 'bad'; } else { return; } tag_store[tag_name] = $(item); setupTagDeleteEvents($(item).find('img'),tag_store,tag_name,reason,true) } ); }
|
setupTagDeleteEvents($(item).find('img'),tag_store,tag_name,reason,true)
|
setupTagDeleteEvents($(item).find('img'),tag_store,tag_name,reason,true);
|
var collectPickedTags = function(){ var good_prefix = 'interesting-tag-'; var bad_prefix = 'ignored-tag-'; var good_re = RegExp('^' + good_prefix); var bad_re = RegExp('^' + bad_prefix); interestingTags = {}; ignoredTags = {}; $('.deletable-tag').each( function(i,item){ item_id = $(item).attr('id') if (good_re.test(item_id)){ tag_name = item_id.replace(good_prefix,''); tag_store = interestingTags; reason = 'good'; } else if (bad_re.test(item_id)){ tag_name = item_id.replace(bad_prefix,''); tag_store = ignoredTags; reason = 'bad'; } else { return; } tag_store[tag_name] = $(item); setupTagDeleteEvents($(item).find('img'),tag_store,tag_name,reason,true) } ); }
|
}
|
};
|
var collectPickedTags = function(){ var good_prefix = 'interesting-tag-'; var bad_prefix = 'ignored-tag-'; var good_re = RegExp('^' + good_prefix); var bad_re = RegExp('^' + bad_prefix); interestingTags = {}; ignoredTags = {}; $('.deletable-tag').each( function(i,item){ item_id = $(item).attr('id') if (good_re.test(item_id)){ tag_name = item_id.replace(good_prefix,''); tag_store = interestingTags; reason = 'good'; } else if (bad_re.test(item_id)){ tag_name = item_id.replace(bad_prefix,''); tag_store = ignoredTags; reason = 'bad'; } else { return; } tag_store[tag_name] = $(item); setupTagDeleteEvents($(item).find('img'),tag_store,tag_name,reason,true) } ); }
|
for (var i = 0, len = arguments.length; i < arguments.length; i++) {
|
for (var i = 0, len = arguments.length; i < len; i++) {
|
Path.combine = function() { var paths = ""; for (var i = 0, len = arguments.length; i < arguments.length; i++) { if (paths.length > 0) paths += "/"; paths += S.rtrim(arguments[i], '/'); } return paths;};
|
function comm_del(ctrl, label) { var res = window.confirm(strings.get('entry_deleteConfirm', label));
|
function comm_del() { var item = this.href.replace(/^.*delete=(.+)$/, "$1"); var res = window.confirm(strings.get('entry_deleteConfirm', item));
|
function comm_del(ctrl, label) { var res = window.confirm(strings.get('entry_deleteConfirm', label)); if (res) { if (ctrl.href.lastIndexOf('?') >= 0) { ctrl.href=ctrl.href+'&conf=yes'; } else { ctrl.href=ctrl.href+'?conf=yes'; } } return res;}
|
if (ctrl.href.lastIndexOf('?') >= 0) { ctrl.href=ctrl.href+'&conf=yes';
|
if (this.href.lastIndexOf('?') >= 0) { this.href=this.href+'&conf=yes';
|
function comm_del(ctrl, label) { var res = window.confirm(strings.get('entry_deleteConfirm', label)); if (res) { if (ctrl.href.lastIndexOf('?') >= 0) { ctrl.href=ctrl.href+'&conf=yes'; } else { ctrl.href=ctrl.href+'?conf=yes'; } } return res;}
|
ctrl.href=ctrl.href+'?conf=yes';
|
this.href=this.href+'?conf=yes';
|
function comm_del(ctrl, label) { var res = window.confirm(strings.get('entry_deleteConfirm', label)); if (res) { if (ctrl.href.lastIndexOf('?') >= 0) { ctrl.href=ctrl.href+'&conf=yes'; } else { ctrl.href=ctrl.href+'?conf=yes'; } } return res;}
|
window[callback_finished_function()];
|
var json; try { json=jQuery.parseJSON(XMLHttpRequest.responseText); } catch(error) { json=null; } window[callback_finished_function(json)];
|
complete: function(XMLHttpRequest, textStatus) { if (XMLHttpRequest.params.containsKey('callback_finished') && XMLHttpRequest.params.get('callback_finished')!==null) { var callback_finished_function = XMLHttpRequest.params.get('callback_finished'); window[callback_finished_function()]; } }
|
complete: function() { if ( !options.autoHeight ) { options.toShow.css("height", ""); } options.toShow.css("width", originalWidth); options.toShow.css({overflow: overflow}); options.complete(); }
|
0};i[f]=(e=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+g;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){e=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
|
complete: function() { if ( !options.autoHeight ) { options.toShow.css("height", ""); } options.toShow.css("width", originalWidth); options.toShow.css({overflow: overflow}); options.complete(); }
|
function confirmDelete(item) {
|
function confirmDelete(item, type) {
|
function confirmDelete(item) { var r; if (item == undefined) { r = confirm("Are you sure to delete the album " + albumName + "?"); } else { r = confirm("Are you sure to delete the image " + item + "?"); } if (r == true) { removeImage(item); }}
|
if (item == undefined) { r = confirm("Are you sure to delete the album " + albumName + "?"); } else { r = confirm("Are you sure to delete the image " + item + "?");
|
if (type == "Group") { if (confirm("Are you sure to delete the user group " + groups[currentGroup][0] + "?")) { deleteGroup(); } } else if (type != "Role") { if (item == undefined) { r = confirm("Are you sure to delete the album " + albumName + "?"); } else { r = confirm("Are you sure to delete the image " + item + "?"); } if (r) { removeImage(item); }
|
function confirmDelete(item) { var r; if (item == undefined) { r = confirm("Are you sure to delete the album " + albumName + "?"); } else { r = confirm("Are you sure to delete the image " + item + "?"); } if (r == true) { removeImage(item); }}
|
if (r == true) { removeImage(item); }
|
function confirmDelete(item) { var r; if (item == undefined) { r = confirm("Are you sure to delete the album " + albumName + "?"); } else { r = confirm("Are you sure to delete the image " + item + "?"); } if (r == true) { removeImage(item); }}
|
|
canvasWidth = target.width(); canvasHeight = target.height(); target.html(""); if (target.css("position") == 'static') target.css("position", "relative");
|
canvasWidth = placeholder.width(); canvasHeight = placeholder.height(); placeholder.html(""); if (placeholder.css("position") == 'static') placeholder.css("position", "relative");
|
function constructCanvas() { function makeCanvas(width, height) { var c = document.createElement('canvas'); c.width = width; c.height = height; if ($.browser.msie) // excanvas hack c = window.G_vmlCanvasManager.initElement(c); return c; } canvasWidth = target.width(); canvasHeight = target.height(); target.html(""); // clear target if (target.css("position") == 'static') target.css("position", "relative"); // for positioning labels and overlay if (canvasWidth <= 0 || canvasHeight <= 0) throw "Invalid dimensions for plot, width = " + canvasWidth + ", height = " + canvasHeight; // the canvas canvas = $(makeCanvas(canvasWidth, canvasHeight)).appendTo(target).get(0); ctx = canvas.getContext("2d"); // overlay canvas for interactive features overlay = $(makeCanvas(canvasWidth, canvasHeight)).css({ position: 'absolute', left: 0, top: 0 }).appendTo(target).get(0); octx = overlay.getContext("2d"); // we include the canvas in the event holder too, because IE 7 // sometimes has trouble with the stacking order eventHolder = $([overlay, canvas]); // bind events if (options.selection.mode != null || options.crosshair.mode != null || options.grid.hoverable) { // FIXME: temp. work-around until jQuery bug 4398 is fixed eventHolder.each(function () { this.onmousemove = onMouseMove; }); if (options.selection.mode != null) eventHolder.mousedown(onMouseDown); } if (options.crosshair.mode != null) eventHolder.mouseout(onMouseOut); if (options.grid.clickable) eventHolder.click(onClick); }
|
canvas = $(makeCanvas(canvasWidth, canvasHeight)).appendTo(target).get(0);
|
canvas = $(makeCanvas(canvasWidth, canvasHeight)).appendTo(placeholder).get(0);
|
function constructCanvas() { function makeCanvas(width, height) { var c = document.createElement('canvas'); c.width = width; c.height = height; if ($.browser.msie) // excanvas hack c = window.G_vmlCanvasManager.initElement(c); return c; } canvasWidth = target.width(); canvasHeight = target.height(); target.html(""); // clear target if (target.css("position") == 'static') target.css("position", "relative"); // for positioning labels and overlay if (canvasWidth <= 0 || canvasHeight <= 0) throw "Invalid dimensions for plot, width = " + canvasWidth + ", height = " + canvasHeight; // the canvas canvas = $(makeCanvas(canvasWidth, canvasHeight)).appendTo(target).get(0); ctx = canvas.getContext("2d"); // overlay canvas for interactive features overlay = $(makeCanvas(canvasWidth, canvasHeight)).css({ position: 'absolute', left: 0, top: 0 }).appendTo(target).get(0); octx = overlay.getContext("2d"); // we include the canvas in the event holder too, because IE 7 // sometimes has trouble with the stacking order eventHolder = $([overlay, canvas]); // bind events if (options.selection.mode != null || options.crosshair.mode != null || options.grid.hoverable) { // FIXME: temp. work-around until jQuery bug 4398 is fixed eventHolder.each(function () { this.onmousemove = onMouseMove; }); if (options.selection.mode != null) eventHolder.mousedown(onMouseDown); } if (options.crosshair.mode != null) eventHolder.mouseout(onMouseOut); if (options.grid.clickable) eventHolder.click(onClick); }
|
overlay = $(makeCanvas(canvasWidth, canvasHeight)).css({ position: 'absolute', left: 0, top: 0 }).appendTo(target).get(0);
|
overlay = $(makeCanvas(canvasWidth, canvasHeight)).css({ position: 'absolute', left: 0, top: 0 }).appendTo(placeholder).get(0);
|
function constructCanvas() { function makeCanvas(width, height) { var c = document.createElement('canvas'); c.width = width; c.height = height; if ($.browser.msie) // excanvas hack c = window.G_vmlCanvasManager.initElement(c); return c; } canvasWidth = target.width(); canvasHeight = target.height(); target.html(""); // clear target if (target.css("position") == 'static') target.css("position", "relative"); // for positioning labels and overlay if (canvasWidth <= 0 || canvasHeight <= 0) throw "Invalid dimensions for plot, width = " + canvasWidth + ", height = " + canvasHeight; // the canvas canvas = $(makeCanvas(canvasWidth, canvasHeight)).appendTo(target).get(0); ctx = canvas.getContext("2d"); // overlay canvas for interactive features overlay = $(makeCanvas(canvasWidth, canvasHeight)).css({ position: 'absolute', left: 0, top: 0 }).appendTo(target).get(0); octx = overlay.getContext("2d"); // we include the canvas in the event holder too, because IE 7 // sometimes has trouble with the stacking order eventHolder = $([overlay, canvas]); // bind events if (options.selection.mode != null || options.crosshair.mode != null || options.grid.hoverable) { // FIXME: temp. work-around until jQuery bug 4398 is fixed eventHolder.each(function () { this.onmousemove = onMouseMove; }); if (options.selection.mode != null) eventHolder.mousedown(onMouseDown); } if (options.crosshair.mode != null) eventHolder.mouseout(onMouseOut); if (options.grid.clickable) eventHolder.click(onClick); }
|
if (!this.preferences.getExecutor()) { this.uiElementSets = new Array(this.historicUiElementSet); } else { this.uiElementSets = new Array(this.executorUiElementSet, this.historicUiElementSet); }
|
this.uiElementSets = new Array(this.executorUiElementSet, this.historicUiElementSet);
|
constructor: function(localiser, preferences) { this.localiser = localiser; this.preferences = preferences; this.uiUtil = new HudsonUiUtil(); this.executorUiElementSet = new HudsonUiElementSet(TYPE_EXECUTOR); this.historicUiElementSet = new HudsonUiElementSet(TYPE_HISTORIC); if (!this.preferences.getExecutor()) { this.uiElementSets = new Array(this.historicUiElementSet); } else { this.uiElementSets = new Array(this.executorUiElementSet, this.historicUiElementSet); } },
|
this.isAdmin = Ext.get("hasAdmin").getValue() == 'true'; this.isUser = Ext.get("hasUser").getValue() == 'true'; this.editable = this.isAdmin || this.isUser;
|
if((Ext.get("hasWritePermission")) && Ext.get("hasWritePermission").getValue() == 'true'){ this.editable = 'true'; }
|
constructor : function(id) { this.eeId = id; this.id = 'ee-details-panel'; Gemma.EEPanel.superclass.constructor.call(this); this.addEvents({ "ready" : true }); this.isAdmin = Ext.get("hasAdmin").getValue() == 'true'; this.isUser = Ext.get("hasUser").getValue() == 'true'; this.editable = this.isAdmin || this.isUser; /* * Load the EE information via an ajax call. */ ExpressionExperimentController.loadExpressionExperimentDetails(id, this.build.createDelegate(this)); },
|
"fail" : true,
|
constructor : function(config) { this.addEvents({ "done" : true, "background" : true }); // Copy configured listeners into *this* object so that the base class's // constructor will add them. if (config) { this.listeners = config.listeners; this.throbberEl = config.throbberEl; } // Call our superclass constructor to complete construction process. Gemma.WaitHandler.superclass.constructor.call(config) },
|
|
if (!Base._prototyping) {
|
if (!name_edwards_dean_Base._prototyping) {
|
var klass = proto.constructor = function() { if (!Base._prototyping) { if (this._constructing || this.constructor == klass) { // instantiation this._constructing = true; constructor.apply(this, arguments); delete this._constructing; } else if (arguments[0] != null) { // casting return (arguments[0].extend || extend).call(arguments[0], proto); } } };
|
this.throbberEl = config.throbberEl;
|
constructor : function(config) { this.addEvents({ "done" : true, "background" : true }); // Copy configured listeners into *this* object so that the base class's // constructor will add them. if (config) { this.listeners = config.listeners; } // Call our superclass constructor to complete construction process. Gemma.WaitHandler.superclass.constructor.call(config) },
|
|
if (!is.String(str)) return; for (var i = 0, len = tests.length; i < len; i++) { if (str.indexOf(tests[i]) != -1) return true; } return false;
|
if (!JSV.isString_(str)) return; for (var i = 0, len = tests.length; i < len; i++) { if (str.indexOf(tests[i]) != -1) return true; } return false;
|
JSV.containsAny_ = function(str, tests){ if (!is.String(str)) return; for (var i = 0, len = tests.length; i < len; i++) { if (str.indexOf(tests[i]) != -1) return true; } return false;};
|
if (onSuccessFn) onSuccessFn(r.getResult().Result);
|
if (onSuccessFn) onSuccessFn(r.Result);
|
containsKey: function(key, onSuccessFn, onErrorFn) { this.gateway.getFromService('ContainsKey', { Key: key || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Result); }, onErrorFn || RedisClient.errorFn); },
|
if (neg) { val = val * -1; }
|
convert: function (val) { if (Jx.type(val) === 'string') { val = parseFloat(val.replace(/^[^\d\.]*([\d., ]+).*/g, "$1").replace(new RegExp("[^\\\d" + this.options.separator + "]", "g"), '').replace(/,/, '.')) || 0; } return val || 0; },
|
|
} else { return null;
|
count : function () { if ($defined(this.data)) { return this.data.length; } else { return null; } },
|
|
return null;
|
count : function () { if ($defined(this.data)) { return this.data.length; } else { return null; } },
|
|
minlength: jQuery.format(' ' + $.i18n._('content minchars'))
|
minlength: $.format(' ' + $.i18n._('content minchars'))
|
var CPValidator = function(){ return { getQuestionFormRules : function(){ return { tags: { required: true, maxlength: 105 }, text: { required: true, minlength: 10 }, title: { required: true, minlength: 10 } }; }, getQuestionFormMessages: function(){ return { tags: { required: " " + $.i18n._('tags cannot be empty'), maxlength: " " + $.i18n._('tablimits info') }, text: { required: " " + $.i18n._('content cannot be empty'), minlength: jQuery.format(' ' + $.i18n._('content minchars')) }, title: { required: " " + $.i18n._('please enter title'), minlength: jQuery.format(' ' + $.i18n._('title minchars')) } }; } };}();
|
minlength: jQuery.format(' ' + $.i18n._('title minchars'))
|
minlength: $.format(' ' + $.i18n._('title minchars'))
|
var CPValidator = function(){ return { getQuestionFormRules : function(){ return { tags: { required: true, maxlength: 105 }, text: { required: true, minlength: 10 }, title: { required: true, minlength: 10 } }; }, getQuestionFormMessages: function(){ return { tags: { required: " " + $.i18n._('tags cannot be empty'), maxlength: " " + $.i18n._('tablimits info') }, text: { required: " " + $.i18n._('content cannot be empty'), minlength: jQuery.format(' ' + $.i18n._('content minchars')) }, title: { required: " " + $.i18n._('please enter title'), minlength: jQuery.format(' ' + $.i18n._('title minchars')) } }; } };}();
|
minlength: $.format(' ' + $.i18n._('content minchars'))
|
minlength: $.i18n._('content minchars').replace('{0}', 10)
|
var CPValidator = function(){ return { getQuestionFormRules : function(){ return { tags: { required: true, maxlength: 105 }, text: { required: true, minlength: 10 }, title: { required: true, minlength: 10 } }; }, getQuestionFormMessages: function(){ return { tags: { required: " " + $.i18n._('tags cannot be empty'), maxlength: " " + $.i18n._('tablimits info') }, text: { required: " " + $.i18n._('content cannot be empty'), minlength: $.format(' ' + $.i18n._('content minchars')) }, title: { required: " " + $.i18n._('please enter title'), minlength: $.format(' ' + $.i18n._('title minchars')) } }; } };}();
|
minlength: $.format(' ' + $.i18n._('title minchars'))
|
minlength: $.i18n._('title minchars').replace('{0}', 10)
|
var CPValidator = function(){ return { getQuestionFormRules : function(){ return { tags: { required: true, maxlength: 105 }, text: { required: true, minlength: 10 }, title: { required: true, minlength: 10 } }; }, getQuestionFormMessages: function(){ return { tags: { required: " " + $.i18n._('tags cannot be empty'), maxlength: " " + $.i18n._('tablimits info') }, text: { required: " " + $.i18n._('content cannot be empty'), minlength: $.format(' ' + $.i18n._('content minchars')) }, title: { required: " " + $.i18n._('please enter title'), minlength: $.format(' ' + $.i18n._('title minchars')) } }; } };}();
|
ExpressionExperimentSetController.create = function(p0, callback) { dwr.engine._execute(ExpressionExperimentSetController._path, 'ExpressionExperimentSetController', 'create', p0, callback);
|
GeneSetController.create = function(p0, callback) { dwr.engine._execute(GeneSetController._path, 'GeneSetController', 'create', p0, callback);
|
ExpressionExperimentSetController.create = function(p0, callback) { dwr.engine._execute(ExpressionExperimentSetController._path, 'ExpressionExperimentSetController', 'create', p0, callback);}
|
function createCollection() {
|
function createCollection(dialog) {
|
function createCollection() { var name = $('#create-collection-form input[name = name]').val(); var collection = $('#simple-search-form input[name = collection]').val(); var data = { action: 'create-collection', name: name, collection: collection }; $.ajax({ url: "operations.xql", dataType: "xml", data: data, success: function(data) { $("#collection-tree-tree").dynatree("getRoot").reload(); } });}
|
var data = { action: 'create-collection', name: name, collection: collection }; $.ajax({ url: "operations.xql", dataType: "xml", data: data, success: function(data) { $("#collection-tree-tree").dynatree("getRoot").reload(); }
|
var params = { action: 'create-collection', name: name, collection: collection }; $.get("operations.xql", params, function (data) { $("#collection-tree-tree").dynatree("getRoot").reload(); dialog.dialog("close");
|
function createCollection() { var name = $('#create-collection-form input[name = name]').val(); var collection = $('#simple-search-form input[name = collection]').val(); var data = { action: 'create-collection', name: name, collection: collection }; $.ajax({ url: "operations.xql", dataType: "xml", data: data, success: function(data) { $("#collection-tree-tree").dynatree("getRoot").reload(); } });}
|
if (!continuous) {
|
createColumns : function(factors) { var columns = [this.rowExpander, { id : "bm-column", header : "BioMaterial", dataIndex : "bmName", sortable : true, width : 120, tooltip : 'BioMaterial (sample) name/details' }, { id : "ba-column", header : "BioAssay", width : 150, dataIndex : "baName", sortable : true, tooltip : 'BioAssay name/details' }]; this.factorValueEditors = []; for (var i = 0; i < factors.length; i++) { var factor = factors[i]; var factorId = "factor" + factor.id; var editor; var continuous = factor.type == "Continuous"; if (continuous) { editor = new Ext.form.NumberField({ id : factorId + '-valueeditor', lazyInit : false, lazyRender : true, record : this.fvRecord, continuous : continuous, // might be useful. data : factor.values }); } else { /* * Create one factorValueCombo per factor. It contains all the factor values. */ editor = new Gemma.FactorValueCombo({ id : factorId + '-valueeditor', lazyInit : false, lazyRender : true, record : this.fvRecord, continuous : continuous, data : factor.values }); // console.log("Categorical"); } this.factorValueEditors[factorId] = editor; // factorValueValueObjects if (factor.values) { for (var j = 0; j < factor.values.length; j++) { fv = factor.values[j]; var fvs = fv.factorValue; // descriptive string formed on server side. this.fvMap["fv" + fv.id] = fvs; } } /* * Generate a function to render the factor values as displayed in the cells. At this point factorValue * contains all the possible values for this factor. */ var rend = null; if (!continuous) { rend = this.createValueRenderer(); } /* * Define the column for this particular factor. */ var ue = null; if (this.editable) { ue = editor; } // text used for header of the column. var label = factor.description ? factor.description : factor.name + (factor.name == factor.description || factor.description == "" ? "" : " (" + factor.description + ")"); columns.push({ id : factorId, header : label, dataIndex : factorId, renderer : rend, editor : ue, width : 120, tooltip : label, sortable : true, continuous : continuous }); } return columns; },
|
|
}
|
createColumns : function(factors) { var columns = [this.rowExpander, { id : "bm-column", header : "BioMaterial", dataIndex : "bmName", sortable : true, width : 120, tooltip : 'BioMaterial (sample) name/details' }, { id : "ba-column", header : "BioAssay", width : 150, dataIndex : "baName", sortable : true, tooltip : 'BioAssay name/details' }]; this.factorValueEditors = []; for (var i = 0; i < factors.length; i++) { var factor = factors[i]; var factorId = "factor" + factor.id; var editor; var continuous = factor.type == "Continuous"; if (continuous) { editor = new Ext.form.NumberField({ id : factorId + '-valueeditor', lazyInit : false, lazyRender : true, record : this.fvRecord, continuous : continuous, // might be useful. data : factor.values }); } else { /* * Create one factorValueCombo per factor. It contains all the factor values. */ editor = new Gemma.FactorValueCombo({ id : factorId + '-valueeditor', lazyInit : false, lazyRender : true, record : this.fvRecord, continuous : continuous, data : factor.values }); // console.log("Categorical"); } this.factorValueEditors[factorId] = editor; // factorValueValueObjects if (factor.values) { for (var j = 0; j < factor.values.length; j++) { fv = factor.values[j]; var fvs = fv.factorValue; // descriptive string formed on server side. this.fvMap["fv" + fv.id] = fvs; } } /* * Generate a function to render the factor values as displayed in the cells. At this point factorValue * contains all the possible values for this factor. */ var rend = null; if (!continuous) { rend = this.createValueRenderer(); } /* * Define the column for this particular factor. */ var ue = null; if (this.editable) { ue = editor; } // text used for header of the column. var label = factor.description ? factor.description : factor.name + (factor.name == factor.description || factor.description == "" ? "" : " (" + factor.description + ")"); columns.push({ id : factorId, header : label, dataIndex : factorId, renderer : rend, editor : ue, width : 120, tooltip : label, sortable : true, continuous : continuous }); } return columns; },
|
|
var continuous = factor.type == "Continuous";
|
var continuous = factor.type == "continuous";
|
createColumns : function(factors) { var columns = [this.rowExpander, { id : "bm-column", header : "BioMaterial", dataIndex : "bmName", sortable : true, width : 120, tooltip : 'BioMaterial (sample) name/details' }, { id : "ba-column", header : "BioAssay", width : 150, dataIndex : "baName", sortable : true, tooltip : 'BioAssay name/details' }]; this.factorValueEditors = []; for (var i = 0; i < factors.length; i++) { var factor = factors[i]; var factorId = "factor" + factor.id; var editor; var continuous = factor.type == "Continuous"; if (continuous) { editor = new Ext.form.NumberField({ id : factorId + '-valueeditor', lazyInit : false, lazyRender : true, record : this.fvRecord, continuous : continuous, // might be useful. data : factor.values }); } else { /* * Create one factorValueCombo per factor. It contains all the factor values. */ editor = new Gemma.FactorValueCombo({ id : factorId + '-valueeditor', lazyInit : false, lazyRender : true, record : this.fvRecord, continuous : continuous, data : factor.values }); // console.log("Categorical"); } this.factorValueEditors[factorId] = editor; // factorValueValueObjects if (factor.values) { for (var j = 0; j < factor.values.length; j++) { fv = factor.values[j]; var fvs = fv.factorValue; // descriptive string formed on server side. this.fvMap["fv" + fv.id] = fvs; } } /* * Generate a function to render the factor values as displayed in the cells. At this point factorValue * contains all the possible values for this factor. */ var rend = null; // if (!continuous) { rend = this.createValueRenderer(); // }/ /* * Define the column for this particular factor. */ var ue = null; if (this.editable) { ue = editor; } // text used for header of the column. var label = factor.description ? factor.description : factor.name + (factor.name == factor.description || factor.description == "" ? "" : " (" + factor.description + ")"); columns.push({ id : factorId, header : label, dataIndex : factorId, renderer : rend, editor : ue, width : 120, tooltip : label, sortable : true, continuous : continuous }); } return columns; },
|
SecurityController.createGeneGroup = function(p0, p1, callback) { dwr.engine._execute(SecurityController._path, 'SecurityController', 'createGeneGroup', p0, p1, callback);
|
GeneSetController.createGeneGroup = function(p0, p1, callback) { dwr.engine._execute(GeneSetController._path, 'GeneSetController', 'createGeneGroup', p0, p1, callback);
|
SecurityController.createGeneGroup = function(p0, p1, callback) { dwr.engine._execute(SecurityController._path, 'SecurityController', 'createGeneGroup', p0, p1, callback);}
|
container.css("display", "block"); container.ready(containerReady(container, mode));
|
if (mode == 'drag') { container.css("display", "block"); initDrag(container); } else if (mode == 'drag360') { container.css("display", "block"); initDrag360(container); } else if (mode == 'move') { container.css("display", "block"); initMove(container); }
|
function createPhotoNav(id, mode){ var container = jQuery("#" + id); container.css("display", "block"); container.ready(containerReady(container, mode));}
|
popup.setStyle('width', cell.getContentBoxSize().width);
|
createPopUp : function(cell) { var coords = cell.getCoordinates(), self = this, popup = null, innerWrapper = null, closeIcon = null, submit = null, cancel = null, template = Jx.Widget.prototype.processTemplate(this.options.popup.template, this.classes); popup = template.jxGridEditorPopup; popup.setStyle('width', cell.getContentBoxSize().width); innerWrapper = template.jxGridEditorPopupInnerWrapper; /** * COMMENT: first positioning is always in the top left of the grid.. * don't know why * manual positioning is needed..? */ popup.setStyles({ 'left' : coords.left+'px', 'top' : coords.top +'px' }); /* Jx.Widget.prototype.position(popup, cell, { horizontal: ['left left'], vertical: ['top top'] }); */ /** * COMMENT do we need this close Icon? */ if(this.options.popup.useCloseIcon) { closeIcon = new Element('a', { 'html' : '<img src="'+Jx.aPixel.src+'" alt="" title=""/>', 'class' : 'jxTabClose', // or something similar.. I choosed this because it's exactly what I needed 'styles' : { 'position' : 'absolute', 'right' : '0', 'top' : '-3px', 'z-index' : 1 }, 'events' : { 'click' : function() { self.deactivate(false); } } }).inject(innerWrapper); } this.popup.domObj = popup; this.popup.innerWrapper = innerWrapper; this.popup.closeIcon = closeIcon; this.setPopUpButtons(); this.activeCell.field.domObj.inject(this.popup.innerWrapper, 'top'); this.popup.domObj.inject(document.body); this.setPopUpStylesAfterRendering(); },
|
|
var selector = scope+' .jxGridCol'+idx+', '+scope + " .jxGridCol" + idx + " .jxGridCellContent";
|
var selector = scope+' .jxGridCol'+idx
|
createRules: function(styleSheet, scope) { this.columns.each(function(col, idx) { var selector = scope+' .jxGridCol'+idx+', '+scope + " .jxGridCol" + idx + " .jxGridCellContent"; var dec = ''; if (col.options.renderMode === 'fixed' || col.options.renderMode === 'expand') { //set the white-space to 'normal !important' dec = 'white-space: normal !important'; } col.rule = Jx.Styles.insertCssRule(selector, dec, styleSheet); col.rule.style.width = col.getWidth() + "px"; }, this); },
|
rule.style.height = this.getHeight(idx) + "px";
|
rule.style.height = this.heights[idx] + "px"; if (Browser.Engine.webkit) { selector += " th"; var thRule = Jx.Styles.insertCssRule(selector, '', styleSheet); thRule.style.height = this.heights[idx] + "px"; }
|
createRules: function(styleSheet, scope) { this.grid.gridTableBody.getChildren().each(function(row, idx) { var selector = scope+' .jxGridRow'+idx; var rule = Jx.Styles.insertCssRule(selector, '', styleSheet); this.rules.set('jxGridRow'+idx, rule); rule.style.height = this.getHeight(idx) + "px"; }, this); },
|
col.rule = Jx.Styles.insertCssRule(selector, '', styleSheet);
|
var dec = ''; if (col.options.renderMode === 'fixed' || col.options.renderMode === 'expand') { dec = 'white-space: normal !important'; } col.rule = Jx.Styles.insertCssRule(selector, dec, styleSheet);
|
createRules: function(styleSheet, scope) { this.columns.each(function(col, idx) { var selector = scope+' .jxGridCol'+idx+', '+scope + " .jxGridCol" + idx + " .jxGridCellContent"; col.rule = Jx.Styles.insertCssRule(selector, '', styleSheet); col.rule.style.width = col.getWidth() + "px"; }, this); },
|
var selector = scope+' .jxGridRow'+idx;
|
var selector = scope+' .jxGridRow'+idx + ', ' + scope + ' .jxGridRow'+idx+' .jxGridCellContent';
|
createRules: function(styleSheet, scope) { this.grid.gridTableBody.getChildren().each(function(row, idx) { var selector = scope+' .jxGridRow'+idx; var rule = Jx.Styles.insertCssRule(selector, '', styleSheet); this.rules.set('jxGridRow'+idx, rule); rule.style.height = this.heights[idx] + "px"; if (Browser.Engine.webkit) { selector += " th"; var thRule = Jx.Styles.insertCssRule(selector, '', styleSheet); thRule.style.height = this.heights[idx] + "px"; } }, this); },
|
this.rules.set('th_jxGridRow'+idx, thRule);
|
createRules: function(styleSheet, scope) { this.grid.gridTableBody.getChildren().each(function(row, idx) { var selector = scope+' .jxGridRow'+idx; var rule = Jx.Styles.insertCssRule(selector, '', styleSheet); this.rules.set('jxGridRow'+idx, rule); rule.style.height = this.heights[idx] + "px"; if (Browser.Engine.webkit) { selector += " th"; var thRule = Jx.Styles.insertCssRule(selector, '', styleSheet); thRule.style.height = this.heights[idx] + "px"; } }, this); },
|
|
console.log('not present')
|
,createSlider:function() { // if ( this.sliderCreated ) return; //console.log(' createSlider'); if ($('#' + slider_id).length > 0 && $('#' + table_id).length > 0) return; var offset = this.getSliderLength(); var slider_id= this.playerId + '_toolbar_slider'; var table_id= this.playerId + '_toolbar_slider_tb'; var progress = "<table id='" + table_id + "' border=0 style='margin-top:5px;height:10px;cursor:pointer;display:inline' cellpadding=0 cellspacing=0 ><tr ><td width='0' class='x-vlc-slider'></td><td class='x-vlc-slider-thumb'></td><td width='" + (offset) + "' class='x-vlc-slider'></td></tr></table>"; if ($('#' + slider_id).length == 0) { // div not preset exists console.log('not present') var tgt = $('#' + this.playerId + '_toolbar' ); var slider = "<div id='" + slider_id + "' width='" + (offset + 4)+"' style='text-align:center;float:left;height:10px'>"; //slider += progress slider += "</div>"; tgt.append(slider); $('#' + slider_id).bind('click', {instance:this}, this.onSliderClick); } if ($('#' + table_id).length == 0) { console.log('present') var slider = $('#' + slider_id ); slider.html(''); slider.append(progress); } this.sliderCreated = true; }
|
|
console.log('present')
|
,createSlider:function() { // if ( this.sliderCreated ) return; //console.log(' createSlider'); if ($('#' + slider_id).length > 0 && $('#' + table_id).length > 0) return; var offset = this.getSliderLength(); var slider_id= this.playerId + '_toolbar_slider'; var table_id= this.playerId + '_toolbar_slider_tb'; var progress = "<table id='" + table_id + "' border=0 style='margin-top:5px;height:10px;cursor:pointer;display:inline' cellpadding=0 cellspacing=0 ><tr ><td width='0' class='x-vlc-slider'></td><td class='x-vlc-slider-thumb'></td><td width='" + (offset) + "' class='x-vlc-slider'></td></tr></table>"; if ($('#' + slider_id).length == 0) { // div not preset exists console.log('not present') var tgt = $('#' + this.playerId + '_toolbar' ); var slider = "<div id='" + slider_id + "' width='" + (offset + 4)+"' style='text-align:center;float:left;height:10px'>"; //slider += progress slider += "</div>"; tgt.append(slider); $('#' + slider_id).bind('click', {instance:this}, this.onSliderClick); } if ($('#' + table_id).length == 0) { console.log('present') var slider = $('#' + slider_id ); slider.html(''); slider.append(progress); } this.sliderCreated = true; }
|
|
if (onSuccessFn) onSuccessFn(r.getResult().Key);
|
if (onSuccessFn) onSuccessFn(r.Key);
|
createSubscription: function(channels, patterns, timeOut, onSuccessFn, onErrorFn) { this.gateway.postToService('CreateSubscription', { Channels: channels || null, Patterns: patterns || null, TimeOut: timeOut || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Key); }, onErrorFn || RedisClient.errorFn); },
|
c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start; this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=
|
(function($){var ver="2.86";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){if($.fn.cycle.debug){log(s);}}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(opts2.currSlide,opts2.nextSlide,opts2,!opts2.rev);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts2.rev);},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;checkInstantResume(false,arg2,cont);return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,1);}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,!opts.rev);});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=1;opts.startingSlide=opts.randomMap[1];}else{if(opts.startingSlide>=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z=first?i>=first?els.length-(i-first):first-i:els.length-i;$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth||e.width||$e.attr("width");}if(!h){h=e.offsetHeight||e.height||$e.attr("height");}maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}var buffer=opts.fx=="shuffle"?500:250;while((opts.timeout-opts.speed)<buffer){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length>1){opts.after[1].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?-1:1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?1:-1);});}if(opts.pager||opts.pagerAnchorBuilder){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknown transition: ",fx);opts.fxs.splice(i,1);i--;}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(opts.fx=="all"){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}debug("randomized fx sequence: ",opts.fxs);}return true;}function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++;}els[prepend?"unshift":"push"](s);if(opts.els){opts.els[prepend?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[prepend?"prependTo":"appendTo"](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager||opts.pagerAnchorBuilder){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}};}$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){debug("manualTrump in go(), stopping active transition");$(els).stop(true,true);opts.busy=false;}if(opts.busy){debug("transition active, ignoring new tx request");return;}var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual){return;}if(!manual&&!p.cyclePause&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return;}var changed=false;if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){changed=true;var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};debug("tx firing; currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}}}if(changed||opts.nextSlide==opts.currSlide){opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide){opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}}else{var roll=(opts.nextSlide+1)==els.length;opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}if(changed&&opts.pager){opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(curr,next,opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev);},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn(curr,next,opts,fwd);while((t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,opts.rev?-1:1);};$.fn.cycle.prev=function(opts){advance(opts,opts.rev?1:-1);};function advance(opts,val){var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb)){cb(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,val>=0);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a='<a href="#">'+(i+1)+"</a>";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}else{$a.appendTo($p);}}opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb)){cb(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlide<i);});if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble){$a.bind("click.cycle",function(){return false;});}if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l;}else{hops=c<l?l-c:l+opts.slideCount-c;}return hops;};function clearTypeFix($slides){debug("applying clearType background-color hack");function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s;}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();opts.cssBefore.opacity=1;opts.cssBefore.display="block";if(w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb);};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter){$l.css(opts.cssAfter);}if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!$.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null};})(jQuery);$(document).ready(function(){
|
c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=
|
title : "Select the factor(s) to use",
|
title : "Select up to 2 factor(s) to use",
|
var customize = function(analysisInfo) { var factors = analysisInfo.factors; var proposedAnalysis = analysisInfo.type; var canDoInteractions = (proposedAnalysis == 'TWIA') || factors.length > 2; /* * DifferentialExpressionAnalysisSetupWindow - to be refactored. */ var deasw = new Ext.Window({ modal : true, stateful : false, resizable : false, autoHeight : true, plain : true, title : "Differential analysis settings", items : [{ xtype : 'form', autoHeight : true, items : [{ xtype : 'fieldset', title : "Select the factor(s) to use", autoHeight : true, labelWidth : 200, id : 'diff-ex-analysis-customize-factors' }, { xtype : 'fieldset', labelWidth : 200, autoHeight : true, hidden : !canDoInteractions, items : [{ xtype : 'checkbox', id : 'diff-ex-analysis-customize-include-interactions-checkbox', fieldLabel : 'Include interactions' }] }] }], buttons : [{ text : 'Proceed', id : 'diff-ex-customize-proceed-button', disabled : false, scope : this, handler : function(btn, text) { var includeInteractions = Ext .getCmp('diff-ex-analysis-customize-include-interactions-checkbox').getValue(); /* * Get the factors the user checked. See checkbox creation code below. */ var factorsToUseIds = []; if (factors) { for (var i = 0; i < factors.length; i++) { var f = factors[i]; if (!f.name) { continue; } var checked = Ext.getCmp(f.id + '-factor-checkbox').getValue(); if (checked) { factorsToUseIds.push(f.id); } } } /* * Pass back the factors to be used, and the choice of whether interactions are to be * used. */ var callParams = []; callParams.push(id); callParams.push(factorsToUseIds); callParams.push(includeInteractions); Ext.getBody().mask(); callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler(); k.handleWait(data, true); deasw.relayEvents(k, ['done']); Ext.getBody().unmask(); k.on('done', function(payload) { this.fireEvent('differential', payload) }); }.createDelegate(this), errorHandler : function(error) { Ext.Msg.alert("Diff. Analysis failed", error); Ext.getBody().unmask(); }.createDelegate(this) }); DifferentialExpressionAnalysisController.runCustom.apply(this, callParams); deasw.close(); } }, { text : 'Cancel', handler : function() { deasw.close(); } }] }); deasw.doLayout(); /* * Create the checkboxes for user choice of factors. */ if (factors) { for (var i = 0; i < factors.length; i++) { var f = factors[i]; if (!f.name) { continue; } Ext.getCmp('diff-ex-analysis-customize-factors').add(new Ext.form.Checkbox({ fieldLabel : f.name, labelWidth : 180, id : f.id + '-factor-checkbox', tooltip : f.name })); } } deasw.doLayout(); deasw.show(); };
|
fieldLabel : 'Include interactions'
|
fieldLabel : 'Include interactions if possible'
|
var customize = function(analysisInfo) { var factors = analysisInfo.factors; var proposedAnalysis = analysisInfo.type; var canDoInteractions = (proposedAnalysis == 'TWIA') || factors.length > 2; /* * DifferentialExpressionAnalysisSetupWindow - to be refactored. */ var deasw = new Ext.Window({ modal : true, stateful : false, resizable : false, autoHeight : true, plain : true, title : "Differential analysis settings", items : [{ xtype : 'form', autoHeight : true, items : [{ xtype : 'fieldset', title : "Select the factor(s) to use", autoHeight : true, labelWidth : 200, id : 'diff-ex-analysis-customize-factors' }, { xtype : 'fieldset', labelWidth : 200, autoHeight : true, hidden : !canDoInteractions, items : [{ xtype : 'checkbox', id : 'diff-ex-analysis-customize-include-interactions-checkbox', fieldLabel : 'Include interactions' }] }] }], buttons : [{ text : 'Proceed', id : 'diff-ex-customize-proceed-button', disabled : false, scope : this, handler : function(btn, text) { var includeInteractions = Ext .getCmp('diff-ex-analysis-customize-include-interactions-checkbox').getValue(); /* * Get the factors the user checked. See checkbox creation code below. */ var factorsToUseIds = []; if (factors) { for (var i = 0; i < factors.length; i++) { var f = factors[i]; if (!f.name) { continue; } var checked = Ext.getCmp(f.id + '-factor-checkbox').getValue(); if (checked) { factorsToUseIds.push(f.id); } } } /* * Pass back the factors to be used, and the choice of whether interactions are to be * used. */ var callParams = []; callParams.push(id); callParams.push(factorsToUseIds); callParams.push(includeInteractions); Ext.getBody().mask(); callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler(); k.handleWait(data, true); deasw.relayEvents(k, ['done']); Ext.getBody().unmask(); k.on('done', function(payload) { this.fireEvent('differential', payload) }); }.createDelegate(this), errorHandler : function(error) { Ext.Msg.alert("Diff. Analysis failed", error); Ext.getBody().unmask(); }.createDelegate(this) }); DifferentialExpressionAnalysisController.runCustom.apply(this, callParams); deasw.close(); } }, { text : 'Cancel', handler : function() { deasw.close(); } }] }); deasw.doLayout(); /* * Create the checkboxes for user choice of factors. */ if (factors) { for (var i = 0; i < factors.length; i++) { var f = factors[i]; if (!f.name) { continue; } Ext.getCmp('diff-ex-analysis-customize-factors').add(new Ext.form.Checkbox({ fieldLabel : f.name, labelWidth : 180, id : f.id + '-factor-checkbox', tooltip : f.name })); } } deasw.doLayout(); deasw.show(); };
|
} if (factorsToUseIds.length < 1 || factorsToUseIds.length > 2) { Ext.Msg.alert("Please pick 1 or 2 factors."); return;
|
var customize = function(analysisInfo) { var factors = analysisInfo.factors; var proposedAnalysis = analysisInfo.type; var canDoInteractions = (proposedAnalysis == 'TWIA') || factors.length > 2; /* * DifferentialExpressionAnalysisSetupWindow - to be refactored. */ var deasw = new Ext.Window({ modal : true, stateful : false, resizable : false, autoHeight : true, plain : true, title : "Differential analysis settings", items : [{ xtype : 'form', autoHeight : true, items : [{ xtype : 'fieldset', title : "Select the factor(s) to use", autoHeight : true, labelWidth : 200, id : 'diff-ex-analysis-customize-factors' }, { xtype : 'fieldset', labelWidth : 200, autoHeight : true, hidden : !canDoInteractions, items : [{ xtype : 'checkbox', id : 'diff-ex-analysis-customize-include-interactions-checkbox', fieldLabel : 'Include interactions' }] }] }], buttons : [{ text : 'Proceed', id : 'diff-ex-customize-proceed-button', disabled : false, scope : this, handler : function(btn, text) { var includeInteractions = Ext .getCmp('diff-ex-analysis-customize-include-interactions-checkbox').getValue(); /* * Get the factors the user checked. See checkbox creation code below. */ var factorsToUseIds = []; if (factors) { for (var i = 0; i < factors.length; i++) { var f = factors[i]; if (!f.name) { continue; } var checked = Ext.getCmp(f.id + '-factor-checkbox').getValue(); if (checked) { factorsToUseIds.push(f.id); } } } /* * Pass back the factors to be used, and the choice of whether interactions are to be * used. */ var callParams = []; callParams.push(id); callParams.push(factorsToUseIds); callParams.push(includeInteractions); Ext.getBody().mask(); callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler(); k.handleWait(data, true); deasw.relayEvents(k, ['done']); Ext.getBody().unmask(); k.on('done', function(payload) { this.fireEvent('differential', payload) }); }.createDelegate(this), errorHandler : function(error) { Ext.Msg.alert("Diff. Analysis failed", error); Ext.getBody().unmask(); }.createDelegate(this) }); DifferentialExpressionAnalysisController.runCustom.apply(this, callParams); deasw.close(); } }, { text : 'Cancel', handler : function() { deasw.close(); } }] }); deasw.doLayout(); /* * Create the checkboxes for user choice of factors. */ if (factors) { for (var i = 0; i < factors.length; i++) { var f = factors[i]; if (!f.name) { continue; } Ext.getCmp('diff-ex-analysis-customize-factors').add(new Ext.form.Checkbox({ fieldLabel : f.name, labelWidth : 180, id : f.id + '-factor-checkbox', tooltip : f.name })); } } deasw.doLayout(); deasw.show(); };
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.