rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
(function(){var g=s.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){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
(function(){var g=s.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){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:
function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
{},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a===
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
{},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a===
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
{},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a===
this._overlayTimeout = setTimeout(function(self) { self._showCanvas(cX, cY); }, kTapOverlayTimeout, this);
function(item, index, array) { return { label: item.name, default: (item == Services.search.defaultEngine), image: item.iconURI ? item.iconURI.spec : null } });
this._overlayTimeout = setTimeout(function(self) { self._showCanvas(cX, cY); }, kTapOverlayTimeout, this);
var classes = ['jxGridColHead', 'jxGridCol'+idx, 'jxGridCol'+col.options.name],
var classes = ['jxGridColHead', 'jxGridCol'+idx, 'jxCol-'+col.options.name, 'jxColHead-'+col.options.name],
this.columns.each(function(col, idx) { if (!col.isHidden() && col != rhc) { var classes = ['jxGridColHead', 'jxGridCol'+idx, 'jxGridCol'+col.options.name], th; if (col.isEditable()) { classes.push('jxColEditable'); } if (col.isResizable()) { classes.push('jxColResizable'); } if (col.isSortable()) { classes.push('jxColSortable'); } th = new Element('th', { 'class': classes.join(' ') }); th.store('jxCellData', { column: col, colHeader: true, index: idx }); th.adopt(col.getHeaderHTML()); th.inject(tr); } });
var record = store.getAt(store.findBy(function(record){ return record.get("layer") === layer; }));
var record = store.getAt(store.findBy(function(r) { return r.get("layer") === layer; }));
var record = store.getAt(store.findBy(function(record){ return record.get("layer") === layer; }));
disabled : false
disabled : true
Ext.onReady(function() { Ext.QuickTips.init(); var q = Ext.QuickTips; Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); tool = new Gemma.DatasetUploadTool(); var uploadForm = tool.getUploadForm(); var taxonCombo = new Gemma.TaxonCombo({ id : 'taxon-combo', fieldLabel : "Experiment taxon", emptyText : "RNA Taxon", allowBlank : false, isDisplayTaxonSpecies : true }); var taxonArrayCombo = new Gemma.TaxonCombo({ id : 'taxonArray-combo', fieldLabel : "Filter arrays by taxon", stateful : false, emptyText : "Array Taxon ", allowBlank : false, isDisplayTaxaWithArrays : true }); var arrayDesignCombo = new Gemma.ArrayDesignCombo({ minHeight : 80, bodyStyle : 'padding: 10px', allowBlank : false, width : 500 }); /* * Note we have two separate forms: one to do the file upload, and then a second form that pulls everything * together. */ var form = new Ext.Panel({ renderTo : 'form', width : 600, autoHeight : true, frame : true, title : "Enter expression experiment details", items : [{ xtype : 'panel', collapsible : true, title : 'Instructions', collapsed : false, frame : false, border : true, html : '<ul class="plainList" ><li>Complete all sections of the form, upload your data file (compress it first to speed things up)' + ', and click "Validate data"; once validation is complete you will be able to click "Submit data".</li>' + '<li>Most of the descriptive text you enter can be modified later. ' + 'The taxon, array design and the data themselves cannot easily be altered after submission.</li>' + '<li>For help with the file data file format, see ' + '<a target="_blank" href="/Gemma/static/expressionExperiment/upload_help.html">this page</a>.</li> ' + '<li>The probe identifiers in your file must match those in the array design on record.</li>' + '<li>If you used more than one array type in your study, there may be a "combined" array that will take care of your case. If not, let us know.</li>' + '<li>Problems? Questions? Please <a href="mailto:[email protected]">contact us</a></li></ul>' }, { xtype : 'form', id : 'main-form', autoHeight : true, items : [{ xtype : 'fieldset', title : 'The basics', autoHeight : true, style : 'margin : 5px', bodyStyle : "padding : 10px", items : [{ xtype : 'textfield', id : 'shortName', fieldLabel : 'Short name', emptyText : 'For example, "jones-liver". Must be unique, no spaces please. ', width : 400, allowBlank : false, maxLength : 100, minLength : 4, validator : function(value) { if (value.match(/\s/)) { return "Short name must not contain blanks."; } return true; }.createDelegate(this) }, { xtype : 'textfield', fieldLabel : 'Name', id : 'name', emptyText : 'Enter a longer descriptive name here', width : 400, maxLength : 255, allowBlank : false }, { xtype : 'textarea', id : 'description', height : 70, width : 400, fieldLabel : 'Description', allowBlank : true, maxLength : 5000, emptyText : 'Optionally enter a brief abstract describing your experiment' }, taxonCombo] }, { xtype : 'fieldset', style : 'margin : 5px', height : 'auto', title : "Select the array design you used", layout : 'table', layoutConfig : { columns : 1 }, items : [arrayDesignCombo, { // create form layout for taxon array combo cell otherwise field label not displayed xtype : 'panel', layout : 'form', items : [taxonArrayCombo] }, { id : 'array-design-info-area', xtype : 'panel', html : "<div style='width:400px,height:100px;overflow :auto;margin: 4px 0px 4px 0px;border:1px #CCC solid ;'" + " id='array-design-info-inner-html'>" + "<p style='color:grey;'>Array design details will be displayed here</p></div>" // ,width : 500, // style : 'overflow :scroll;margin: 4px 0px 4px 0px;border:solid 1px;', // height : 100, // readOnly : true }, { xtype : 'label', html : "Don't see your array design listed? Please see " + "<a target='_blank' href='/Gemma/arrays/showAllArrayDesigns.html'>the array design list</a>" + " for more information, " + "or <a href='mailto:[email protected]'>let us know</a> about your array design." }] // fixme add link to report. }, new Gemma.QuantitationTypePanel({ id : 'quantitation-type-panel', style : 'margin : 5px' }), { xtype : 'fieldset', id : 'availability-form', title : 'Security/availability information', labelWidth : 200, autoHeight : true, items : [{ xtype : 'numberfield', enableKeyEvents : true, minLength : 7, maxLength : 9, allowNegative : false, id : 'pubmedid', allowDecimals : false, fieldLabel : 'Pubmed ID', boxLabel : "If provided, your data will be made publicly viewable" }, { xtype : 'checkbox', id : 'public', boxLabel : "If checked, your data will immediately be viewable by anybody", fieldLabel : "Make my data publicly available" }, { xtype : 'checkbox', id : 'agree', enabled : false, handler : tool.agree, scope : tool, fieldLabel : "I have read the '<a target=\'_blank\' href='/Gemma/static/termsAndConditions.html'>terms and conditions</a>'" }] }] }, uploadForm], buttons : [{ id : 'validate-data-button', value : 'Validate data', handler : tool.validate, scope : tool, text : "Validate data", disabled : false }, { id : 'submit-data-button', value : 'Submit dataset', handler : tool.submitDataset, scope : tool, text : "Submit dataset", disabled : true }] }); Ext.getCmp('pubmedid').on('keyup', function(e, a) { if (!Ext.getCmp('pubmedid').getValue()) { Ext.getCmp('public').setValue(false); Ext.getCmp('public').enable(); } else if (Ext.getCmp('pubmedid').isValid()) { Ext.getCmp('public').setValue(true); Ext.getCmp('public').disable(); tool.commandObject.pubMedId = Ext.getCmp('pubmedid').getValue() } else { Ext.getCmp('public').setValue(false); Ext.getCmp('public').enable(); } }); arrayDesignCombo.on('select', function(combo, arrayDesign) { Ext.DomHelper .overwrite( 'array-design-info-inner-html', "<div style='padding:5px;'><a target='_blank' style='text-decoration:underline' href=\"/Gemma/arrays/showArrayDesign.html?id=" + arrayDesign.data.id + "\">" + arrayDesign.data.shortName + " details</a> (opens in new window)<p>Description: " + arrayDesign.data.description + "</p></div>"); tool.commandObject.arrayDesignIds = [arrayDesign.data.id]; }); taxonCombo.on('select', function(combo, taxon) { // if taxon combo changes should update array taxon combo with the same taxon, or at least the parent // taxon. var k = taxonArrayCombo.getStore().find("id", taxon.id); if (k >= 0) { taxonArrayCombo.setTaxon(taxon.id); arrayDesignCombo.taxonChanged(taxon.data); } else if (taxon.get("parentTaxon")) { var parent = taxon.get("parentTaxon"); k = taxonArrayCombo.getStore().find("id", parent.id); if (k < 0) { Ext.Msg.alert("Sorry", "There are no arrays for that taxon"); return; } taxonArrayCombo.setTaxon(parent.id); arrayDesignCombo.taxonChanged(parent); } else { Ext.Msg.alert("Sorry", "There are no arrays for that taxon"); } }.createDelegate(this)); taxonCombo.on('ready', function(taxon) { arrayDesignCombo.taxonChanged(taxon); }.createDelegate(this)); taxonArrayCombo.on('select', function(combo, taxon) { arrayDesignCombo.taxonChanged(taxon.data); }.createDelegate(this)); taxonArrayCombo.on('ready', function(taxon) { arrayDesignCombo.taxonChanged(taxon); }.createDelegate(this)); uploadForm.on('start', function(result) { Ext.getCmp('submit-data-button').disable(); }.createDelegate(this)); uploadForm.on('finish', function(result) { /* * Get the file information and put it in the value object. */ if (result.success) { if (Ext.getCmp('main-form').getForm().isValid()) { Ext.getCmp('validate-data-button').enable(); } tool.commandObject.serverFilePath = result.localFile; tool.commandObject.originalFileName = result.originalFile; } });});
Ext.select("a", Ext.get(view.getRow(idx))).on("click", function(evt) { evt.stopPropagation(); });
sm.each(function(rec) { var index = this.store.indexOfId(rec.id); if (index >= 0) { this.store.removeAt(index); } }, this);
Ext.select("a", Ext.get(view.getRow(idx))).on("click", function(evt) { evt.stopPropagation(); });
$$('a').each(function(a) { if (a.id) { a.addEvent('click', function() { top.main.location.href='../api/#'+a.id; }); } });
$$('link').each(function(link) { if (link.getAttribute('rel').indexOf("style") != -1 && link.getAttribute('title')) { link.disabled = (link.getAttribute('title') != ss); } });
$$('a').each(function(a) { if (a.id) { a.addEvent('click', function() { top.main.location.href='../api/#'+a.id; }); } });
$('#close_notification_link').click(function() { $('#notifications').slideUp('fast'); });
function(value, element, param) { if (value == "") { var radioButtonArray = new Array("1", "2", "4", "5"); for (var i = 0; i < radioButtonArray.length; i++) { if ($('#grade-' + radioButtonArray[i]).is(':checked')) { return false; } } } return true; }
$('#close_notification_link').click(function() { $('#notifications').slideUp('fast'); });
onComplete: (function() { if (!this.options.modal && this.options.parent.unmask) { this.options.parent.unmask(); } this.chrome.removeClass('jxChromeDrag'); var size = this.domObj.getMarginBoxSize(); this.options.width = size.width; this.options.height = size.height; this.layoutContent(); this.domObj.resize(this.options); this.contentContainer.setStyle('visibility',''); this.fireEvent('resize'); this.resizeChrome(this.domObj); }).bind(this)
isRestartShown(!this.addon.bootstrapped, true, function() { if(self.onComplete) self.onComplete(); });
onComplete: (function() { if (!this.options.modal && this.options.parent.unmask) { this.options.parent.unmask(); } this.chrome.removeClass('jxChromeDrag'); var size = this.domObj.getMarginBoxSize(); this.options.width = size.width; this.options.height = size.height; this.layoutContent(); this.domObj.resize(this.options); this.contentContainer.setStyle('visibility',''); this.fireEvent('resize'); this.resizeChrome(this.domObj); }).bind(this)
signin_form.unbind( 'submit' ).submit( submit_with_extra_openid_token ); }
password_input_fields.hide(); openid_login_token_input_fields.hide(); enabler.hide(); existing_login_methods_div.show(); }
function(){ signin_form.unbind( 'submit' ).submit( submit_with_extra_openid_token ); }
var playText = Drupal.theme.prototype['viewsSlideshowControlsPlay'] ? Drupal.theme('viewsSlideshowControlsPlay') : ''; $(this).text(playText); viewsSlideshowPlay(uniqueID, 'views_slideshow_controls');
viewsSlideshowPlay(uniqueID, '');
$(this).click(function() { if (Drupal.settings.viewsSlideshow[uniqueID].paused) { var playText = Drupal.theme.prototype['viewsSlideshowControlsPlay'] ? Drupal.theme('viewsSlideshowControlsPlay') : ''; $(this).text(playText); viewsSlideshowPlay(uniqueID, 'views_slideshow_controls'); } else { var pauseText = Drupal.theme.prototype['viewsSlideshowControlsPause'] ? Drupal.theme('viewsSlideshowControlsPause') : ''; $(this).text(pauseText); viewsSlideshowPause(uniqueID, 'views_slideshow_controls'); } return false; });
var pauseText = Drupal.theme.prototype['viewsSlideshowControlsPause'] ? Drupal.theme('viewsSlideshowControlsPause') : ''; $(this).text(pauseText); viewsSlideshowPause(uniqueID, 'views_slideshow_controls');
viewsSlideshowPause(uniqueID, '');
$(this).click(function() { if (Drupal.settings.viewsSlideshow[uniqueID].paused) { var playText = Drupal.theme.prototype['viewsSlideshowControlsPlay'] ? Drupal.theme('viewsSlideshowControlsPlay') : ''; $(this).text(playText); viewsSlideshowPlay(uniqueID, 'views_slideshow_controls'); } else { var pauseText = Drupal.theme.prototype['viewsSlideshowControlsPause'] ? Drupal.theme('viewsSlideshowControlsPause') : ''; $(this).text(pauseText); viewsSlideshowPause(uniqueID, 'views_slideshow_controls'); } return false; });
if (h && col.options.modelField !== f && !col.isHidden()) {
if (h && col.name !== f && !col.isHidden()) {
this.columns.each(function (col, idx) { if (h && col.options.modelField !== f && !col.isHidden()) { list.add(this.getColumnCell(col, idx)); } else if (!h && !col.isHidden()) { list.add(this.getColumnCell(col, idx)); } }, this);
function(genes) { var geneData = []; var warned = false; for (var i = 0; i < genes.length; ++i) { if (i >= Gemma.MAX_GENES_PER_QUERY) { if (!warned) { Ext.Msg .alert( "Too many genes", "You can only search up to "
GenePickerController.searchMultipleGenes(text, taxonId, function(genes) { var geneData = []; var warned = false; for (var i = 0; i < genes.length; ++i) { if (i >= Gemma.MAX_GENES_PER_QUERY) { if (!warned) { Ext.Msg.alert("Too many genes", "You can only search up to "
function(genes) { var geneData = []; var warned = false; for (var i = 0; i < genes.length; ++i) { if (i >= Gemma.MAX_GENES_PER_QUERY) { if (!warned) { Ext.Msg .alert( "Too many genes", "You can only search up to " + Gemma.MAX_GENES_PER_QUERY + " genes, some of your selections will be ignored."); warned = true; } break; } if (this.getStore().find("id", genes[i].id) < 0) { geneData.push([genes[i].id, genes[i].taxon.scientificName, genes[i].officialSymbol, genes[i].officialName]); } } this.getStore().loadData(geneData, true); }.createDelegate(this));
warned = true;
warned = true; } break; } if (this.getStore().find("id", genes[i].id) < 0) { geneData.push([genes[i].id, genes[i].taxon.scientificName, genes[i].officialSymbol, genes[i].officialName]); }
function(genes) { var geneData = []; var warned = false; for (var i = 0; i < genes.length; ++i) { if (i >= Gemma.MAX_GENES_PER_QUERY) { if (!warned) { Ext.Msg .alert( "Too many genes", "You can only search up to " + Gemma.MAX_GENES_PER_QUERY + " genes, some of your selections will be ignored."); warned = true; } break; } if (this.getStore().find("id", genes[i].id) < 0) { geneData.push([genes[i].id, genes[i].taxon.scientificName, genes[i].officialSymbol, genes[i].officialName]); } } this.getStore().loadData(geneData, true); }.createDelegate(this));
break; } if (this.getStore().find("id", genes[i].id) < 0) { geneData.push([genes[i].id, genes[i].taxon.scientificName, genes[i].officialSymbol, genes[i].officialName]); } } this.getStore().loadData(geneData, true); }.createDelegate(this));
this.getStore().loadData(geneData, true); loadMask.hide(); }.createDelegate(this));
function(genes) { var geneData = []; var warned = false; for (var i = 0; i < genes.length; ++i) { if (i >= Gemma.MAX_GENES_PER_QUERY) { if (!warned) { Ext.Msg .alert( "Too many genes", "You can only search up to " + Gemma.MAX_GENES_PER_QUERY + " genes, some of your selections will be ignored."); warned = true; } break; } if (this.getStore().find("id", genes[i].id) < 0) { geneData.push([genes[i].id, genes[i].taxon.scientificName, genes[i].officialSymbol, genes[i].officialName]); } } this.getStore().loadData(geneData, true); }.createDelegate(this));
GenePickerController.getGenes([geneId], function(genes) { var g = genes[0]; if (g) { this.geneCombo.setGene(g); this.geneCombo.setValue(g.officialSymbol); this.getStore().removeAll(); this.addButton.enable();
function(genes) { var geneData = []; var warned = false; for (var i = 0; i < genes.length; ++i) { if (i >= Gemma.MAX_GENES_PER_QUERY) { if (!warned) { Ext.Msg .alert( "Too many genes", "You can only search up to " + Gemma.MAX_GENES_PER_QUERY + " genes, some of your selections will be ignored."); warned = true;
GenePickerController.getGenes([geneId], function(genes) { var g = genes[0]; if (g) { this.geneCombo.setGene(g); this.geneCombo.setValue(g.officialSymbol); this.getStore().removeAll(); this.addButton.enable(); } if (callback) { callback(args); } }.createDelegate(this));
if (callback) { callback(args); } }.createDelegate(this));
break; } if (this.getStore().find("id", genes[i].id) < 0) { geneData.push([genes[i].id, genes[i].taxon.scientificName, genes[i].officialSymbol, genes[i].officialName]); } } this.getStore().loadData(geneData, true); }.createDelegate(this));
GenePickerController.getGenes([geneId], function(genes) { var g = genes[0]; if (g) { this.geneCombo.setGene(g); this.geneCombo.setValue(g.officialSymbol); this.getStore().removeAll(); this.addButton.enable(); } if (callback) { callback(args); } }.createDelegate(this));
$('#password_forgotten_link').click(function() { $('#password_forgotten').slideToggle('fast'); });
$('#password_forgotten_link').click(function() { $('#password_forgotten').slideToggle('fast'); $('input.request_password').focus(); });
$('#password_forgotten_link').click(function() { $('#password_forgotten').slideToggle('fast'); });
$('#toggle-collection-tree').click(function () { if (treeDiv.css('display') == 'none') { $('#collection-tree').css({width: '300px', height: 'auto', 'background-color': 'transparent'}); $('#main-content').css('margin-left', '310px'); treeDiv.css('display', ''); } else { $('#collection-tree').css({width: '40px', height: '400px', 'background-color': '#CCC'}); $('#main-content').css('margin-left', '50px'); treeDiv.css('display', 'none'); }
$('#collection-collapse-all').click(function () { $("#collection-tree-tree").dynatree("getRoot").visit(function(dtnode){ dtnode.expand(false); }); return false;
$('#toggle-collection-tree').click(function () { if (treeDiv.css('display') == 'none') { $('#collection-tree').css({width: '300px', height: 'auto', 'background-color': 'transparent'}); $('#main-content').css('margin-left', '310px'); treeDiv.css('display', ''); } else { $('#collection-tree').css({width: '40px', height: '400px', 'background-color': '#CCC'}); $('#main-content').css('margin-left', '50px'); treeDiv.css('display', 'none'); } });
this.on("afteredit", function(e) { var col = this.getColumnModel().getColumnId(e.column); if (col == CATEGORY_COLUMN) { var f = this.categoryCombo.getTerm.bind(this.categoryCombo); var term = f(); e.record.set("category", term.term); e.record.set("categoryUri", term.uri); }
this.getTopToolbar().on("save", function() { var edited = this.getEditedRecords(); var oldmsg = this.loadMask.msg; this.loadMask.msg = "Saving ..."; this.loadMask.show(); var callback = function() { this.recordsChanged(edited); this.loadMask.hide(); this.loadMask.msg = oldmsg; }.createDelegate(this); var errorHandler = function(er) { this.loadMask.hide(); this.loadMask.msg = oldmsg; Ext.Msg.alert("Error", er); }.createDelegate(this); ExperimentalDesignController.updateExperimentalFactors(edited, callback);
this.on("afteredit", function(e) { var col = this.getColumnModel().getColumnId(e.column); if (col == CATEGORY_COLUMN) { var f = this.categoryCombo.getTerm.bind(this.categoryCombo); var term = f(); e.record.set("category", term.term); e.record.set("categoryUri", term.uri); } }.createDelegate(this));
$('#toggle-collection-tree').click(function () { if (treeDiv.css('display') == 'none') { $('#collection-tree').css({width: '300px', height: 'auto', 'background-color': 'transparent'}); $('#main-content').css('margin-left', '310px'); treeDiv.css('display', ''); } else { $('#collection-tree').css({width: '40px', height: '400px', 'background-color': '#CCC'}); $('#main-content').css('margin-left', '50px'); treeDiv.css('display', 'none'); }
$('#collection-restrict-group').click(function(){ $('#collection-restrict-user-group').show();
$('#toggle-collection-tree').click(function () { if (treeDiv.css('display') == 'none') { $('#collection-tree').css({width: '300px', height: 'auto', 'background-color': 'transparent'}); $('#main-content').css('margin-left', '310px'); treeDiv.css('display', ''); } else { $('#collection-tree').css({width: '40px', height: '400px', 'background-color': '#CCC'}); $('#main-content').css('margin-left', '50px'); treeDiv.css('display', 'none'); } });
if (factor.get("type") == "Continuous") {
if (factor.get("type") == "continuous") { factorValueGrid.getStore().removeAll();
experimentalFactorGrid.on("experimentalfactorselected", function(factor) { if (factor.get("type") == "Continuous") { factorValueGrid .setTitle("Continuous values not displayed here, see the 'sample details' tab"); factorValueGrid.disable(); } else { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values for : " + factor.get("name")); factorValueGrid.setExperimentalFactor(factor.get("id")); } });
factorValueGrid.disable();
factorValueGrid.getEl().mask("Continuous values not displayed here, see the 'sample details' tab");
experimentalFactorGrid.on("experimentalfactorselected", function(factor) { if (factor.get("type") == "Continuous") { factorValueGrid .setTitle("Continuous values not displayed here, see the 'sample details' tab"); factorValueGrid.disable(); } else { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values for : " + factor.get("name")); factorValueGrid.setExperimentalFactor(factor.get("id")); } });
factorValueGrid.enable();
factorValueGrid.getEl().unmask();
experimentalFactorGrid.on("experimentalfactorselected", function(factor) { if (factor.get("type") == "Continuous") { factorValueGrid .setTitle("Continuous values not displayed here, see the 'sample details' tab"); factorValueGrid.disable(); } else { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values for : " + factor.get("name")); factorValueGrid.setExperimentalFactor(factor.get("id")); } });
if (button.options.label === value) { button.setActive(true); }
button.setActive(button.options.label === value);
this.buttonSet.buttons.each(function(button){ if (button.options.label === value) { button.setActive(true); } },this);
test('Objects', function(){ equals(console.dir({}), '{}'); equals(console.dir({name:'Nikita'}), '{\n "name": "Nikita"\n}'); equals(console.dir({name:'Nikita', surname:'Vasilyev'}), '{\n "name": "Nikita", \n "surname": "Vasilyev"\n}'); equals(console.dir({age: 21, name:'Nikita', surname:'Vasilyev'}), '{\n "age": 21, \n "name": "Nikita", \n "surname": "Vasilyev"\n}'); console.dimensions_limit = 1; equals(console.dir({down: {to: {rabbit: {hole:1}}}}), '{\n "down": {?}\n}'); console.dimensions_limit = 2; equals(console.dir({down: {to: {rabbit: {hole:1}}}}), '{\n "down": {\n "to": {?}\n }\n}'); console.dimensions_limit = 3; equals(console.dir({down: {to: {rabbit: 'hole'}}}), '{\n "down": {\n "to": {\n "rabbit": "hole"\n }\n }\n}'); var n = new Number(1); n.x = 2; equals(console.dir(n), '{\n "x": 2\n}');
test('Constructor object', function(){ function Mammal(){ this.eats = 'Milk'; } function Dog(){ this.legs = 4; } Dog.prototype = new Mammal; equals(console.dir(new Dog), '{\n "eats": "Milk", \n "legs": 4\n}');
test('Objects', function(){ equals(console.dir({}), '{}'); equals(console.dir({name:'Nikita'}), '{\n "name": "Nikita"\n}'); equals(console.dir({name:'Nikita', surname:'Vasilyev'}), '{\n "name": "Nikita", \n "surname": "Vasilyev"\n}'); equals(console.dir({age: 21, name:'Nikita', surname:'Vasilyev'}), '{\n "age": 21, \n "name": "Nikita", \n "surname": "Vasilyev"\n}'); console.dimensions_limit = 1; equals(console.dir({down: {to: {rabbit: {hole:1}}}}), '{\n "down": {?}\n}'); console.dimensions_limit = 2; equals(console.dir({down: {to: {rabbit: {hole:1}}}}), '{\n "down": {\n "to": {?}\n }\n}'); console.dimensions_limit = 3; equals(console.dir({down: {to: {rabbit: 'hole'}}}), '{\n "down": {\n "to": {\n "rabbit": "hole"\n }\n }\n}'); var n = new Number(1); n.x = 2; equals(console.dir(n), '{\n "x": 2\n}');});
$('#views_slideshow_thumbnailhover_breakout_teasers_' + settings.id + ' .views_slideshow_thumbnailhover_div_breakout_teaser').each(function(i,obj) { $(obj).hoverIntent( function() { $('.views_slideshow_thumbnailhover_div_breakout_teaser').removeClass('activeSlide'); var id = $(this).attr('id'); id = parseInt(id.substring(id.lastIndexOf('_')+1)); $(settings.targetId).cycle(id); $('#views_slideshow_thumbnailhover_div_breakout_teaser_' + settings.id + '_' + id).addClass('activeSlide'); $(settings.targetId).cycle('stop'); }, function() { var id = $(this).attr('id'); settings.opts.startingSlide = parseInt(id.substring(id.lastIndexOf('_')+1)); $(settings.targetId).cycle(settings.opts); } ); });
return function() { before_func.apply(null, arguments); new_func.apply(null, arguments); };
$('#views_slideshow_thumbnailhover_breakout_teasers_' + settings.id + ' .views_slideshow_thumbnailhover_div_breakout_teaser').each(function(i,obj) { $(obj).hoverIntent( function() { $('.views_slideshow_thumbnailhover_div_breakout_teaser').removeClass('activeSlide'); var id = $(this).attr('id'); id = parseInt(id.substring(id.lastIndexOf('_')+1)); $(settings.targetId).cycle(id); $('#views_slideshow_thumbnailhover_div_breakout_teaser_' + settings.id + '_' + id).addClass('activeSlide'); $(settings.targetId).cycle('stop'); }, function() { var id = $(this).attr('id'); settings.opts.startingSlide = parseInt(id.substring(id.lastIndexOf('_')+1)); $(settings.targetId).cycle(settings.opts); } ); });
$('#views_slideshow_thumbnailhover_playpause_' + settings.id).click(function(e) { if (settings.paused) { $(settings.targetId).cycle('resume'); $('#views_slideshow_thumbnailhover_playpause_' + settings.id) .addClass('views_slideshow_thumbnailhover_pause') .addClass('views_slideshow_pause') .removeClass('views_slideshow_thumbnailhover_play') .removeClass('views_slideshow_play') .text('Pause'); settings.paused = false; } else { $(settings.targetId).cycle('pause'); $('#views_slideshow_thumbnailhover_playpause_' + settings.id) .addClass('views_slideshow_thumbnailhover_play') .addClass('views_slideshow_play') .removeClass('views_slideshow_thumbnailhover_pause') .removeClass('views_slideshow_pause') .text('Resume'); settings.paused = true; } e.preventDefault();
$('#views_slideshow_thumbnailhover_breakout_teasers_' + settings.id + ' .views_slideshow_thumbnailhover_div_breakout_teaser').each(function(i,obj) { $(obj).hoverIntent( function() { $('.views_slideshow_thumbnailhover_div_breakout_teaser').removeClass('activeSlide'); var id = $(this).attr('id'); id = parseInt(id.substring(id.lastIndexOf('_')+1)); $(settings.targetId).cycle(id); $('#views_slideshow_thumbnailhover_div_breakout_teaser_' + settings.id + '_' + id).addClass('activeSlide'); $(settings.targetId).cycle('stop'); }, function() { var id = $(this).attr('id'); settings.opts.startingSlide = parseInt(id.substring(id.lastIndexOf('_')+1)); $(settings.targetId).cycle(settings.opts); } );
$('#views_slideshow_thumbnailhover_playpause_' + settings.id).click(function(e) { if (settings.paused) { $(settings.targetId).cycle('resume'); $('#views_slideshow_thumbnailhover_playpause_' + settings.id) .addClass('views_slideshow_thumbnailhover_pause') .addClass('views_slideshow_pause') .removeClass('views_slideshow_thumbnailhover_play') .removeClass('views_slideshow_play') .text('Pause'); settings.paused = false; } else { $(settings.targetId).cycle('pause'); $('#views_slideshow_thumbnailhover_playpause_' + settings.id) .addClass('views_slideshow_thumbnailhover_play') .addClass('views_slideshow_play') .removeClass('views_slideshow_thumbnailhover_pause') .removeClass('views_slideshow_pause') .text('Resume'); settings.paused = true; } e.preventDefault(); });
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
this.fireEvent('missingValue', payload)
this.fireEvent('link', payload)
k.on('done', function(payload) { this.fireEvent('missingValue', payload) });
$(window).scroll(function() { checkPause(settings);
$(window).resize(function() { checkPause(settings);
$(window).scroll(function() { checkPause(settings); });
elements.each( function(e) { e.checked = true; });
elements.each( function(e) { e.checked = false; });
elements.each( function(e) { e.checked = true; });
manager.on('pubmedRemove', function(success) { if (success) { var r = Ext.getCmp('pubmed-region-wrap'); r.remove(Ext.getCmp('pubmed-region')); var form = this.getPubMedForm(this.eeId); r.add(form); r.doLayout(); } }.createDelegate(this));
manager.on('reportUpdated', function(data) { ob = data[0]; var k = Ext.get('coexpressionLinkCount-region'); Ext.DomHelper.overwrite(k, { html : ob.coexpressionLinkCount }); k.highlight(); k = Ext.get('processedExpressionVectorCount-region'); Ext.DomHelper.overwrite(k, { html : ob.processedExpressionVectorCount }); k.highlight(); });
manager.on('pubmedRemove', function(success) { if (success) { var r = Ext.getCmp('pubmed-region-wrap'); r.remove(Ext.getCmp('pubmed-region')); var form = this.getPubMedForm(this.eeId); r.add(form); r.doLayout(); } }.createDelegate(this));
factorValueGrid.disable();
experimentalFactorGrid.on("experimentalfactorselected", function(factor) { if (factor.get("type") == "Continuous") { factorValueGrid .setTitle("Continuous values not displayed here, see the 'sample details' tab"); factorValueGrid.disable(); } else { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values for : " + factor.get("name")); factorValueGrid.setExperimentalFactor(factor.get("id")); } });
this.getTopToolbar().on("create", function() { if (this.store.getModifiedRecords().length > 0) { Ext.Msg .confirm( 'Unsaved changes!', 'You should save your changes before creating new values. Are you sure you want to erase them?', function(but) { if (but == 'yes') { this.store.rejectChanges(); this.createNew(); } }.createDelegate(this)); } else { this.createNew(); } }.createDelegate(this));
this.on("afteredit", function(model) { this.saveButton.enable(); this.revertButton.enable(); }, this.getTopToolbar());
this.getTopToolbar().on("create", function() { /* * Avoid accidents... */ if (this.store.getModifiedRecords().length > 0) { Ext.Msg .confirm( 'Unsaved changes!', 'You should save your changes before creating new values. Are you sure you want to erase them?', function(but) { if (but == 'yes') { this.store.rejectChanges(); this.createNew(); } }.createDelegate(this)); } else { this.createNew(); } }.createDelegate(this));
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
a:b+"></"+d+">"},F={option:[1,"<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,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
if (onSuccessFn) onSuccessFn(r.getResult().Score);
if (onSuccessFn) onSuccessFn(r.Score);
function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Score); },
a:b+"></"+d+">"},F={option:[1,"<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,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
a:b+"></"+d+">"},F={option:[1,"<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,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
if (onSuccessFn) onSuccessFn(r.getResult().ItemsRemovedCount);
if (onSuccessFn) onSuccessFn(r.ItemsRemovedCount);
function(r) { if (onSuccessFn) onSuccessFn(r.getResult().ItemsRemovedCount); },
c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
let groupItems = this.groupItems.filter(function(groupItem) { return !groupItem.hidden; });
groupItems.some(function(groupItem) { if (!groupItem.hidden) { let activeTab = groupItem.getActiveTab(); if (activeTab) { tabItem = activeTab; return true; } var child = groupItem.getChild(0); if (child) { tabItem = child; return true; } } return false; });
let groupItems = this.groupItems.filter(function(groupItem) { return !groupItem.hidden; });
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
$("#interestingTagAdd").click(function(){handlePickedTag(this,'good')});
$("#interestingTagAdd").click(function(){handlePickedTag(this,'good');});
$("#interestingTagAdd").click(function(){handlePickedTag(this,'good')});
this.fireEvent('differential', payload) });
this.fireEvent('link', payload); });
k.on('done', function(payload) { this.fireEvent('differential', payload) });
totalWidth += Jx.getNumber(col.getWidth()); if (rowHeader) { rowHeaderWidth = col.getWidth();
if (!col.isHidden() && !(col.name == this.grid.row.options.headerColumn)) { totalWidth += Jx.getNumber(col.getWidth()); if (rowHeader) { rowHeaderWidth = col.getWidth(); }
this.columns.each(function(col,idx){ //are we checking the rowheader? var rowHeader = false; if (col.name == this.grid.row.options.headerColumn) { rowHeader = true; } //if it's fixed, set the width to the passed in width if (col.options.renderMode == 'fixed') { col.calculateWidth(); //col.setWidth(col.options.width); } else if (col.options.renderMode == 'fit') { col.calculateWidth(rowHeader); } else if (col.options.renderMode == 'expand' && !$defined(expand)) { expand = col; } else { //treat it as fixed if has width, otherwise as fit if ($defined(col.options.width)) { col.setWidth(col.options.width); } else { col.calculateWidth(rowHeader); } } totalWidth += Jx.getNumber(col.getWidth()); if (rowHeader) { rowHeaderWidth = col.getWidth(); } },this);
var rowHeader = false; if (col.name == this.grid.row.options.headerColumn) { rowHeader = true; } if (col.options.renderMode == 'fixed') { col.setWidth(col.options.width); } else if (col.options.renderMode == 'fit') { col.calculateWidth(rowHeader); } else if (col.options.renderMode == 'expand' && !$defined(expand)) { expand = col; } else { if ($defined(col.options.width)) { col.setWidth(col.options.width); } else { col.calculateWidth(rowHeader); } } totalWidth += col.getWidth(); },this);
var rowHeader = false; if (col.name == this.grid.row.options.headerColumn) { rowHeader = true; } if (col.options.renderMode == 'fixed') { col.calculateWidth(); } else if (col.options.renderMode == 'fit') { col.calculateWidth(rowHeader); } else if (col.options.renderMode == 'expand' && !$defined(expand)) { expand = col; } else { if ($defined(col.options.width)) { col.setWidth(col.options.width); } else { col.calculateWidth(rowHeader); } } totalWidth += col.getWidth(); if (rowHeader) { rowHeaderWidth = col.getWidth(); } },this);
this.columns.each(function(col,idx){ //are we checking the rowheader? var rowHeader = false; if (col.name == this.grid.row.options.headerColumn) { rowHeader = true; } //if it's fixed, set the width to the passed in width if (col.options.renderMode == 'fixed') { col.setWidth(col.options.width); } else if (col.options.renderMode == 'fit') { col.calculateWidth(rowHeader); } else if (col.options.renderMode == 'expand' && !$defined(expand)) { expand = col; } else { //treat it as fixed if has width, otherwise as fit if ($defined(col.options.width)) { col.setWidth(col.options.width); } else { col.calculateWidth(rowHeader); } } totalWidth += col.getWidth(); },this);
totalWidth += Jx.getNumber(col.getWidth());
totalWidth += Jx.getNumber(col.getCellWidth());
this.columns.each(function(col,idx){ //are we checking the rowheader? var rowHeader = false; if (col.name == this.grid.row.options.headerColumn) { rowHeader = true; } //if it's fixed, set the width to the passed in width if (col.options.renderMode == 'fixed') { col.calculateWidth(); //col.setWidth(col.options.width); } else if (col.options.renderMode == 'fit') { col.calculateWidth(rowHeader); } else if (col.options.renderMode == 'expand' && !$defined(expand)) { expand = col; } else { //treat it as fixed if has width, otherwise as fit if ($defined(col.options.width)) { col.setWidth(col.options.width); } else { col.calculateWidth(rowHeader); } } if (!col.isHidden() && !(col.name == this.grid.row.options.headerColumn)) { totalWidth += Jx.getNumber(col.getWidth()); if (rowHeader) { rowHeaderWidth = col.getWidth(); } } },this);
a.addEvent('click', function() { top.main.location.href='../api/#'+a.id; });
$$('h2').each(function(p){ if (p.id) { var s = $(p.id+'Script'); if (!s) return; var d = new Element('div', {'class':'sourceButton'}); new Jx.Toolbar({scroll:false}).add( new Jx.Button.Flyout({ tooltip: {set:'Examples',key:'mainToolbar',value:'showSource'}, image: 'images/script.png', onOpen: function() {prettyPrint();}, content: '<pre class="prettyprint lang-js">'+s.innerHTML+'</pre>', contentClass: 'exampleScript' }) ).addTo(d); d.inject(p); } });
a.addEvent('click', function() { top.main.location.href='../api/#'+a.id; });
if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues();
refreshNeeded = true;
factorValueGrid.on("factorvaluecreate", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); });
$('#password_forgotten_link').click(function() { $('#password_forgotten').slideToggle('fast'); $('input.request_password').focus(); });
$('#close_notification_link').click(function() { $('#notifications').slideUp('fast'); });
$('#password_forgotten_link').click(function() { $('#password_forgotten').slideToggle('fast'); $('input.request_password').focus(); });
this.domObj.addEvent('mousedown', (function(){ this.stack(); }).bind(this));
var m = this.domObj.measure(function(){ return this.getSizes(['margin'],['top','bottom']).margin; });
this.domObj.addEvent('mousedown', (function(){ this.stack(); }).bind(this));
signin_form.unbind( 'submit' ).submit( submit_action );
openid_submit_button.click(); return false;
function(){ signin_form.unbind( 'submit' ).submit( submit_action ); }
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eePanel = new Gemma.EEPanel(Ext.get("eeId").getValue()); eePanel.on("ready", function(panel) { setTimeout(function() { Ext.get('loading').remove(); Ext.get('loading-mask').fadeOut({ remove : true }); }, 250); }); });
manager.on('differential', function() { window.location.reload(true); });
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eePanel = new Gemma.EEPanel(Ext.get("eeId").getValue()); eePanel.on("ready", function(panel) { setTimeout(function() { Ext.get('loading').remove(); Ext.get('loading-mask').fadeOut({ remove : true }); }, 250); }); });
ExpressionExperimentSetController.remove(rec.data, callback);
ExpressionExperimentSetController.remove([rec.data], callback);
function(but) { if (but == 'no') { return; } this.ownerCt.loadMask.show(); if (rec.phantom) { // nonpersistent, go ahead. this.ownerCt.getStore().remove(rec); this.ownerCt.getStore().clearSelected(); this.resetBut.disable(); this.deleteBut.disable(); this.commitBut.disable(); this.ownerCt.loadMask.hide(); } else { var callback = function(data) { if (data) { this.ownerCt.getStore().remove(rec); this.ownerCt.getStore().clearSelected(); this.resetBut.disable(); this.deleteBut.disable(); this.commitBut.disable(); this.ownerCt.loadMask.hide(); } }.createDelegate(this); ExpressionExperimentSetController.remove(rec.data, callback); } this.fireEvent("delete-set", rec); }, this);
prop.items.get(0).items.get(0).cascade(function(i) { i instanceof Ext.form.Field && i.setDisabled(true); });
var record = store.getAt(store.findBy(function(r) { return r.get("layer") === layer; }));
prop.items.get(0).items.get(0).cascade(function(i) { i instanceof Ext.form.Field && i.setDisabled(true); });
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);
this.columns.each(function(col,idx){ var rowHeader = false; if (col.name == this.grid.row.options.headerColumn) { rowHeader = true; } if (col.options.renderMode == 'fixed') { col.setWidth(col.options.width); } else if (col.options.renderMode == 'fit') { col.calculateWidth(rowHeader); } else if (col.options.renderMode == 'expand' && !$defined(expand)) { expand = col; } else { if ($defined(col.options.width)) { col.setWidth(col.options.width); } else { col.calculateWidth(rowHeader); } } totalWidth += col.getWidth(); },this);
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);
this.geneGrid.getSelectionModel().on("selectionchange", function(model) { var selected = model.getSelections(); if (selected.length > 0) { this.removeButton.enable(); } else { this.removeButton.disable(); } }.createDelegate(this));
GenePickerController.getGenes([geneId], function(genes) { var g = genes[0]; if (g) { this.geneCombo.setGene(g); this.geneCombo.setValue(g.officialSymbol); this.getStore().removeAll(); this.addButton.enable(); } if (callback) { callback(args); } }.createDelegate(this));
this.geneGrid.getSelectionModel().on("selectionchange", function(model) { var selected = model.getSelections(); if (selected.length > 0) { this.removeButton.enable(); } else { this.removeButton.disable(); } }.createDelegate(this));
this.geneGrid.getSelectionModel().on("selectionchange", function(model) { var selected = model.getSelections(); if (selected.length > 0) { this.removeButton.enable(); } else { this.removeButton.disable(); } }.createDelegate(this));
function(model) { var selected = model.getSelections(); if (selected.length > 0) { this.removeButton.enable(); } else { this.removeButton.disable(); } }.createDelegate(this));
this.geneGrid.getSelectionModel().on("selectionchange", function(model) { var selected = model.getSelections(); if (selected.length > 0) { this.removeButton.enable(); } else { this.removeButton.disable(); } }.createDelegate(this));
bioMaterialEditor.grid.reloadFactorValues();
if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues();
factorValueGrid.on("factorvaluecreate", function(fvgrid, fvs) { bioMaterialEditor.grid.reloadFactorValues(); });
var ancestorNames = $.map(ancestorsOf($(destination)), function(a) {
var ancestorNames = $.map(ancestorsOf(destination), function(a) {
var ancestorNames = $.map(ancestorsOf($(destination)), function(a) { return a.id; });
$('#collection-expand-all').click(function () { $("#collection-tree-tree").dynatree("getRoot").visit(function(dtnode){ dtnode.expand(true);
$("#collection-tree-tree").dynatree("getRoot").visit(function(dtnode){ dtnode.expand(false);
$('#collection-expand-all').click(function () { $("#collection-tree-tree").dynatree("getRoot").visit(function(dtnode){ dtnode.expand(true); }); return false; });
return false; });
$('#collection-expand-all').click(function () { $("#collection-tree-tree").dynatree("getRoot").visit(function(dtnode){ dtnode.expand(true); }); return false; });
this.on("afteredit", function(model) { this.saveButton.enable(); this.revertButton.enable(); }, this.getTopToolbar());
this.on("afteredit", function(e) { var col = this.getColumnModel().getColumnId(e.column); if (col == CATEGORY_COLUMN) { var f = this.categoryCombo.getTerm.bind(this.categoryCombo); var term = f(); e.record.set("category", term.term); e.record.set("categoryUri", term.uri); } }.createDelegate(this));
this.on("afteredit", function(model) { this.saveButton.enable(); this.revertButton.enable(); }, this.getTopToolbar());
$('#collection-expand-all').click(function () { $("#collection-tree-tree").dynatree("getRoot").visit(function(dtnode){ dtnode.expand(true); }); return false;
$('#toggle-collection-tree').click(function () { if (treeDiv.css('display') == 'none') { $('#collection-tree').css({width: '300px', height: 'auto', 'background-color': 'transparent'}); $('#main-content').css('margin-left', '310px'); treeDiv.css('display', ''); } else { $('#collection-tree').css({width: '40px', height: '400px', 'background-color': '#CCC'}); $('#main-content').css('margin-left', '50px'); treeDiv.css('display', 'none'); }
$('#collection-expand-all').click(function () { $("#collection-tree-tree").dynatree("getRoot").visit(function(dtnode){ dtnode.expand(true); }); return false; });
Jx.Dialog.orderDialogs(this);
this.stack();
this.domObj.addEvent('mousedown', (function(){ Jx.Dialog.orderDialogs(this); }).bind(this));
function() {
$('#views_slideshow_thumbnailhover_breakout_teasers_' + settings.id + ' .views_slideshow_thumbnailhover_div_breakout_teaser').each(function(i,obj) { $(obj).hoverIntent( function() {
function() { $('.views_slideshow_thumbnailhover_div_breakout_teaser').removeClass('activeSlide'); var id = $(this).attr('id'); id = parseInt(id.substring(id.lastIndexOf('_')+1)); $(settings.targetId).cycle(id); $('#views_slideshow_thumbnailhover_div_breakout_teaser_' + settings.id + '_' + id).addClass('activeSlide'); $(settings.targetId).cycle('stop'); },
function() { var id = $(this).attr('id'); settings.opts.startingSlide = parseInt(id.substring(id.lastIndexOf('_')+1)); $(settings.targetId).cycle(settings.opts); } ); });
function() { $('.views_slideshow_thumbnailhover_div_breakout_teaser').removeClass('activeSlide'); var id = $(this).attr('id'); id = parseInt(id.substring(id.lastIndexOf('_')+1)); $(settings.targetId).cycle(id); $('#views_slideshow_thumbnailhover_div_breakout_teaser_' + settings.id + '_' + id).addClass('activeSlide'); $(settings.targetId).cycle('stop'); },
true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>"; var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,
else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,
true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,
$(window).resize(function() { checkPause(settings);
$('#views_slideshow_cycle_playpause_' + settings.vss_id).click(function(e) { if (settings.paused) { viewsSlideshowCycleResume(settings); } else { viewsSlideshowCyclePause(settings); } e.preventDefault();
$(window).resize(function() { checkPause(settings); });
elements.each( function(e) { e.checked = !e.checked; });
return function() { return ++i < iterable.length ? getter : null };
elements.each( function(e) { e.checked = !e.checked; });
manager.on('updated', function(data) { Ext.getCmp('update-button-region').getEl().hide();
Ext.onReady(function() { Ext.QuickTips.init();
manager.on('updated', function(data) { Ext.getCmp('update-button-region').getEl().hide(); /* * Really we won't need to do this -- as the state on the database is supposed to match this one. */ var k = Ext.getCmp('shortname'); k.setValue(data.shortName); k = Ext.getCmp('name'); k.setValue(data.name); k = Ext.getCmp('description'); k.setValue(data.description); }.createDelegate(this));
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
manager.on('updated', function(data) { Ext.getCmp('update-button-region').getEl().hide(); /* * Really we won't need to do this -- as the state on the database is supposed to match this one. */ var k = Ext.getCmp('shortname'); k.setValue(data.shortName); k = Ext.getCmp('name'); k.setValue(data.name); k = Ext.getCmp('description'); k.setValue(data.description); }.createDelegate(this));
var k = Ext.getCmp('shortname'); k.setValue(data.shortName);
var eePanel = new Gemma.EEPanel(Ext.get("eeId").getValue());
manager.on('updated', function(data) { Ext.getCmp('update-button-region').getEl().hide(); /* * Really we won't need to do this -- as the state on the database is supposed to match this one. */ var k = Ext.getCmp('shortname'); k.setValue(data.shortName); k = Ext.getCmp('name'); k.setValue(data.name); k = Ext.getCmp('description'); k.setValue(data.description); }.createDelegate(this));
k = Ext.getCmp('name'); k.setValue(data.name);
eePanel.on("ready", function(panel) { setTimeout(function() { Ext.get('loading').remove(); Ext.get('loading-mask').fadeOut({ remove : true }); }, 250); });
manager.on('updated', function(data) { Ext.getCmp('update-button-region').getEl().hide(); /* * Really we won't need to do this -- as the state on the database is supposed to match this one. */ var k = Ext.getCmp('shortname'); k.setValue(data.shortName); k = Ext.getCmp('name'); k.setValue(data.name); k = Ext.getCmp('description'); k.setValue(data.description); }.createDelegate(this));
k = Ext.getCmp('description'); k.setValue(data.description); }.createDelegate(this));
});
manager.on('updated', function(data) { Ext.getCmp('update-button-region').getEl().hide(); /* * Really we won't need to do this -- as the state on the database is supposed to match this one. */ var k = Ext.getCmp('shortname'); k.setValue(data.shortName); k = Ext.getCmp('name'); k.setValue(data.name); k = Ext.getCmp('description'); k.setValue(data.description); }.createDelegate(this));
jq('input[name="paths:list"]').click(function(){ var checkbox = jq(this); if (checkbox.attr('checked')) { checkbox.closest('tr').addClass('ui-selected'); } else { checkbox.closest('tr').removeClass('ui-selected'); } });
jq('.filter_link').each(function(){ var id = jq(this).attr('id'); var box = jq(this).parents('.filter_box:first').attr('id'); if(arbeitsraum._params[view_name][box] != undefined && arbeitsraum._params[view_name][box].indexOf(id) != -1){ jq(this).addClass('activate'); } else{ jq(this).removeClass('activate'); } });
jq('input[name="paths:list"]').click(function(){ var checkbox = jq(this); if (checkbox.attr('checked')) { checkbox.closest('tr').addClass('ui-selected'); } else { checkbox.closest('tr').removeClass('ui-selected'); } });
function(but) {
this.getTopToolbar().on("create", function() { if (this.store.getModifiedRecords().length > 0) { Ext.Msg .confirm( 'Unsaved changes!', 'You should save your changes before creating new values. Are you sure you want to erase them?', function(but) {
function(but) { if (but == 'yes') { this.store.rejectChanges(); this.createNew(); } }.createDelegate(this));
} else { this.createNew(); } }.createDelegate(this));
function(but) { if (but == 'yes') { this.store.rejectChanges(); this.createNew(); } }.createDelegate(this));
this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||
""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||
u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||
if (onSuccessFn) onSuccessFn(r.getResult().ValueLength);
if (onSuccessFn) onSuccessFn(r.ValueLength);
function(r) { if (onSuccessFn) onSuccessFn(r.getResult().ValueLength); },
u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
1?(k=k.firstChild):k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++)d.call(b?f(this[n],j):this[n],n>0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["",
u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
hideLoadingGif();
$("#btn_add_book").click(function(){ post_new_book($("#book_title").val(), $("#book_author").val(), 0); });
$("#ignoredTagAdd").click(function(){handlePickedTag(this,'bad')});
$("#ignoredTagAdd").click(function(){handlePickedTag(this,'bad');});
$("#ignoredTagAdd").click(function(){handlePickedTag(this,'bad')});
window.addEventListener("UIReadyDelayed", function(aEvent) { window.removeEventListener(aEvent.type, arguments.callee, false); Elements.panelUI.hidden = false; ExtensionsView.init(); DownloadsView.init(); PreferencesView.init(); ConsoleView.init(); FullScreenVideo.init(); #ifdef MOZ_IPC Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULRuntime) .ensureContentProcess(); #endif #ifdef MOZ_SERVICES_SYNC WeaveGlue.init(); #endif }, false);
let union = aRects.reduce(function(a, b) { return a.expandToContain(b); }, new Rect(0, 0, 0, 0)).map(bv.browserToViewport);
window.addEventListener("UIReadyDelayed", function(aEvent) { window.removeEventListener(aEvent.type, arguments.callee, false); // We unhide the panelUI so the XBL and settings can initialize Elements.panelUI.hidden = false; // Init the views ExtensionsView.init(); DownloadsView.init(); PreferencesView.init(); ConsoleView.init(); FullScreenVideo.init();#ifdef MOZ_IPC // Pre-start the content process Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULRuntime) .ensureContentProcess();#endif#ifdef MOZ_SERVICES_SYNC // Init the sync system WeaveGlue.init();#endif }, false);
this.fireEvent('differential', payload) });
this.fireEvent('missingValue', payload) });
k.on('done', function(payload) { this.fireEvent('differential', payload) });
var selector = scope+' .jxGridCol'+idx+', '+scope + " .jxGridCol" + idx + " .jxGridCellContent";
var selector = scope+' .jxGridCol'+idx
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);
window['_pr_isIE6'] = function () { var isIE6 = navigator && navigator.userAgent && /\bMSIE 6\./.test(navigator.userAgent); window['_pr_isIE6'] = function () {return isIE6;}; return isIE6; };
$$('a').each(function(a) { if (a.id) { a.addEvent('click', function() { top.main.location.href='../api/#'+a.id; }); } });
window['_pr_isIE6'] = function () { var isIE6 = navigator && navigator.userAgent && /\bMSIE 6\./.test(navigator.userAgent); window['_pr_isIE6'] = function () {return isIE6;}; return isIE6;};
c = e.which ? e.which : e.keyCode; if (c == 13) { nickname = jQuery(this).val(); $.ajax({ url: "/nickname", type: "POST", data: { "new_nick": nickname }, success: function(msg){ $("#nick_text").hide(); $("#hi_msg").text("Hi " + nickname); }, error: on_ajax_fail }); return false; } return true;
onEnterDo(e, changeNickname, jQuery(this).val());
$("#nick_text").keypress(function(e){ c = e.which ? e.which : e.keyCode; if (c == 13) { nickname = jQuery(this).val(); $.ajax({ url: "/nickname", type: "POST", data: { "new_nick": nickname }, success: function(msg){ $("#nick_text").hide(); $("#hi_msg").text("Hi " + nickname); }, error: on_ajax_fail }); return false; } return true; });