rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
Testopia.Util.error(f, a); grid.store.reload({ callback: function(){ if (grid.selectedRows) { grid.getSelectionModel().selectRows(grid.selectedRows); } } }); } | Testopia.Util.error(f, a); grid.store.reload(); } | failure: function(f, a){ Testopia.Util.error(f, a); grid.store.reload({ callback: function(){ if (grid.selectedRows) { grid.getSelectionModel().selectRows(grid.selectedRows); } } }); ... |
showgif(); | showLoadingGif(); | function fetch_and_render_books(){ showgif(); $.ajax({ url: "/mybooksj", type: "GET", success: renderBooks, errror: on_ajax_fail, dataType: "json" }); $("#tech_only").click(show_tech_only); $("#non_tech_only").click(show_non_tech_only); $("#show_all").click(show_all);} |
$("#tech_only").click(show_tech_only); $("#non_tech_only").click(show_non_tech_only); $("#show_all").click(show_all); | function fetch_and_render_books(){ showgif(); $.ajax({ url: "/mybooksj", type: "GET", success: renderBooks, errror: on_ajax_fail, dataType: "json" }); $("#tech_only").click(show_tech_only); $("#non_tech_only").click(show_non_tech_only); $("#show_all").click(show_all);} | |
options.field.observe('keyup',function(){self.resize()}); | options.field.observe('keyup',function(){self.resize(false,true)}); options.field.observe('keydown',function(){self.options.field.scrollTop=0;}); | op.FieldResizer = function(options) { this.options = options; this.options.field.style.overflow='hidden'; this.dummy = document.createElement('div'); document.body.appendChild(this.dummy); this.dummy.style.position='absolute'; this.dummy.style.left='-999999px'; this.dummy.style.top='-999999px'; this.dummy.style.visibil... |
var template = this.fillTemplate(i); | var template = this.store.fillTemplate(i,this.options.template,this.columnsNeeded); | fill: function () { if (this.busy == 'tree') { this.tree.setBusy(false); this.busy = 'none'; } else if (this.busy == 'folder') { this.busyFolder.setBusy(false); this.busy = 'none'; } var l = this.store.count() - 1; for (var i = this.currentRecord + 1; i <= l; i++) { ... |
index = $defined(index)? index : this.index; | var record = null; if ($defined(index)) { if (index instanceof Jx.Record) { record = index; } else { record = this.getRecord(index); } } else { record = this.getRecord(this.index); } | fillTemplate: function (index, template, columnsNeeded) { index = $defined(index)? index : this.index; //create the item var itemObj = {}; columnsNeeded.each(function (col) { itemObj[col] = this.get(col, index); }, this); return template.substitute(itemObj); } |
itemObj[col] = this.get(col, index); | itemObj[col] = record.get(col); | fillTemplate: function (index, template, columnsNeeded) { index = $defined(index)? index : this.index; //create the item var itemObj = {}; columnsNeeded.each(function (col) { itemObj[col] = this.get(col, index); }, this); return template.substitute(itemObj); } |
fillTemplate: function (index, template, columnsNeeded) { | fillTemplate: function (index, template, columnsNeeded, obj) { | fillTemplate: function (index, template, columnsNeeded) { var record = null; if ($defined(index)) { if (index instanceof Jx.Record) { record = index; } else { record = this.getRecord(index); } } else { record = this.getRecord(this... |
var itemObj = {}; | var itemObj = $defined(obj) ? obj : {}; | fillTemplate: function (index, template, columnsNeeded) { var record = null; if ($defined(index)) { if (index instanceof Jx.Record) { record = index; } else { record = this.getRecord(index); } } else { record = this.getRecord(this... |
this.log("filter: " ); | filter: function(showAll, doDelay) { this.log("filter: " ); var self = this; //cancel any pending if(this.updateOnTimeout) clearTimeout(this.updateOnTimeout); if(this.filterOnTimeout) clearTimeout(this.filterOnTimeout); this.updateOnTimeout = null; this.filterOnTimeout = null; var searchText = self.getCurren... | |
self.log("filter search"); | filter: function(showAll, doDelay) { this.log("filter: " ); var self = this; //cancel any pending if(this.updateOnTimeout) clearTimeout(this.updateOnTimeout); if(this.filterOnTimeout) clearTimeout(this.filterOnTimeout); this.updateOnTimeout = null; this.filterOnTimeout = null; var searchText = self.getCurren... | |
self.log("screen update"); | filter: function(showAll, doDelay) { this.log("filter: " ); var self = this; //cancel any pending if(this.updateOnTimeout) clearTimeout(this.updateOnTimeout); if(this.filterOnTimeout) clearTimeout(this.filterOnTimeout); this.updateOnTimeout = null; this.filterOnTimeout = null; var searchText = self.getCurren... | |
var firstmatch = self.trie.matches[0]; self.setActive(firstmatch[0]); | var firstmatch = self.listItems.filter(":visible:first"); self.setActive(firstmatch); | filter: function(showAll, doDelay) { this.log("filter: " ); var self = this; //cancel any pending if(this.updateOnTimeout) clearTimeout(this.updateOnTimeout); if(this.filterOnTimeout) clearTimeout(this.filterOnTimeout); this.updateOnTimeout = null; this.filterOnTimeout = null; var searchText = self.getCurren... |
this.hasEmphasis = true; | filter: function(showAll, doDelay) { this.log("filter: " ); var self = this; //cancel any pending if(this.updateOnTimeout) clearTimeout(this.updateOnTimeout); if(this.filterOnTimeout) clearTimeout(this.filterOnTimeout); this.updateOnTimeout = null; this.filterOnTimeout = null; var searchText = self.getCurren... | |
var mm = self.trie.findPrefixMatchesAndMisses(searchText); | var mm = self.trie.find(searchText); | filter: function(showAll, doDelay) { // this.log("filter: " + showAllLength); var self = this; //cancel any pending if(this.updateOnTimeout) clearTimeout(this.updateOnTimeout); if(this.filterOnTimeout) clearTimeout(this.filterOnTimeout); this.updateOnTimeout = null; this.filterOnTimeout = null; var searchTex... |
self.overwriteClass(self.trie.matches,"" ); self.visibleCount = self.trie.matches.length; | self.visibleCount = self.overwriteClass(self.trie.matches, "" ); | filter: function(showAll, doDelay) { // this.log("filter: " ); var self = this; //cancel any pending if(this.updateOnTimeout) clearTimeout(this.updateOnTimeout); if(this.filterOnTimeout) clearTimeout(this.filterOnTimeout); this.updateOnTimeout = null; this.filterOnTimeout = null; var searchText = self.getCur... |
self.overwriteClass(self.trie.misses, "" ); self.visibleCount += self.trie.misses.length; | self.visibleCount += self.overwriteClass(self.trie.misses, "" ); | filter: function(showAll, doDelay) { // this.log("filter: " ); var self = this; //cancel any pending if(this.updateOnTimeout) clearTimeout(this.updateOnTimeout); if(this.filterOnTimeout) clearTimeout(this.filterOnTimeout); this.updateOnTimeout = null; this.filterOnTimeout = null; var searchText = self.getCur... |
} else if(self.trie.matches.length) { | } else { | filter: function(showAll, doDelay) { // this.log("filter: " ); var self = this; //cancel any pending if(this.updateOnTimeout) clearTimeout(this.updateOnTimeout); if(this.filterOnTimeout) clearTimeout(this.filterOnTimeout); this.updateOnTimeout = null; this.filterOnTimeout = null; var searchText = self.getCur... |
self.setActive(firstmatch); | self.setActive(firstmatch.get(0)); | filter: function(showAll, doDelay) { // this.log("filter: " ); var self = this; //cancel any pending if(this.updateOnTimeout) clearTimeout(this.updateOnTimeout); if(this.filterOnTimeout) clearTimeout(this.filterOnTimeout); this.updateOnTimeout = null; this.filterOnTimeout = null; var searchText = self.getCur... |
} else { self.setActive(null); } | } | filter: function(showAll, doDelay) { // this.log("filter: " ); var self = this; //cancel any pending if(this.updateOnTimeout) clearTimeout(this.updateOnTimeout); if(this.filterOnTimeout) clearTimeout(this.filterOnTimeout); this.updateOnTimeout = null; this.filterOnTimeout = null; var searchText = self.getCur... |
params : [this.taxonid, this.ids, this.limit, record.get('filterType')] | params : [this.taxonid, this.ids, this.limit, this.filterType] | filterByNeed : function(box, record, index) { this.store.load({ params : [this.taxonid, this.ids, this.limit, record.get('filterType')] }); }, |
return null; | filters : function(name, value) { var view = this.prop('view_name'); if (this._filters[view] === undefined) { this._filters[view] = {}; } if ( typeof name === "string" ) { if ( value === undefined ) { return this._filte... | |
dwr.engine._execute(OntologyService._path, 'OntologyService', 'findExactTerm', p0, p1, p2, callback); | dwr.engine._execute(OntologyService._path, 'OntologyService', 'findExact', 'loadStatusSummaries', p0, p1, p2, callback); | OntologyService.findExactTerm = function(p0, p1, p2, callback) { dwr.engine._execute(OntologyService._path, 'OntologyService', 'findExactTerm', p0, p1, p2, callback);} |
OntologyService.findExactTerm = function(p0, p1, callback) { dwr.engine._execute(OntologyService._path, 'OntologyService', 'findExactTerm', p0, p1, callback); | OntologyService.findExactTerm = function(p0, p1, p2, callback) { dwr.engine._execute(OntologyService._path, 'OntologyService', 'findExactTerm', p0, p1, p2, callback); | OntologyService.findExactTerm = function(p0, p1, callback) { dwr.engine._execute(OntologyService._path, 'OntologyService', 'findExactTerm', p0, p1, callback);} |
while (obj == obj.offsetParent) { | while (obj = obj.offsetParent) { | function findPos(obj) { var curleft = 0; var curtop = 0; if (obj.offsetParent) { curleft = obj.offsetLeft; curtop = obj.offsetTop; while (obj == obj.offsetParent) { curleft += obj.offsetLeft; curtop += obj.offsetTop; } } return [curleft,curtop];} |
-1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return ... | g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){ret... | -1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return ... |
this.loadMask.hide(); | firstCallback : function(data) { // second ajax call. ExperimentalDesignController.getExperimentalFactors(this.expressionExperiment, function(factorData) { config = { factors : factorData, bioMaterials : data }; Ext.apply(config, this.originalConfig); this.grid = new Gemma.BioMater... | |
this.grid = new Gemma.BioMaterialGrid(config); this.grid.init = this.init.createDelegate(this); this.loadMask.hide(); }.createDelegate(this)); }, | this.grid = new Gemma.BioMaterialGrid(config); this.grid.init = this.init.createDelegate(this); this.add(this.grid); this.loadMask.hide(); this.doLayout(false, true); this.firstInitDone = true; }.createDelegate(this)); }, | firstCallback : function(data) { // second ajax call. ExperimentalDesignController.getExperimentalFactors(this.expressionExperiment, function(factorData) { config = { factors : factorData, bioMaterials : data }; Ext.apply(config, this.originalConfig); this.grid = new Gemma.BioMater... |
record.get('isShared')); | record.get('isShared'), record.get('currentUserHasWritePermission')); | var flagRenderer = function(value, metadata, record, rowIndex, colIndex, store) { var id = record.get('id'); var result = ''; if (record.get('validatedFlag')) { result = result + '<img src="/Gemma/images/icons/emoticon_smile.png" alt="validated" ext:qtip="validated"/>'; } if (record.get('troubleFlag')) { ... |
result = result + '<img src="/Gemma/images/icons/emoticon_smile.png" alt="validated" title="validated"/>'; | result = result + '<img src="/Gemma/images/icons/emoticon_smile.png" alt="validated" ext:qtip="validated"/>'; | var flagRenderer = function(value, metadata, record, rowIndex, colIndex, store) { var id = record.get('id'); var result = ''; if (record.get('validatedFlag')) { result = result + '<img src="/Gemma/images/icons/emoticon_smile.png" alt="validated" title="validated"/>'; } if (record.get('troubleFlag')) { result ... |
result = result + '<img src="/Gemma/images/icons/stop.png" alt="trouble" title="trouble"/>'; | result = result + '<img src="/Gemma/images/icons/stop.png" alt="trouble" ext:qtip="trouble: ' + record.get('troubleFlag').note + '"/>'; | var flagRenderer = function(value, metadata, record, rowIndex, colIndex, store) { var id = record.get('id'); var result = ''; if (record.get('validatedFlag')) { result = result + '<img src="/Gemma/images/icons/emoticon_smile.png" alt="validated" title="validated"/>'; } if (record.get('troubleFlag')) { result ... |
'ubic.gemma.model.expression.experiment.ExpressionExperimentImpl', id, record.get('isPublic')); | 'ubic.gemma.model.expression.experiment.ExpressionExperimentImpl', id, record.get('isPublic'), record.get('isShared')); | var flagRenderer = function(value, metadata, record, rowIndex, colIndex, store) { var id = record.get('id'); var result = ''; if (record.get('validatedFlag')) { result = result + '<img src="/Gemma/images/icons/emoticon_smile.png" alt="validated" title="validated"/>'; } if (record.get('troubleFlag')) { result ... |
flush_params: function() { | flush_params: function(value) { | flush_params: function() { var view = this.prop('view_name'); if (this._params[view] !== undefined) { this._params[view] = {}; } }, |
this._params[view] = {}; | delete(this._params[view][value]); | flush_params: function() { var view = this.prop('view_name'); if (this._params[view] !== undefined) { this._params[view] = {}; } }, |
if (btn == 'yes') { var testopia_form = new Ext.form.BasicForm('testopia_helper_frm'); testopia_form.submit({ url: 'tr_categories.cgi', params: { category_id: Ext.getCmp('category_grid').getSelectionModel().getSelected().get('category_id'), action: 'delete', product_id: Ext.getCmp('category_grid').product_id }, success... | if (btn == 'yes') { reassign = 1; } Testopia.Util.updateFromList('caserun', { status_id: 4, reassign: reassign, ids: Testopia.Util.getSelectedObjects(Ext.getCmp('caserun_grid'), 'caserun_id') }, Ext.getCmp('caserun_grid')); } | fn: function(btn){ if (btn == 'yes') { var testopia_form = new Ext.form.BasicForm('testopia_helper_frm'); testopia_form.submit({ url: 'tr_categories.cgi', params: { category_id: Ext.getCmp('category_grid').getS... |
if (btn == 'yes') { var callParams = []; callParams.push(bioAssayId); Ext.getBody().mask(); callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler(); k.handleWait(data, true); this.relayEvents(k, ['done', 'fail']); Ext.getBody().unmask(); }.createDelegate(this), errorHandler : function(error) { Ext... | if (btn == 'yes') { var callParams = []; callParams.push(id); callParams.push({ callback : function(data) { this.fireEvent('done'); }.createDelegate(this), errorHandler : function(message, exception) { Ext.Msg.alert("There was an error", message); Ext.getBody().unmask(); } }); ExpressionExperimentController.unmatch... | fn : function(btn, text) { if (btn == 'yes') { var callParams = []; callParams.push(bioAssayId); Ext.getBody().mask(); callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler(); k.handleWait(data, true); this.relayEvents(k, ['done', 'fail']); ... |
this.relayEvents(k, ['done']); | this.relayEvents(k, ['done', 'fail']); | fn : function(btn, text) { if (btn == 'yes') { 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']); ... |
params : [showPrivateOnly] | params : [showPrivateOnly, null] | fn : function(btn, text) { if (btn == 'yes') { this.ownerCt.getStore().load({ params : [showPrivateOnly] }); } }, |
if (btn == 'yes') { 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', 'fail']); Ext.getBody().unmask(); k.on('done', function(payload) { this.fireEvent('processedVector', p... | if (btn == 'yes') { var callParams = []; callParams.push(bioAssayId); Ext.getBody().mask(); callParams.push({ callback : function(data) { var k = new Gemma.WaitHandler(); k.handleWait(data, true); this.relayEvents(k, ['done', 'fail']); Ext.getBody().unmask(); }.createDelegate(this), errorHandler : function(error) { Ext... | fn : function(btn, text) { if (btn == 'yes') { 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', 'f... |
this.button.focus(); | if (this.button) { this.button.focus(); } | focus: function() { this.button.focus(); }, |
ret = "-" + this.getText({set:'Jx',key:'formatter.boolean',value:'sign'}) + value.substring(1, value.length); | ret = "-" + this.getText({set:'Jx',key:'formatter.currency',value:'sign'}) + value.substring(1, value.length); | format: function (value) { this.options.precision = 2; value = this.parent(value); //check for negative var neg = false; if (value.contains('(') || value.contains('-')) { neg = true; } var ret; if (neg && !this.options.useParens) { ret = ... |
ret = this.getText({set:'Jx',key:'formatter.boolean',value:'sign'}) + value; | ret = this.getText({set:'Jx',key:'formatter.currency',value:'sign'}) + value; | format: function (value) { this.options.precision = 2; value = this.parent(value); //check for negative var neg = false; if (value.contains('(') || value.contains('-')) { neg = true; } var ret; if (neg && !this.options.useParens) { ret = ... |
ellpsis = this.options.ellipsis; | ellipsis = this.options.ellipsis; | format : function (value) { var text = '' + value, max = this.options.length, ellpsis = this.options.ellipsis; if (max && text.length > max) { text = text.substr(0,max-ellipsis.length) + ellipsis; } return text; } |
var eeTemplate = new Ext.Template("<a target='_blank' href='/Gemma/expressionExperiment/showExpressionExperiment.html?id={id}' ext:qtip='{name}'>{shortName}</a>"); | var eeTemplate = new Ext.XTemplate( '<tpl for="."><a target="_blank" title="{name}" href="/Gemma/expressionExperiment/showExpressionExperiment.html?id=', '{[values.sourceExperiment ? values.sourceExperiment : values.id]}"', ' ext:qtip="{name}">{shortName}</a></tpl>'); | formatEE : function(value, metadata, record, row, col, ds) { var eeTemplate = new Ext.Template("<a target='_blank' href='/Gemma/expressionExperiment/showExpressionExperiment.html?id={id}' ext:qtip='{name}'>{shortName}</a>"); return eeTemplate.apply(record.data); }, |
value = floatToString(cents/100.0, 2); | value = floatToString(cents/100.0, 2).replace(/(\d+)(\d{3}[\.,]?)/,'$1 $2'); | Shopify.formatMoney = function(cents, format) { var value = ''; var patt = /\{\{\s*(\w+)\s*\}\}/; var formatString = (format || this.money_format); switch(formatString.match(patt)[1]) { case 'amount': value = floatToString(cents/100.0, 2); break; case 'amount_no_decimals': value = floatToString(cents/100... |
value = floatToString(cents/100.0, 0); | value = floatToString(cents/100.0, 0).replace(/(\d+)(\d{3}[\.,]?)/,'$1 $2'); | Shopify.formatMoney = function(cents, format) { var value = ''; var patt = /\{\{\s*(\w+)\s*\}\}/; var formatString = (format || this.money_format); switch(formatString.match(patt)[1]) { case 'amount': value = floatToString(cents/100.0, 2); break; case 'amount_no_decimals': value = floatToString(cents/100... |
value = floatToString(cents/100.0, 2).replace(/\./, ','); | value = floatToString(cents/100.0, 2).replace(/\./, ',').replace(/(\d+)(\d{3}[\.,]?)/,'$1.$2'); | Shopify.formatMoney = function(cents, format) { var value = ''; var patt = /\{\{\s*(\w+)\s*\}\}/; var formatString = (format || this.money_format); switch(formatString.match(patt)[1]) { case 'amount': value = floatToString(cents/100.0, 2); break; case 'amount_no_decimals': value = floatToString(cents/100... |
if (g.taxon != null) { g.taxonId = g.taxon.id; g.taxonName = g.taxon.commonName; | if (g.taxonId != null) { g.taxonId = g.taxonId; g.taxonName = g.taxonCommonName; | foundGeneStyler : function(value, metadata, record, row, col, ds) { var g = record.data.foundGene; if (g.officialName === null) { g.officialName = ""; } if (g.taxon != null) { g.taxonId = g.taxon.id; g.taxonName = g.taxon.commonName; } else { g.taxonId = -1; g.taxonName = "?"; } return this.foundGeneT... |
g.taxonId = g.taxon.id; g.taxonName = g.taxon.commonName; | if (g.taxon != null) { g.taxonId = g.taxon.id; g.taxonName = g.taxon.commonName; } else { g.taxonId = -1; g.taxonName = "?"; } | foundGeneStyler : function(value, metadata, record, row, col, ds) { var g = record.data.foundGene; if (g.officialName === null) { g.officialName = ""; } g.taxonId = g.taxon.id; g.taxonName = g.taxon.commonName; return this.foundGeneTemplate.apply(g); }, |
if (not_to_be_shown(this)) return; | function friendBookRow(){ if (not_to_be_shown(this)) return; $("#friend_table").append( "<tr class=\""+ toggleOddEven() +"\"><td>" + book_link(this) + "</td><td>" + borrower(this) + "</td><td class='action'>" + borrow_link(this) + "</td></tr>");} | |
: text.substr(1, text.length - 2).replace('""', '"'); | : text.substr(1, text.length - 2).replace(/""/g, '"'); | JSV.parseString = JSV.fromCsvField = function(text){ return !text || text[0] != '"' ? text : text.substr(1, text.length - 2).replace('""', '"');} |
eval(settings.advanced_fxFn); | eval(settings.advanced_fxfn); | settings.opts.fxFn = function(currSlideElement, nextSlideElement, options, afterCalback, forwardFlag) { eval(settings.advanced_fxFn); } |
if (this.element.parentNode.hasClassName('in2igui_overflow')) { | if (this.element.parentNode && this.element.parentNode.hasClassName('in2igui_overflow')) { | In2iGui.Gallery = function(options) { this.options = options || {}; this.name = options.name; this.element = $(options.element); this.objects = []; this.nodes = []; this.selected = []; this.width = 100; this.height = 100; this.revealing = false; In2iGui.extend(this); if (this.options.source) { this.options.source.list... |
alert(exception.msg); return; | logout(); | function gallery_getAlbumCoverResponse(cover, exception) { if(exception){ alert(exception.msg); return; } albumCovers[pos] = cover; pos += 1; if(albumCovers.length == galleryAlbums.length) { initializeGallery(); displayGallery(); }} |
if (albumImageToBeLoaded != null) { for (i = 0 ; i < items.length ; i++) { if (items[i] == albumImageToBeLoaded) { albumPos = i; albumImageToBeLoaded = null; } } } | function gallery_getAlbumPicturesResponse(items, exception) { if(exception) { // alert(exception.msg); displayGallery(); logout(); // return; } albumItems = items; albumPos = 0; showAlbum();} | |
alert(exception.msg); | function gallery_getAlbumPicturesResponse(items, exception) { if(exception) { alert(exception.msg); displayGallery(); return; } albumItems = items; albumPos = 0; showAlbum();} | |
return; | logout(); | function gallery_getAlbumPicturesResponse(items, exception) { if(exception) { alert(exception.msg); displayGallery(); return; } albumItems = items; albumPos = 0; showAlbum();} |
gallery.getAlbumCover(galleryAlbums[i].name).addCallback(gallery_getAlbumCoverResponse); | gallery.getAlbumCoverToUser(galleryAlbums[i].name,SECURITY_TOKEN).addCallback(gallery_getAlbumCoverResponse); | function gallery_getAlbumsResponse(albums, exception) { if(exception) { alert(exception.msg); return; } galleryAlbums = albums; for(i=0; i< galleryAlbums.length; i++) { gallery.getAlbumCover(galleryAlbums[i].name).addCallback(gallery_getAlbumCoverResponse); }} |
alert(exception.msg); return; | logout(); | function gallery_getAlbumsResponse(albums, exception) { if(exception) { alert(exception.msg); return; } galleryAlbums = albums; for(i=0; i< galleryAlbums.length; i++) { // gallery.getAlbumCover(galleryAlbums[i].name).addCallback(gallery_getAlbumCoverResponse); gallery.getAlbu... |
type : "string" | type : "string", convert : function(v, rec) { if (v.startsWith("GO")) { return rec.description; } return v; } | Gemma.GeneGroupStore = function(config) { /* * Leave this here so copies of records can be constructed. */ this.record = Ext.data.Record.create([{ name : "id", type : "int" }, { name : "name", type : "string" }, { name : "description", type : "string" }, { name : "publik", type : "boolea... |
type : "string" | type : "string", convert : function(v, rec) { if (rec.name.startsWith("GO")) { return rec.name } return v; } | Gemma.GeneGroupStore = function(config) { /* * Leave this here so copies of records can be constructed. */ this.record = Ext.data.Record.create([{ name : "id", type : "int" }, { name : "name", type : "string" }, { name : "description", type : "string" }, { name : "publik", type : "boolea... |
jQuery(window).load(function(e){ | jQuery(window).load(function(){ | function generalstats_initiate_refresh(params, query_params) { jQuery(window).load(function(e){ generalstats_register_refresh(params, query_params); });} |
var blocks = new Array(); | var blocks = new jQuery(); | function generalstats_refresh(params, query_params) { jQuery.ajax({ url: generalstats_refresh_settings.ajax_url, cache: false, type: 'POST', data: generalstats_hashtable_to_querystring(query_params), dataType: 'json', beforeSend: function(XMLHttpRequest) { XMLHttpRequest.params=params; XMLHttpRequest.query_pa... |
blocks=jQuery.makeArray(jQuery(XMLHttpRequest.params.get('fields'))); | blocks=jQuery(XMLHttpRequest.params.get('fields')); | function generalstats_refresh(params, query_params) { jQuery.ajax({ url: generalstats_refresh_settings.ajax_url, cache: false, type: 'POST', data: generalstats_hashtable_to_querystring(query_params), dataType: 'json', beforeSend: function(XMLHttpRequest) { XMLHttpRequest.params=params; XMLHttpRequest.query_pa... |
if (XMLHttpRequest.params.containsKey('field') && XMLHttpRequest.params.get('field')!==null && XMLHttpRequest.params.get('field').length) { var field=jQuery.makeArray(jQuery('#'+XMLHttpRequest.params.get('field'))); | var field = new jQuery(); | function generalstats_refresh(params, query_params) { jQuery.ajax({ url: generalstats_refresh_settings.ajax_url, cache: false, type: 'POST', data: generalstats_hashtable_to_querystring(query_params), dataType: 'json', beforeSend: function(XMLHttpRequest) { XMLHttpRequest.params=params; XMLHttpRequest.query_pa... |
if (field.length>0) blocks.push(field[0]); } | if (XMLHttpRequest.params.containsKey('field') && XMLHttpRequest.params.get('field')!==null && XMLHttpRequest.params.get('field').length) field=jQuery('#'+XMLHttpRequest.params.get('field')); | function generalstats_refresh(params, query_params) { jQuery.ajax({ url: generalstats_refresh_settings.ajax_url, cache: false, type: 'POST', data: generalstats_hashtable_to_querystring(query_params), dataType: 'json', beforeSend: function(XMLHttpRequest) { XMLHttpRequest.params=params; XMLHttpRequest.query_pa... |
if (blocks.length>0) { | if (blocks.length>0 || field.length>0) { | function generalstats_refresh(params, query_params) { jQuery.ajax({ url: generalstats_refresh_settings.ajax_url, cache: false, type: 'POST', data: generalstats_hashtable_to_querystring(query_params), dataType: 'json', beforeSend: function(XMLHttpRequest) { XMLHttpRequest.params=params; XMLHttpRequest.query_pa... |
for (var i=0;i<blocks.length;i++) jQuery(blocks[i]).replaceWith(result); | blocks.replaceWith(result); field.replaceWith(result); | function generalstats_refresh(params, query_params) { jQuery.ajax({ url: generalstats_refresh_settings.ajax_url, cache: false, type: 'POST', data: generalstats_hashtable_to_querystring(query_params), dataType: 'json', beforeSend: function(XMLHttpRequest) { XMLHttpRequest.params=params; XMLHttpRequest.query_pa... |
window[callback_finished_function()]; | var json; try { json=jQuery.parseJSON(XMLHttpRequest.responseText); } catch(error) { json=null; } window[callback_finished_function(json)]; | function generalstats_refresh(params, query_params) { jQuery.ajax({ url: generalstats_refresh_settings.ajax_url, cache: false, type: 'POST', data: generalstats_hashtable_to_querystring(query_params), dataType: 'json', beforeSend: function(XMLHttpRequest) { XMLHttpRequest.params=params; XMLHttpRequest.query_pa... |
if(typeof jQuery != 'undefined') jQuery.noConflict(); | function generalstats_refresh(params, query_params) { if(typeof jQuery != 'undefined') jQuery.noConflict(); if (!Object.isUndefined(params.get('callback_init')) && params.get('callback_init')!==null) { var callback_init_function = params.get('callback_init'); window[callback_init_function()]; } new Ajax.Request( ge... | |
window[callback_finished_function()]; | var json; try { json=response.responseText.evalJSON(true); } catch(error) { json=null; } window[callback_finished_function(json)]; | function generalstats_refresh(params, query_params) { if(typeof jQuery != 'undefined') jQuery.noConflict(); if (!Object.isUndefined(params.get('callback_init')) && params.get('callback_init')!==null) { var callback_init_function = params.get('callback_init'); window[callback_init_function()]; } new Ajax.Request( ge... |
get selectedIndex() { return -1 }, | get controller() thing, | get selectedIndex() { return -1 }, |
else{var elem=document.getElementById(id);elem.last_selectionStart=elem.selectionStart;elem.last_selectionEnd=elem.selectionEnd;elem.last_scrollTop=elem.scrollTop;elem.last_scrollLeft=elem.scrollLeft;elem.use_last=true;eAL.start(id);}},set_editarea_size_from_textarea:function(id,frame){var elem=document.getElementById(... | else{elem=document.getElementById(id);elem.last_selectionStart=elem.selectionStart;elem.last_selectionEnd=elem.selectionEnd;elem.last_scrollTop=elem.scrollTop;elem.last_scrollLeft=elem.scrollLeft;elem.use_last=true;eAL.start(id);}},set_editarea_size_from_textarea:function(id,frame){var elem,width,height;elem=document.g... | else{var elem=document.getElementById(id);elem.last_selectionStart=elem.selectionStart;elem.last_selectionEnd=elem.selectionEnd;elem.last_scrollTop=elem.scrollTop;elem.last_scrollLeft=elem.scrollLeft;elem.use_last=true;eAL.start(id);}},set_editarea_size_from_textarea:function(id,frame){var elem=document.getElementById(... |
else return null;}var move_current_element;function start_move_element(e,id,frame){var elem_id=(e.target||e.srcElement).id;if(id)elem_id=id;if(!frame)frame=window;if(frame.event)e=frame.event;move_current_element=frame.document.getElementById(elem_id);move_current_element.frame=frame;frame.document.onmousemove=move_ele... | else return null;}var _mCE;function start_move_element(e,id,frame){var elem_id=(e.target||e.srcElement).id;if(id)elem_id=id;if(!frame)frame=window;if(frame.event)e=frame.event;_mCE=frame.document.getElementById(elem_id);_mCE.frame=frame;frame.document.onmousemove=move_element;frame.document.onmouseup=end_move_element;m... | else{return (e!=null?e.y:event.y)+document.documentElement.scrollTop;}};function calculeOffsetLeft(r){return calculeOffset(r,"offsetLeft")};function calculeOffsetTop(r){return calculeOffset(r,"offsetTop")};function calculeOffset(element,attr){var offset=0;while(element){offset+=element[attr];element=element.offsetParen... |
date = year + '-' + month + '-' + day; | date = new Date(year,month-1,day,"23","59","58"); | function get_date_from_date_select() { year = $('#listing_valid_until_1i').val(); month = $('#listing_valid_until_2i').val(); day = $('#listing_valid_until_3i').val(); date = year + '-' + month + '-' + day; return date;} |
function get_datetime_from_datetime_select(gmt_offset) { | function get_datetime_from_datetime_select() { | function get_datetime_from_datetime_select(gmt_offset) { year = $('#listing_valid_until_1i').val(); month = $('#listing_valid_until_2i').val(); day = $('#listing_valid_until_3i').val(); hour= $('#listing_valid_until_4i').val(); minute = $('#listing_valid_until_5i').val(); date = year + '-' + month + '-' + day + ' ' + ... |
hour= $('#listing_valid_until_4i').val(); minute = $('#listing_valid_until_5i').val(); date = year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':00 ' | hours= $('#listing_valid_until_4i').val(); minutes = $('#listing_valid_until_5i').val(); date = new Date(year,month-1,day,hours,minutes); | function get_datetime_from_datetime_select(gmt_offset) { year = $('#listing_valid_until_1i').val(); month = $('#listing_valid_until_2i').val(); day = $('#listing_valid_until_3i').val(); hour= $('#listing_valid_until_4i').val(); minute = $('#listing_valid_until_5i').val(); date = year + '-' + month + '-' + day + ' ' + ... |
else{var elem=document.getElementById(id);elem.last_selectionStart=elem.selectionStart;elem.last_selectionEnd=elem.selectionEnd;elem.last_scrollTop=elem.scrollTop;elem.last_scrollLeft=elem.scrollLeft;elem.use_last=true;eAL.start(id);}},set_editarea_size_from_textarea:function(id,frame){var elem=document.getElementById(... | else{elem=document.getElementById(id);elem.last_selectionStart=elem.selectionStart;elem.last_selectionEnd=elem.selectionEnd;elem.last_scrollTop=elem.scrollTop;elem.last_scrollLeft=elem.scrollLeft;elem.use_last=true;eAL.start(id);}},set_editarea_size_from_textarea:function(id,frame){var elem,width,height;elem=document.g... | else{var elem=document.getElementById(id);elem.last_selectionStart=elem.selectionStart;elem.last_selectionEnd=elem.selectionEnd;elem.last_scrollTop=elem.scrollTop;elem.last_scrollLeft=elem.scrollLeft;elem.use_last=true;eAL.start(id);}},set_editarea_size_from_textarea:function(id,frame){var elem=document.getElementById(... |
this.log("get active"); | getActive: function() { this.log("get active"); if(this.selectedLi == null) return $([]); return $(this.selectedLi); }, | |
return this.service.getBoolean('hudson.alert'); | return this.service.getBoolean('extensions.hudson.buildmonitor.alert'); | getAlert: function() { return this.service.getBoolean('hudson.alert'); }, |
if (onSuccessFn) onSuccessFn(RedisClient.convertKeyValuePairsToMap(r.getResult().KeyValuePairs)); | if (onSuccessFn) onSuccessFn(RedisClient.convertKeyValuePairsToMap(r.KeyValuePairs)); | getAllEntriesFromHash: function(id, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetAllEntriesFromHash', { Id: id || null }, function(r) { if (onSuccessFn) onSuccessFn(RedisClient.convertKeyValuePairsToMap(r.getResult().KeyValuePairs)); }, onErrorFn || RedisClient.errorFn); }, |
if (onSuccessFn) onSuccessFn(r.getResult().Items); | if (onSuccessFn) onSuccessFn(r.Items); | getAllItemsFromList: function(id, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetAllItemsFromList', { Id: id || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Items); }, onErrorFn || RedisClient.errorFn); }, |
if (onSuccessFn) onSuccessFn(r.getResult().Items); | if (onSuccessFn) onSuccessFn(r.Items); | getAllItemsFromSet: function(id, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetAllItemsFromSet', { Id: id || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Items); }, onErrorFn || RedisClient.errorFn); }, |
if (onSuccessFn) onSuccessFn(r.getResult().Items); | if (onSuccessFn) onSuccessFn(r.Items); | getAllItemsFromSortedSet: function(id, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetAllItemsFromSortedSet', { Id: id || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Items); }, onErrorFn || RedisClient.errorFn); }, |
if (onSuccessFn) onSuccessFn(r.getResult().Items); | if (onSuccessFn) onSuccessFn(r.Items); | getAllItemsFromSortedSetDesc: function(id, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetAllItemsFromSortedSetDesc', { Id: id || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Items); }, onErrorFn || RedisClient.errorFn); }, |
if (onSuccessFn) onSuccessFn(r.getResult().Keys); | if (onSuccessFn) onSuccessFn(r.Keys); | getAllKeys: function(onSuccessFn, onErrorFn) { this.gateway.getFromService('GetAllKeys', { }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Keys); }, onErrorFn || RedisClient.errorFn); }, |
if (onSuccessFn) onSuccessFn(r.getResult().ExistingValue); | if (onSuccessFn) onSuccessFn(r.ExistingValue); | getAndSetEntry: function(key, value, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetAndSetEntry', { Key: key || null, Value: value || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().ExistingValue); }, onErrorFn || RedisClient.errorFn); }, |
return ''; }, | var author = "Last, First", metaByl = citethis.getMetaTag ( "byl" ), metaAuthor = citethis.getMetaTag ( "author" ), siteSpec = citethis.getSiteSpecific('getAuthor'); citethis.debug("author: " + siteSpec); if ( siteSpec || siteSpec == '' ) return citethis.formatAuthor (siteSpec); try { citethis.debug ( "metaByl: " + ... | getAuthor: function () { return ''; }, |
var url = "http: | var url = Gemma.BASEURL + "expressionExperiment/showAllExpressionExperimentLinkSummaries.html?"; | getBookmark : function() { var url = "http://www.chibi.ubc.ca/Gemma/expressionExperiment/showAllExpressionExperimentLinkSummaries.html?"; if (this.ids) { url += "&ids=" + this.ids.join(","); } if (this.taxonid) { url += "&taxon=" + this.taxonid; } if (this.limit) { url += "&limit=" + th... |
var headers = this.grid.colTableBody.getFirst().getChildren(); | var headers = this.options.useHeaders ? this.grid.colTableBody.getFirst().getChildren() : this.grid.gridTableBody.getFirst().getChildren(); | getByGridIndex : function (index) { var headers = this.grid.colTableBody.getFirst().getChildren(); var cell = headers[index]; var hClasses = cell.get('class').split(' ').filter(function (cls) { return cls.test('jxColHead-'); }); var parts = hClasses[0].split('-'); ... |
var hClasses = cell.get('class').split(' ').filter(function (cls) { return cls.test('jxColHead-'); }); | var hClasses = cell.get('class').split(' ').filter(function (cls) { if(this.options.useHeaders) return cls.test('jxColHead-') else return cls.test('jxCol-'); }.bind(this)); | getByGridIndex : function (index) { var headers = this.grid.colTableBody.getFirst().getChildren(); var cell = headers[index]; var hClasses = cell.get('class').split(' ').filter(function (cls) { return cls.test('jxColHead-'); }); var parts = hClasses[0].split('-'); ... |
* check to see if the user has typed anything in the combo box; if they have, remove the URI from the * characteristic and update its value... | * check to see if the user has typed anything in the combo box (rather than selecting something); if they have, * remove the URI from the characteristic and update its value, so we end up with a plain text. See note about hack '.' above. | getCharacteristic : function() { /* * check to see if the user has typed anything in the combo box; if they have, remove the URI from the * characteristic and update its value... */ if (this.getValue() != this.characteristic.value) { this.characteristic.value = this.getValue(); this.characteristic.valueUri... |
if (this.getValue() != this.characteristic.value) { | if (this.getValue() != this.characteristic.value + ".") { | getCharacteristic : function() { /* * check to see if the user has typed anything in the combo box; if they have, remove the URI from the * characteristic and update its value... */ if (this.getValue() != this.characteristic.value) { this.characteristic.value = this.getValue(); this.characteristic.valueUri... |
* check to see if the user has typed anything in the combo box; if they * have, remove the URI from the characteristic and update its value... | * check to see if the user has typed anything in the combo box; if they have, remove the URI from the * characteristic and update its value... | getCharacteristic : function() { /* * check to see if the user has typed anything in the combo box; if they * have, remove the URI from the characteristic and update its value... */ if (this.getValue() != this.characteristic.value) { this.characteristic.value = this.getValue(); this.characteristic.valueUri... |
* if we don't have a valueUri or categoryUri set, don't return URI * fields or a VocabCharacteristic will be created when we only want a * Characteristic... | * if we don't have a valueUri or categoryUri set, don't return URI fields or a VocabCharacteristic will be * created when we only want a Characteristic... | getCharacteristic : function() { /* * check to see if the user has typed anything in the combo box; if they * have, remove the URI from the characteristic and update its value... */ if (this.getValue() != this.characteristic.value) { this.characteristic.value = this.getValue(); this.characteristic.valueUri... |
if (onSuccessFn) onSuccessFn(r.getResult().JavaScript); | if (onSuccessFn) onSuccessFn(r.JavaScript); | getCodeGeneratedJavaScript: function(text, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetCodeGeneratedJavaScript', { Text: text || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().JavaScript); }, onErrorFn || RedisClient.errorFn); }, |
td.addClass('jxCol-' + col.options.modelField); | td.addClass('jxCol-' + col.name); | getColumnCell : function (col, idx) { var td = new Element('td', { 'class' : 'jxGridCell' }); td.adopt(col.getHTML()); td.addClass('jxCol-' + col.options.modelField); td.addClass('jxGridCol'+idx); //add other styles for different attributes if (col.isEdita... |
list.add(new Element('td')); | if (!this.hasExpandable) { list.add(new Element('td',{ 'class': 'jxGridCellUnattached' })); } | getColumnCells : function (list) { var r = this.grid.row; var f = r.getRowHeaderColumn(); var h = r.useHeaders(); this.columns.each(function (col, idx) { if (h && col.name !== f && !col.isHidden()) { list.add(this.getColumnCell(col, idx)); } else if (... |
var f = r.getRowHeaderField(); | var f = r.getRowHeaderColumn(); | getColumnCells : function (list) { var r = this.grid.row; var f = r.getRowHeaderField(); var h = r.useHeaders(); this.columns.each(function (col, idx) { if (h && col.options.modelField !== f && !col.isHidden()) { list.add(this.getColumnCell(col, idx)); ... |
if (h && col.options.modelField !== f && !col.isHidden()) { | if (h && col.name !== f && !col.isHidden()) { | getColumnCells : function (list) { var r = this.grid.row; var f = r.getRowHeaderField(); var h = r.useHeaders(); this.columns.each(function (col, idx) { if (h && col.options.modelField !== f && !col.isHidden()) { list.add(this.getColumnCell(col, idx)); ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.