rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
maximum_date = new Date((current_time.getFullYear() + 1) + '-' + current_time.getMonth() + '-' + current_time.getDate());
|
maximum_date = new Date((current_time.getFullYear() + 1),current_time.getMonth(),current_time.getDate(),23,59,59);
|
function(value, element, is_rideshare) { var current_time = new Date(); maximum_date = new Date((current_time.getFullYear() + 1) + '-' + current_time.getMonth() + '-' + current_time.getDate()); if (is_rideshare == "true") { return new Date(get_datetime_from_datetime_select()) < maximum_date; } else { return new Date(get_date_from_date_select()) < maximum_date; } }
|
return new Date(get_datetime_from_datetime_select()) < maximum_date;
|
return get_datetime_from_datetime_select() < maximum_date;
|
function(value, element, is_rideshare) { var current_time = new Date(); maximum_date = new Date((current_time.getFullYear() + 1) + '-' + current_time.getMonth() + '-' + current_time.getDate()); if (is_rideshare == "true") { return new Date(get_datetime_from_datetime_select()) < maximum_date; } else { return new Date(get_date_from_date_select()) < maximum_date; } }
|
return new Date(get_date_from_date_select()) < maximum_date;
|
return get_date_from_date_select() < maximum_date;
|
function(value, element, is_rideshare) { var current_time = new Date(); maximum_date = new Date((current_time.getFullYear() + 1) + '-' + current_time.getMonth() + '-' + current_time.getDate()); if (is_rideshare == "true") { return new Date(get_datetime_from_datetime_select()) < maximum_date; } else { return new Date(get_date_from_date_select()) < maximum_date; } }
|
query.abort();
|
if (query) query.abort();
|
function() { $(errmsg).hide(); $(loading).hide(); window.clearInterval(timeid); query.abort(); controlLink.html('<img src="'+ Database.str_start.icon +'" alt="" /> ' + Database.str_start.text ); }
|
$('#views_slideshow_singleframe_teaser_section_' + settings.id).hover(function() {
|
$('#views_slideshow_thumbnailhover_teaser_section_' + settings.id).hover(function() {
|
$('#views_slideshow_singleframe_teaser_section_' + settings.id).hover(function() { $(settings.targetId).cycle('pause'); }, function() {
|
bioMaterialEditor.grid.reloadFactorValues();
|
if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues();
|
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eeId = dwr.util.getValue("expressionExperimentID"); var edId = dwr.util.getValue("experimentalDesignID"); var admin = dwr.util.getValue("hasAdmin"); var editable = admin ? true : false; /* * TODO: load up the MGED terms, experimental design and factor values ahead of time. We end up doing it * about 4 times each. Create the panel in the callback. */ /* * TODO make sure we've got an eeId and display a prominent error message if we don't... */ var bioMaterialEditor = new Gemma.BioMaterialEditor({ renderTo : "bioMaterialsPanel", id : 'biomaterial-grid-panel', eeId : eeId, edId : edId, viewConfig : { // forceFit : true }, height : 740, width : 1000, editable : editable }); /* * If we init before the tab is rendered, then the scroll bars don't show up. */ // bioMaterialEditor.init(); var experimentalFactorGrid = new Gemma.ExperimentalFactorGrid({ id : 'experimental-factor-grid', title : "Experimental Factors", region : 'center', edId : edId, editable : editable, height : 200 }); var factorValueGrid = new Gemma.FactorValueGrid({ title : "Factor Values", region : 'south', id : 'factor-value-grid', form : 'factorValueForm', // hack split : true, edId : edId, editable : editable, width : 1000, height : 500 }); var efPanel = new Ext.Panel({ layout : 'border', height : 750, width : 1000, renderTo : "experimentalFactorPanel", items : [experimentalFactorGrid, factorValueGrid] }); var tabPanel = new Ext.TabPanel({ renderTo : "experimentalDesignPanel", height : 800, width : 1000, defaults : { layout : 'fit' }, layoutOnTabChange : false, activeTab : 0, items : [{ contentEl : "experimentalFactorPanel", title : "Design setup" }, { contentEl : "bioMaterialsPanel", title : "Sample details" }] }); /* * Only initialize once we are viewing the tab to help ensure the scroll bars are rendered right away. */ tabPanel.on('tabchange', function(panel, tab) { if (!bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); } }); experimentalFactorGrid.on("experimentalfactorchange", function(efgrid, efs) { bioMaterialEditor.init(); factorValueGrid.enable(); factorValueGrid.setTitle("Factor values"); factorValueGrid.setExperimentalFactor(null); }); 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.on("factorvaluecreate", function(fvgrid, fvs) { bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluechange", function(fvgrid, fvs) { bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluedelete", function(fvgrid, fvs) { bioMaterialEditor.grid.reloadFactorValues(); }); });
|
dojo.connect(uploader, "onError", function(err){ if(err && err.text) { console.error("Error uploading files:" + err.text);
|
dojo.connect(uploader, "onProgress", function(dataArray){ var uploadedPercent=0; var totalPercent=0; for(var i=0;i<dataArray.length;i++){ uploadedPercent+=dataArray[i].bytesLoaded; totalPercent+=dataArray[i].bytesTotal;
|
dojo.connect(uploader, "onError", function(err){ if(err && err.text) { console.error("Error uploading files:" + err.text); //alert("Error uploading files:" + err.text); } });
|
console.log("onProgress:"+uploadedPercent+"/"+totalPercent); setProgressbar((uploadedPercent/totalPercent),1.01011);
|
dojo.connect(uploader, "onError", function(err){ if(err && err.text) { console.error("Error uploading files:" + err.text); //alert("Error uploading files:" + err.text); } });
|
|
w.hide(); w.destroy();
|
p.on('cancel', function() { w.hide(); w.destroy(); p.destroy(); reset(); });
|
|
$("<option/>").attr("value", obj.project.id).text(obj.project.name) .appendTo("#projectSelect");
|
$("<option/>").attr("value", obj.metrictype.id) .text(obj.metrictype.type) .appendTo("#metricTypeSelect");
|
$.each(data, function(i, obj) { $("<option/>").attr("value", obj.project.id).text(obj.project.name) .appendTo("#projectSelect"); });
|
$('#keywords-result').load("filters.xql?type=keywords&prefix=" + input.val(), function () { if ($('#keywords-result ul').hasClass('complete')) $('#keyword-form').css('display', 'none');
|
$('#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'); }
|
$('#keywords-result').load("filters.xql?type=keywords&prefix=" + input.val(), function () { if ($('#keywords-result ul').hasClass('complete')) $('#keyword-form').css('display', 'none'); });
|
var selector = scope+' .jxGridRow'+idx;
|
var selector = scope+' .jxGridRow'+idx + ', ' + scope + ' .jxGridRow'+idx+' .jxGridCellContent';
|
this.grid.gridTableBody.getChildren().each(function(row, idx) { var selector = scope+' .jxGridRow'+idx; var rule = Jx.Styles.insertCssRule(selector, '', styleSheet); this.rules.set('jxGridRow'+idx, rule); rule.style.height = this.heights[idx] + "px"; if (Browser.Engine.webkit) { selector += " th"; var thRule = Jx.Styles.insertCssRule(selector, '', styleSheet); thRule.style.height = this.heights[idx] + "px"; } }, this);
|
this.rules.set('th_jxGridRow'+idx, thRule);
|
this.grid.gridTableBody.getChildren().each(function(row, idx) { var selector = scope+' .jxGridRow'+idx; var rule = Jx.Styles.insertCssRule(selector, '', styleSheet); this.rules.set('jxGridRow'+idx, rule); rule.style.height = this.heights[idx] + "px"; if (Browser.Engine.webkit) { selector += " th"; var thRule = Jx.Styles.insertCssRule(selector, '', styleSheet); thRule.style.height = this.heights[idx] + "px"; } }, this);
|
|
} else { this.init();
|
this.getTopToolbar().on("refresh", function() { if (this.store.getModifiedRecords().length > 0) { Ext.Msg.confirm('Unsaved changes!', 'You have unsaved changes, are you sure you want to refresh?', function(but) { if (but == 'yes') { this.init(); } }.createDelegate(this)); } }, this);
|
|
var editable = admin ? true : false;
|
var user = dwr.util.getValue("hasUser"); var editable = false; if(admin || user){ editable = true; }
|
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eeId = dwr.util.getValue("expressionExperimentID"); var edId = dwr.util.getValue("experimentalDesignID"); var admin = dwr.util.getValue("hasAdmin"); var editable = admin ? true : false; /* * TODO: load up the MGED terms, experimental design and factor values ahead of time. We end up doing it * about 4 times each. Create the panel in the callback. */ /* * TODO make sure we've got an eeId and display a prominent error message if we don't... */ var bioMaterialEditor = new Gemma.BioMaterialEditor({ renderTo : "bioMaterialsPanel", id : 'biomaterial-grid-panel', eeId : eeId, edId : edId, viewConfig : { // forceFit : true }, height : 740, width : 1000, editable : editable }); /* * If we init before the tab is rendered, then the scroll bars don't show up. */ // bioMaterialEditor.init(); var experimentalFactorGrid = new Gemma.ExperimentalFactorGrid({ id : 'experimental-factor-grid', title : "Experimental Factors", region : 'center', edId : edId, editable : editable, height : 200 }); var factorValueGrid = new Gemma.FactorValueGrid({ title : "Factor Values", region : 'south', id : 'factor-value-grid', form : 'factorValueForm', // hack split : true, edId : edId, editable : editable, width : 1000, height : 500 }); var efPanel = new Ext.Panel({ layout : 'border', height : 750, width : 1000, renderTo : "experimentalFactorPanel", items : [experimentalFactorGrid, factorValueGrid] }); var tabPanel = new Ext.TabPanel({ renderTo : "experimentalDesignPanel", height : 800, width : 1000, defaults : { layout : 'fit' }, layoutOnTabChange : false, activeTab : 0, items : [{ contentEl : "experimentalFactorPanel", title : "Design setup" }, { contentEl : "bioMaterialsPanel", title : "Sample details" }] }); /* * Only initialize once we are viewing the tab to help ensure the scroll bars are rendered right away. */ tabPanel.on('tabchange', function(panel, tab) { if (!bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); } }); experimentalFactorGrid.on("experimentalfactorchange", function(efgrid, efs) { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values"); factorValueGrid.setExperimentalFactor(null); }); 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.on("factorvaluecreate", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluechange", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluedelete", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); });
|
this.getTopToolbar().on("create", function(newFactorValue) { var oldmsg = this.loadMask.msg; this.loadMask.msg = "Creating new experimental factor"; this.loadMask.show(); var callback = function() { this.factorCreated(newFactorValue); 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.createExperimentalFactor(this.experimentalDesign, newFactorValue, { callback : callback, errorHandler : errorHandler }); }.createDelegate(this));
|
this.factorTypeCombo.on("select", function(combo, record, index) { typeEditor.completeEdit(); });
|
this.getTopToolbar().on("create", function(newFactorValue) { var oldmsg = this.loadMask.msg; this.loadMask.msg = "Creating new experimental factor"; this.loadMask.show(); var callback = function() { this.factorCreated(newFactorValue); 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.createExperimentalFactor(this.experimentalDesign, newFactorValue, { callback : callback, errorHandler : errorHandler }); }.createDelegate(this));
|
$('#collection-restrict-all').click(function(){ $('#collection-restrict-user-group').hide()
|
$(document).ready(function(){ $('#collection-restrict-all').click(function(){ $('#collection-restrict-user-group').hide(); }); $('#collection-restrict-user').click(function(){ $('#collection-restrict-user-group').hide(); }); $('#collection-restrict-group').click(function(){ $('#collection-restrict-user-group').show(); });
|
$('#collection-restrict-all').click(function(){ $('#collection-restrict-user-group').hide()});
|
input.css('display', 'none');
|
$('#keyword-form').css('display', 'none');
|
$('#keywords-result').load("filters.xql?type=keywords&prefix=" + input.val(), function () { if ($('#keywords-result ul').hasClass('complete')) input.css('display', 'none'); });
|
factorValueGrid.enable();
|
factorValueGrid.getEl().unmask();
|
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eeId = Ext.get("expressionExperimentID").getValue(); var edId = Ext.get("experimentalDesignID").getValue(); var editable = Ext.get('currentUserCanEdit').getValue() === 'true'; /* * TODO: load up the MGED terms, experimental design and factor values ahead of time. We end up doing it * about 4 times each. Create the panel in the callback. */ /* * If we init before the tab is rendered, then the scroll bars don't show up. */ var experimentalFactorGrid = new Gemma.ExperimentalFactorGrid({ id : 'experimental-factor-grid', title : "Experimental Factors", region : 'north', edId : edId, editable : editable, split : true, // north items must have height. height : 200 }); var factorValueGrid = new Gemma.FactorValueGrid({ title : "Factor Values", region : 'center', id : 'factor-value-grid', form : 'factorValueForm', // hack split : true, edId : edId, height : 470, editable : editable }); var efPanel = new Ext.Panel({ layout : 'border', height : 670, renderTo : "experimentalFactorPanel", items : [experimentalFactorGrid, factorValueGrid] }); var bioMaterialEditor = new Gemma.BioMaterialEditor({ renderTo : "bioMaterialsPanel", id : 'biomaterial-grid-panel', height : 670, eeId : eeId, edId : edId, viewConfig : { forceFit : true }, editable : editable }); var tabPanel = new Ext.TabPanel({ renderTo : "experimentalDesignPanel", layoutOnTabChange : false, activeTab : 0, height : 700, items : [{ contentEl : "experimentalFactorPanel", title : "Design setup" }, { contentEl : "bioMaterialsPanel", title : "Sample details" }] }); /* * Only initialize once we are viewing the tab to help ensure the scroll bars are rendered right away. */ var refreshNeeded = false; tabPanel.on('tabchange', function(panel, tab) { if (refreshNeeded || !bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); refreshNeeded = false; } }); experimentalFactorGrid.on("experimentalfactorchange", function(efgrid, efs) { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values"); factorValueGrid.setExperimentalFactor(null); // ?? refreshNeeded = true; }); 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.on("factorvaluecreate", function(fvgrid, fvs) { refreshNeeded = true; }); factorValueGrid.on("factorvaluechange", function(fvgrid, fvs) { refreshNeeded = true; }); factorValueGrid.on("factorvaluedelete", function(fvgrid, fvs) { refreshNeeded = true; }); });
|
if (factor.get("type") == "Continuous") {
|
if (factor.get("type") == "continuous") { factorValueGrid.getStore().removeAll();
|
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eeId = Ext.get("expressionExperimentID").getValue(); var edId = Ext.get("experimentalDesignID").getValue(); var editable = Ext.get('currentUserCanEdit').getValue() === 'true'; /* * TODO: load up the MGED terms, experimental design and factor values ahead of time. We end up doing it * about 4 times each. Create the panel in the callback. */ /* * If we init before the tab is rendered, then the scroll bars don't show up. */ var experimentalFactorGrid = new Gemma.ExperimentalFactorGrid({ id : 'experimental-factor-grid', title : "Experimental Factors", region : 'north', edId : edId, editable : editable, split : true, // north items must have height. height : 200 }); var factorValueGrid = new Gemma.FactorValueGrid({ title : "Factor Values", region : 'center', id : 'factor-value-grid', form : 'factorValueForm', // hack split : true, edId : edId, height : 470, editable : editable }); var efPanel = new Ext.Panel({ layout : 'border', height : 670, renderTo : "experimentalFactorPanel", items : [experimentalFactorGrid, factorValueGrid] }); var bioMaterialEditor = new Gemma.BioMaterialEditor({ renderTo : "bioMaterialsPanel", id : 'biomaterial-grid-panel', height : 670, eeId : eeId, edId : edId, viewConfig : { forceFit : true }, editable : editable }); var tabPanel = new Ext.TabPanel({ renderTo : "experimentalDesignPanel", layoutOnTabChange : false, activeTab : 0, height : 700, items : [{ contentEl : "experimentalFactorPanel", title : "Design setup" }, { contentEl : "bioMaterialsPanel", title : "Sample details" }] }); /* * Only initialize once we are viewing the tab to help ensure the scroll bars are rendered right away. */ var refreshNeeded = false; tabPanel.on('tabchange', function(panel, tab) { if (refreshNeeded || !bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); refreshNeeded = false; } }); experimentalFactorGrid.on("experimentalfactorchange", function(efgrid, efs) { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values"); factorValueGrid.setExperimentalFactor(null); // ?? refreshNeeded = true; }); 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.on("factorvaluecreate", function(fvgrid, fvs) { refreshNeeded = true; }); factorValueGrid.on("factorvaluechange", function(fvgrid, fvs) { refreshNeeded = true; }); factorValueGrid.on("factorvaluedelete", function(fvgrid, fvs) { refreshNeeded = true; }); });
|
factorValueGrid.disable();
|
factorValueGrid.getEl().mask("Continuous values not displayed here, see the 'sample details' tab");
|
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eeId = Ext.get("expressionExperimentID").getValue(); var edId = Ext.get("experimentalDesignID").getValue(); var editable = Ext.get('currentUserCanEdit').getValue() === 'true'; /* * TODO: load up the MGED terms, experimental design and factor values ahead of time. We end up doing it * about 4 times each. Create the panel in the callback. */ /* * If we init before the tab is rendered, then the scroll bars don't show up. */ var experimentalFactorGrid = new Gemma.ExperimentalFactorGrid({ id : 'experimental-factor-grid', title : "Experimental Factors", region : 'north', edId : edId, editable : editable, split : true, // north items must have height. height : 200 }); var factorValueGrid = new Gemma.FactorValueGrid({ title : "Factor Values", region : 'center', id : 'factor-value-grid', form : 'factorValueForm', // hack split : true, edId : edId, height : 470, editable : editable }); var efPanel = new Ext.Panel({ layout : 'border', height : 670, renderTo : "experimentalFactorPanel", items : [experimentalFactorGrid, factorValueGrid] }); var bioMaterialEditor = new Gemma.BioMaterialEditor({ renderTo : "bioMaterialsPanel", id : 'biomaterial-grid-panel', height : 670, eeId : eeId, edId : edId, viewConfig : { forceFit : true }, editable : editable }); var tabPanel = new Ext.TabPanel({ renderTo : "experimentalDesignPanel", layoutOnTabChange : false, activeTab : 0, height : 700, items : [{ contentEl : "experimentalFactorPanel", title : "Design setup" }, { contentEl : "bioMaterialsPanel", title : "Sample details" }] }); /* * Only initialize once we are viewing the tab to help ensure the scroll bars are rendered right away. */ var refreshNeeded = false; tabPanel.on('tabchange', function(panel, tab) { if (refreshNeeded || !bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); refreshNeeded = false; } }); experimentalFactorGrid.on("experimentalfactorchange", function(efgrid, efs) { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values"); factorValueGrid.setExperimentalFactor(null); // ?? refreshNeeded = true; }); 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.on("factorvaluecreate", function(fvgrid, fvs) { refreshNeeded = true; }); factorValueGrid.on("factorvaluechange", function(fvgrid, fvs) { refreshNeeded = true; }); factorValueGrid.on("factorvaluedelete", function(fvgrid, fvs) { refreshNeeded = true; }); });
|
test('Arrays', function(){ equals(console.dir([]), "[]"); equals(console.dir([1]), "[1]"); equals(console.dir(['Yada-yada']), '["Yada-yada"]'); equals(console.dir([1, 'Yada-yada']), '[1, "Yada-yada"]'); equals(console.dir([[1], 'Yada-yada']), '[[1], "Yada-yada"]'); equals(console.dir([1, ['Yada-yada']]), '[1, ["Yada-yada"]]'); equals(console.dir([1, [2, [3]]]), "[1, [2, [3]]]"); equals(console.dir([532, 94, [13, [41, 0]], [], 49]), "[532, 94, [13, [41, 0]], [], 49]"); equals(console.dir(new Array(2,-3,4)), '[2, -3, 4]');
|
test('Numbers', function(){ equals(console.dir(0), '0'); equals(console.dir(1), '1'); equals(console.dir(.283679), '0.283679'); equals(console.dir(Infinity), 'Infinity'); equals(console.dir(NaN), 'NaN'); var numObj = new Number(42); numObj.twenty = 20; equals(console.dir(numObj), 'Number 42 {\n "twenty": 20\n}');
|
test('Arrays', function(){ equals(console.dir([]), "[]"); equals(console.dir([1]), "[1]"); equals(console.dir(['Yada-yada']), '["Yada-yada"]'); equals(console.dir([1, 'Yada-yada']), '[1, "Yada-yada"]'); equals(console.dir([[1], 'Yada-yada']), '[[1], "Yada-yada"]'); equals(console.dir([1, ['Yada-yada']]), '[1, ["Yada-yada"]]'); equals(console.dir([1, [2, [3]]]), "[1, [2, [3]]]"); equals(console.dir([532, 94, [13, [41, 0]], [], 49]), "[532, 94, [13, [41, 0]], [], 49]"); equals(console.dir(new Array(2,-3,4)), '[2, -3, 4]');});
|
viewsSlideshowPlay(settings.slideshowID, '');
|
viewsSlideshowPlay(settings.slideshowId, '');
|
}, function() { if (!settings.paused) { viewsSlideshowPlay(settings.slideshowID, ''); } });
|
$('#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_singleframe_teaser_section_' + settings.id).hover(function() { $(settings.targetId).cycle('pause'); }, function() {
|
$('#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); } ); });
|
$('button[type=submit]').click(function(){
|
$('#top_nav > a').click(function(){ var menu_div = $(this).attr('href'); if($(this).hasClass('active') == false) { $('#menu-buttons > div.menu-scope-panel').fadeOut(); $('#top_nav > a').removeClass('active'); $(this).addClass('active'); $(menu_div).fadeIn(); } else { $(this).removeClass('active'); $(menu_div).fadeOut(); } return false;
|
$('button[type=submit]').click(function(){ });
|
input.data('placeholder-visible', false);
|
input.blur(function(){ if (this.value === '') { this.value = placeholder; this.style.color = color; } else { this.style.color = default_color; } });
|
|
$.each(dinners, function (i, dinner) { var LL = new VELatLong(dinner.Latitude, dinner.Longitude, 0, null); NerdDinner.LoadPin(LL, _getDinnerLinkHTML(dinner), _getDinnerDescriptionHTML(dinner)); $('#dinnerList').append($('<li/>') .attr("class", "dinnerItem") .append(_getDinnerLinkHTML(dinner)) .append($('<br/>')) .append(_getDinnerDate(dinner, "mmm d")) .append(" with " + _getRSVPMessage(dinner.RSVPCount)));
|
$(".dinnerItem").each(function (i, dinner) { $(dinner).hover( function () { NerdDinner._map.ShowInfoBox(NerdDinner._shapes[i]); }, function () { NerdDinner._map.HideInfoBox(NerdDinner._shapes[i]); } );
|
$.each(dinners, function (i, dinner) { var LL = new VELatLong(dinner.Latitude, dinner.Longitude, 0, null); // Add Pin to Map NerdDinner.LoadPin(LL, _getDinnerLinkHTML(dinner), _getDinnerDescriptionHTML(dinner)); //Add a dinner to the <ul> dinnerList on the right $('#dinnerList').append($('<li/>') .attr("class", "dinnerItem") .append(_getDinnerLinkHTML(dinner)) .append($('<br/>')) .append(_getDinnerDate(dinner, "mmm d")) .append(" with " + _getRSVPMessage(dinner.RSVPCount))); });
|
var editable = Ext.get('loggedIn').getValue();
|
var editable = Ext.get('currentUserCanEdit').getValue() === 'true';
|
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eeId = Ext.get("expressionExperimentID").getValue(); var edId = Ext.get("experimentalDesignID").getValue(); var editable = Ext.get('loggedIn').getValue(); /* * TODO: load up the MGED terms, experimental design and factor values ahead of time. We end up doing it * about 4 times each. Create the panel in the callback. */ /* * TODO make sure we've got an eeId and display a prominent error message if we don't... */ var bioMaterialEditor = new Gemma.BioMaterialEditor({ renderTo : "bioMaterialsPanel", id : 'biomaterial-grid-panel', eeId : eeId, edId : edId, viewConfig : { // forceFit : true }, height : 740, width : 1000, editable : editable }); /* * If we init before the tab is rendered, then the scroll bars don't show up. */ // bioMaterialEditor.init(); var experimentalFactorGrid = new Gemma.ExperimentalFactorGrid({ id : 'experimental-factor-grid', title : "Experimental Factors", region : 'center', edId : edId, editable : editable, height : 200 }); var factorValueGrid = new Gemma.FactorValueGrid({ title : "Factor Values", region : 'south', id : 'factor-value-grid', form : 'factorValueForm', // hack split : true, edId : edId, editable : editable, width : 1000, height : 500 }); var efPanel = new Ext.Panel({ layout : 'border', height : 750, width : 1000, renderTo : "experimentalFactorPanel", items : [experimentalFactorGrid, factorValueGrid] }); var tabPanel = new Ext.TabPanel({ renderTo : "experimentalDesignPanel", height : 800, width : 1000, defaults : { layout : 'fit' }, layoutOnTabChange : false, activeTab : 0, items : [{ contentEl : "experimentalFactorPanel", title : "Design setup" }, { contentEl : "bioMaterialsPanel", title : "Sample details" }] }); /* * Only initialize once we are viewing the tab to help ensure the scroll bars are rendered right away. */ tabPanel.on('tabchange', function(panel, tab) { if (!bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); } }); experimentalFactorGrid.on("experimentalfactorchange", function(efgrid, efs) { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values"); factorValueGrid.setExperimentalFactor(null); }); 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.on("factorvaluecreate", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluechange", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluedelete", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); });
|
* and trigger its keyup to refresh the list */ jQuery('#fklist').prev().keyup().focus();
|
* and trigger its focus to refresh the list AND actualy * focus back on the field */ jQuery('#fklist').prev().focus();
|
jQuery('#fkprev').live('click', function () { jQuery.ppa.o-=11; /* get the field that is the previous html elt from the #fklist * and trigger its keyup to refresh the list */ jQuery('#fklist').prev().keyup().focus();});
|
Ext.getCmp('annotator-grid').on('refresh', function() { this.change = true; }.createDelegate(this));
|
k.on('done', function(payload) { this.fireEvent('tagsUpdated', payload) });
|
Ext.getCmp('annotator-grid').on('refresh', function() { this.change = true; }.createDelegate(this));
|
Jx.baseURL = s.slice(0,n-1);
|
Jx.baseURL = s.slice(0,n);
|
(function() { var aScripts = document.getElementsByTagName('SCRIPT'); for (var i = 0; i < aScripts.length; i++) { var s = aScripts[i].src; var n = s.lastIndexOf('/'); var file = s.slice(n+1,s.length-1); if (file.contains('jxlib')) { Jx.baseURL = s.slice(0,n-1); break; } } })();
|
var provider_name = $( provider_row ).find( '.ab-provider-name' ).html().trim();
|
var provider_name = get_provider_name(provider_row);
|
function(i, provider_row){ var provider_name = $( provider_row ).find( '.ab-provider-name' ).html().trim(); existing_login_methods[provider_name] = true; }
|
dojo.addOnLoad( function() { dojo.addOnLoad(populateUserInfo); populateSelect();
|
dojo.addOnLoad(function() { dojo.addOnLoad(getJSONAccessList);
|
dojo.addOnLoad( function() { dojo.addOnLoad(populateUserInfo); populateSelect();});
|
'html': option.text
|
'html': this.getText(option.text)
|
group.options.each(function(option){ var opt = new Element('option', { 'value': option.value, 'html': option.text }); if ($defined(option.selected) && option.selected) { opt.set("selected", "selected"); } gr.grab(opt); },this);
|
manager.on('done', function() { window.location.reload(); });
|
k.on('done', 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(); } }, this);
|
manager.on('done', function() { window.location.reload(); });
|
*/ /* * TODO make sure we've got an eeId and display a prominent error message if we don't... */ var bioMaterialEditor = new Gemma.BioMaterialEditor({ renderTo : "bioMaterialsPanel", id : 'biomaterial-grid-panel', eeId : eeId, edId : edId, viewConfig : { }, height : 740, width : 1000, editable : editable });
|
*/
|
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eeId = Ext.get("expressionExperimentID").getValue(); var edId = Ext.get("experimentalDesignID").getValue(); var editable = Ext.get('currentUserCanEdit').getValue() === 'true'; /* * TODO: load up the MGED terms, experimental design and factor values ahead of time. We end up doing it * about 4 times each. Create the panel in the callback. */ /* * TODO make sure we've got an eeId and display a prominent error message if we don't... */ var bioMaterialEditor = new Gemma.BioMaterialEditor({ renderTo : "bioMaterialsPanel", id : 'biomaterial-grid-panel', eeId : eeId, edId : edId, viewConfig : { // forceFit : true }, height : 740, width : 1000, editable : editable }); /* * If we init before the tab is rendered, then the scroll bars don't show up. */ // bioMaterialEditor.init(); var experimentalFactorGrid = new Gemma.ExperimentalFactorGrid({ id : 'experimental-factor-grid', title : "Experimental Factors", region : 'center', edId : edId, editable : editable, height : 200 }); var factorValueGrid = new Gemma.FactorValueGrid({ title : "Factor Values", region : 'south', id : 'factor-value-grid', form : 'factorValueForm', // hack split : true, edId : edId, editable : editable, width : 1000, height : 500 }); var efPanel = new Ext.Panel({ layout : 'border', height : 750, width : 1000, renderTo : "experimentalFactorPanel", items : [experimentalFactorGrid, factorValueGrid] }); var tabPanel = new Ext.TabPanel({ renderTo : "experimentalDesignPanel", height : 800, width : 1000, defaults : { layout : 'fit' }, layoutOnTabChange : false, activeTab : 0, items : [{ contentEl : "experimentalFactorPanel", title : "Design setup" }, { contentEl : "bioMaterialsPanel", title : "Sample details" }] }); /* * Only initialize once we are viewing the tab to help ensure the scroll bars are rendered right away. */ tabPanel.on('tabchange', function(panel, tab) { if (!bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); } }); experimentalFactorGrid.on("experimentalfactorchange", function(efgrid, efs) { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values"); factorValueGrid.setExperimentalFactor(null); }); 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.on("factorvaluecreate", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluechange", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluedelete", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); });
|
region : 'center',
|
region : 'north',
|
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eeId = Ext.get("expressionExperimentID").getValue(); var edId = Ext.get("experimentalDesignID").getValue(); var editable = Ext.get('currentUserCanEdit').getValue() === 'true'; /* * TODO: load up the MGED terms, experimental design and factor values ahead of time. We end up doing it * about 4 times each. Create the panel in the callback. */ /* * TODO make sure we've got an eeId and display a prominent error message if we don't... */ var bioMaterialEditor = new Gemma.BioMaterialEditor({ renderTo : "bioMaterialsPanel", id : 'biomaterial-grid-panel', eeId : eeId, edId : edId, viewConfig : { // forceFit : true }, height : 740, width : 1000, editable : editable }); /* * If we init before the tab is rendered, then the scroll bars don't show up. */ // bioMaterialEditor.init(); var experimentalFactorGrid = new Gemma.ExperimentalFactorGrid({ id : 'experimental-factor-grid', title : "Experimental Factors", region : 'center', edId : edId, editable : editable, height : 200 }); var factorValueGrid = new Gemma.FactorValueGrid({ title : "Factor Values", region : 'south', id : 'factor-value-grid', form : 'factorValueForm', // hack split : true, edId : edId, editable : editable, width : 1000, height : 500 }); var efPanel = new Ext.Panel({ layout : 'border', height : 750, width : 1000, renderTo : "experimentalFactorPanel", items : [experimentalFactorGrid, factorValueGrid] }); var tabPanel = new Ext.TabPanel({ renderTo : "experimentalDesignPanel", height : 800, width : 1000, defaults : { layout : 'fit' }, layoutOnTabChange : false, activeTab : 0, items : [{ contentEl : "experimentalFactorPanel", title : "Design setup" }, { contentEl : "bioMaterialsPanel", title : "Sample details" }] }); /* * Only initialize once we are viewing the tab to help ensure the scroll bars are rendered right away. */ tabPanel.on('tabchange', function(panel, tab) { if (!bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); } }); experimentalFactorGrid.on("experimentalfactorchange", function(efgrid, efs) { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values"); factorValueGrid.setExperimentalFactor(null); }); 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.on("factorvaluecreate", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluechange", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluedelete", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); });
|
region : 'south',
|
region : 'center',
|
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eeId = Ext.get("expressionExperimentID").getValue(); var edId = Ext.get("experimentalDesignID").getValue(); var editable = Ext.get('currentUserCanEdit').getValue() === 'true'; /* * TODO: load up the MGED terms, experimental design and factor values ahead of time. We end up doing it * about 4 times each. Create the panel in the callback. */ /* * TODO make sure we've got an eeId and display a prominent error message if we don't... */ var bioMaterialEditor = new Gemma.BioMaterialEditor({ renderTo : "bioMaterialsPanel", id : 'biomaterial-grid-panel', eeId : eeId, edId : edId, viewConfig : { // forceFit : true }, height : 740, width : 1000, editable : editable }); /* * If we init before the tab is rendered, then the scroll bars don't show up. */ // bioMaterialEditor.init(); var experimentalFactorGrid = new Gemma.ExperimentalFactorGrid({ id : 'experimental-factor-grid', title : "Experimental Factors", region : 'center', edId : edId, editable : editable, height : 200 }); var factorValueGrid = new Gemma.FactorValueGrid({ title : "Factor Values", region : 'south', id : 'factor-value-grid', form : 'factorValueForm', // hack split : true, edId : edId, editable : editable, width : 1000, height : 500 }); var efPanel = new Ext.Panel({ layout : 'border', height : 750, width : 1000, renderTo : "experimentalFactorPanel", items : [experimentalFactorGrid, factorValueGrid] }); var tabPanel = new Ext.TabPanel({ renderTo : "experimentalDesignPanel", height : 800, width : 1000, defaults : { layout : 'fit' }, layoutOnTabChange : false, activeTab : 0, items : [{ contentEl : "experimentalFactorPanel", title : "Design setup" }, { contentEl : "bioMaterialsPanel", title : "Sample details" }] }); /* * Only initialize once we are viewing the tab to help ensure the scroll bars are rendered right away. */ tabPanel.on('tabchange', function(panel, tab) { if (!bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); } }); experimentalFactorGrid.on("experimentalfactorchange", function(efgrid, efs) { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values"); factorValueGrid.setExperimentalFactor(null); }); 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.on("factorvaluecreate", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluechange", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluedelete", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); });
|
editable : editable, width : 1000, height : 500
|
height : 470, editable : editable
|
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eeId = Ext.get("expressionExperimentID").getValue(); var edId = Ext.get("experimentalDesignID").getValue(); var editable = Ext.get('currentUserCanEdit').getValue() === 'true'; /* * TODO: load up the MGED terms, experimental design and factor values ahead of time. We end up doing it * about 4 times each. Create the panel in the callback. */ /* * TODO make sure we've got an eeId and display a prominent error message if we don't... */ var bioMaterialEditor = new Gemma.BioMaterialEditor({ renderTo : "bioMaterialsPanel", id : 'biomaterial-grid-panel', eeId : eeId, edId : edId, viewConfig : { // forceFit : true }, height : 740, width : 1000, editable : editable }); /* * If we init before the tab is rendered, then the scroll bars don't show up. */ // bioMaterialEditor.init(); var experimentalFactorGrid = new Gemma.ExperimentalFactorGrid({ id : 'experimental-factor-grid', title : "Experimental Factors", region : 'center', edId : edId, editable : editable, height : 200 }); var factorValueGrid = new Gemma.FactorValueGrid({ title : "Factor Values", region : 'south', id : 'factor-value-grid', form : 'factorValueForm', // hack split : true, edId : edId, editable : editable, width : 1000, height : 500 }); var efPanel = new Ext.Panel({ layout : 'border', height : 750, width : 1000, renderTo : "experimentalFactorPanel", items : [experimentalFactorGrid, factorValueGrid] }); var tabPanel = new Ext.TabPanel({ renderTo : "experimentalDesignPanel", height : 800, width : 1000, defaults : { layout : 'fit' }, layoutOnTabChange : false, activeTab : 0, items : [{ contentEl : "experimentalFactorPanel", title : "Design setup" }, { contentEl : "bioMaterialsPanel", title : "Sample details" }] }); /* * Only initialize once we are viewing the tab to help ensure the scroll bars are rendered right away. */ tabPanel.on('tabchange', function(panel, tab) { if (!bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); } }); experimentalFactorGrid.on("experimentalfactorchange", function(efgrid, efs) { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values"); factorValueGrid.setExperimentalFactor(null); }); 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.on("factorvaluecreate", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluechange", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluedelete", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); });
|
height : 750, width : 1000,
|
height : 670,
|
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eeId = Ext.get("expressionExperimentID").getValue(); var edId = Ext.get("experimentalDesignID").getValue(); var editable = Ext.get('currentUserCanEdit').getValue() === 'true'; /* * TODO: load up the MGED terms, experimental design and factor values ahead of time. We end up doing it * about 4 times each. Create the panel in the callback. */ /* * TODO make sure we've got an eeId and display a prominent error message if we don't... */ var bioMaterialEditor = new Gemma.BioMaterialEditor({ renderTo : "bioMaterialsPanel", id : 'biomaterial-grid-panel', eeId : eeId, edId : edId, viewConfig : { // forceFit : true }, height : 740, width : 1000, editable : editable }); /* * If we init before the tab is rendered, then the scroll bars don't show up. */ // bioMaterialEditor.init(); var experimentalFactorGrid = new Gemma.ExperimentalFactorGrid({ id : 'experimental-factor-grid', title : "Experimental Factors", region : 'center', edId : edId, editable : editable, height : 200 }); var factorValueGrid = new Gemma.FactorValueGrid({ title : "Factor Values", region : 'south', id : 'factor-value-grid', form : 'factorValueForm', // hack split : true, edId : edId, editable : editable, width : 1000, height : 500 }); var efPanel = new Ext.Panel({ layout : 'border', height : 750, width : 1000, renderTo : "experimentalFactorPanel", items : [experimentalFactorGrid, factorValueGrid] }); var tabPanel = new Ext.TabPanel({ renderTo : "experimentalDesignPanel", height : 800, width : 1000, defaults : { layout : 'fit' }, layoutOnTabChange : false, activeTab : 0, items : [{ contentEl : "experimentalFactorPanel", title : "Design setup" }, { contentEl : "bioMaterialsPanel", title : "Sample details" }] }); /* * Only initialize once we are viewing the tab to help ensure the scroll bars are rendered right away. */ tabPanel.on('tabchange', function(panel, tab) { if (!bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); } }); experimentalFactorGrid.on("experimentalfactorchange", function(efgrid, efs) { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values"); factorValueGrid.setExperimentalFactor(null); }); 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.on("factorvaluecreate", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluechange", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluedelete", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); });
|
height : 800, width : 1000, defaults : { layout : 'fit' },
|
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eeId = Ext.get("expressionExperimentID").getValue(); var edId = Ext.get("experimentalDesignID").getValue(); var editable = Ext.get('currentUserCanEdit').getValue() === 'true'; /* * TODO: load up the MGED terms, experimental design and factor values ahead of time. We end up doing it * about 4 times each. Create the panel in the callback. */ /* * TODO make sure we've got an eeId and display a prominent error message if we don't... */ var bioMaterialEditor = new Gemma.BioMaterialEditor({ renderTo : "bioMaterialsPanel", id : 'biomaterial-grid-panel', eeId : eeId, edId : edId, viewConfig : { // forceFit : true }, height : 740, width : 1000, editable : editable }); /* * If we init before the tab is rendered, then the scroll bars don't show up. */ // bioMaterialEditor.init(); var experimentalFactorGrid = new Gemma.ExperimentalFactorGrid({ id : 'experimental-factor-grid', title : "Experimental Factors", region : 'center', edId : edId, editable : editable, height : 200 }); var factorValueGrid = new Gemma.FactorValueGrid({ title : "Factor Values", region : 'south', id : 'factor-value-grid', form : 'factorValueForm', // hack split : true, edId : edId, editable : editable, width : 1000, height : 500 }); var efPanel = new Ext.Panel({ layout : 'border', height : 750, width : 1000, renderTo : "experimentalFactorPanel", items : [experimentalFactorGrid, factorValueGrid] }); var tabPanel = new Ext.TabPanel({ renderTo : "experimentalDesignPanel", height : 800, width : 1000, defaults : { layout : 'fit' }, layoutOnTabChange : false, activeTab : 0, items : [{ contentEl : "experimentalFactorPanel", title : "Design setup" }, { contentEl : "bioMaterialsPanel", title : "Sample details" }] }); /* * Only initialize once we are viewing the tab to help ensure the scroll bars are rendered right away. */ tabPanel.on('tabchange', function(panel, tab) { if (!bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); } }); experimentalFactorGrid.on("experimentalfactorchange", function(efgrid, efs) { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values"); factorValueGrid.setExperimentalFactor(null); }); 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.on("factorvaluecreate", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluechange", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluedelete", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); });
|
|
factorValueGrid.disable();
|
Ext.onReady(function() { Ext.QuickTips.init(); Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var eeId = Ext.get("expressionExperimentID").getValue(); var edId = Ext.get("experimentalDesignID").getValue(); var editable = Ext.get('currentUserCanEdit').getValue() === 'true'; /* * TODO: load up the MGED terms, experimental design and factor values ahead of time. We end up doing it * about 4 times each. Create the panel in the callback. */ /* * TODO make sure we've got an eeId and display a prominent error message if we don't... */ var bioMaterialEditor = new Gemma.BioMaterialEditor({ renderTo : "bioMaterialsPanel", id : 'biomaterial-grid-panel', eeId : eeId, edId : edId, viewConfig : { // forceFit : true }, height : 740, width : 1000, editable : editable }); /* * If we init before the tab is rendered, then the scroll bars don't show up. */ // bioMaterialEditor.init(); var experimentalFactorGrid = new Gemma.ExperimentalFactorGrid({ id : 'experimental-factor-grid', title : "Experimental Factors", region : 'center', edId : edId, editable : editable, height : 200 }); var factorValueGrid = new Gemma.FactorValueGrid({ title : "Factor Values", region : 'south', id : 'factor-value-grid', form : 'factorValueForm', // hack split : true, edId : edId, editable : editable, width : 1000, height : 500 }); var efPanel = new Ext.Panel({ layout : 'border', height : 750, width : 1000, renderTo : "experimentalFactorPanel", items : [experimentalFactorGrid, factorValueGrid] }); var tabPanel = new Ext.TabPanel({ renderTo : "experimentalDesignPanel", height : 800, width : 1000, defaults : { layout : 'fit' }, layoutOnTabChange : false, activeTab : 0, items : [{ contentEl : "experimentalFactorPanel", title : "Design setup" }, { contentEl : "bioMaterialsPanel", title : "Sample details" }] }); /* * Only initialize once we are viewing the tab to help ensure the scroll bars are rendered right away. */ tabPanel.on('tabchange', function(panel, tab) { if (!bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); } }); experimentalFactorGrid.on("experimentalfactorchange", function(efgrid, efs) { factorValueGrid.enable(); factorValueGrid.setTitle("Factor values"); factorValueGrid.setExperimentalFactor(null); }); 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.on("factorvaluecreate", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluechange", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); factorValueGrid.on("factorvaluedelete", function(fvgrid, fvs) { if (bioMaterialEditor.grid != null) bioMaterialEditor.grid.reloadFactorValues(); }); });
|
|
if (input.value == placeholder) {
|
if (input.getAttribute('data-placeholder-visible')) {
|
input.form && input.form[add_event](/*@cc_on'on'+@*/'submit', function(){ if (input.value == placeholder) { input.value = ''; } }, false);
|
this.popup.domObj.addEvent('mouseenter', function() { clearTimeout(self.activeCell.timeoutId); });
|
this.grid.gridTable.getElements('tr').each(function(tr,i) { tableCols = tr.getElements('td.jxGridCell'); for(var j = 0, k = uriCols.length; j < k; j++) { anchor = tableCols[uriCols[j]-1].getElement('a'); if(anchor) { anchor.removeEvent('click'); anchor.addEvent('click', function(ev) { if(!ev.control) { ev.preventDefault(); } }); } } });
|
this.popup.domObj.addEvent('mouseenter', function() { clearTimeout(self.activeCell.timeoutId); });
|
if (this.errorHandler) { if (successfullyCancelled) { this.errorHandler("Job was cancelled"); } else { this.errorHandler("Could not be cancelled?"); } }
|
this.pBar.on('cancel', function(successfullyCancelled) { this.destroy(); }.createDelegate(this));
|
|
tr.append($(this).addClass('pagination-data'));
|
tr.append($(this).clone().addClass('pagination-data'));
|
$('> td:gt(0)', this).each(function () { tr.append($(this).addClass('pagination-data')); });
|
var url = 'enter_bug.cgi?';
|
var f = document.createElement("form"); f.setAttribute("method", "post"); f.setAttribute("action", "enter_bug.cgi"); f.setAttribute("target", "_blank");
|
store.on('load', function(){ var url = 'enter_bug.cgi?'; for (var i = 0; i < store.fields.keys.length; i++) { url = url + store.fields.keys[i] + '=' + escape(store.getAt(0).get(store.fields.keys[i])) + '&'; } url = url + 'caserun_id=' + caserun_id; window.open(url); });
|
url = url + store.fields.keys[i] + '=' + escape(store.getAt(0).get(store.fields.keys[i])) + '&';
|
if (store.fields.keys[i] == 'comment'){ h = document.createElement("textarea"); h.setAttribute("name", store.fields.keys[i]); h.value = store.getAt(0).get(store.fields.keys[i]); } else { h = document.createElement("input"); h.setAttribute("name", store.fields.keys[i]); txt = store.getAt(0).get(store.fields.keys[i]).replace(/\n/,'
'); h.setAttribute("value", store.getAt(0).get(store.fields.keys[i])); } f.appendChild(h);
|
store.on('load', function(){ var url = 'enter_bug.cgi?'; for (var i = 0; i < store.fields.keys.length; i++) { url = url + store.fields.keys[i] + '=' + escape(store.getAt(0).get(store.fields.keys[i])) + '&'; } url = url + 'caserun_id=' + caserun_id; window.open(url); });
|
url = url + 'caserun_id=' + caserun_id; window.open(url);
|
h = document.createElement("input"); h.setAttribute("name", "caserun_id"); h.setAttribute("value", caserun_id); f.appendChild(h); document.body.appendChild(f); f.submit();
|
store.on('load', function(){ var url = 'enter_bug.cgi?'; for (var i = 0; i < store.fields.keys.length; i++) { url = url + store.fields.keys[i] + '=' + escape(store.getAt(0).get(store.fields.keys[i])) + '&'; } url = url + 'caserun_id=' + caserun_id; window.open(url); });
|
.live('keydown', function(event) { $.data(this, 'keycode', event.keyCode || event.which); });
|
.live(eventName, function(event) { var self = $(this), maxlength = self.attr('maxlength'), code = $.data(this, 'keycode'); if (maxlength && maxlength > 0) { return ( self.val().length < maxlength || $.inArray(code, ignore) !== -1 ); } })
|
.live('keydown', function(event) { $.data(this, 'keycode', event.keyCode || event.which); });
|
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
|
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",
|
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
|
$(selector).each(function() { var $list = $('<div class="grade_link_wrapper"></div>'); var id = 1; $(this) .find('input:radio') .each(function(i) { var grade = $.trim($(this).parent().text()); var $item = $('<a href="#"></a>') .attr('title', grade) .attr('id', '' + id + '') .text(grade); var $wrapper_div = $('<div></div>'); $wrapper_div.addClass('feedback_grade_image_' + id); id++; faceGrade.addHandlers($item); $wrapper_div.append($item); $list.append($wrapper_div); if($(this).is(':checked')) { $item.addClass('grade'); } }); $(this).append($list).find('label').hide();
|
.live('keydown', function(event) { $.data(this, 'keycode', event.keyCode || event.which);
|
$(selector).each(function() { var $list = $('<div class="grade_link_wrapper"></div>'); // loop over every radio button in each container var id = 1; $(this) .find('input:radio') .each(function(i) { var grade = $.trim($(this).parent().text()); var $item = $('<a href="#"></a>') .attr('title', grade) .attr('id', '' + id + '') .text(grade); var $wrapper_div = $('<div></div>'); $wrapper_div.addClass('feedback_grade_image_' + id); id++; faceGrade.addHandlers($item); $wrapper_div.append($item); $list.append($wrapper_div); if($(this).is(':checked')) { $item.addClass('grade'); } }); // Hide the original radio buttons $(this).append($list).find('label').hide(); });
|
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
|
"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
|
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
|
.each(function(i) {
|
$(selector).each(function() { var $list = $('<div class="grade_link_wrapper"></div>'); var id = 1; $(this) .find('input:radio') .each(function(i) {
|
.each(function(i) { var grade = $.trim($(this).parent().text()); var $item = $('<a href="#"></a>') .attr('title', grade) .attr('id', '' + id + '') .text(grade); var $wrapper_div = $('<div></div>'); $wrapper_div.addClass('feedback_grade_image_' + id); id++; faceGrade.addHandlers($item); $wrapper_div.append($item); $list.append($wrapper_div); if($(this).is(':checked')) { $item.addClass('grade'); } });
|
$(this).append($list).find('label').hide(); });
|
.each(function(i) { var grade = $.trim($(this).parent().text()); var $item = $('<a href="#"></a>') .attr('title', grade) .attr('id', '' + id + '') .text(grade); var $wrapper_div = $('<div></div>'); $wrapper_div.addClass('feedback_grade_image_' + id); id++; faceGrade.addHandlers($item); $wrapper_div.append($item); $list.append($wrapper_div); if($(this).is(':checked')) { $item.addClass('grade'); } });
|
|
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",
|
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
|
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",
|
$(item).click(function(e) { var $star = $(this); var $allLinks = $(this).parent().parent(); $allLinks .parent() .find('input:radio[id=grade-' + $star.context.id + ']') .attr('checked', true); $allLinks.children().children().removeClass('grade'); $star.addClass('grade'); e.preventDefault();
|
.each(function(i) { var grade = $.trim($(this).parent().text()); var $item = $('<a href="#"></a>') .attr('title', grade) .attr('id', '' + id + '') .text(grade); var $wrapper_div = $('<div></div>'); $wrapper_div.addClass('feedback_grade_image_' + id); id++; faceGrade.addHandlers($item); $wrapper_div.append($item); $list.append($wrapper_div);
|
$(item).click(function(e) { // Handle Star click var $star = $(this); var $allLinks = $(this).parent().parent(); // Set the radio button value $allLinks .parent() .find('input:radio[id=grade-' + $star.context.id + ']') .attr('checked', true); // Set the grades $allLinks.children().children().removeClass('grade'); $star.addClass('grade'); // prevent default link click e.preventDefault(); }).hover(function() {
|
}).hover(function() {
|
if($(this).is(':checked')) { $item.addClass('grade'); } });
|
$(item).click(function(e) { // Handle Star click var $star = $(this); var $allLinks = $(this).parent().parent(); // Set the radio button value $allLinks .parent() .find('input:radio[id=grade-' + $star.context.id + ']') .attr('checked', true); // Set the grades $allLinks.children().children().removeClass('grade'); $star.addClass('grade'); // prevent default link click e.preventDefault(); }).hover(function() {
|
"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,
|
"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
|
|
}).hover(function() { $(this).addClass('grade-over'); }, function() {
|
$(item).click(function(e) { var $star = $(this); var $allLinks = $(this).parent().parent(); $allLinks .parent() .find('input:radio[id=grade-' + $star.context.id + ']') .attr('checked', true); $allLinks.children().children().removeClass('grade'); $star.addClass('grade'); e.preventDefault(); }).hover(function() {
|
}).hover(function() { // Handle star mouse over $(this).addClass('grade-over'); }, function() {
|
var img = $('img', this); var pos = this.hash.substring(1); if (img.hasClass('stored')) { var id = this.id; img.removeClass('stored'); img.attr('src', 'disk.gif'); $.get('user.xql', { list: 'remove', id: id }); } else { img.attr('src', 'disk_gew.gif'); img.addClass('stored'); $.get('user.xql', { list: 'add', pos: pos }); } $('#personal-list-size').load('user.xql', { action: 'count' }); return false;
|
saveToPersonalList(this);
|
$('.actions-toolbar .save', this).click(function (ev) { var img = $('img', this); var pos = this.hash.substring(1); if (img.hasClass('stored')) { var id = this.id; img.removeClass('stored'); img.attr('src', 'disk.gif'); $.get('user.xql', { list: 'remove', id: id }); } else { img.attr('src', 'disk_gew.gif'); img.addClass('stored'); $.get('user.xql', { list: 'add', pos: pos }); } $('#personal-list-size').load('user.xql', { action: 'count' }); return false; });
|
}, function() { $(this).siblings().andSelf().removeClass('grade-over') });
|
}).hover(function() { $(this).addClass('grade-over'); }, function() {
|
}, function() { // Handle star mouse out $(this).siblings().andSelf().removeClass('grade-over') });
|
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
|
!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
|
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
|
$('.actions-toolbar .remove-resource', this).click(function() {{ alert("FOUND"); $('#remove-resource-id').val($('#' + this.id).attr('href').substr(1)); $('#remove-resource-dialog').dialog('open'); return false; }});
|
$('.actions-cell .save', this).click(function (ev) { saveToPersonalList(this); });
|
$('.actions-toolbar .remove-resource', this).click(function() {{ alert("FOUND"); $('#remove-resource-id').val($('#' + this.id).attr('href').substr(1)); $('#remove-resource-dialog').dialog('open'); return false; }});
|
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
|
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
|
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
|
$('.actions-toolbar .move-resource', this).click(function() {{ $('#move-resource-id').val($('#' + this.id).attr('href').substr(1)); $('#move-resource-dialog').dialog('open');
|
$('.actions-toolbar .remove-resource', this).click(function() {{ alert("FOUND"); $('#remove-resource-id').val($('#' + this.id).attr('href').substr(1)); $('#remove-resource-dialog').dialog('open');
|
$('.actions-toolbar .move-resource', this).click(function() {{ $('#move-resource-id').val($('#' + this.id).attr('href').substr(1)); $('#move-resource-dialog').dialog('open'); return false; }});
|
function (stylesheet) stylesheet.title == title);
|
setTimeout(function() { document.getElementById("Tools:PrivateBrowsing") .removeAttribute("disabled"); }, 0);
|
function (stylesheet) stylesheet.title == title);
|
!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
|
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector, u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
|
!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
|
$.get("operations.xql", params, function(data) { $('#group-members-list').find('li').remove(); var owner = false; if($(data).find('owner true').size() == 1) { owner = true; $('#add-new-member-to-group-button').show(); } else if($('#group-list :selected').val() == $('#group-list :selected').text()) { owner = true; $('#add-new-member-to-group-button').show(); } else { $('#add-new-member-to-group-button').hide(); } $(data).find('member').each(function(){ addMemberToSharingGroupMembers($(this).text(), owner); }); });
|
$('.actions-toolbar .move-resource', this).click(function() {{ $('#move-resource-id').val($('#' + this.id).attr('href').substr(1)); $('#move-resource-dialog').dialog('open'); return false; }});
|
$.get("operations.xql", params, function(data) { //remove any existing members $('#group-members-list').find('li').remove(); var owner = false; if($(data).find('owner true').size() == 1) { owner = true; $('#add-new-member-to-group-button').show(); } else if($('#group-list :selected').val() == $('#group-list :selected').text()) { owner = true; //this is a new group i.e. we own it! $('#add-new-member-to-group-button').show(); } else { $('#add-new-member-to-group-button').hide(); } //add new members $(data).find('member').each(function(){ addMemberToSharingGroupMembers($(this).text(), owner); }); });
|
u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
|
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
|
|
$(data).find('member').each(function(){
|
$.get("operations.xql", params, function(data) { $('#group-members-list').find('li').remove(); var owner = false; if($(data).find('owner true').size() == 1) { owner = true; $('#add-new-member-to-group-button').show(); } else if($('#group-list :selected').val() == $('#group-list :selected').text()) { owner = true; $('#add-new-member-to-group-button').show(); } else { $('#add-new-member-to-group-button').hide(); } $(data).find('member').each(function(){
|
$(data).find('member').each(function(){ addMemberToSharingGroupMembers($(this).text(), owner); });
|
});
|
$(data).find('member').each(function(){ addMemberToSharingGroupMembers($(this).text(), owner); });
|
|
$('#group-sharing-premissions-read').get(0).checked = true;
|
$('#group-sharing-permissions-read').get(0).checked = true;
|
$.get("operations.xql", params, function(data) { //set read checkbox var readPermissions = $(data).find('read'); if(readPermissions.size() == 1){ //$('#group-sharing-premissions-read').attr('checked','checked'); $('#group-sharing-premissions-read').get(0).checked = true; } else { //$('#group-sharing-premissions-read').removeAttr('checked'); $('#group-sharing-premissions-read').get(0).checked = false; } //set write checkbox var writePermissions = $(data).find('write'); if(writePermissions.size() == 1){ //$('#group-sharing-premissions-write').attr('checked','checked'); $('#group-sharing-premissions-write').get(0).checked = true; } else { //$('#group-sharing-premissions-write').removeAttr('checked'); $('#group-sharing-premissions-write').get(0).checked = false; } //set sharing checkbox if(readPermissions.size() + writePermissions.size() >= 1) { //$('#sharing-collection-with-group').attr('checked','checked'); $('#sharing-collection-with-group').get(0).checked = true; //$('#group-sharing-panel').show(); } else { //$('#sharing-collection-with-group').removeAttr('checked'); $('#sharing-collection-with-group').get(0).checked = false; //$('#group-sharing-panel').hide(); } });
|
$('#group-sharing-premissions-read').get(0).checked = false;
|
$('#group-sharing-permissions-read').get(0).checked = false;
|
$.get("operations.xql", params, function(data) { //set read checkbox var readPermissions = $(data).find('read'); if(readPermissions.size() == 1){ //$('#group-sharing-premissions-read').attr('checked','checked'); $('#group-sharing-premissions-read').get(0).checked = true; } else { //$('#group-sharing-premissions-read').removeAttr('checked'); $('#group-sharing-premissions-read').get(0).checked = false; } //set write checkbox var writePermissions = $(data).find('write'); if(writePermissions.size() == 1){ //$('#group-sharing-premissions-write').attr('checked','checked'); $('#group-sharing-premissions-write').get(0).checked = true; } else { //$('#group-sharing-premissions-write').removeAttr('checked'); $('#group-sharing-premissions-write').get(0).checked = false; } //set sharing checkbox if(readPermissions.size() + writePermissions.size() >= 1) { //$('#sharing-collection-with-group').attr('checked','checked'); $('#sharing-collection-with-group').get(0).checked = true; //$('#group-sharing-panel').show(); } else { //$('#sharing-collection-with-group').removeAttr('checked'); $('#sharing-collection-with-group').get(0).checked = false; //$('#group-sharing-panel').hide(); } });
|
$('#group-sharing-premissions-write').get(0).checked = true;
|
$('#group-sharing-permissions-write').get(0).checked = true;
|
$.get("operations.xql", params, function(data) { //set read checkbox var readPermissions = $(data).find('read'); if(readPermissions.size() == 1){ //$('#group-sharing-premissions-read').attr('checked','checked'); $('#group-sharing-premissions-read').get(0).checked = true; } else { //$('#group-sharing-premissions-read').removeAttr('checked'); $('#group-sharing-premissions-read').get(0).checked = false; } //set write checkbox var writePermissions = $(data).find('write'); if(writePermissions.size() == 1){ //$('#group-sharing-premissions-write').attr('checked','checked'); $('#group-sharing-premissions-write').get(0).checked = true; } else { //$('#group-sharing-premissions-write').removeAttr('checked'); $('#group-sharing-premissions-write').get(0).checked = false; } //set sharing checkbox if(readPermissions.size() + writePermissions.size() >= 1) { //$('#sharing-collection-with-group').attr('checked','checked'); $('#sharing-collection-with-group').get(0).checked = true; //$('#group-sharing-panel').show(); } else { //$('#sharing-collection-with-group').removeAttr('checked'); $('#sharing-collection-with-group').get(0).checked = false; //$('#group-sharing-panel').hide(); } });
|
$('#group-sharing-premissions-write').get(0).checked = false;
|
$('#group-sharing-permissions-write').get(0).checked = false;
|
$.get("operations.xql", params, function(data) { //set read checkbox var readPermissions = $(data).find('read'); if(readPermissions.size() == 1){ //$('#group-sharing-premissions-read').attr('checked','checked'); $('#group-sharing-premissions-read').get(0).checked = true; } else { //$('#group-sharing-premissions-read').removeAttr('checked'); $('#group-sharing-premissions-read').get(0).checked = false; } //set write checkbox var writePermissions = $(data).find('write'); if(writePermissions.size() == 1){ //$('#group-sharing-premissions-write').attr('checked','checked'); $('#group-sharing-premissions-write').get(0).checked = true; } else { //$('#group-sharing-premissions-write').removeAttr('checked'); $('#group-sharing-premissions-write').get(0).checked = false; } //set sharing checkbox if(readPermissions.size() + writePermissions.size() >= 1) { //$('#sharing-collection-with-group').attr('checked','checked'); $('#sharing-collection-with-group').get(0).checked = true; //$('#group-sharing-panel').show(); } else { //$('#sharing-collection-with-group').removeAttr('checked'); $('#sharing-collection-with-group').get(0).checked = false; //$('#group-sharing-panel').hide(); } });
|
$('#group-members-list').find('li').remove(); var owner = false; if($(data).find('owner true').size() == 1) { owner = true; $('#add-new-member-to-group-button').show(); } else if($('#group-list :selected').val() == $('#group-list :selected').text()) { owner = true; $('#add-new-member-to-group-button').show(); } else { $('#add-new-member-to-group-button').hide(); } $(data).find('member').each(function(){ addMemberToSharingGroupMembers($(this).text(), owner);
|
var owner = false; if($(data).find('owner true').size() == 1) { owner = true; $('#add-new-member-to-group-button').show(); } else if($('#group-list :selected').val() == $('#group-list :selected').text()) { owner = true; $('#add-new-member-to-group-button').show(); } else { $('#add-new-member-to-group-button').hide(); } $(data).find('member').each(function(){ addMemberToSharingGroupMembers($(this).text(), owner); });
|
$.get("operations.xql", params, function(data) { //remove any existing members $('#group-members-list').find('li').remove(); var owner = false; if($(data).find('owner true').size() == 1) { owner = true; $('#add-new-member-to-group-button').show(); } else if($('#group-list :selected').val() == $('#group-list :selected').text()) { owner = true; //this is a new group i.e. we own it! $('#add-new-member-to-group-button').show(); } else { $('#add-new-member-to-group-button').hide(); } //add new members $(data).find('member').each(function(){ addMemberToSharingGroupMembers($(this).text(), owner); }); });
|
});
|
$.get("operations.xql", params, function(data) { //remove any existing members $('#group-members-list').find('li').remove(); var owner = false; if($(data).find('owner true').size() == 1) { owner = true; $('#add-new-member-to-group-button').show(); } else if($('#group-list :selected').val() == $('#group-list :selected').text()) { owner = true; //this is a new group i.e. we own it! $('#add-new-member-to-group-button').show(); } else { $('#add-new-member-to-group-button').hide(); } //add new members $(data).find('member').each(function(){ addMemberToSharingGroupMembers($(this).text(), owner); }); });
|
|
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
|
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
|
|
if (this.tbContainer) {
|
if (this.wrapper) {
|
$A(arguments).flatten().each(function(thing) { if (this.options.scroll) { /* we potentially need to show or hide scroller buttons * when the toolbar contents change */ thing.addEvent('update', this.update.bind(this)); thing.addEvent('show', this.scrollIntoView.bind(this)); } if (this.tbContainer) { this.wrapper.adopt(thing.domObj); } else { this.domObj.adopt(thing.domObj); } this.domObj.addClass('jxBar'+this.options.position.capitalize()); }, this);
|
isArray: Array.isArray || function( obj ) { return jQuery.type(obj) === "array"; },
|
var Prototype={Version:"1.6.1_rc2",Browser:{IE:!!(window.attachEvent&&navigator.userAgent.indexOf("Opera")===-1),Opera:navigator.userAgent.indexOf("Opera")>-1,WebKit:navigator.userAgent.indexOf("AppleWebKit/")>-1,Gecko:navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")===-1,MobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/)},BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){if(window.HTMLElement&&window.HTMLElement.prototype){return true}if(window.Element&&window.Element.prototype){return true}})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var A=document.createElement("div");if(A["__proto__"]&&A["__proto__"]!==document.createElement("form")["__proto__"]){return true}return false})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(A){return A}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var C;for(var B=0,D=arguments.length;B<D;B++){var A=arguments[B];try{C=A();break}catch(E){}}return C}};var Class=(function(){function A(){var G=null,F=$A(arguments);if(Object.isFunction(F[0])){G=F.shift()}function C(){this.initialize.apply(this,arguments)}Object.extend(C,Class.Methods);C.superclass=G;C.subclasses=[];if(G){var D=function(){};D.prototype=G.prototype;C.prototype=new D;G.subclasses.push(C)}for(var E=0;E<F.length;E++){C.addMethods(F[E])}if(!C.prototype.initialize){C.prototype.initialize=Prototype.emptyFunction}C.prototype.constructor=C;return C}function B(I){var E=this.superclass&&this.superclass.prototype;var D=Object.keys(I);if(!Object.keys({toString:true}).length){if(I.toString!=Object.prototype.toString){D.push("toString")}if(I.valueOf!=Object.prototype.valueOf){D.push("valueOf")}}for(var C=0,F=D.length;C<F;C++){var H=D[C],G=I[H];if(E&&Object.isFunction(G)&&G.argumentNames().first()=="$super"){var J=G;G=(function(K){return function(){return E[K].apply(this,arguments)}})(H).wrap(J);G.valueOf=J.valueOf.bind(J);G.toString=J.toString.bind(J)}this.prototype[H]=G}return this}return{create:A,Methods:{addMethods:B}}})();(function(){function L(Q){return Object.prototype.toString.call(Q).match(/^\[object\s(.*)\]$/)[1]}function H(Q,S){for(var R in S){Q[R]=S[R]}return Q}function K(Q){try{if(D(Q)){return"undefined"}if(Q===null){return"null"}return Q.inspect?Q.inspect():String(Q)}catch(R){if(R instanceof RangeError){return"..."}throw R}}function J(Q){var S=typeof Q;switch(S){case"undefined":case"function":case"unknown":return ;case"boolean":return Q.toString()}if(Q===null){return"null"}if(Q.toJSON){return Q.toJSON()}if(G(Q)){return }var R=[];for(var U in Q){var T=J(Q[U]);if(!D(T)){R.push(U.toJSON()+": "+T)}}return"{"+R.join(", ")+"}"}function C(Q){return $H(Q).toQueryString()}function E(Q){return Q&&Q.toHTML?Q.toHTML():String.interpret(Q)}function O(Q){var R=[];for(var S in Q){R.push(S)}return R}function M(Q){var R=[];for(var S in Q){R.push(Q[S])}return R}function I(Q){return H({},Q)}function G(Q){return !!(Q&&Q.nodeType==1)}function F(Q){return L(Q)==="Array"}function P(Q){return Q instanceof Hash}function B(Q){return typeof Q==="function"}function A(Q){return L(Q)==="String"}function N(Q){return L(Q)==="Number"}function D(Q){return typeof Q==="undefined"}H(Object,{extend:H,inspect:K,toJSON:J,toQueryString:C,toHTML:E,keys:O,values:M,clone:I,isElement:G,isArray:F,isHash:P,isFunction:B,isString:A,isNumber:N,isUndefined:D})})();Object.extend(Function.prototype,(function(){var K=Array.prototype.slice;function D(O,L){var N=O.length,M=L.length;while(M--){O[N+M]=L[M]}return O}function I(M,L){M=K.call(M,0);return D(M,L)}function G(){var L=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
|
isArray: Array.isArray || function( obj ) { return jQuery.type(obj) === "array"; },
|
new_tag = $('<span></span>');
|
var new_tag = $('<span></span>');
|
sendAjax(tagname,reason,'add',function(){ new_tag = $('<span></span>'); new_tag.addClass('deletable-tag'); tag_link = $('<a></a>'); tag_link.attr('rel','tag'); tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname); tag_link.html(tagname); del_link = $('<img></img>'); del_link.addClass('delete-icon'); del_link.attr('src', scriptUrl + 'content/images/close-small-dark.png'); setupTagDeleteEvents(del_link, to_target, tagname, reason, true); new_tag.append(tag_link); new_tag.append(del_link); to_tag_container.append(new_tag); to_target[tagname] = new_tag; });
|
tag_link = $('<a></a>');
|
var tag_link = $('<a></a>');
|
sendAjax(tagname,reason,'add',function(){ new_tag = $('<span></span>'); new_tag.addClass('deletable-tag'); tag_link = $('<a></a>'); tag_link.attr('rel','tag'); tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname); tag_link.html(tagname); del_link = $('<img></img>'); del_link.addClass('delete-icon'); del_link.attr('src', scriptUrl + 'content/images/close-small-dark.png'); setupTagDeleteEvents(del_link, to_target, tagname, reason, true); new_tag.append(tag_link); new_tag.append(del_link); to_tag_container.append(new_tag); to_target[tagname] = new_tag; });
|
del_link = $('<img></img>');
|
var del_link = $('<img></img>');
|
sendAjax(tagname,reason,'add',function(){ new_tag = $('<span></span>'); new_tag.addClass('deletable-tag'); tag_link = $('<a></a>'); tag_link.attr('rel','tag'); tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname); tag_link.html(tagname); del_link = $('<img></img>'); del_link.addClass('delete-icon'); del_link.attr('src', scriptUrl + 'content/images/close-small-dark.png'); setupTagDeleteEvents(del_link, to_target, tagname, reason, true); new_tag.append(tag_link); new_tag.append(del_link); to_tag_container.append(new_tag); to_target[tagname] = new_tag; });
|
ExperimentalDesignController.deleteExperimentalFactors(selected, {
|
ExperimentalDesignController.deleteExperimentalFactors(this.experimentalDesign, selected, {
|
this.getTopToolbar().on("delete", function() { var selected = this.getSelectedIds(); var oldmsg = this.loadMask.msg; this.loadMask.msg = "Deleting experimental factor(s)"; this.loadMask.show(); var callback = function() { this.idsDeleted(selected); 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.deleteExperimentalFactors(selected, { callback : callback, errorHandler : errorHandler }); }.createDelegate(this));
|
Ext.select("a", Ext.get(view.mainBody)).on("click", function(evt) { evt.stopPropagation(); });
|
this.store.on('add', function(store, records, index) { sm.selectRow(index, true); })
|
Ext.select("a", Ext.get(view.mainBody)).on("click", function(evt) { evt.stopPropagation(); });
|
$$('link').each(function(link) { if (link.getAttribute('rel').indexOf("style") != -1 && link.getAttribute('title')) { link.disabled = (link.getAttribute('title') != ss); } });
|
jxLanguages.some(function(lang){ if (defaultLang == lang.langId) { lang.active = true; return true; } });
|
$$('link').each(function(link) { if (link.getAttribute('rel').indexOf("style") != -1 && link.getAttribute('title')) { link.disabled = (link.getAttribute('title') != ss); } });
|
'hide': (function() { }).bind(this)
|
this.buttons.each(function(b){this.remove(b);}, this);
|
'hide': (function() { //this.setActive(false); }).bind(this)
|
if (!bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') {
|
if (refreshNeeded || !bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') {
|
tabPanel.on('tabchange', function(panel, tab) { if (!bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); } });
|
refreshNeeded = false;
|
tabPanel.on('tabchange', function(panel, tab) { if (!bioMaterialEditor.firstInitDone && tab.contentEl == 'bioMaterialsPanel') { bioMaterialEditor.init(); } });
|
|
function(value, element, param) { challengeField = $("input#recaptcha_challenge_field").val(); responseField = $("input#recaptcha_response_field").val(); var resp = $.ajax({ type: "GET", url: "signup/check_captcha", data: "recaptcha_challenge_field=" + challengeField + "&recaptcha_response_field=" + responseField, async: false }).responseText; if (resp == "success") { return true; } else { Recaptcha.reload(); return false; } }
|
function(value, element, is_rideshare) { var current_time = new Date(); maximum_date = new Date((current_time.getFullYear() + 1),current_time.getMonth(),current_time.getDate(),23,59,59); if (is_rideshare == "true") { return get_datetime_from_datetime_select() < maximum_date; } else { return get_date_from_date_select() < maximum_date; } }
|
function(value, element, param) { challengeField = $("input#recaptcha_challenge_field").val(); responseField = $("input#recaptcha_response_field").val(); var resp = $.ajax({ type: "GET", url: "signup/check_captcha", data: "recaptcha_challenge_field=" + challengeField + "&recaptcha_response_field=" + responseField, async: false }).responseText; if (resp == "success") { return true; } else { Recaptcha.reload(); return false; } }
|
manager.setTitle("Showing " + records.length + " records.");
|
reportGrid.setTitle("Showing " + records.length + " records.");
|
store.on('load', function(store, records, options) { manager.setTitle("Showing " + records.length + " records."); });
|
self.log("input focus");
|
this.input.bind("focus", function(e) { if(self.isDisabled){ self.stopEvent(e); return; } self.log("input focus"); if(!self.internalFocus){ self.realFocusEvent(); } });
|
|
Ext.Msg.alert('Session expired?', data + ". \nTry signing in again.");
|
Ext.Msg.alert('There was an error', e + ". \nPlease try again.");
|
store.on("exception", function(scope, args, data, e) { Ext.Msg.alert('Session expired?', data + ". \nTry signing in again."); });
|
window.setTimeout(function() { n2i.animation.render(); },0);
|
mousedown: (function(e) { this.domDisclose.addClass(this.options.pressedClass); hasFocus = true; this.focus(); }).bindWithEvent(this),
|
window.setTimeout(function() { n2i.animation.render(); },0);
|
del_link.attr('src', scriptUrl + 'media/images/close-small-dark.png');
|
del_link.attr('src', mediaUrl('/media/images/close-small-dark.png'));
|
sendAjax(tagname,reason,'add',function(){ var new_tag = $('<span></span>'); new_tag.addClass('deletable-tag'); var tag_link = $('<a></a>'); tag_link.attr('rel','tag'); tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname); tag_link.html(tagname); var del_link = $('<img></img>'); del_link.addClass('delete-icon'); del_link.attr('src', scriptUrl + 'media/images/close-small-dark.png'); setupTagDeleteEvents(del_link, to_target, tagname, reason, true); new_tag.append(tag_link); new_tag.append(del_link); to_tag_container.append(new_tag); to_target[tagname] = new_tag; });
|
}else{ window.open('../api/#'+a.id, "_blank"); }
|
$$(elements).each(function(a) { if (a.id) { a.addEvent('click', function() { top.main.location.href='../api/#'+a.id; }); } });
|
|
$("<option/>").attr("value", obj.metrictype.id) .text(obj.metrictype.type) .appendTo("#metricTypeSelect"); });
|
$("<option/>").attr("value", obj.metric.id) .text(obj.metric.mnemonic) .appendTo("#metricSelect"); });
|
$.each(data, function(i, obj) { $("<option/>").attr("value", obj.metrictype.id) .text(obj.metrictype.type) .appendTo("#metricTypeSelect"); });
|
$('select[name ^= operator]', this).each(function () { $(this).css('display', '');
|
$('#collection-expand-all').click(function () { $("#collection-tree-tree").dynatree("getRoot").visit(function(dtnode){ dtnode.expand(true); }); return false;
|
$('select[name ^= operator]', this).each(function () { $(this).css('display', ''); });
|
this.getTopToolbar().on("delete", function() { var selected = this.getSelectedIds(); var oldmsg = this.loadMask.msg; this.loadMask.msg = "Deleting experimental factor(s)"; this.loadMask.show();
|
this.getTopToolbar().on("create", function(newFactorValue) { var oldmsg = this.loadMask.msg; this.loadMask.msg = "Creating new experimental factor"; this.loadMask.show();
|
this.getTopToolbar().on("delete", function() { var selected = this.getSelectedIds(); var oldmsg = this.loadMask.msg; this.loadMask.msg = "Deleting experimental factor(s)"; this.loadMask.show(); var callback = function() { this.idsDeleted(selected); 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.deleteExperimentalFactors(this.experimentalDesign, selected, { callback : callback, errorHandler : errorHandler }); }.createDelegate(this));
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.