rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
jq('form[name=tabbedview_form]').append(data);
var table = jq('form[name=tabbedview_form] table.listing'); var ddata = jq(data); ddata.find('#above_visibles .hidden_items').insertBefore(table); ddata.find('#beneath_visibles .hidden_items').insertAfter(table);
success: function(data) { jq('.hidden_items').remove(); jq('form[name=tabbedview_form]').append(data); }
success: function(dtnode) { $.get("script.xql", {action:"showCollectionResources", collection: "/db"}, function(data){ $("#resourcesTable").html(data); renderToDataTable(); }, "text"); }
success: function(data) { response(data); }});
success: function(dtnode) { $.get("script.xql", {action:"showCollectionResources", collection: "/db"}, function(data){ $("#resourcesTable").html(data); renderToDataTable(); }, "text"); }
if (OperationResult.isResponseSuccessful(response.ResponseStatus, onError))
var status = JsvServiceClient.parseResponseStatus_(response.ResponseStatus); if (status.isSuccess)
success: function(response) { var endCallTime = new Date(); var callDuration = endCallTime.getTime() - startCallTime.getTime(); if (!response) { if (onSuccess) onSuccess(null); return; } if (OperationResult.isResponseSuccessful(response.ResponseStatus, onError)) { if (onSuccess) onSuccess(new ...
if (onSuccess) onSuccess(new ResultEvent(response));
if (onSuccess) onSuccess(response);
success: function(response) { var endCallTime = new Date(); var callDuration = endCallTime.getTime() - startCallTime.getTime(); if (!response) { if (onSuccess) onSuccess(null); return; } if (OperationResult.isResponseSuccessful(response.ResponseStatus, onError)) { if (onSuccess) onSuccess(new ...
error: OperationResult.Parse(response.ResponseStatus), durationMs: callDuration
error: status, durationMs: callDuration
success: function(response) { var endCallTime = new Date(); var callDuration = endCallTime.getTime() - startCallTime.getTime(); if (!response) { if (onSuccess) onSuccess(null); return; } if (OperationResult.isResponseSuccessful(response.ResponseStatus, onError)) { if (onSuccess) onSuccess(new ...
success : function(data) { if (state.byMetricCache == null) state.byMetricCache = new Array(); if (state.byResourceCache == null) state.byResourceCache = new Array(); $.each(data, function(i, val) { if (state.byMetricCache[metricId] == null) state.byMetricCache[metricId] = new Array(); state.byMetricCache[metricId].pu...
success: function (data) { ver = data;
success : function(data) { if (state.byMetricCache == null) state.byMetricCache = new Array(); if (state.byResourceCache == null) state.byResourceCache = new Array(); $.each(data, function(i, val) { if (state.byMetricCache[metricId] == null) state...
$(el).after($div).appendTo($div);
$.fn.media.swf = function(el, opts) { if (!window.SWFObject && !window.swfobject) { // roll our own if (opts.flashvars) { var a = []; for (var f in opts.flashvars) a.push(f + '=' + opts.flashvars[f]); if (!opts.params) opts.params = {}; opts.params.flashvars = a.join('&'); } return generate(el, opts, 'fl...
var id = el.id ? (' id="'+el.id+'"') : ''; $div = $('<div' + id + cls + '>'); $(el).after($div).appendTo($div);
$.fn.media.swf = function(el, opts) { if (!window.SWFObject && !window.swfobject) { // roll our own if (opts.flashvars) { var a = []; for (var f in opts.flashvars) a.push(f + '=' + opts.flashvars[f]); if (!opts.params) opts.params = {}; opts.params.flashvars = a.join('&'); } return generate(el, opts, 'fl...
output.value = "No errors found (KoLmafia syntax checker v1.0)";
output.value = "No errors found (KoLmafia syntax checker v1.1)";
function syntaxcheck(){ timeout = false; output.value = ""; var ln = 1; var stack = []; var lines = input.value.match(/\x0D\x0A|\x0D|\x0A|;|#?[^\x0D\x0A;#]*/g); for (ix in lines) { var cmd = lines[ix]; var c0 = cmd.charAt(0); cmd = trim(cmd); if (c0 == '\x0D' || c0 == '\x0A') { ++ln; continue; } if (c0 == ';'...
n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="<a href='#'></a>";if(g.firstChi...
"")+" ";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=/(-...
n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="<a href='#'></a>";if(g.firstChi...
tagger : function(id, taxonId, canEdit) {
tagger : function(id, taxonId, canEdit, isValidated) {
tagger : function(id, taxonId, canEdit) { var annotator = new Ext.Panel({ id : 'annotator-wrap', collapsible : false, stateful : false, bodyBorder : false, layout : 'fit', items : [new Gemma.AnnotationGrid({ id : 'annotator-grid', readMethod : ExpressionExperimentController.getAn...
title : "Tags",
tagger : function(id, taxonId) { var annotator = new Ext.Panel({ id : 'annotator-wrap', title : "Tags", collapsible : false, stateful : false, bodyBorder : false, width : 600, height : 200, layout : 'fit', items : [new Gemma.AnnotationGrid({ id : 'annotator-grid', re...
width : 600, height : 200,
tagger : function(id, taxonId) { var annotator = new Ext.Panel({ id : 'annotator-wrap', title : "Tags", collapsible : false, stateful : false, bodyBorder : false, width : 600, height : 200, layout : 'fit', items : [new Gemma.AnnotationGrid({ id : 'annotator-grid', re...
width : 600, height : 200,
tagger : function(id, taxonId) { var annotator = new Ext.Panel({ id : 'annotator-wrap', title : "Tags", collapsible : false, stateful : false, bodyBorder : false, width : 600, height : 200, layout : 'fit', items : [new Gemma.AnnotationGrid({ id : 'annotator-grid', re...
modal : true,
modal : false,
tagger : function(id, taxonId) { var annotator = new Ext.Panel({ id : 'annotator-wrap', title : "Tags", collapsible : false, stateful : false, bodyBorder : false, width : 600, height : 200, layout : 'fit', items : [new Gemma.AnnotationGrid({ id : 'annotator-grid', re...
tagger : function(id) {
tagger : function(id, taxonId) {
tagger : function(id) { var annotator = new Ext.Panel({ id : 'annotator-wrap', title : "Tags", collapsible : false, stateful : false, bodyBorder : false, width : 600, height : 200, layout : 'fit', items : [new Gemma.AnnotationGrid({ id : 'annotator-grid', readMethod :...
taxonId : taxonId,
tagger : function(id) { var annotator = new Ext.Panel({ id : 'annotator-wrap', title : "Tags", collapsible : false, stateful : false, bodyBorder : false, width : 600, height : 200, layout : 'fit', items : [new Gemma.AnnotationGrid({ id : 'annotator-grid', readMethod :...
tagger : function(id, taxonId) {
tagger : function(id, taxonId, canEdit) {
tagger : function(id, taxonId) { var annotator = new Ext.Panel({ id : 'annotator-wrap', collapsible : false, stateful : false, bodyBorder : false, layout : 'fit', items : [new Gemma.AnnotationGrid({ id : 'annotator-grid', readMethod : ExpressionExperimentController.getAnnotation,...
editable : this.editable,
editable : canEdit,
tagger : function(id, taxonId) { var annotator = new Ext.Panel({ id : 'annotator-wrap', collapsible : false, stateful : false, bodyBorder : false, layout : 'fit', items : [new Gemma.AnnotationGrid({ id : 'annotator-grid', readMethod : ExpressionExperimentController.getAnnotation,...
writeMethod : OntologyService.saveExpressionExperimentStatement, removeMethod : OntologyService.removeExpressionExperimentStatement,
writeMethod : AnnotationController.createExperimentTag, removeMethod : AnnotationController.removeExperimentTag,
tagger : function(id, taxonId) { var annotator = new Ext.Panel({ id : 'annotator-wrap', collapsible : false, stateful : false, bodyBorder : false, layout : 'fit', items : [new Gemma.AnnotationGrid({ id : 'annotator-grid', readMethod : ExpressionExperimentController.getAnnotation,...
SystemMonitorController.getHibernateStatus(handleSuccess); SystemMonitorController.getCacheStatus(handleCacheData); SystemMonitorController.getSpaceStatus(handleSpaceStatus); }
SystemMonitorController.getHibernateStatus(handleSuccess); if (!pauseBx.getValue()) { SystemMonitorController.getCacheStatus(handleCacheData); } SystemMonitorController.getSpaceStatus(handleSpaceStatus); }
function task() { SystemMonitorController.getHibernateStatus(handleSuccess); SystemMonitorController.getCacheStatus(handleCacheData); SystemMonitorController.getSpaceStatus(handleSpaceStatus);}
if (all[i].data.taxon.id != taxon.id) {
if (all[i].get('taxonId') != taxon.id) {
taxonChanged : function(taxon) { if (!taxon || (this.geneCombo.getTaxon() && this.geneCombo.getTaxon().id === taxon.id)) { return; } this.geneCombo.setTaxon(taxon); // clear any genes. var all = this.getStore().getRange(); for (var i = 0; i < all.length; ++i) { if (all[i].data.taxon.id != t...
"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};P...
true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:...
"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};P...
var input = $(that);
jQuery.fn.textPlaceholder = function (color) { color = color || '#AAA'; return this.each(function(){ var that = this; if (that.placeholder && 'placeholder' in document.createElement(that.tagName)) return; var default_color = that.style.color; var placeholder = that.getAttribute('placeholder'); if (that.value === '...
if (this.value == placeholder) {
if (input.data('placeholder-visible')) { input.data('placeholder-visible', false);
jQuery.fn.textPlaceholder = function (color) { color = color || '#AAA'; return this.each(function(){ var that = this; if (that.placeholder && 'placeholder' in document.createElement(that.tagName)) return; var default_color = that.style.color; var placeholder = that.getAttribute('placeholder'); if (that.value === '...
if (that.value == placeholder) {
if (input.data('placeholder-visible')) {
jQuery.fn.textPlaceholder = function (color) { color = color || '#AAA'; return this.each(function(){ var that = this; if (that.placeholder && 'placeholder' in document.createElement(that.tagName)) return; var default_color = that.style.color; var placeholder = that.getAttribute('placeholder'); if (that.value === '...
return String(s).replace(/&|<|>|\n|\"\u00A0/g, this._textToHtml);
return String(s).replace(/&|<|>|\n|\"|\u00A0/g, this._textToHtml);
textToHtml: function (s) { return String(s).replace(/&|<|>|\n|\"\u00A0/g, this._textToHtml); },
eval(settings.advanced_timeoutFn);
eval(settings.advanced_timeoutfn);
settings.opts.timeoutFn = function(currSlideElement, nextSlideElement, options, forwardFlag) { eval(settings.advanced_timeoutFn); }
: '"' + text.replace('"', '""') + '"';
: '"' + text.replace(/"/g, '""') + '"';
JSV.toCsvField = function(text){ return !text || JSV.containsAny_(JSV.ESCAPE_CHARS) ? text : '"' + text.replace('"', '""') + '"';}
else{if(this.nav['isOpera']){eAs[id]["textarea"].setSelectionRange(0,0);}try{eAs[id]["textarea"].setSelectionRange(selStart,selEnd);}catch(e){};}eAs[id]["textarea"].scrollTop=scrollTop;eAs[id]["textarea"].scrollLeft=scrollLeft;frame.editArea.execCommand("toggle_off");}},toggle_on:function(id){if(window.frames["frame_"+...
else{if(this.isOpera&&this.isOpera < 9.6){t.setSelectionRange(0,0);}try{t.setSelectionRange(selStart,selEnd);}catch(e){};}t.scrollTop=scrollTop;t.scrollLeft=scrollLeft;f.editArea.execCommand("toggle_off");}},toggle_on:function(id){var fs=window.frames,f,t,selStart=0,selEnd=0,scrollTop=0,scrollLeft=0,curPos,elem;if(fs["...
else{if(this.nav['isOpera']){eAs[id]["textarea"].setSelectionRange(0,0);}try{eAs[id]["textarea"].setSelectionRange(selStart,selEnd);}catch(e){};}eAs[id]["textarea"].scrollTop=scrollTop;eAs[id]["textarea"].scrollLeft=scrollLeft;frame.editArea.execCommand("toggle_off");}},toggle_on:function(id){if(window.frames["frame_"+...
return false;
this.toggle_show = function (ctrl, caller) { var cnt = document.getElementById(ctrl); var block_hidden = false; if (! cnt.style.display && caller.innerHTML == "(+)") { block_hidden = true; } if (cnt.style.display == "none" || block_hidden) { cnt.style.display = "inline"; caller.innerHTML = "(-)"; } els...
.keyup(autocomplete) .keypress(move)
.bind('keyup.ac_action', autocomplete) .bind('focus.ac_action', autocomplete) .bind('keypress.ac_action', move)
function triggerAc(ac) { if (ac) { jQuery.ppa.attrs .keyup(autocomplete) .keypress(move) .addClass('ac_field'); } else { jQuery.ppa.attrs .removeClass('ac_field') .unbind('keyup',autocomplete) .unbind('keypress',move); }}
.unbind('keyup',autocomplete) .unbind('keypress',move);
.unbind('.ac_action');
function triggerAc(ac) { if (ac) { jQuery.ppa.attrs .keyup(autocomplete) .keypress(move) .addClass('ac_field'); } else { jQuery.ppa.attrs .removeClass('ac_field') .unbind('keyup',autocomplete) .unbind('keypress',move); }}
target.trigger(eventname, [ pos, item ]);
placeholder.trigger(eventname, [ pos, item ]);
function triggerClickHoverEvent(eventname, event, seriesFilter) { var offset = eventHolder.offset(), pos = { pageX: event.pageX, pageY: event.pageY }, canvasX = event.pageX - offset.left - plotOffset.left, canvasY = event.pageY - offset.top - plotOffset.to...
if (currentString.search(/^\s*((public|protected|private)\s*\S*|(signals|Q_SIGNALS)\s*):/) == -1)
if (currentString.search(/^\s*((public|protected|private)\s*(slots|Q_SLOTS)?|(signals|Q_SIGNALS)\s*):\s*$/) == -1)
function tryAccessModifiers(line){ if (cfgAccessModifiers < 0) return -1; var currentString = document.line(line); if (currentString.search(/^\s*((public|protected|private)\s*\S*|(signals|Q_SIGNALS)\s*):/) == -1) return -1; var cursor = document.anchor(line, 0, '{'); if (!cursor.isValid()) ...
indentation = document.firstVirtualColumn(currentLine); if (indentation == 0)
var currentIndentation = document.firstVirtualColumn(currentLine); if (currentIndentation == 0)
function tryCondition(line){ var currentLine = document.prevNonEmptyLine(line - 1); if (currentLine < 0) return -1; // found non-empty line var currentString = document.line(currentLine); var lastPos = document.lastColumn(currentLine); var lastChar = currentString.charAt(lastPos); var indent...
if (firstPosVirtual < indentation) {
if (firstPosVirtual < currentIndentation) {
function tryCondition(line){ var currentLine = document.prevNonEmptyLine(line - 1); if (currentLine < 0) return -1; // found non-empty line var currentString = document.line(currentLine); var lastPos = document.lastColumn(currentLine); var lastChar = currentString.charAt(lastPos); var indent...
if ( expectedIndentation < actualIndentation ) {
if ( expectedIndentation <= actualIndentation ) {
function tryMatchedAnchor(line){ var char = document.firstChar(line); if ( char != '}' && char != ')' && char != ']' ) { return -1; } // we pressed enter in e.g. () var closingAnchor = document.anchor(line, 0, document.firstChar(line)); if (!closingAnchor.isValid()) { // nothing found, c...
} else if ( expectedIndentation == actualIndentation ) { indentation = document.firstVirtualColumn(closingAnchor.line);
function tryMatchedAnchor(line){ var char = document.firstChar(line); if ( char != '}' && char != ')' && char != ']' ) { return -1; } // we pressed enter in e.g. () var closingAnchor = document.anchor(line, 0, document.firstChar(line)); if (!closingAnchor.isValid()) { // nothing found, c...
function tryMatchedAnchor(line)
function tryMatchedAnchor(line, alignOnly)
function tryMatchedAnchor(line){ var char = document.firstChar(line); if ( char != '}' && char != ')' && char != ']' ) { return -1; } // we pressed enter in e.g. () var closingAnchor = document.anchor(line, 0, document.firstChar(line)); if (!closingAnchor.isValid()) { // nothing found, c...
} if (alignOnly) { return document.firstVirtualColumn(closingAnchor.line);
function tryMatchedAnchor(line){ var char = document.firstChar(line); if ( char != '}' && char != ')' && char != ']' ) { return -1; } // we pressed enter in e.g. () var closingAnchor = document.anchor(line, 0, document.firstChar(line)); if (!closingAnchor.isValid()) { // nothing found, c...
document.indent(new Range(line + 1, 0, line + 1, 1), indentation / 2);
document.indent(new Range(line + 1, 0, line + 1, 1), indentation / gIndentWidth);
function tryMatchedAnchor(line){ var closingAnchor = document.anchor(line, 0, document.firstChar(line)); if (!closingAnchor.isValid()) { // nothing found, continue with other cases return -1; } // otherwise it's found, increase indentation and place closing anchor on the next line var inden...
this.log("t.s.m");
tryToSetMaster: function() { this.log("t.s.m"); var optionIndex = null; var active = this.getActive(); if (active.length) { optionIndex = active.attr("name"); //sBox pointer index } if (optionIndex == null || optionIndex == "" || optionIndex < 0) { this.log("no active, master not set."); if (this.options.s...
this.log("no active, master not set.");
tryToSetMaster: function() { this.log("t.s.m"); var optionIndex = null; var active = this.getActive(); if (active.length) { optionIndex = active.attr("name"); //sBox pointer index } if (optionIndex == null || optionIndex == "" || optionIndex < 0) { this.log("no active, master not set."); if (this.options.s...
this.log("Not freetext and no active set; revert.");
tryToSetMaster: function() { this.log("t.s.m"); var optionIndex = null; var active = this.getActive(); if (active.length) { optionIndex = active.attr("name"); //sBox pointer index } if (optionIndex == null || optionIndex == "" || optionIndex < 0) { this.log("no active, master not set."); if (this.options.s...
this.log("master selectbox set to: " + option.text);
tryToSetMaster: function() { this.log("t.s.m"); var optionIndex = null; var active = this.getActive(); if (active.length) { optionIndex = active.attr("name"); //sBox pointer index } if (optionIndex == null || optionIndex == "" || optionIndex < 0) { this.log("no active, master not set."); if (this.options.s...
this.log("unmatched freetext, master not set.");
tryToSetMaster: function() { this.log("t.s.m"); var optionIndex = null; var active = this.getActive(); if (active.length) { optionIndex = active.attr("name"); //sBox pointer index } if (optionIndex == null || optionIndex == "" || optionIndex < 0) { this.log("no active, master not set."); if (this.options.s...
if (itm.match(/^\d\d[\/-]\d\d[\/-]\d\d\d\d$/)) sortfn = ts_sort_date; if (itm.match(/^\d\d[\/-]\d\d[\/-]\d\d$/)) sortfn = ts_sort_date; if (itm.match(/^[$]/)) sortfn = ts_sort_currency; if (itm.match(/^[\d\.]+$/)) sortfn = ts_sort_numeric;
if (itm.match(/^\s*\d\d[\/-]\d\d[\/-]\d\d\d\d\s+/)) sortfn = ts_sort_date; else if (itm.match(/^\s*\d\d[\/-]\d\d[\/-]\d\d$/)) sortfn = ts_sort_date; else if (itm.match(/^\s*[$]/)) sortfn = ts_sort_currency; else if (itm.match(/^\s*\d+\.\d+\.\d+\.\d+\s*$/)) sortfn = ts_sort_ip; else if (itm.match(/^\s*[\d\.]+/)) sortfn ...
function ts_resortTable(lnk) { // get the span var span; for (var ci=0;ci<lnk.childNodes.length;ci++) { if (lnk.childNodes[ci].tagName && lnk.childNodes[ci].tagName.toLowerCase() == 'span') span = lnk.childNodes[ci]; } var spantext = ts_getInnerText(span); var td = lnk.parentNode; var column = td.cellIndex; var table ...
aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]); bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]);
atext = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]); btext = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]); aa = atext.match(/^\s*(\d\d[\/-]\d\d[\/-]\d+)\s+/)[1]; bb = btext.match(/^\s*(\d\d[\/-]\d\d[\/-]\d+)\s+/)[1];
function ts_sort_date(a,b) { // y2k notes: two digit years less than 50 are treated as 20XX, greater than 50 are treated as 19XX aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]); bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]); if (aa.length == 10) { dt1 = aa.substr(6,4)+aa.substr(3,2)+aa.substr(0,2); } else { yr ...
if (dt1==dt2) { return 0; }
function ts_sort_date(a,b) { // y2k notes: two digit years less than 50 are treated as 20XX, greater than 50 are treated as 19XX aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]); bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]); if (aa.length == 10) { dt1 = aa.substr(6,4)+aa.substr(3,2)+aa.substr(0,2); } else { yr ...
return 1;
if (dt1>dt2) { return 1; } aa = atext.match(/^\s*\d\d[\/-]\d\d[\/-]\d+\s+(\d+:\d+:\d+)/)[1]; bb = btext.match(/^\s*\d\d[\/-]\d\d[\/-]\d+\s+(\d+:\d+:\d+)/)[1]; dt1 = aa.substr(0,2)+aa.substr(3,2)+aa.substr(6,2) dt2 = bb.substr(0,2)+bb.substr(3,2)+bb.substr(6,2) if (dt1<dt2) { return -1; } if (dt1>dt2) { return 1; } retu...
function ts_sort_date(a,b) { // y2k notes: two digit years less than 50 are treated as 20XX, greater than 50 are treated as 19XX aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]); bb = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]); if (aa.length == 10) { dt1 = aa.substr(6,4)+aa.substr(3,2)+aa.substr(0,2); } else { yr ...
return lines;
function uniq(){ each(function(lines) { for ( var i = 1; i < lines.length; ++i ) { for ( var j = i - 1; j >= 0; --j ) { if ( lines[i] == lines[j] ) { lines.splice(i, 1); // gets increased in the for --i; break; } } ...
}
};
var unpickTag = function(from_target ,tagname, reason, send_ajax){ //send ajax request to delete tag var deleteTagLocally = function(){ from_target[tagname].remove(); delete from_target[tagname]; } if (send_ajax){ sendAjax(tagname,reason,'remove',deleteTa...
newValue : { data: null, error: false},
unsetActiveField: function() { this.activeCell.field.destroy(); if(this.popup.domObj != null) { this.popup.domObj.removeEvent('mouseenter'); this.popup.domObj.hide(); } this.activeCell.cell.setStyle('outline', '0px'); this.activeCell = { field : null, old...
this.setZindex(this.els[i], i);
this.setZIndex(this.els[i], i);
unstack: function(el) { if (this.els.contains(el)) { el.setStyle('z-index', ''); var idx = this.els.indexOf(el); this.els.erase(el); for (var i=idx; i<this.els.length; i++) { this.setZindex(this.els[i], i); } } },
ExpressionExperimentSetController.update = function(p0, callback) { dwr.engine._execute(ExpressionExperimentSetController._path, 'ExpressionExperimentSetController', 'update', p0, callback);
GeneSetController.update = function(p0, callback) { dwr.engine._execute(GeneSetController._path, 'GeneSetController', 'update', p0, callback);
ExpressionExperimentSetController.update = function(p0, callback) { dwr.engine._execute(ExpressionExperimentSetController._path, 'ExpressionExperimentSetController', 'update', p0, callback);}
if (data) { Ext.Msg.alert("Created", "The set was updated in the database"); } else { Ext.Msg.alert("Error", "Could not updated. See the logs for details."); }
Ext.Msg.alert("Updated", "The set was updated in the database");
update : function(rec) { if (!rec) { return; } this.resetBut.disable(); this.commitBut.disable(); if (rec.get("id") < 0) { if (this.userCanWriteToDB) { /* * try to create it in the db. */ var callback = function(data) { if (data) { Ext.Msg.alert("Created", "T...
var eeInfoTitle = "<a ext.qtip='Click for details on experiment (opens in new window)' target='_blank' href='/Gemma/expressionExperiment/showExpressionExperiment.html?id=" + eevo.id + " '>" + eevo.shortName + "</a> (" + Ext.util.Format.ellipsis(eevo.name, 35) + ")";
var eeInfoTitle = "<a ext.qtip='Click for details on experiment (opens in new window)' target='_blank' href='/Gemma/expressionExperiment/showExpressionExperiment.html?id=" + (eevo.sourceExperiment ? eevo.sourceExperiment : eevo.id) + " '>" + eevo.shortName + "</a> (" + Ext.util.Format.ellipsis(eevo.name, 35) + ")";
update : function(eevo, profiles, sampleNames) { if (profiles === undefined || profiles === null) { var record = this.dv.getSelectedOrFirst(); if (record === null || record === undefined) { // can happen at startup. return; } profiles = record.get("profiles"); if (profiles === undefined) { // hopef...
this.relayEvents(k, ['done']);
this.relayEvents(k, ['done', 'fail']);
updateAllEEReports : function() { var callParams = []; callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler(); k.handleWait(data, true); this.relayEvents(k, ['done']); k.on('done', function(payload) { this.fireEvent('reportUpdated', payload); }); }.cr...
var badge = {}; var badgeDisplay = "Quota Used"; var remaining = (data[0].limit - data[0].usagemb); badgeDisplay = localStorage['badgeDisplay']; switch(badgeDisplay){ case "Quota Used": badgeContent = fB(data[i].usagemb,byteFormat,0)+''; break; case "Quota Remaining": badgeContent = fB(remaining,byteFormat,0)+''; bre...
function updateBadge(data) { if(!data) return; // Update the Chrome extension "badge" var badge = {}; var badgeDisplay = "Quota Used"; var remaining = (data[0].limit - data[0].usagemb); badgeDisplay = localStorage['badgeDisplay']; /* TODO: Show suffix on badge. Too complex for tonight and not really useful. var format...
if (data) { Ext.Msg.alert("Created", "The set was updated in the database"); } else { Ext.Msg.alert("Error", "Could not updated. See the logs for details."); }
Ext.Msg.alert("Updated", "The set was updated in the database");
var updateCallback = function(data) { if (data) { Ext.Msg.alert("Created", "The set was updated in the database"); } else { Ext.Msg.alert("Error", "Could not updated. See the logs for details."); } }.createDelegate(this);
key = key.replace(/^\/db/, "");
key = key.replace(/^\/db\
function updateCollectionPaths(title, key) { key = key.replace(/^\/db/, ""); //search forms var form = $('#simple-search-form'); $('input[name = collection]', form).val(key); var form = $('#advanced-search-form'); $('input[name = collection]', form).val(key); //dialog collection paths ...
var restriction = $('#update-collection-permissions-form input[name = restriction]').val(); var userGroup = $('#update-collection-permissions-form input[name = userGroup]').val();
var restriction = $('#update-collection-permissions-form input[name = restriction]:checked').val(); var userGroup = $('#update-collection-permissions-form select[name = userGroup]').val();
function updateCollectionPermissions(dialog) { var restriction = $('#update-collection-permissions-form input[name = restriction]').val(); var userGroup = $('#update-collection-permissions-form input[name = userGroup]').val(); var collection = $('#simple-search-form input[name = collection]').val(); var par...
this.relayEvents(k, ['done']);
this.relayEvents(k, ['done', 'fail']);
updateEEReport : function(id, throbberEl) { var callParams = []; callParams.push(id); callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler({ throbberEl : throbberEl }); this.relayEvents(k, ['done']); k.handleWait(data, false); k.on('done', function(paylo...
updateEEReport : function(id) {
updateEEReport : function(id, throbberEl) {
updateEEReport : function(id) { var callParams = []; callParams.push(id); callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler(); this.relayEvents(k, ['done']); k.handleWait(data, false); k.on('done', function(payload) { this.fireEvent('reportUpdated', payload)...
var k = new Gemma.WaitHandler();
var k = new Gemma.WaitHandler({ throbberEl : throbberEl });
updateEEReport : function(id) { var callParams = []; callParams.push(id); callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler(); this.relayEvents(k, ['done']); k.handleWait(data, false); k.on('done', function(payload) { this.fireEvent('reportUpdated', payload)...
SecurityController.updateGeneGroup = function(p0, p1, callback) { dwr.engine._execute(SecurityController._path, 'SecurityController', 'updateGeneGroup', p0, p1, callback);
GeneSetController.updateGeneGroup = function(p0, p1, callback) { dwr.engine._execute(GeneSetController._path, 'GeneSetController', 'updateGeneGroup', p0, p1, callback);
SecurityController.updateGeneGroup = function(p0, p1, callback) { dwr.engine._execute(SecurityController._path, 'SecurityController', 'updateGeneGroup', p0, p1, callback);}
GeneSetController.updateGeneGroup = function(p0, p1, callback) { dwr.engine._execute(GeneSetController._path, 'GeneSetController', 'updateGeneGroup', p0, p1, callback);
GeneSetController.updateGeneGroup = function(p0, p1, p2, callback) { dwr.engine._execute(GeneSetController._path, 'GeneSetController', 'updateGeneGroup', p0, p1,p2, callback);
GeneSetController.updateGeneGroup = function(p0, p1, callback) { dwr.engine._execute(GeneSetController._path, 'GeneSetController', 'updateGeneGroup', p0, p1, callback);}
col.cellRule.style.width = col.getCellWidth() + "px";
updateRule: function(column) { var col = this.getByName(column); if (col.options.renderMode === 'fit') { col.calculateWidth(); } col.rule.style.width = col.getWidth() + "px"; },
col.rule.style.width = col.getWidth(true) + "px";
if (col.options.renderMode === 'fit') { col.calculateWidth(); } col.rule.style.width = col.getWidth() + "px";
updateRule: function(column) { var col = this.getByName(column); col.rule.style.width = col.getWidth(true) + "px"; },
}
};
Gemma.SecurityManager.updateSecurityLink = function(elid, isPublic, isShared) { var icon = isPublic ? '<img src="/Gemma/images/icons/lock_open2.png" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" alt="public"/>'; var sharedIcon = isShared ? '<img src="/Gemma/images/icons/group.png" alt="shared"/>' :...
Gemma.SecurityManager.updateSecurityLink = function(elid, isPublic, isShared) {
Gemma.SecurityManager.updateSecurityLink = function(elid, clazz, id, isPublic, isShared, canEdit) {
Gemma.SecurityManager.updateSecurityLink = function(elid, isPublic, isShared) { var icon = isPublic ? '<img src="/Gemma/images/icons/lock_open2.png" ext:qtip="Public" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" ext:qtip="Private" alt="private"/>'; var sharedIcon = isShared ? '<img src="/Gemma/images/...
var icon = isPublic ? '<img src="/Gemma/images/icons/lock_open2.png" ext:qtip="Public" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" ext:qtip="Private" alt="private"/>';
var newLink = Gemma.SecurityManager.getSecurityLink(clazz, id, isPublic, isShared, canEdit);
Gemma.SecurityManager.updateSecurityLink = function(elid, isPublic, isShared) { var icon = isPublic ? '<img src="/Gemma/images/icons/lock_open2.png" ext:qtip="Public" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" ext:qtip="Private" alt="private"/>'; var sharedIcon = isShared ? '<img src="/Gemma/images/...
var sharedIcon = isShared ? '<img src="/Gemma/images/icons/group.png" ext:qtip="Shared" alt="shared"/>' : ''; Ext.DomHelper.overwrite(elid, icon + '&nbsp;' + sharedIcon);
Ext.DomHelper.overwrite(elid, newLink);
Gemma.SecurityManager.updateSecurityLink = function(elid, isPublic, isShared) { var icon = isPublic ? '<img src="/Gemma/images/icons/lock_open2.png" ext:qtip="Public" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" ext:qtip="Private" alt="private"/>'; var sharedIcon = isShared ? '<img src="/Gemma/images/...
? '<img src="/Gemma/images/icons/lock_open2.png" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" alt="public"/>';
? '<img src="/Gemma/images/icons/lock_open2.png" ext:qtip="Public" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" ext:qtip="Private" alt="private"/>';
Gemma.SecurityManager.updateSecurityLink = function(elid, isPublic, isShared) { var icon = isPublic ? '<img src="/Gemma/images/icons/lock_open2.png" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" alt="public"/>'; var sharedIcon = isShared ? '<img src="/Gemma/images/icons/group.png" alt="shared"/>' :...
var sharedIcon = isShared ? '<img src="/Gemma/images/icons/group.png" alt="shared"/>' : '';
var sharedIcon = isShared ? '<img src="/Gemma/images/icons/group.png" ext:qtip="Shared" alt="shared"/>' : '';
Gemma.SecurityManager.updateSecurityLink = function(elid, isPublic, isShared) { var icon = isPublic ? '<img src="/Gemma/images/icons/lock_open2.png" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" alt="public"/>'; var sharedIcon = isShared ? '<img src="/Gemma/images/icons/group.png" alt="shared"/>' :...
href : "http: + seq.sequenceDatabaseEntry.accession,
href : "http: seq.sequenceDatabaseEntry.accession,
updateSequenceInfo : function() { var dh = Ext.DomHelper; if (this.getStore().getCount() === 0) { // This shouldn't happen any more because we always return at least // a // dummy record holding the sequence dh.overwrite("probe-description", { tag : 'li', id : "probe-description", html : "Prob...
$('#group-sharing-premissions-read').get(0).checked = true;
$('#group-sharing-permissions-read').get(0).checked = true;
function updateSharingGroupCheckboxes(groupId) { //set the read/write checkboxes var collection = getCurrentCollection(); var params = { action: "get-group-permissions", groupId: groupId, collection: collection }; $.get("operations.xql", params, function(data) { //set read checkbox var rea...
$('#group-sharing-premissions-read').get(0).checked = false;
$('#group-sharing-permissions-read').get(0).checked = false;
function updateSharingGroupCheckboxes(groupId) { //set the read/write checkboxes var collection = getCurrentCollection(); var params = { action: "get-group-permissions", groupId: groupId, collection: collection }; $.get("operations.xql", params, function(data) { //set read checkbox var rea...
$('#group-sharing-premissions-write').get(0).checked = true;
$('#group-sharing-permissions-write').get(0).checked = true;
function updateSharingGroupCheckboxes(groupId) { //set the read/write checkboxes var collection = getCurrentCollection(); var params = { action: "get-group-permissions", groupId: groupId, collection: collection }; $.get("operations.xql", params, function(data) { //set read checkbox var rea...
$('#group-sharing-premissions-write').get(0).checked = false;
$('#group-sharing-permissions-write').get(0).checked = false;
function updateSharingGroupCheckboxes(groupId) { //set the read/write checkboxes var collection = getCurrentCollection(); var params = { action: "get-group-permissions", groupId: groupId, collection: collection }; $.get("operations.xql", params, function(data) { //set read checkbox var rea...
var params = { action: "get-sharing-group-members", groupId: groupId }; $.get("operations.xql", params, function(data) {
if(groupId){ var params = { action: "get-sharing-group-members", groupId: groupId }; $.get("operations.xql", params, function(data) { $('#group-members-list').find('li').remove();
function updateSharingGroupMembers(groupId) { var params = { action: "get-sharing-group-members", groupId: groupId }; $.get("operations.xql", params, function(data) { //remove any existing members $('#group-members-list').find('li').remove(); var owner = false; if($(data).f...
$('#group-members-list').find('li').remove(); var owner = false; if($(data).find('owner true').size() == 1) { owner = true; $('#add-new-member-to-group-button').show(); } else if($('#group-list :selected').val() == $('#group-list :selected').text()) { owner = true; $('#add-new-member-to-group-button').show(); } else {...
var owner = false; if($(data).find('owner true').size() == 1) { owner = true; $('#add-new-member-to-group-button').show(); } else if($('#group-list :selected').val() == $('#group-list :selected').text()) { owner = true; $('#add-new-member-to-group-button').show(); } else { $('#add-new-member-to-group-button').hide(); }...
function updateSharingGroupMembers(groupId) { var params = { action: "get-sharing-group-members", groupId: groupId }; $.get("operations.xql", params, function(data) { //remove any existing members $('#group-members-list').find('li').remove(); var owner = false; if($(data).f...
}); updateSharingGroupCheckboxes(groupId);
updateSharingGroupCheckboxes(groupId); }
function updateSharingGroupMembers(groupId) { var params = { action: "get-sharing-group-members", groupId: groupId }; $.get("operations.xql", params, function(data) { //remove any existing members $('#group-members-list').find('li').remove(); var owner = false; if($(data).f...
$('#other-sharing-premissions-read').get(0).checked = true;
$('#other-sharing-permissions-read').get(0).checked = true;
function updateSharingOtherCheckboxes() { //set the read/write checkboxes var collection = getCurrentCollection(); var params = { action: "get-other-permissions", collection: collection }; $.get("operations.xql", params, function(data) { //set read checkbox var readPermissions = $(data).f...
$('#other-sharing-premissions-read').get(0).checked = false;
$('#other-sharing-permissions-read').get(0).checked = false;
function updateSharingOtherCheckboxes() { //set the read/write checkboxes var collection = getCurrentCollection(); var params = { action: "get-other-permissions", collection: collection }; $.get("operations.xql", params, function(data) { //set read checkbox var readPermissions = $(data).f...
$('#other-sharing-premissions-write').get(0).checked = true;
$('#other-sharing-permissions-write').get(0).checked = true;
function updateSharingOtherCheckboxes() { //set the read/write checkboxes var collection = getCurrentCollection(); var params = { action: "get-other-permissions", collection: collection }; $.get("operations.xql", params, function(data) { //set read checkbox var readPermissions = $(data).f...
$('#other-sharing-premissions-write').get(0).checked = false;
$('#other-sharing-permissions-write').get(0).checked = false;
function updateSharingOtherCheckboxes() { //set the read/write checkboxes var collection = getCurrentCollection(); var params = { action: "get-other-permissions", collection: collection }; $.get("operations.xql", params, function(data) { //set read checkbox var readPermissions = $(data).f...
jSpan.html($.i18n._('can write') +
jSpan.html($.i18n._('can write') + ' ' +
updateTextCounter: function(textarea) { var length = textarea.value ? textarea.value.length : 0; var length1 = maxCommentLength - 100; if (length1 < 0){ length1 = Math.round(0.7*maxCommentLength); } var length2 = maxCommentLength - 30; ...
var host = location.host + (location.port ? ':' + location.port : '');
var host = location.host;
updateUI: function() { //file urls. var furl = imce.conf.furl, isabs = furl.indexOf('://') > -1; var absurls = imce.conf.absurls = imce.vars.absurls || imce.conf.absurls; var host = location.host + (location.port ? ':' + location.port : ''); var baseurl = location.protocol + '//' + host; if (furl.charAt(furl.leng...
var cellText = tree.view.getCellText(row.value, col.value); if (col.value.id == 'buildmonitor-prefs-feeds-remove' && !treeFeeds[row.value].isIgnored()) { this._removeFeed(row.value); } else if (col.value.id == 'buildmonitor-prefs-feeds-up' && !treeFeeds[row.value].isIgnored() && row.value > 0) { this._swapFeeds(row.val...
if (row.value != null && col.value != null) { var cellText = tree.view.getCellText(row.value, col.value); if (col.value.id == 'buildmonitor-prefs-feeds-remove' && !treeFeeds[row.value].isIgnored()) { this._removeFeed(row.value); } else if (col.value.id == 'buildmonitor-prefs-feeds-up' && !treeFeeds[row.value].isIgnored...
updateView: function(event) { var tree = document.getElementById('buildmonitor-prefs-feeds'); var tbo = tree.treeBoxObject; var row = { }, col = { }, child = { }; tbo.getCellAt(event.clientX, event.clientY, row, col, child); var cellText = tree.view.getCellText(row.value, ...
function upload_add_link(e) {
this.upload_add_link = function (e) {
function upload_add_link(e) { var ext = this.value.replace(/^(.*)(\..+)$/, "$2"); var img_exts = new Array('.png', '.jpg', '.jpeg', '.bmp', '.gif', '.tiff', '.tif'); var is_img = false; var check_add = document.getElementById("adduploadlink"); if (check_add && ! check_add.checked) return false; for (i=0; i< im...
return false;
function upload_add_link(e) { var ext = this.value.replace(/^(.*)(\..+)$/, "$2"); var img_exts = new Array('.png', '.jpg', '.jpeg', '.bmp', '.gif', '.tiff', '.tif'); var is_img = false; var check_add = document.getElementById("adduploadlink"); if (check_add && ! check_add.checked) return false; for (i=0; i< im...
(function(c,j){c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(a){var b=c(th...
g}})}else if(typeof a==="object"){if("left"in a){b[0]="left";d[0]=a.left}else if("right"in a){b[0]="right";d[0]=-a.right}if("top"in a){b[1]="top";d[1]=a.top}else if("bottom"in a){b[1]="bottom";d[1]=-a.bottom}}(a=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position({my:b.join(" ...
(function(c,j){c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(a){var b=c(th...
var previous = this.base || Base.prototype.base;
var previous = this.base || name_edwards_dean_Base.prototype.base;
value = function() { var previous = this.base || Base.prototype.base; this.base = ancestor; var returnValue = method.apply(this, arguments); this.base = previous; return returnValue; };
if($('#verplot1plot').val() == null) $('#verplot1plot').val(2); loadVerPlot1(); loadVerPlot2();
function verReplot() { }
var playText = Drupal.theme.prototype['viewsSlideshowControlsPlay'] ? Drupal.theme('viewsSlideshowControlsPlay') : ''; $(this).text(playText); viewsSlideshowPlay(uniqueID, 'views_slideshow_controls');
viewsSlideshowPlay(uniqueID, '');
Drupal.behaviors.viewsSlideshow = function (context) { // Process previous link $('.views_slideshow_controls_previous:not(.views-slideshow-controls-previous-processed)', context).addClass('views-slideshow-controls-previous-processed').each(function() { var uniqueID = $(this).attr('id').replace('views_slideshow_c...
var pauseText = Drupal.theme.prototype['viewsSlideshowControlsPause'] ? Drupal.theme('viewsSlideshowControlsPause') : ''; $(this).text(pauseText); viewsSlideshowPause(uniqueID, 'views_slideshow_controls');
viewsSlideshowPause(uniqueID, '');
Drupal.behaviors.viewsSlideshow = function (context) { // Process previous link $('.views_slideshow_controls_previous:not(.views-slideshow-controls-previous-processed)', context).addClass('views-slideshow-controls-previous-processed').each(function() { var uniqueID = $(this).attr('id').replace('views_slideshow_c...
$('.views_slideshow_pager_field:not(.views-slideshow-pager-field-processed)', context).addClass('views-slideshow-pager-field-processed').each(function() { var pagerInfo = $(this).attr('id').split('_'); var location = pagerInfo[2]; pagerInfo.splice(0, 3); var uniqueID = pagerInfo.join('_'); if (Drupal.settings.viewsS...
Drupal.behaviors.viewsSlideshow = function (context) { // Process previous link $('.views_slideshow_controls_previous:not(.views-slideshow-controls-previous-processed)', context).addClass('views-slideshow-controls-previous-processed').each(function() { var uniqueID = $(this).attr('id').replace('views_slideshow_c...
if (settings.controls > 0) {
if (settings.controls != 0) {
viewsSlideshowCyclePause = function (settings) { // Make Resume translatable var resume = Drupal.t('Resume'); $(settings.targetId).cycle('pause'); if (settings.controls > 0) { $('#views_slideshow_cycle_playpause_' + settings.vss_id) .addClass('views_slideshow_cycle_play') .addClass('views_slideshow_p...