rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
$(getAnswerVoteUpButton(postId)).attr("src", scriptUrl + "media/images/vote-arrow-up.png"); $(getAnswerVoteDownButton(postId)).attr("src", scriptUrl + "media/images/vote-arrow-down.png"); | $(getAnswerVoteUpButton(postId)).attr("src", mediaUrl("media/images/vote-arrow-up.png")); $(getAnswerVoteDownButton(postId)).attr("src", mediaUrl("media/images/vote-arrow-down.png")); | var setVoteImage = function(voteType, undo, object){ var flag = undo ? "" : "-on"; var arrow = (voteType == VoteType.questionUpVote || voteType == VoteType.answerUpVote) ? "up" : "down"; object.attr("src", scriptUrl + "media/images/vote-arrow-"+ arrow + flag +".png"); // if undo ... |
this.width = parseInt(newWidth,10); | setWidth: function(newWidth) { if (this.rule && parseInt(newWidth,10) >= 0) { this.width = parseInt(newWidth,10); this.rule.style.width = parseInt(newWidth,10) + "px"; } }, | |
setWidth: function(newWidth) { var delta = this.cellWidth - this.width; this.width = parseInt(newWidth,10); this.cellWidth = this.width + delta; this.options.width = newWidth; if (this.rule && parseInt(newWidth,10) >= 0) { this.rule.style.width = parseInt(newWidth,10) + "px"; | setWidth: function(newWidth, asCellWidth) { asCellWidth = $defined(asCellWidth) ? asCellWidth : false; var delta = this.cellWidth - this.width; if (!asCellWidth) { this.width = parseInt(newWidth,10); this.cellWidth = this.width + delta; this.options.width = newWidth; } else { this.width = parseInt(newWidth,10) - delta... | setWidth: function(newWidth) { var delta = this.cellWidth - this.width; this.width = parseInt(newWidth,10); this.cellWidth = this.width + delta; this.options.width = newWidth; if (this.rule && parseInt(newWidth,10) >= 0) { this.rule.style.width = parseInt(newWidth,10) + "px"; } ... |
if (this.rule && parseInt(newWidth,10) >= 0) { this.rule.style.width = parseInt(newWidth,10) + "px"; } | this.cellWidth = this.width + delta; if (this.rule && parseInt(newWidth,10) >= 0) { this.rule.style.width = parseInt(newWidth,10) + "px"; } if (this.cellRule && parseInt(this.cellWidth,10) >= 0) { this.cellRule.style.width = parseInt(this.cellWidth,10) + "px"; } | setWidth: function(newWidth) { this.width = parseInt(newWidth,10); if (this.rule && parseInt(newWidth,10) >= 0) { this.rule.style.width = parseInt(newWidth,10) + "px"; } }, |
alert(url); | var share_page = function(service_name){ if (SERVICE_DATA[service_name]){ var url = SERVICE_DATA[service_name]['url']; url = url.replace('{URL}', URL); url = url.replace('{TEXT}', TEXT); alert(url); var params = SERVICE_DATA[service_name]['params']; ... | |
this.resizeBox(this.shimWidth, this.shimHeight); | shiftFxCorrection = 20; this.resizeBox(this.shimWidth + shiftFxCorrection, this.shimHeight + 30 + shiftFxCorrection); | shimLoaded : function() { // iframe load fires on element creation and actual load. Check variable to ensure that we're dealing with the second. if (this.urlIsSet) { response = window.frames['ux-lightbox-shim'].response; if(response) { if (response.error) { this.setMessage(response.error, 200, 100,... |
Ext.get(wrapper).setHeight(this.shimHeight - 75); | Ext.get(wrapper).setHeight(this.shimHeight - 45); | shimLoaded : function() { // iframe load fires on element creation and actual load. Check variable to ensure that we're dealing with the second. if (this.urlIsSet) { response = window.frames['ux-lightbox-shim'].response; if(response) { if (response.error) { this.setMessage(response.error, 200, 100,... |
wrapper = window.frames['ux-lightbox-shim'].document.getElementsByClassName('formsOnPageWrapper')[0]; if (Ext.get(wrapper)) { Ext.get(wrapper).setHeight(this.shimHeight - 75); } | shimLoaded : function() { // iframe load fires on element creation and actual load. Check variable to ensure that we're dealing with the second. if (this.urlIsSet) { response = window.frames['ux-lightbox-shim'].response; if(response) { if (response.error) { this.setMessage(response.error, 200, 100,... | |
return '<a href="/Gemma/expressionExperiment/showExpressionExperiment.html?id=' + record.get("id") + '" target="_blank">' + value + '</a>'; | return '<a href="/Gemma/expressionExperiment/showExpressionExperiment.html?id=' + (record.get("sourceExperiment") ? record.get("sourceExperiment") : record.get("id")) + '" target="_blank">' + value + '</a>'; | var shortNameRenderer = function(value, metadata, record, rowIndex, colIndex, store) { return '<a href="/Gemma/expressionExperiment/showExpressionExperiment.html?id=' + record.get("id") + '" target="_blank">' + value + '</a>'; }; |
this.contentContainer.setStyles({ width: null, height: null }); | show : function(e) { if (this.list.count() ==0) { return; } this.target = e.target; this.contentContainer.setStyle('visibility','hidden'); this.contentContainer.setStyle('display','block'); document.id(document.body).adopt(this.contentContainer); /... | |
if (canPostComments(id)) link.parent().find("textarea").get(0).focus(); | if (canPostComments(id)) { link.parent().find("textarea").get(0).focus(); } | show: function(id) { var jDiv = jDivInit(id); getComments(id, jDiv); renderForm(id); jDiv.show(); var link = $('#comments-link-' + objectType + '-' + id); if (canPostComments(id)) link.parent().find("textarea").get(0).focus(); link.rem... |
this.setActive(true); | show: function() { if (this.open || this.menu.list.count() == 0) { return; } this.menu.show(); this.open = true; this.setActive(true); }, | |
this.contentContainer.setStyles({ width: null, height: null }); | show : function() { if (this.button) { if (Jx.Menu.Menus[0]) { if (Jx.Menu.Menus[0] != this) { Jx.Menu.Menus[0].button.blur(); Jx.Menu.Menus[0].hide(); } else { this.hide(); return; ... | |
document.addEvent('mousedown', this.hide); document.addEvent('keydown', this.keypressHandler); | document.addEvent('mousedown', this.bound.hide); document.addEvent('keydown', this.bound.keypress); | show : function() { if (this.button) { if (Jx.Menu.Menus[0]) { if (Jx.Menu.Menus[0] != this) { Jx.Menu.Menus[0].button.blur(); Jx.Menu.Menus[0].hide(); } else { this.hide(); return; ... |
document.addEvent('mousedown', this.hide); document.addEvent('keyup', this.keypressHandler); | document.addEvent('mousedown', this.bound.hide); document.addEvent('keyup', this.bound.keypress); | show : function(e) { if (this.list.count() ==0) { return; } this.target = e.target; this.contentContainer.setStyle('visibility','hidden'); this.contentContainer.setStyle('display','block'); document.id(document.body).adopt(this.contentContainer); /... |
this.contentContainer.setContentBoxSize(this.contentContainer.getMarginBoxSize()); | this.contentContainer.setContentBoxSize(this.subDomObj.getMarginBoxSize()); | show : function() { if (this.button) { if (Jx.Menu.Menus[0]) { if (Jx.Menu.Menus[0] != this) { Jx.Menu.Menus[0].button.blur(); Jx.Menu.Menus[0].hide(); } else { this.hide(); return; ... |
this.stack(this.contentContainer); | show : function() { if (this.button) { if (Jx.Menu.Menus[0]) { if (Jx.Menu.Menus[0] != this) { Jx.Menu.Menus[0].button.blur(); Jx.Menu.Menus[0].hide(); } else { this.hide(); return; ... | |
this.stack(); | show : function( ) { /* prepare the dialog for display */ this.domObj.setStyles({ 'display': 'block', 'visibility': 'hidden' }); this.toolbar.update(); Jx.Dialog.orderDialogs(this); /* do the modal thing */ if (this.options.modal... | |
Jx.Dialog.orderDialogs(this); | show : function( ) { /* prepare the dialog for display */ this.domObj.setStyles({ 'display': 'block', 'visibility': 'hidden' }); this.toolbar.update(); Jx.Dialog.orderDialogs(this); /* do the modal thing */ if (this.options.modal... | |
items.each( function(e) { e.className = "item shown"; }); | for (var i = 0; i < items.length; i++) items[i].className = "item shown"; | function show_all(){ items = document.getElementsByClassName("item", "items"); items.each( function(e) { e.className = "item shown"; });} |
_sgffx.setXulObjectVisibility('showfaxmenuitem', 1); | var showActiveMenu = function() { if (_sgffx.systemArea == 'team') { _sgffx.setXulObjectVisibility('sipgateffxDND', 1); } else { _sgffx.setXulObjectVisibility('sipgateffxDND', 0); } _sgffx.setXulObjectVisibility('showcreditmenuitem', 1); _sgffx.setXulObjectVisibility('showvoicemailmenuitem', 1); ... | |
_sgffx.setXulObjectVisibility('showsmsformmenuitem', 1); | var showActiveMenu = function() { if (_sgffx.systemArea == 'team') { _sgffx.setXulObjectVisibility('sipgateffxDND', 1); } else { _sgffx.setXulObjectVisibility('sipgateffxDND', 0); } _sgffx.setXulObjectVisibility('showcreditmenuitem', 1); _sgffx.setXulObjectVisibility('showvoicemailmenuitem', 1); ... | |
width : 420, | showAllMessages : function(t) { if (!this.allMessages) { return; } var msgs = new Ext.Window({ id : 'all-messages-window', title : t ? t : "Messages logged", layout : 'fit', closeAction : 'close', items : [{ xtype : 'panel', stateful : false, height : 200, autoScrol... | |
availableTabInFocus = true; | function showAvailableTab(){ $("#tabAvailable").css('background-color', highlight); $("#tabBorrowed").css('background-color', silver); $("#tabOwned").css('background-color', silver); $("#tabFriend").css('background-color', silver); $("#my_div").hide(); $("#borrowed_div").hide(); $("#friend_div").hide(); $("#others_div"... | |
if(argument[0]==false) paging = false; | if(arguments[0]==false) paging = false; | function showAvailableTab(){ $("#tabAvailable").css('background-color', highlight); $("#tabBorrowed").css('background-color', silver); $("#tabOwned").css('background-color', silver); $("#tabFriend").css('background-color', silver); $("#my_div").hide(); $("#borrowed_div").hide(); $("#friend_div").hide(); $("#others_div"... |
for (var i = 0; i < json.length; i++) | for (var i = 0; i < json.length; i++){ | var showComments = function(id, json) { var jDiv = jDivInit(id); //jDiv = jDiv.find("div.comments"); // this div should contain any fetched comments.. //jDiv.find("div[id^='comment-" + objectType + "-'" + "]").remove(); // clean previous calls.. jDiv.children().remove(); remove... |
} | var showComments = function(id, json) { var jDiv = jDivInit(id); //jDiv = jDiv.find("div.comments"); // this div should contain any fetched comments.. //jDiv.find("div[id^='comment-" + objectType + "-'" + "]").remove(); // clean previous calls.. jDiv.children().remove(); remove... | |
uploadForm.on('start', function(result) { | uploadForm.on('start', function(taskId) { | var showDesignUploadForm = function() { var uploadForm = new Gemma.FileUploadForm({ title : 'Select the design file', id : 'upload-design-form', style : 'margin : 5px', allowBlank : false }); uploadForm.on('start', function(result) { Ext.getCmp('submit-design-button').disable(); }.createDelegate(this... |
title : "Experimental design upload", closeAction : 'close', id : 'experimental-design-upload-form-window', width : 550, items : [{ xtype : 'panel', collapsible : true, title : 'Instructions', collapsed : false, frame : false, border : true, html : '<p>Experimental design submission works in two phases. ' + 'First you ... | title : "Experimental design upload", closeAction : 'close', id : 'experimental-design-upload-form-window', width : 550, items : [{ xtype : 'panel', collapsible : true, title : 'Instructions', collapsed : false, frame : false, border : true, html : '<p>Experimental design submission works in two phases. ' + 'First you ... | var showDesignUploadForm = function() { var uploadForm = new Gemma.FileUploadForm({ title : 'Select the design file', id : 'upload-design-form', style : 'margin : 5px', allowBlank : false }); uploadForm.on('start', function(result) { Ext.getCmp('submit-design-button').disable(); }.createDelegate(this... |
html : '<p>Experimental design submission works in two phases. ' + 'First you must upload your design file (file format instructions' + ' <a target="_blank" href="http: + 'Then click "submit". If your file format is invalid or does not match the properties of the ' + 'experiment the design is intended for, you will see... | html : '<p>Experimental design submission works in two phases. ' + 'First you must upload your design file (file format instructions' + ' <a target="_blank" href="http: 'Then click "submit". If your file format is invalid or does not match the properties of the ' + 'experiment the design is intended for, you will see a... | var showDesignUploadForm = function() { var uploadForm = new Gemma.FileUploadForm({ title : 'Select the design file', id : 'upload-design-form', style : 'margin : 5px', allowBlank : false }); uploadForm.on('start', function(result) { Ext.getCmp('submit-design-button').disable(); }.createDelegate(this... |
availableTabInFocus = false; | function showFriendsTab(){ $("#tabFriend").css('background-color', highlight); $("#tabFriend").show(); $("#tabAvailable").css('background-color', silver); $("#tabBorrowed").css('background-color', silver); $("#tabOwned").css('background-color', silver); $("#my_div").hide(); $("#borrowed_div").hide(); $("#others_div").h... | |
loadTags(albumPos); | function showImage(albumPos) { var img = document.createElement("img"); img.onload = function(evt) { document.getElementById("albumImage").src = this.src; document.getElementById("albumImage").width=this.width; document.getElementById("albumImage").height=this.height; } img.src = window... | |
this.log("showlist"); | showList: function() { this.log("showlist"); if(this.listVisible()) return; this.listWrapper.removeClass(this.css.hidden); this.setListDisplay(); }, | |
runHook("showObject", FBEFORE); | runHook("showObject", FBEFORE, obj); | function showObject(obj) { runHook("showObject", FBEFORE); var theObj=(olNs4 ? obj : obj.style); theObj.visibility = 'visible'; runHook("showObject", FAFTER);} |
runHook("showObject", FAFTER); | runHook("showObject", FAFTER, obj); | function showObject(obj) { runHook("showObject", FBEFORE); var theObj=(olNs4 ? obj : obj.style); theObj.visibility = 'visible'; runHook("showObject", FAFTER);} |
availableTabInFocus = false; | function showOwnedTab(){ $("#tabOwned").css('background-color', highlight); $("#tabAvailable").css('background-color', silver); $("#tabBorrowed").css('background-color', silver); $("#tabFriend").css('background-color', silver); if (own_count > 25) $("#searchMineBar").show(); $("#borrowed_div").hide(); $("#others_div").... | |
this.popup.domObj.setStyles({ 'width' : cell.getContentBoxSize().width }); | showPopUp : function(cell) { if(this.popup.domObj != null) { this.popup.domObj.setStyles({ 'width' : cell.getContentBoxSize().width }); Jx.Widget.prototype.position(this.popup.domObj, cell, { horizontal: ['left left'], vertical: ['top top'] }); ... | |
readerChecks = []; writerChecks = []; | readerChecks = [new Ext.form.Checkbox({ checked : true, boxLabel : 'Users', id : 'user' + "-read-chk", disabled : true })]; writerChecks = [new Ext.form.Checkbox({ checked : true, boxLabel : 'Users', id : 'user' + "-write-chk", disabled : true })]; | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; readerChecks = []; writerChecks = [];... |
callback : function() { | callback : function(updatedInfo) { | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; var canManage = securityInfo.currentUs... |
Gemma.SecurityManager.updateSecurityLink(elid, securityInfo.publiclyReadable, shared); | Gemma.SecurityManager.updateSecurityLink(elid, updatedInfo.entityClass, updatedInfo.entityId, updatedInfo.publiclyReadable, shared, updatedInfo.currentUserCanwrite); | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; var canManage = securityInfo.currentUs... |
Gemma.SecurityManager.updateSecurityLink(elid, securityInfo.publiclyReadable, sared); | Gemma.SecurityManager.updateSecurityLink(elid, updatedInfo.entityClass, updatedInfo.entityId, updatedInfo.publiclyReadable, updatedInfo.shared, updatedInfo.currentUserCanwrite); | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; var canManage = securityInfo.currentUs... |
Gemma.SecurityManager.updateSecurityLink(elid, isPublic, isShared); | Gemma.SecurityManager.updateSecurityLink(elid, clazz, id, isPublic, isShared, canEdit); | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; var canManage = securityInfo.currentUs... |
SecurityController.updatePermissions(securityInfo, { | SecurityController.updatePermission(securityInfo, { | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; readerChecks = []; writerChecks = [];... |
Ext.apply(Ext.getCmp('reader-checks'), { items : readerChecks }); Ext.apply(Ext.getCmp('writer-checks'), { items : writerChecks }); | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; readerChecks = []; writerChecks = [];... | |
this.doLayout(); | if (readerChecks.size() != 0) { Ext.apply(Ext.getCmp('reader-checks'), { items : readerChecks }); } if (writerChecks.size() != 0) { Ext.apply(Ext.getCmp('writer-checks'), { items : writerChecks }); } this.doLayout(); | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; readerChecks = []; writerChecks = [];... |
items : [{ xtype : 'form', layout : 'column', autoHeight : true, autoWidth : true, defaults : { layout : 'form', border : false, bodyStyle : 'padding:4px' | items : [{ xtype : 'form', layout : 'column', autoHeight : true, autoWidth : true, defaults : { layout : 'form', border : false, bodyStyle : 'padding:4px' }, items : [{ xtype : 'fieldset', autoHeight : true, autoWidth : true, items : [{ xtype : 'checkbox', boxLabel : "Public", id : 'public-checkbox', checked : isPublic... | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; readerChecks = []; writerChecks = [];... |
items : [{ xtype : 'fieldset', autoHeight : true, autoWidth : true, items : [{ xtype : 'checkbox', boxLabel : "Public", id : 'public-checkbox', checked : isPublic }, { xtype : 'checkboxgroup', width : 300, itemCls : 'x-check-group-alt', fieldLabel : "Readers", id : 'reader-checks', columns : 1 }, { xtype : 'checkboxgro... | errorHandler : function() { sp.destroy(); alert("There was an error saving the settings."); | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; readerChecks = []; writerChecks = [];... |
var loadMask = new Ext.LoadMask(sp.getEl(), { msg : "Saving changes..." }); loadMask.show(); | Gemma.SecurityManager.updateSecurityLink( elid, securityInfo.publiclyReadable, sared); | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; readerChecks = []; writerChecks = [];... |
securityInfo.publiclyReadable = Ext.getCmp('public-checkbox').getValue(); | } }); | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; readerChecks = []; writerChecks = [];... |
var updatedGroupsThatCanRead = []; var updatedGroupsThatCanWrite = []; var shared = false; for (var i = 0, len = availableGroups.length; i < len; i++) { var groupName = availableGroups[i]; if (groupName === Gemma.SecurityManager.adminGroupName) { continue; } if (Ext.getCmp(groupName + "-write-chk").getValue()) { updat... | } }, { text : 'Cancel', handler : function(b, e) { sp.destroy(); } }] }); | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; readerChecks = []; writerChecks = [];... |
items : [{ xtype : 'form', layout : 'column', autoHeight : true, autoWidth : true, defaults : { layout : 'form', border : false, bodyStyle : 'padding:4px' }, items : [{ xtype : 'fieldset', autoHeight : true, autoWidth : true, items : [{ xtype : 'checkbox', boxLabel : "Public", id : 'public-checkbox', checked : isPublic... | items : [{ xtype : 'form', layout : 'column', autoHeight : true, autoWidth : true, defaults : { layout : 'form', border : false, bodyStyle : 'padding:4px' }, items : [{ xtype : 'fieldset', autoHeight : true, autoWidth : true, items : [{ xtype : 'checkbox', boxLabel : "Public", id : 'public-checkbox', checked : isPublic... | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; // FIXME: // Server returns null if t... |
var shared = false; for (var i = 0, len = availableGroups.length; i < len; i++) { var groupName = availableGroups[i]; if (groupName === Gemma.SecurityManager.adminGroupName) { continue; | var shared = false; for (var i = 0, len = availableGroups.length; i < len; i++) { var groupName = availableGroups[i]; if (groupName === Gemma.SecurityManager.adminGroupName) { continue; } if (Ext.getCmp(groupName + "-write-chk").getValue()) { updatedGroupsThatCanWrite.push(groupName); shared = true; } if (Ext.getCmp(gr... | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; // FIXME: // Server returns null if t... |
if (Ext.getCmp(groupName + "-write-chk").getValue()) { updatedGroupsThatCanWrite.push(groupName); shared = true; | }, { text : 'Cancel', handler : function(b, e) { sp.destroy(); | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; // FIXME: // Server returns null if t... |
if (Ext.getCmp(groupName + "-read-chk").getValue() || Ext.getCmp(groupName + "-write-chk") .getValue()) { updatedGroupsThatCanRead.push(groupName); shared = true; } } securityInfo.groupsThatCanWrite = updatedGroupsThatCanWrite; securityInfo.groupsThatCanRead = updatedGroupsThatCanRead; SecurityController.updatePermis... | }] }); | var showSecurityForm = function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; var readers = securityInfo.groupsThatCanRead; var writers = securityInfo.groupsThatCanWrite; var availableGroups = securityInfo.availableGroups; // FIXME: // Server returns null if t... |
updateBadge(data); | var badge = {}; var badgeDisplay = "Quota Used"; var remaining = (data[0].limit - data[0].usagemb); badgeDisplay = localStorage['badgeDisplay']; switch(badgeDisplay){ case "Quota Used": badgeContent = fB(data[i].usagemb,byteFormat,0)+''; break; case "Quota Remaining": badgeContent = fB(remaining,byteFormat,0)+''; bre... | function showUsage(data) { var divEl = document.getElementById("maindiv"); divEl.innerHTML = ""; if(data != null && data[0].error == null) { for(var i = 0; i < data.length; i++) { //For testing: Pretend we're in line, in deficit or over quota //data[i].usagemb = 76000; //28746+8415; // Define variables var day... |
dataperday =fB(dataperday,'MB'); | function showUsage(data) { var divEl = document.getElementById("maindiv"); divEl.innerHTML = ""; if(data != null && data[0].error == null) { for(var i = 0; i < data.length; i++) { //For testing: Pretend we're in line, in deficit or over quota //data[i].usagemb = 76000; //28746+8415; // Define variables var day... | |
dataperday =fB(dataperday); | } if (dataperday < gbformat){ dataperday = fB(dataperday,'MB'); } else { dataperday = fB(dataperday); | function showUsage(data) { var divEl = document.getElementById("maindiv"); divEl.innerHTML = ""; if(data != null && data[0].error == null) { for(var i = 0; i < data.length; i++) { //For testing: Pretend we're in line, in deficit or over quota //data[i].usagemb = 76000; //28746+8415; // Define variables var day... |
var remaining = (data[0].limit - data[0].usagemb); | var remaining = (data[i].limit - data[i].usagemb); | function showUsage(data) { var divEl = document.getElementById("maindiv"); divEl.innerHTML = ""; if(data != null && data[0].error == null) { for(var i = 0; i < data.length; i++) { //For testing: Pretend we're in line, in deficit or over quota //data[i].usagemb = 76000; //28746+8415; // Define variables var day... |
slide: function(options, additions) { options = $.extend({ easing: "swing", duration: 300 }, options, additions); if ( !options.toHide.size() ) { options.toShow.animate({height: "show"}, options); return; } if ( !options.toShow.size() ) { options.toHide.animate({height: "hide"}, options); return; } var overflow = optio... | (function(c){c.effects.slide=function(d){return this.queue(function(){var a=c(this),h=["position","top","left"],e=c.effects.setMode(a,d.options.mode||"show"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a).css({overflow:"hidden"});var f=b=="up"||b=="down"?"top":"left";b=b=="up"||b=... | slide: function(options, additions) { options = $.extend({ easing: "swing", duration: 300 }, options, additions); if ( !options.toHide.size() ) { options.toShow.animate({height: "show"}, options); return; } if ( !options.toShow.size() ) { options.toHide.animate({height: "hide"}, options); ... |
alert(url); | var socialSharing = function(){ var SERVICE_DATA = { //url - template for the sharing service url, params are for the popup twitter: { url: "http://twitter.com/share?url={URL}&ref=twitbtn&text={TEXT}", params: "width=820,height=526,toolbar=1,status=1,resizable=1,scrollbars=1" ... | |
var current = this.current, store = this.grid.store, sorter = store.getStrategy('sort'), data = el.retrieve('jxCellData'), dir = 'asc', opt = this.options; | var current = this.current, grid = this.grid, gridTableBody = grid.gridTableBody, gridParent = gridTableBody.getParent(), rowTableBody = grid.rowTableBody, rowParent = rowTableBody.getParent(), useHeaders = grid.row.useHeaders(), store = grid.store, sorter = store.getStrategy('sort'), data = el.retrieve('jxCellData'), ... | sort: function(el) { var current = this.current, store = this.grid.store, sorter = store.getStrategy('sort'), data = el.retrieve('jxCellData'), dir = 'asc', opt = this.options; if (sorter && $defined(data.column) && data.column.isSortable()) { if (el.hasClass(opt... |
if (sorter && $defined(data.column) && data.column.isSortable()) { if (el.hasClass(opt.ascendingClass)) { el.removeClass(opt.ascendingClass).addClass(opt.descendingClass); dir = 'desc'; } else if (el.hasClass(opt.descendingClass)) { el.removeClass(opt.descendingClass).addClass(opt.ascendingClass); } else { el.addClass(... | if (sorter && $defined(data.column) && data.column.isSortable()) { if (el.hasClass(opt.ascendingClass)) { el.removeClass(opt.ascendingClass).addClass(opt.descendingClass); dir = 'desc'; } else if (el.hasClass(opt.descendingClass)) { el.removeClass(opt.descendingClass).addClass(opt.ascendingClass); } else { el.addClass(... | sort: function(el) { var current = this.current, store = this.grid.store, sorter = store.getStrategy('sort'), data = el.retrieve('jxCellData'), dir = 'asc', opt = this.options; if (sorter && $defined(data.column) && data.column.isSortable()) { if (el.hasClass(opt... |
if (onSuccessFn) onSuccessFn(r.getResult().Result); | if (onSuccessFn) onSuccessFn(r.Result); | sortedSetContainsItem: function(id, item, onSuccessFn, onErrorFn) { this.gateway.getFromService('SortedSetContainsItem', { Id: id || null, Item: item || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Result); }, onErrorFn || RedisClient.errorFn); }, |
} else if (clazz == "Gene") { | } else if (clazz == "Gene" || clazz == 'GeneSetValueObject' || clazz == 'ExpressionExperimentSetValueObject') { | sortInfo : function(record) { var clazz = record.resultsClass; if (clazz == "ExpressionExperimentValueObject") { return record.shortName; } else if (clazz == "CompositeSequence") { return record.name; } else if (clazz == "ArrayDesignValueObject") { return record.shortName; } else if (/^BioSequence.*/.exec(c... |
} else if (clazz == "Gene" || clazz == 'GeneSetValueObject' || clazz == 'ExpressionExperimentSetValueObject') { | } else if (clazz == "GeneValueObject" || clazz == 'GeneSetValueObject' || clazz == 'ExpressionExperimentSetValueObject') { | sortInfo : function(record) { var clazz = record.resultsClass; if (clazz == "ExpressionExperimentValueObject") { return record.shortName; } else if (clazz == "CompositeSequence") { return record.name; } else if (clazz == "ArrayDesignValueObject") { return record.shortName; } else if (/^BioSequence.*/.exec(c... |
if (arg === null) { return 'null'; } else if (typeof arg === 'undefined') { return 'undefined'; } var result = ''; | console._source_of = function source_of (arg, limit, stack) { if (arg === null) { return 'null'; } else if (typeof arg === 'undefined') { return 'undefined'; } var result = ''; if (arg && arg.nodeType == 1) { // Is element? result = '<'+ arg.tagName; for (var i=0, ii=arg.attrib... | |
if (arg && arg.nodeType == 1) { result = '<'+ arg.tagName; for (var i=0, ii=arg.attributes.length; i<ii; i++) { if (arg.attributes[i].specified) { result +=' '+ arg.attributes[i].name +'="'+ arg.attributes[i].value +'"'; | var aType = typeof arg; switch (aType) { case 'string': return '"' + arg +'"'; case 'function': break; case 'object': if (arg === null) { return 'null'; | console._source_of = function source_of (arg, limit, stack) { if (arg === null) { return 'null'; } else if (typeof arg === 'undefined') { return 'undefined'; } var result = ''; if (arg && arg.nodeType == 1) { // Is element? result = '<'+ arg.tagName; for (var i=0, ii=arg.attrib... |
} if (arg.childNodes && arg.childNodes.length === 0) { result += '/'; } return result + '>'; | break; default: return String(arg); | console._source_of = function source_of (arg, limit, stack) { if (arg === null) { return 'null'; } else if (typeof arg === 'undefined') { return 'undefined'; } var result = ''; if (arg && arg.nodeType == 1) { // Is element? result = '<'+ arg.tagName; for (var i=0, ii=arg.attrib... |
switch (kind) { case 'String': return '"'+ arg +'"'; | if (kind == 'Object') { prefix = ''; } else { prefix = kind + ' '; var primitive = primitiveOf(arg); if (primitive) { prefix += primitive + ' '; } } if (!limit) { return prefix + '{?}'; } var stack_length = stack.length; for (var si=0; si<stack_length; si++) { if (stack[si] === arg) { return '#'; } } stack[stack_lengt... | console._source_of = function source_of (arg, limit, stack) { if (arg === null) { return 'null'; } else if (typeof arg === 'undefined') { return 'undefined'; } var result = ''; if (arg && arg.nodeType == 1) { // Is element? result = '<'+ arg.tagName; for (var i=0, ii=arg.attrib... |
case 'Array': case 'HTMLCollection': case 'NodeList': result = '['; var arr_list = []; for (var j=0, jj=arg.length; j<jj; j++) { arr_list[j] = source_of(arg[j], limit, stack); } return result + arr_list.join(', ') +']'; case 'RegExp': return "/"+ arg.source +"/"; case 'Date': return arg; default: if (typeof arg ===... | console._source_of = function source_of (arg, limit, stack) { if (arg === null) { return 'null'; } else if (typeof arg === 'undefined') { return 'undefined'; } var result = ''; if (arg && arg.nodeType == 1) { // Is element? result = '<'+ arg.tagName; for (var i=0, ii=arg.attrib... | |
else this.nav['isValidBrowser']=false;this.set_base_url();for(var i=0;i<this.scripts_to_load.length;i++){setTimeout("eAL.load_script('"+this.baseURL+this.scripts_to_load[i]+".js');",1);this.waiting_loading[this.scripts_to_load[i]+".js"]=false;}this.add_event(window,"load",EAL.prototype.window_loaded);};EAL.prototype ={... | else t.isValidBrowser=false;t.set_base_url();for(var i=0;i<t.scripts_to_load.length;i++){setTimeout("eAL.load_script('"+t.baseURL+t.scripts_to_load[i]+".js');",1);t.waiting_loading[t.scripts_to_load[i]+".js"]=false;}t.add_event(window,"load",EAL.prototype.window_loaded);};EAL.prototype={has_error:function(){this.error=... | else this.nav['isValidBrowser']=false;this.set_base_url();for(var i=0;i<this.scripts_to_load.length;i++){setTimeout("eAL.load_script('"+this.baseURL+this.scripts_to_load[i]+".js');",1);this.waiting_loading[this.scripts_to_load[i]+".js"]=false;}this.add_event(window,"load",EAL.prototype.window_loaded);};EAL.prototype ={... |
FB.login(); | FB.getLoginStatus(function(response){ if (response.session){ signin_form.submit(); } else { FB.login(); } }); | var start_facebook_login = function(){ set_provider_name($(this)); if (typeof FB != 'undefined'){ FB.login(); //FB.getLoginStatus(function(response){ // if (response.session){ // alert('you are logged in'); // } // else ... |
setup_enter_key_handler( openid_login_token_input, function(){ openid_submit_button.click(); return false; } ); | var start_login_with_extra_openid_token = function() { show_openid_input_fields($(this).attr('name')); set_provider_name($(this)); setup_event_handlers( openid_submit_button, function(){ signin_form.unbind( 'submit' ... | |
setup_event_handlers( password_button, function(){ signin_form.unbind( 'submit' ).submit( submit_action ); | focus_input.focus(); var submit_password_login = function(){ signin_form.unbind('submit').submit(submit_action); }; setup_enter_key_handler( submittable_input, function() { password_button.click(); return false; | var start_password_login_or_change = function(){ reset_form(); set_provider_name($(this)); var provider_name = $(this).attr('name'); var token_name = extra_token_name[provider_name] var password_action_input = $('input[name=password_action]'); if (userIsAuthenticated === tr... |
setup_event_handlers(password_button, submit_password_login); | var start_password_login_or_change = function(){ reset_form(); set_provider_name($(this)); var provider_name = $(this).attr('name'); var token_name = extra_token_name[provider_name] var password_action_input = $('input[name=password_action]'); if (userIsAuthenticated === tr... | |
div=document.getElementById("pb_" + id + "_" + num + "_outer"); | div=document.getElementById("prog_" + id + "_" + num); | function startUpload(form, id, num) { form.style.display="none"; updateProgressbar(id + "_" + num); div=document.getElementById("pb_" + id + "_" + num + "_outer"); div.style.display="block"; num=parseInt(num, 10) + 1; createUploadIframe(frameElement, id, num); ... |
this.setStatusText(this.VLC_STATUS[0]); | this.setStatusText(VLC_STATUS[0]); | ,statusChanged:function() { if (!this.status) { this.setStatusText(this.VLC_STATUS[0]); var width = this.getSliderLength(); var tb = $('#' +this.playerId + '_toolbar_slider' ); ... |
this.setStatusText(this.VLC_STATUS[this.status]); | this.setStatusText(VLC_STATUS[this.status]); | ,statusChanged:function() { if (!this.status) { this.setStatusText(this.VLC_STATUS[0]); var width = this.getSliderLength(); var tb = $('#' +this.playerId + '_toolbar_slider' ); ... |
if(!this.sliderCreated) this.setStatusText(this.VLC_STATUS[this.status]); | if(!this.sliderCreated) this.setStatusText(VLC_STATUS[this.status]); | ,statusChanged:function() { if (!this.status) { this.setStatusText(this.VLC_STATUS[0]); var width = this.getSliderLength(); var tb = $('#' +this.playerId + '_toolbar_slider' ); ... |
step: function(now, settings) { if (settings.prop == 'height') { percentDone = ( settings.end - settings.start === 0 ) ? 0 : (settings.now - settings.start) / (settings.end - settings.start); } options.toShow[0].style[settings.prop] = (percentDone * showProps[settings.prop].value) + showProps[settings.prop].unit; }... | step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};e&&e.length&&d(e[0]).css({width:i.width,height:i.height});a._updateCache(i);a._propagate("resize",b)}})}});d.ui.plugin.add("resizabl... | step: function(now, settings) { // only calculate the percent when animating height // IE gets very inconsistent results when animating elements // with small values, which is common for padding if (settings.prop == 'height') { percentDone = ( settings.end - settings.start === 0 ) ? 0 : (... |
e = e ? e : window.event; e.cancel = true; | stopEvent: function(e) { e.cancelBubble = true; e.returnValue = false; if (e.stopPropagation) {e.stopPropagation(); } if( e.preventDefault ) { e.preventDefault(); } }, | |
if (onSuccessFn) onSuccessFn(r.getResult().Count); | if (onSuccessFn) onSuccessFn(r.Count); | storeIntersectFromSortedSets: function(id, fromSetIds, onSuccessFn, onErrorFn) { this.gateway.postToService('StoreIntersectFromSortedSets', { Id: id || null, FromSetIds: fromSetIds || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Count); }, onErrorFn || RedisClient.errorFn); }, |
storeLoaded: function(store, response) { | storeLoaded: function(store) { | storeLoaded: function(store, response) { var template = '', tr, columns = [], useRowHeaders = this.row.useHeaders(); this.fireEvent('beginCreateGrid'); this.gridObj.getElement('tbody').empty(); // TODO: consider moving whole thing into Jx.Columns ?? // create a suitable col... |
tr.adopt(new Element('th', { 'class': 'jxGridColHead', 'html': ' ', styles: { width: 1000 } })) | storeLoaded: function(store) { var template = '', tr, columns = [], useRowHeaders = this.row.useHeaders(); this.fireEvent('beginCreateGrid'); this.gridObj.getElement('tbody').empty(); // TODO: consider moving whole thing into Jx.Columns ?? // create a suitable column repres... | |
if (onSuccessFn) onSuccessFn(r.getResult().Count); | if (onSuccessFn) onSuccessFn(r.Count); | storeUnionFromSortedSets: function(id, fromSetIds, onSuccessFn, onErrorFn) { this.gateway.postToService('StoreUnionFromSortedSets', { Id: id || null, FromSetIds: fromSetIds || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Count); }, onErrorFn || RedisClient.errorFn); }, |
success: function(data){callback(object, voteType, data)}}); | success: function(data){callback(object, voteType, data);} }); | var submit = function(object, voteType, callback) { $.ajax({ type: "POST", cache: false, dataType: "json", url: scriptUrl + $.i18n._("questions/") + questionId + "/" + $.i18n._("vote/"), data: { "type": voteType, "postId": postId }, error: han... |
Ext.getCmp('biomaterial-grid-panel').init(); | var submitDesign = function() { ExperimentalDesignController.createDesignFromFile(dwr.util.getValue("expressionExperimentID"), serverFilePath, { callback : function() { Ext.getCmp('experimental-design-upload-form-window').close(); Ext.Msg.alert("Success", "Design imported."); Ext.getCmp('experimental-fac... | |
if (onSubmitCallback) | if (onSubmitCallback){ | submitHandler: function(form) { disableSubmitButton(formSelector); if (onSubmitCallback) onSubmitCallback(); else form.submit(); } |
else | } else{ | submitHandler: function(form) { disableSubmitButton(formSelector); if (onSubmitCallback) onSubmitCallback(); else form.submit(); } |
} | submitHandler: function(form) { disableSubmitButton(formSelector); if (onSubmitCallback) onSubmitCallback(); else form.submit(); } | |
success: function(response) { validator.settings.messages[element.name].remote = previous.originalMessage; var valid = response === true; if ( valid ) { var submitted = validator.formSubmitted; validator.prepareElement(element); validator.formSubmitted = submitted; validator.successList.push(element); validator.showErr... | 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:!!nav... | success: function(response) { validator.settings.messages[element.name].remote = previous.originalMessage; var valid = response === true; if ( valid ) { var submitted = validator.formSubmitted; validator.prepareElement(element); validator.formSubmitted = submitted; validator.... |
success: function(f, a){ if (type == 'caserun') { Ext.getCmp('run_progress').updateProgress(a.result.passed, a.result.failed, a.result.blocked, a.result.complete); } Testopia.Util.notify.msg('Test ' + type + 's updated', 'The selected {0}s were updated successfully', type); if (grid.selectedRows) { grid.store.baseParam... | success: function(){ Ext.getCmp('attachments_panel').store.load(); Ext.getCmp('new_attachment_win').close(); }, | success: function(f, a){ if (type == 'caserun') { Ext.getCmp('run_progress').updateProgress(a.result.passed, a.result.failed, a.result.blocked, a.result.complete); } Testopia.Util.notify.msg('Test ' + type + 's updated', 'The selected {0}s were updated successfull... |
var blocks = new Array(); | var blocks = new jQuery(); | success: function(data, textStatus, XMLHttpRequest) { var json=data; try { if (!generalstats_is_undefined(json._ajax_nonce) && json._ajax_nonce!==null && json._ajax_nonce.length) XMLHttpRequest.query_params.put('_ajax_nonce', json._ajax_nonce); var blocks = new Array(); if (XMLHttpRequest.params.cont... |
blocks=jQuery.makeArray(jQuery(XMLHttpRequest.params.get('fields'))); | blocks=jQuery(XMLHttpRequest.params.get('fields')); | success: function(data, textStatus, XMLHttpRequest) { var json=data; try { if (!generalstats_is_undefined(json._ajax_nonce) && json._ajax_nonce!==null && json._ajax_nonce.length) XMLHttpRequest.query_params.put('_ajax_nonce', json._ajax_nonce); var blocks = new Array(); if (XMLHttpRequest.params.cont... |
if (XMLHttpRequest.params.containsKey('field') && XMLHttpRequest.params.get('field')!==null && XMLHttpRequest.params.get('field').length) { var field=jQuery.makeArray(jQuery('#'+XMLHttpRequest.params.get('field'))); | var field = new jQuery(); | success: function(data, textStatus, XMLHttpRequest) { var json=data; try { if (!generalstats_is_undefined(json._ajax_nonce) && json._ajax_nonce!==null && json._ajax_nonce.length) XMLHttpRequest.query_params.put('_ajax_nonce', json._ajax_nonce); var blocks = new Array(); if (XMLHttpRequest.params.cont... |
if (field.length>0) blocks.push(field[0]); } | if (XMLHttpRequest.params.containsKey('field') && XMLHttpRequest.params.get('field')!==null && XMLHttpRequest.params.get('field').length) field=jQuery('#'+XMLHttpRequest.params.get('field')); | success: function(data, textStatus, XMLHttpRequest) { var json=data; try { if (!generalstats_is_undefined(json._ajax_nonce) && json._ajax_nonce!==null && json._ajax_nonce.length) XMLHttpRequest.query_params.put('_ajax_nonce', json._ajax_nonce); var blocks = new Array(); if (XMLHttpRequest.params.cont... |
if (blocks.length>0) { | if (blocks.length>0 || field.length>0) { | success: function(data, textStatus, XMLHttpRequest) { var json=data; try { if (!generalstats_is_undefined(json._ajax_nonce) && json._ajax_nonce!==null && json._ajax_nonce.length) XMLHttpRequest.query_params.put('_ajax_nonce', json._ajax_nonce); var blocks = new Array(); if (XMLHttpRequest.params.cont... |
for (var i=0;i<blocks.length;i++) jQuery(blocks[i]).replaceWith(result); | blocks.replaceWith(result); field.replaceWith(result); | success: function(data, textStatus, XMLHttpRequest) { var json=data; try { if (!generalstats_is_undefined(json._ajax_nonce) && json._ajax_nonce!==null && json._ajax_nonce.length) XMLHttpRequest.query_params.put('_ajax_nonce', json._ajax_nonce); var blocks = new Array(); if (XMLHttpRequest.params.cont... |
jq('.hidden_items').remove() | jq('.hidden_items').remove(); | success: function(data) { jq('.hidden_items').remove() jq('form[name=tabbedview_form]').append(data); } |
$("#search_progress").hide(); renderOtherBooks(books); showAvailableTab();}, | $("#searchmine_progress").hide(); myBooks.render(books); showOwnedTab(); }, | success: function(books){ $("#search_progress").hide(); renderOtherBooks(books); showAvailableTab();}, |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.