rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
},parent:function(a){return a.firstChild; },empty:function(a){return !a.firstChild; | jQuery.each({parent:function(elem){return elem.parentNode; },parents:function(elem){return jQuery.dir(elem,"parentNode"); | },parent:function(a){return a.firstChild;},empty:function(a){return !a.firstChild; |
jq('.portletInfoBox .priceInfo').load('getprice?v='+variations.join(',')) | jq('.portletInfoBox .priceInfo').load('getprice?v='+variations.join(',')); | function pcommerceLoadPrice(){ var variations = []; jq('.buyViewlet select[name=cartVariation:list]').each(function(i) { variations[i] = jq(this).attr('value'); }); jq('.portletInfoBox .priceInfo').load('getprice?v='+variations.join(','))} |
return { label: textShown, value: person.personName, id: person.personId, patientId: person.patientId, userId: person.userId }; | return { label: textShown, value: person.personName, id: person.personId, object: person }; | function PersonSearchCallback(options) { if (options == null) options = {}; var maxresults = options.maxresults; if (maxresults == null) maxresults = 50; // this will be the unique incrementing number assigned to the most recent query this.searchCounter = 0; /** * Use this method if searching for general person o... |
TiDev.subtabs.show(); | TiDev.perspectiveChange = function(idx){ // construct the data for the navigation analytics event // before changing the activePerspective var analytics_event_from = TiDev.activePerspective.name; var a_actv_subtab = TiDev.activePerspective.views ? TiDev.getActiveSubTab() : -1; if (0 <= a_actv_subtab) { analytics_event... | |
if (TiDev.activePerspective.hideTabs == true) { TiDev.subtabs.hide(); } | TiDev.perspectiveChange = function(idx){ // construct the data for the navigation analytics event // before changing the activePerspective var analytics_event_from = TiDev.activePerspective.name; var a_actv_subtab = TiDev.activePerspective.views ? TiDev.getActiveSubTab() : -1; if (0 <= a_actv_subtab) { analytics_event... | |
TiDev.subtabs.hide(); | TiDev.subtabs.show(); | TiDev.perspectiveChange = function(idx){ // construct the data for the navigation analytics event // before changing the activePerspective var analytics_event_from = TiDev.activePerspective.name; var a_actv_subtab = TiDev.activePerspective.views ? TiDev.getActiveSubTab() : -1; if (0 <= a_actv_subtab) { analytics_event... |
tabs:subtabs | tabs:subtabs, active:0 | TiDev.perspectiveChange = function(idx){ // construct the data for the navigation analytics event // before changing the activePerspective var analytics_event_from = TiDev.activePerspective.name; var a_actv_subtab = TiDev.activePerspective.views ? TiDev.getActiveSubTab() : -1; if (0 <= a_actv_subtab) { analytics_event... |
gettext("Notification of changes at site {0}", site.title), site.renderSkinAsString("$Site#notify_deletion")); | gettext("[{0}] Warning: Site will be deleted"), site.renderSkinAsString("$Site#notify_delete")); | var phaseOutAbandonedSites = function() { root.forEach(function() { if (this.status === Site.TRUSTED) { return; } var age = now - (this.stories.size() > 0 ? this.stories.get(0).modified : this.created); if (age - notificationPeriod > 0) { if (... |
gettext("Notification of changes at site {0}", site.title), site.renderSkinAsString("$Site#notify_blocking")); | gettext("[{0}] Warning: Site will be blocked"), site.renderSkinAsString("$Site#notify_block")); | var phaseOutRestrictedSites = function() { root.admin.restrictedSites.forEach(function() { if (this.status === Site.TRUSTED) { return; } var age = now - this.created; if (age - notificationPeriod > 0) { if (!this.notified) { var site = res.hand... |
if(true) {console.log("URL: "+url);} else{ | url = url + "&_=" + Math.random(); | function pingServer(url) { if(true) {console.log("URL: "+url);} else{ var img = new Image(1,1); img.onload = function(){}; img.src = url;} } |
img.src = url;} | img.src = url; | function pingServer(url) { if(true) {console.log("URL: "+url);} else{ var img = new Image(1,1); img.onload = function(){}; img.src = url;} } |
input.observe('keydown', function(e) { if (e.keyCode == 32 || e.keyCode == 191 || e.keyCode == 220) e.stop(); }); | function plugin_enableOutputDirectory(opts) { if (typeof opts != 'object') throw "Options must be an object"; opts.default_path = opts.default_path || opts.outputdirs[0]; var div = $(opts.container); p = new Element('p').setStyle({marginTop: '30px', fontSize: '12px', fontWeight: 'bold'}); p.update('For convenience, yo... | |
function plugin_enableOutputDirectory(div_id, data_path) { var div = document.getElementById(div_id); var p = document.createElement('p'); p.setAttribute('style', 'margin-top: 30px; font-size: 12px;'); p.appendChild(document.createTextNode('By default, all data produced will be stored into ')); var tt = document.create... | function plugin_enableOutputDirectory(div_id, data_path, random_seed) { var div = $(div_id); var p = new Element('p').setStyle({marginTop: '30px', fontSize: '12px'}); p.update('By default, all data produced will be stored into ').insert( new Element('tt').setStyle({color: 'green'}).update(data_path + random_seed + '/')... | function plugin_enableOutputDirectory(div_id, data_path) { var div = document.getElementById(div_id); var p = document.createElement('p'); p.setAttribute('style', 'margin-top: 30px; font-size: 12px;'); p.appendChild(document.createTextNode('By default, all data produced will be stored into ')); var tt = document.create... |
function plugin_enableOutputDirectory(div_id, data_path, random_seed) { var div = $(div_id); var p = new Element('p').setStyle({marginTop: '30px', fontSize: '12px'}); p.update('By default, all data produced will be stored into ').insert( new Element('tt').setStyle({color: 'green'}).update(data_path + random_seed + '/')... | function plugin_enableOutputDirectory(opts) { if (typeof opts != 'object') throw "Options must be an object"; opts.default_path = opts.default_path || opts.outputdirs[0]; | function plugin_enableOutputDirectory(div_id, data_path, random_seed) { var div = $(div_id); var p = new Element('p').setStyle({marginTop: '30px', fontSize: '12px'}); p.update('By default, all data produced will be stored into ').insert( new Element('tt').setStyle({color: 'green'}).update(data_path + random_seed + '/'... |
var input = new Element('input', {id: 'output_path_input', type: 'text', size: '20', value: random_seed}); d.update(new Element('tt').update(data_path).insert(input).insert('/')); | var input = new Element('input', {id: 'output_path_input', type: 'text', size: '20', value: opts.random}); var pathSel = new Element('select'); opts.outputdirs.each(function(dir) { var opt = new Element('option', {value: dir}).update(dir); if (opts.default_path == dir) opt.writeAttribute('selected', 'selected'); pathSe... | function plugin_enableOutputDirectory(div_id, data_path, random_seed) { var div = $(div_id); var p = new Element('p').setStyle({marginTop: '30px', fontSize: '12px'}); p.update('By default, all data produced will be stored into ').insert( new Element('tt').setStyle({color: 'green'}).update(data_path + random_seed + '/'... |
var p = new Element('p').setStyle({marginTop: '30px', fontSize: '12px'}); [[pathSel, 'change'], [input, 'keyup']].each(function(e) { e[0].observe(e[1], function() { p.select('tt')[0].update(pathSel.options[pathSel.selectedIndex].value + opts.suffix + input.value + '/'); }); }); p.update('All data produced will be stor... | function plugin_enableOutputDirectory(div_id, data_path, random_seed) { var div = $(div_id); var p = new Element('p').setStyle({marginTop: '30px', fontSize: '12px'}); p.update('By default, all data produced will be stored into ').insert( new Element('tt').setStyle({color: 'green'}).update(data_path + random_seed + '/'... | |
TiDev.subtabChange(2); | $('#desktop_links').click(); | PackageProject.pollPackagingRequest = function(ticket,guid){ TiDev.invokeCloudService(PackageProject.publishStatusURL,{ticket:ticket},'GET',function(r) { if (r.status == 'complete') { var date = r.pubdate; var releases = r.releases; var appPage = r.app_page; TiDev.setConsoleMessage('Packaging was succes... |
TiDev.setConsoleMessage('Packaging failed with message: ' + r.message, 5000); | PackageProject.pollPackagingRequest = function(ticket,guid){ TiDev.invokeCloudService(PackageProject.publishStatusURL,{ticket:ticket},'GET',function(r) { if (r.status == 'complete') { var date = r.pubdate; var releases = r.releases; var appPage = r.app_page; TiDev.setConsoleMessage('Packaging was succes... | |
return; | alert('Packaging failed with message: ' + r.message); TiDev.resetConsole(); return; | PackageProject.pollPackagingRequest = function(ticket,guid){ TiDev.invokeCloudService(PackageProject.publishStatusURL,{ticket:ticket},'GET',function(r) { if (r.status == 'complete') { var date = r.pubdate; var releases = r.releases; var appPage = r.app_page; TiDev.setConsoleMessage('Packaging was succes... |
$("#simSelect").addOption(key, gnName); | $("#simSelect").append($('<option/>').val(key).text(gnName)); | function populateSimMenu(jsonObj){ var names = eval('(' + jsonObj.geneNames+ ')' ); var GNs = eval('(' + jsonObj.GNids+ ')' ); var DEs = eval('(' + jsonObj.DEids+ ')' ); var AD = jsonObj.ADid; $("#simSelect").empty();// $("#simSelect").addOption("", "select gene"); for(i=0; i<GNs.length; i++){ var gnName = na... |
popup_closing_timer : function (urlToClose) { | YAHOO.ajax_marking_block.popup_closing_timer = function (urlToClose) { | popup_closing_timer : function (urlToClose) { if (!YAHOO.ajax_marking_block.windowobj.closed) { if (YAHOO.ajax_marking_block.windowobj.location.href == amVariables.wwwroot+urlToClose) { YAHOO.ajax_marking_block.windowobj.close(); return; ... |
if (!YAHOO.ajax_marking_block.windowobj.closed) { if (YAHOO.ajax_marking_block.windowobj.location.href == amVariables.wwwroot+urlToClose) { | if (!YAHOO.ajax_marking_block.pop_up_holder.closed) { | popup_closing_timer : function (urlToClose) { if (!YAHOO.ajax_marking_block.windowobj.closed) { if (YAHOO.ajax_marking_block.windowobj.location.href == amVariables.wwwroot+urlToClose) { YAHOO.ajax_marking_block.windowobj.close(); return; ... |
YAHOO.ajax_marking_block.windowobj.close(); return; } else { | if (YAHOO.ajax_marking_block.pop_up_holder.location.href == amVariables.wwwroot+urlToClose) { | popup_closing_timer : function (urlToClose) { if (!YAHOO.ajax_marking_block.windowobj.closed) { if (YAHOO.ajax_marking_block.windowobj.location.href == amVariables.wwwroot+urlToClose) { YAHOO.ajax_marking_block.windowobj.close(); return; ... |
setTimeout(YAHOO.ajax_marking_block.popup_closing_timer(urlToClose), 1000); return; } } }, | YAHOO.ajax_marking_block.pop_up_holder.close(); delete YAHOO.ajax_marking_block.pop_up_holder; return; } else { setTimeout(YAHOO.ajax_marking_block.popup_closing_timer(urlToClose), 1000); return; } } }; | popup_closing_timer : function (urlToClose) { if (!YAHOO.ajax_marking_block.windowobj.closed) { if (YAHOO.ajax_marking_block.windowobj.location.href == amVariables.wwwroot+urlToClose) { YAHOO.ajax_marking_block.windowobj.close(); return; ... |
YAHOO.util.Dom.setStyle(this.labelEl,"left",(this.min[0]+this.max[0]-this.labelEl.clientWidth)/2); YAHOO.util.Dom.setStyle(this.labelEl,"top",(this.min[1]+this.max[1]-this.labelEl.clientHeight)/2); | YAHOO.util.Dom.setStyle(this.labelEl,"left",(this.min[0]+this.max[0]-this.labelEl.clientWidth)/2 + "px"); YAHOO.util.Dom.setStyle(this.labelEl,"top",(this.min[1]+this.max[1]-this.labelEl.clientHeight)/2 + "px"); | positionLabel: function() { YAHOO.util.Dom.setStyle(this.labelEl,"left",(this.min[0]+this.max[0]-this.labelEl.clientWidth)/2); YAHOO.util.Dom.setStyle(this.labelEl,"top",(this.min[1]+this.max[1]-this.labelEl.clientHeight)/2); }, |
var width = (100*requested_width)/100; | var width = 100 * Math.round( requested_width /100 ); | function pr_image_url(requested_width){ var thumb_url; if(self.proofreadPageExternalURL) { thumb_url = proofreadPageViewURL; self.DisplayWidth = requested_width; self.DisplayHeight = ""; } else { //enforce quantization: width must be multiple of 100px var width = (100*requested_width)/100; //compare to the width ... |
pr_container.onmousewheel = pr_zoom_wheel; | function pr_setup() { self.pr_horiz = (self.proofreadpage_default_layout=='horizontal'); if(!proofreadPageIsEdit) pr_horiz = false; self.table = document.createElement("div"); self.text_container = document.createElement("div"); pr_container = document.createElement("div"); pr_container.setAttribute("id", "pr_container... | |
if( !w ) w = 1024; | function pr_setup() { self.pr_horiz = (self.proofreadpage_default_layout=='horizontal'); if(!proofreadPageIsEdit) pr_horiz = false; self.table = document.createElement("div"); self.text_container = document.createElement("div"); pr_container = document.createElement("div"); pr_container.setAttribute("id", "pr_container... | |
pr_container.style.cssText = self.container_css; | function pr_zoom(delta){ var zp_img = document.getElementById("ProofReadImage"); if(!zp_img) return; if (delta == 0) { //reduce width by 20 pixels in order to prevent horizontal scrollbar from showing up zp_img.width = pr_container.offsetWidth-20; } else{ var old_width = zp_img.width; var new_width = Math.round(zp... | |
if (!elId) { var elId = ed.dom.uniqueId(); dom.setAttrib(el, 'mce_advimageresize_id', elId); storeDimensions(ed, el); } return elId; } | if (!elId) { var elId = ed.id + "_" + ed.dom.uniqueId(); dom.setAttrib(el, 'mce_advimageresize_id', elId); storeDimensions(ed, el); } return elId; } | function prepareImage(ed, el) { var dom = ed.dom; var elId= dom.getAttrib(el, 'mce_advimageresize_id'); // is this the first time this image tag has been seen? if (!elId) { var elId = ed.dom.uniqueId(); dom.setAttrib(el, 'mce_advimageresize_id', elId); storeDimensions(ed, el); } return elId; } |
if (exponent.startsWith('+')) { | if (exponent.match('^\\+')) { | function prettyFloatFormat(fValue) { var auxValue = fValue.toExponential(2); var arr = auxValue.split('e'); var mantissa = arr[0]; var exponent = arr[1]; // Don't show '+' in non-negative exponents, '10^+2' should be shown as '10^2' if (exponent.startsWith('+')) { ... |
preprocess (); | function preview () { doPrintout (false);} | |
this.subtractMonths(1); }, | this.addMonths(-1); }, | previousMonth : function() { this.subtractMonths(1); }, |
this.subtractYears(1); }, | this.addYears(-1); }, | previousYear : function() { this.subtractYears(1); }, |
echo ('rk.print (unidim.res)\n'); | echo ('rk.print ("Call:")\n'); echo ('rk.print.literal (deparse(unidim.res$call, width.cutoff=500))\n'); echo ('rk.header ("Matrix of tertachoric correlations:", level=4)\n'); echo ('rk.print (unidim.res$Rho)\n'); echo ('rk.header ("Unidimensionality Check using Modified Parallel Analysis:", level=4)\n'); echo ('rk.pri... | function printout () { var save = getValue("save_name.active"); var save_name = getValue("save_name"); echo ('rk.header ("Unidimensionality check (' + getValue("x") + ')")\n'); echo ('rk.print (unidim.res)\n'); // check if results are to be saved: if (save && save_name) { echo ('# keep results in current wo... |
echo ('rk.print (personfit.res)\n'); | echo ('rk.print ("Call:")\n'); echo ('rk.print.literal (deparse(personfit.res$call, width.cutoff=500))\n'); echo ('rk.header ("Response patterns, person-fit statistics (L0, Lz) and probabilities for each response pattern (Pr):", level=4)\n'); echo ('rk.print(cbind(format(personfit.res$resp.patterns, nsmall=0), round(pe... | function printout () { echo ('rk.header ("Person-fit statistics (' + getValue("x") + ')")\n'); echo ('rk.print (personfit.res)\n');} |
echo ('rk.print (waldtest.res)\n'); | echo ('rk.print ("Call:")\n'); echo ('rk.print.literal (deparse(waldtest.res$call, width.cutoff=500))\n'); echo ('rk.header ("Wald test on item level (z-values):", level=4)\n'); echo ('rk.print(waldtest.res$coef.table)\n'); | function printout () { echo ('rk.header ("Wald test (' + getValue("x") + ')")\n'); echo ('rk.print (waldtest.res)\n');} |
echo ('rk.print (itemfit.res)\n'); | echo ('rk.print ("Call:")\n'); echo ('rk.print.literal (deparse(itemfit.res$call, width.cutoff=500))\n'); echo ('rk.print ("Alternative: Items do not fit the model")\n'); echo ('rk.print (paste("Ability Categories:", itemfit.res$G))\n'); if (rad_pvalue == "montecarlo") echo ('rk.print (paste("Monte Carlo samples:", ite... | function printout () { echo ('rk.header ("Item-fit statistics (' + getValue("x") + ')")\n'); echo ('rk.print (itemfit.res)\n');} |
echo ('rk.print (GoFRasch.res)\n'); | echo ('rk.print ("Call:")\n'); echo ('rk.print.literal (deparse(GoFRasch.res$call, width.cutoff=500))\n'); echo ('rk.header ("Parametric Bootstrap test:", level=4)\n'); echo ('rk.print (paste("Chi-squared statistic:", round(GoFRasch.res$Tobs, digits=3)))\n'); echo ('rk.print (paste("Bootstrap samples:", GoFRasch.res$B)... | function printout () { echo ('rk.header ("Goodness of Fit for Rasch Models (' + getValue("x") + ')")\n'); echo ('rk.print (GoFRasch.res)\n');} |
else echo ("long" + '"))\n'); echo ('\n'); | else echo ("long"); echo ('"))\n'); | function printout () { echo ('rk.header ("KPSS Test for Level Stationarity",\n'); echo (' parameters=list ("null hypothesis"="' + getValue ("null") + '", "version of truncation lag parameter"="'); if (getValue ("lshort") == "TRUE") echo ("short"); else echo ("long" + '"))\n'); echo ('\n'); echo ('rk.results (results)\n... |
console.log("in proc"); | proc: function () { console.log("in proc"); var i, queue, q; if(___FNX_fenix_queue_) { console.log("queue defined"); queue = ___FNX_fenix_queue_; for(i = 0; i < queue.length; i ++) { console.log("queue has elems"); q = queue[i]; if(q.length > 0) ... | |
console.log("queue defined"); | proc: function () { console.log("in proc"); var i, queue, q; if(___FNX_fenix_queue_) { console.log("queue defined"); queue = ___FNX_fenix_queue_; for(i = 0; i < queue.length; i ++) { console.log("queue has elems"); q = queue[i]; if(q.length > 0) ... | |
console.log("queue has elems"); | proc: function () { console.log("in proc"); var i, queue, q; if(___FNX_fenix_queue_) { console.log("queue defined"); queue = ___FNX_fenix_queue_; for(i = 0; i < queue.length; i ++) { console.log("queue has elems"); q = queue[i]; if(q.length > 0) ... | |
console.log("setting id"); | proc: function () { console.log("in proc"); var i, queue, q; if(___FNX_fenix_queue_) { console.log("queue defined"); queue = ___FNX_fenix_queue_; for(i = 0; i < queue.length; i ++) { console.log("queue has elems"); q = queue[i]; if(q.length > 0) ... | |
console.log("calling callback"); | proc: function () { console.log("in proc"); var i, queue, q; if(___FNX_fenix_queue_) { console.log("queue defined"); queue = ___FNX_fenix_queue_; for(i = 0; i < queue.length; i ++) { console.log("queue has elems"); q = queue[i]; if(q.length > 0) ... | |
console.log("calling callback(default)"); | proc: function () { console.log("in proc"); var i, queue, q; if(___FNX_fenix_queue_) { console.log("queue defined"); queue = ___FNX_fenix_queue_; for(i = 0; i < queue.length; i ++) { console.log("queue has elems"); q = queue[i]; if(q.length > 0) ... | |
if (result == null || result == 'false') { | result += ''; if (result == 'false') { | EmailSenderHelper.proceedSendingMessage = function() { var container = jQuery('#emailSenderFormId'); var from = EmailSenderHelper.getValueFromInput('input[type=\'text\'][name=\'emailSenderFrom\']', container); var replyTo = EmailSenderHelper.getValueFromInput('input[type=\'text\'][name=\'emailSenderReplyTo\']', conta... |
if (data.error) alert(data.message); else if (data.redirect) | if (data.redirect) | process: function(command) { if (command.item) command.action = command.ctrlKey ? "copy" : "move"; else command.action = "create"; command.random = Math.random(); var url = this.urls[command.action]; var reloaded = false; $.getJSON(url, command, function(data) { reloaded = true; if (data.error... |
if (data.redirect && command.action == "create") | if (data.redirect && command.action == "create" && data.dialog !== "no") | process: function (command) { var self = this; if (command.item) command.action = command.ctrlKey ? "copy" : "move"; else command.action = "create"; command.random = Math.random(); var url = self.urls[command.action]; var reloaded = false; $.getJSON(url, command, function (data) { reloaded = tr... |
schedule_assignments: [] | schedule_assignments: [], | function process_data(data){ var processed_data = { times: [], rooms: [], blocks: [], sections: [], block_index: {}, teachers: [], schedule_assignments: [] }; processed_data.schedule_assignments = data.schedule_assignments; var Resources = ESP.Scheduling.Resources; // times for (var i =... |
Resources.create('Room',{ uid: r.uid, text: r.text, block_contents: r.block_contents})).uid; | Resources.create('Room',{ uid: r.uid, text: r.text, block_contents: ESP.Utilities.genPopup(r.text, {'Size:': r.num_students.toString(), 'Resources:': r.associated_resources.map(function(x){ return Resources.get('RoomResource',x).text; })}, true)})).uid; | function process_data(data){ var processed_data = { times: [], rooms: [], blocks: [], sections: [], block_index: {}, teachers: [], schedule_assignments: [] }; processed_data.schedule_assignments = data.schedule_assignments; var Resources = ESP.Scheduling.Resources; // times for (var i =... |
uid: t.uid, text: t.text, block_contents: t.block_contents, | uid: t.uid, text: t.text, block_contents: ESP.Utilities.genPopup(t.text, {'Available Times:': t.availability.map(function(x){ return Resources.get('Time',x).text; }) }, true), | function process_data(data){ var processed_data = { times: [], rooms: [], blocks: [], sections: [], block_index: {}, teachers: [], schedule_assignments: [] }; processed_data.schedule_assignments = data.schedule_assignments; var Resources = ESP.Scheduling.Resources; // times for (var i =... |
uid: c.id, class_id: c.class_id, code: c.emailcode, block_contents: c.block_contents, category: c.category, length: Math.round(c.length*10)*3600000/10 + 600000, length_hr: Math.round(c.length * 2) / 2, id:c.id, status:c.status, text:c.text, teachers:c.teachers.map(function(x){ return Resources.get('Teacher',x); }), | uid: c.id, class_id: c.class_id, code: c.emailcode, block_contents: ESP.Utilities.genPopup(c.emailcode, { 'Size:': c.max_class_capacity ? c.max_class_capacity : "(unspecified)", 'Resources:': c.resource_requests.map(function(x){ return (Resources.get('RoomResource', x[0]) ? (Resources.get('RoomResource', x[0]).text + "... | function process_data(data){ var processed_data = { times: [], rooms: [], blocks: [], sections: [], block_index: {}, teachers: [], schedule_assignments: [] }; processed_data.schedule_assignments = data.schedule_assignments; var Resources = ESP.Scheduling.Resources; // times for (var i =... |
schedule_assignments: [], | schedule_assignments: [] | function process_data(data){ var processed_data = { times: [], rooms: [], blocks: [], sections: [], block_index: {}, teachers: [], schedule_assignments: [], }; processed_data.schedule_assignments = data.schedule_assignments; var Resources = ESP.Scheduling.Resources; // resourcetypes for... |
Resources.create('Room',{ uid: r.uid, text: r.text, block_contents: ESP.Utilities.genPopup(r.text, {'Size:': r.num_students.toString(), 'Resources:': r.associated_resources.map(function(x){ return Resources.get('RoomResource',x) ? Resources.get('RoomResource',x).text : "N/A"; })}, true)})).uid; | Resources.create('Room',{ uid: r.uid, text: r.text, block_contents: ESP.Utilities.genPopup(r.text, { 'Size:': r.num_students.toString(), 'Resources:': assd_resources}, true), resources: assd_resources })); | function process_data(data){ var processed_data = { times: [], rooms: [], blocks: [], sections: [], block_index: {}, teachers: [], schedule_assignments: [], }; processed_data.schedule_assignments = data.schedule_assignments; var Resources = ESP.Scheduling.Resources; // resourcetypes for... |
uid: t.uid, text: t.text, block_contents: ESP.Utilities.genPopup(t.text, {'Available Times:': t.availability.map(function(x){ return Resources.get('Time',x) ? Resources.get('Time', x).text : "N/A"; }) }, true), | uid: t.uid, text: t.text, block_contents: ESP.Utilities.genPopup(t.text, {'Available Times:': t.availability.map(function(x){ var res = Resources.get('Time',x); return res ? res.text : "N/A"; }) }, true), | function process_data(data){ var processed_data = { times: [], rooms: [], blocks: [], sections: [], block_index: {}, teachers: [], schedule_assignments: [], }; processed_data.schedule_assignments = data.schedule_assignments; var Resources = ESP.Scheduling.Resources; // resourcetypes for... |
'Requests:': c.resource_requests.map(function(x){ return (Resources.get('RoomResource', x[0]) ? (Resources.get('RoomResource', x[0]).text + ": " + x[1]) : null); }), | 'Requests:': c.resource_requests.map(function(x){ var res = Resources.get('RoomResource', x[0]); return (res ? (res.text + ": " + x[1]) : null); }), | function process_data(data){ var processed_data = { times: [], rooms: [], blocks: [], sections: [], block_index: {}, teachers: [], schedule_assignments: [], }; processed_data.schedule_assignments = data.schedule_assignments; var Resources = ESP.Scheduling.Resources; // resourcetypes for... |
'Comments:': c.comments, | 'Comments:': c.comments | function process_data(data){ var processed_data = { times: [], rooms: [], blocks: [], sections: [], block_index: {}, teachers: [], schedule_assignments: [], }; processed_data.schedule_assignments = data.schedule_assignments; var Resources = ESP.Scheduling.Resources; // resourcetypes for... |
$.each(data.units.before, function() { pootle.editor.units[this.id] = this; }); $.each(data.units.after, function() { pootle.editor.units[this.id] = this; }); pootle.editor.display_next_unit(store, data); | var newhash = "unit/" + parseInt(data.new_uid); $.history.load(newhash); | pootle.editor.process_submit = function(e) { e.preventDefault(); var uid = pootle.editor.active_uid; var type_map = {submit: "submission", suggest: "suggestion"}; var type = type_map[$(e.target).attr("class")]; var submit_url = l(pootle.editor.store + '/process/' + uid + '/' + type); // Serialize da... |
Wicket.Log.error("Wicket.Ajax.Call.processComponent: Component with id [["+compId+"]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update."); | Wicket.Log.error("Wicket.Ajax.Call.processComponent: Component with id [["+compId+"]] was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update."); | processComponent: function(steps, node) { steps.push(function(notify) { // get the component id var compId = node.getAttribute("id"); var text=""; // get the new component body if (node.hasChildNodes()) { for( i=0 ; i < node.childNodes.length; i++ ) { text = text + node.childNodes[i].nodeValue; } ... |
return req.servletRequest.scheme + ": | href = [req.servletRequest.scheme, ": } else if (domain = getProperty("domain.www")) { href = [req.servletRequest.scheme, ": "/", this.name, href].join(String.EMPTY); | Site.prototype.processHref = function(href) { var domain = getProperty("domain." + this.name); if (domain) { return req.servletRequest.scheme + "://" + domain + href; } return href;} |
* obj - object: arbitrary object | * obj - object: object with custom user data | function ProcessingCart(container){ // Group: Constants // ----------------------------------------------------------------------------------------------------------------------------- /* * Var: _container * Parent DOM container * */ var _container = $(container); /* * Var: _itemsCount * Number of items in cart ... |
var nb = resp['data'].length; | if (resp.warning) { document.fire('processingCart:itemAlreadyExisting', resp.warning); return; } var nb = resp.data.length; | function ProcessingCart(container){ // Group: Constants // ----------------------------------------------------------------------------------------------------------------------------- /* * Var: _container * Parent DOM container * */ var _container = $(container); /* * Var: _itemsCount * Number of items in cart ... |
if (!d.x) { | if (d.x == undefined) { | function processRawData(plot, series, seriesData, datapoints) { if (!series.boxes.show) { return; } var points = []; var boxWidth = 0.6; for(var i=0; i<seriesData.length; i++) { var d = seriesD... |
var allR = style['-webkit-border-radius'] || 0; var tR = style['-webkit-border-top-right-radius'] || 0; var tL = style['-webkit-border-top-left-radius'] || 0; var bR = style['-webkit-border-bottom-right-radius'] || 0; var bL = style['-webkit-border-bottom-left-radius'] || 0; | var allR = style['-moz-border-radius'] || 0; var tR = style['-moz-border-radius-topright'] || 0; var tL = style['-moz-border-radius-topleft'] || 0; var bR = style['-moz-border-radius-bottomright'] || 0; var bL = style['-moz-border-radius-bottomleft'] || 0; | function procIEStyles(rule) { var style = rule.style; if (curvyBrowser.ieVer > 6.0) { var allR = style['-webkit-border-radius'] || 0; var tR = style['-webkit-border-top-right-radius'] || 0; var tL = style['-webkit-border-top-left-radius'] || 0; var bR = styl... |
var allR = style['webkit-border-radius'] || 0; var tR = style['webkit-border-top-right-radius'] || 0; var tL = style['webkit-border-top-left-radius'] || 0; var bR = style['webkit-border-bottom-right-radius'] || 0; var bL = style['webkit-border-bottom-left-radius'] || 0; | var allR = style['moz-border-radius'] || 0; var tR = style['moz-border-radius-topright'] || 0; var tL = style['moz-border-radius-topleft'] || 0; var bR = style['moz-border-radius-bottomright'] || 0; var bL = style['moz-border-radius-bottomleft'] || 0; } if (allR) { var t = allR.split('/'); t = t[0].split(/\s/);... | function procIEStyles(rule) { var style = rule.style; if (curvyBrowser.ieVer > 6.0) { var allR = style['-webkit-border-radius'] || 0; var tR = style['-webkit-border-top-right-radius'] || 0; var tL = style['-webkit-border-top-left-radius'] || 0; var bR = styl... |
var f = text.parentNode; var new_text = f.removeChild(text); | var textWrapper = text; while(textWrapper.parentNode.nodeName != 'FORM') textWrapper = textWrapper.parentNode; var f = textWrapper.parentNode; | function proofreadpage_index_init() { var toolbar = document.getElementById("toolbar"); if(toolbar) toolbar.parentNode.removeChild(toolbar); var text = document.getElementById("wpTextbox1"); if(!text) return; params = ''; if(text.value) { var re = /\{\{:MediaWiki:Proofreadpage_index_template([\s\S]*)\n\}\}/m; var m... |
var str = '<div style="display:none;"><textarea id="wpTextbox1" name="wpTextbox1">'+new_text.value+'</textarea></div>'; str = str + '<table>'; | var str = '<table>'; | function proofreadpage_index_init() { var toolbar = document.getElementById("toolbar"); if(toolbar) toolbar.parentNode.removeChild(toolbar); var text = document.getElementById("wpTextbox1"); if(!text) return; params = ''; if(text.value) { var re = /\{\{:MediaWiki:Proofreadpage_index_template([\s\S]*)\n\}\}/m; var m... |
str = str + '<tr><td>'+param_label+': </td>'; | str += '<tr><td>'+param_label+': </td>'; | function proofreadpage_index_init() { var toolbar = document.getElementById("toolbar"); if(toolbar) toolbar.parentNode.removeChild(toolbar); var text = document.getElementById("wpTextbox1"); if(!text) return; params = ''; if(text.value) { var re = /\{\{:MediaWiki:Proofreadpage_index_template([\s\S]*)\n\}\}/m; var m... |
str = str + '<td><input name="'+param_name+'" size=60 value="'+value+'"/></td></tr>'; | str += '<td><input name="'+param_name+'" size=60 value="'+value+'"/></td></tr>'; | function proofreadpage_index_init() { var toolbar = document.getElementById("toolbar"); if(toolbar) toolbar.parentNode.removeChild(toolbar); var text = document.getElementById("wpTextbox1"); if(!text) return; params = ''; if(text.value) { var re = /\{\{:MediaWiki:Proofreadpage_index_template([\s\S]*)\n\}\}/m; var m... |
str = str +'<td><textarea name="'+param_name+'" cols=60 rows='+size+'>'+value+'</textarea></td></tr>'; | str += '<td><textarea name="'+param_name+'" cols=60 rows='+size+'>'+value+'</textarea></td></tr>'; | function proofreadpage_index_init() { var toolbar = document.getElementById("toolbar"); if(toolbar) toolbar.parentNode.removeChild(toolbar); var text = document.getElementById("wpTextbox1"); if(!text) return; params = ''; if(text.value) { var re = /\{\{:MediaWiki:Proofreadpage_index_template([\s\S]*)\n\}\}/m; var m... |
str = str +'</table>'; container.innerHTML = str; | str += '</table>'; container.innerHTML += str; | function proofreadpage_index_init() { var toolbar = document.getElementById("toolbar"); if(toolbar) toolbar.parentNode.removeChild(toolbar); var text = document.getElementById("wpTextbox1"); if(!text) return; params = ''; if(text.value) { var re = /\{\{:MediaWiki:Proofreadpage_index_template([\s\S]*)\n\}\}/m; var m... |
var isEnabled, isInstalled, isLanguageSupported, lineStartPosition, rangeEnd, rangeStart, rangeText, scimoz; | var htmlTagsOnly, isEnabled, isHtmlBuffer, isInstalled, isLanguageSupported, lineStartPosition, rangeEnd, rangeStart, rangeText, scimoz; | $self.provider = function() { var providerName, providerOrdering; root.command.abbreviation.provider.apply(this, [(providerName = 'zenCoding'), (providerOrdering = 6200)]); this.getAllowedCharacters = function() { return [[], ['a-z', 'A-Z', '0-9', '#', '\\.', '>', '\\+', '\\*', '\\:', '\\$', '\\-', '_',... |
isLanguageSupported = SUBLANGUAGE_SUPPORTED_LIST.indexOf(view.document.subLanguage) >= 0 && root.editor.isHtmlBuffer(view); | if (!(isEnabled && isInstalled)) { return false; } isHtmlBuffer = root.editor.isHtmlBuffer(view); isLanguageSupported = SUBLANGUAGE_SUPPORTED_LIST.indexOf(view.document.subLanguage) >= 0; | $self.provider = function() { var providerName, providerOrdering; root.command.abbreviation.provider.apply(this, [(providerName = 'zenCoding'), (providerOrdering = 6200)]); this.getAllowedCharacters = function() { return [[], ['a-z', 'A-Z', '0-9', '#', '\\.', '>', '\\+', '\\*', '\\:', '\\$', '\\-', '_',... |
if (isEnabled && isInstalled && isLanguageSupported) { scimoz = view.scimoz; if (scimoz.anchor === scimoz.currentPos) { lineStartPosition = scimoz.positionFromLine(scimoz.lineFromPosition(scimoz.currentPos)); rangeStart = scimoz.anchor - 1; rangeEnd = scimoz.currentPos; rangeText = ''; while (rangeStart >= 0) { rangeTe... | isLanguageSupported = isLanguageSupported || isHtmlBuffer; if (!(isLanguageSupported)) { return false; } scimoz = view.scimoz; if (!(scimoz.anchor === scimoz.currentPos)) { | $self.provider = function() { var providerName, providerOrdering; root.command.abbreviation.provider.apply(this, [(providerName = 'zenCoding'), (providerOrdering = 6200)]); this.getAllowedCharacters = function() { return [[], ['a-z', 'A-Z', '0-9', '#', '\\.', '>', '\\+', '\\*', '\\:', '\\$', '\\-', '_',... |
return false; | lineStartPosition = scimoz.positionFromLine(scimoz.lineFromPosition(scimoz.currentPos)); rangeStart = scimoz.anchor - 1; rangeEnd = scimoz.currentPos; rangeText = ''; while (rangeStart >= 0) { rangeText = scimoz.getTextRange(rangeStart, rangeEnd); if (!this.getAllowedRegExp().test(rangeText)) { break; } else if (rangeS... | $self.provider = function() { var providerName, providerOrdering; root.command.abbreviation.provider.apply(this, [(providerName = 'zenCoding'), (providerOrdering = 6200)]); this.getAllowedCharacters = function() { return [[], ['a-z', 'A-Z', '0-9', '#', '\\.', '>', '\\+', '\\*', '\\:', '\\$', '\\-', '_',... |
if (content.indexOf('<') === 0 && SUBLANGUAGE_EXTRA_LIST.indexOf(view.document.subLanguage) >= 0) { return null; } | $self.provider = function() { var providerName, providerOrdering; root.command.abbreviation.provider.apply(this, [(providerName = 'zenCoding'), (providerOrdering = 6200)]); this.getAllowedCharacters = function() { return [[], ['a-z', 'A-Z', '0-9', '#', '\\.', '>', '\\+', '\\*', '\\:', '\\$', '\\-', '_',... | |
if ( match[3].match(chunker).length > 1 || /^\w/.test(match[3]) ) { | if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) { | PSEUDO: function(match, curLoop, inplace, result, not){ if ( match[1] === "not" ) { // If we're dealing with a complex expression, or a simple one if ( match[3].match(chunker).length > 1 || /^\w/.test(match[3]) ) { match[3] = Sizzle(match[3], null, null, curLoop); } else { var ret = Sizzle.filter(m... |
PSEUDO: function (elem, match, i, array, not) { | PSEUDO: function (elem, match, i, array) { | PSEUDO: function (elem, match, i, array, not) { var name = match[1]; if (name !== 'nth-col') { pseudoSelector(elem, match, i, array); } } |
pseudoSelector(elem, match, i, array); | return pseudoSelector(elem, match, i, array); | PSEUDO: function (elem, match, i, array, not) { var name = match[1]; if (name !== 'nth-col') { pseudoSelector(elem, match, i, array); } } |
TiDev.setConsoleMessage('Packaging failed. Error: ' + json.message, 5000); | PackageProject.publishDesktopApp = function(destDir,project){ // set packaging message TiDev.messageArea.setMessage(TiUI.progressBar.html('Packaging your app. This may take a few...')); TiUI.progressBar.init(); TiDev.messageArea.expand(); var url = Titanium.App.getStreamURL(PackageProject.publishURL); var data = ... | |
alert('Packaging failed. Error: ' + json.message); TiDev.resetConsole(); | PackageProject.publishDesktopApp = function(destDir,project){ // set packaging message TiDev.messageArea.setMessage(TiUI.progressBar.html('Packaging your app. This may take a few...')); TiUI.progressBar.init(); TiDev.messageArea.expand(); var url = Titanium.App.getStreamURL(PackageProject.publishURL); var data = ... | |
TiDev.setConsoleMessage('Packaging failed. HTTP status: ' + this.status, 5000); | PackageProject.publishDesktopApp = function(destDir,project){ // set packaging message TiDev.messageArea.setMessage(TiUI.progressBar.html('Packaging your app. This may take a few...')); TiUI.progressBar.init(); TiDev.messageArea.expand(); var url = Titanium.App.getStreamURL(PackageProject.publishURL); var data = ... | |
alert('Packaging failed. HTTP status: ' + this.status); TiDev.resetConsole(); | PackageProject.publishDesktopApp = function(destDir,project){ // set packaging message TiDev.messageArea.setMessage(TiUI.progressBar.html('Packaging your app. This may take a few...')); TiUI.progressBar.init(); TiDev.messageArea.expand(); var url = Titanium.App.getStreamURL(PackageProject.publishURL); var data = ... | |
gettext("Notification of changes at site {0}", site.title), site.renderSkinAsString("$Site#notify_deletion")); | gettext("[{0}] Warning: Site will be deleted"), site.renderSkinAsString("$Site#notify_delete")); | Admin.purgeSites = function() { var now = new Date; root.admin.deletedSites.forEach(function() { if (now - this.deleted > Date.ONEDAY * Admin.SITEREMOVALGRACEPERIOD) { let job; if (this.job && (job = new Admin.Job(this.job))) { job.remove(); } job = Admin.queue(this, ... |
gettext("Notification of changes at site {0}", site.title), site.renderSkinAsString("$Site#notify_blocking")); | gettext("[{0}] Warning: Site will be blocked"), site.renderSkinAsString("$Site#notify_block")); | Admin.purgeSites = function() { var now = new Date; root.admin.deletedSites.forEach(function() { if (now - this.deleted > Date.ONEDAY * Admin.SITEREMOVALGRACEPERIOD) { let job; if (this.job && (job = new Admin.Job(this.job))) { job.remove(); } job = Admin.queue(this, ... |
filter: "#content form", | filter: "#content", | pfgQEdit.qedit = function (e) { jq("#pfgqedit").hide(); jq(".ArchetypesCaptchaWidget .captchaImage").replaceWith("<div>Captcha field hidden by form editor. Refresh to view it.</div>"); // disable and dim input elements blurrable = jq("div.pfg-form .blurrable, div.pfg-form input") blurrable.each( function() { ... |
formselector: 'form', | formselector: 'form:has(input[value=Delete])', | pfgQEdit.qedit = function (e) { jq("#pfgqedit").hide(); jq(".ArchetypesCaptchaWidget .captchaImage").replaceWith("<div>Captcha field hidden by form editor. Refresh to view it.</div>"); // disable and dim input elements blurrable = jq("div.pfg-form .blurrable, div.pfg-form input") blurrable.each( function() { ... |
jq('#plone-contentmenu-factories .actionMenuContent a[id^=form]').prepOverlay( { subtype: 'ajax', filter: "#content", formselector: 'form[id$=base-edit]', noform: 'reload', closeselector:'[name=form.button.Cancel]' } ); | pfgQEdit.qedit = function (e) { jq("#pfgqedit").hide(); jq(".ArchetypesCaptchaWidget .captchaImage").replaceWith("<div>Captcha field hidden by form editor. Refresh to view it.</div>"); // disable and dim input elements blurrable = jq("div.pfg-form .blurrable, div.pfg-form input") blurrable.each( function() { ... | |
if (jQuery(".error").css("display")=="inline" && jQuery(".error").css("visibility")=="visible") { jQuery(".error").fadeOut(); } | jQuery(".error").hide(); | pfgQEdit.qedit = function (e) { jQuery("#pfgqedit").hide(); // hide the error messages, if exist if (jQuery(".error").css("display")=="inline" && jQuery(".error").css("visibility")=="visible") { jQuery(".error").fadeOut(); } jQuery(".ArchetypesCaptchaWidget .captchaImage").replaceWith("<div>Captcha field hidden by... |
closeselector:'[name=form.button.Cancel]' | closeselector:'[name=form.button.cancel]' | pfgQEdit.qedit = function (e) { jq("#pfgqedit").hide(); jq(".ArchetypesCaptchaWidget .captchaImage").replaceWith("<div>Captcha field hidden by form editor. Refresh to view it.</div>"); // disable and dim input elements blurrable = jq("div.pfg-form .blurrable, div.pfg-form input") blurrable.each( function() { ... |
formselector: 'form[id$=base-edit]', | pfgQEdit.qedit = function (e) { var tool, blurrable; // Turn off form-unload protection so that we don't receive // misleading notifications. // But, first save the list of forms with unload protection // so that we may restore it. tool = window.onbeforeunload && window.onbeforeunload.tool; if (too... | |
postdata.csrfmiddlewaretoken = csrfmiddlewaretoken; | function qsd_send_command(qsd_id, postdata){ var request = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP.3.0"); request.open("POST", "/admin/ajax_qsd/", true); request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"); request.onreadystate... | |
geom.geometry.CLASS_NAME.class_name === | geom.geometry.CLASS_NAME === | readWKT: function() { // Read WKT from the text field. We assume that the WKT uses the // projection given in "displayProjection", and ignore any initial // SRID. var wkt = this.textarea.value; if (this.features) { this.removeFeatures(this.features); } if... |
if (typeof(geom.geometry) !== "undefined") { | if (geom.geometry != undefined) { | readWKT: function() { // Read WKT from the text field. We assume that the WKT uses the // projection given in "displayProjection", and ignore any initial // SRID. var wkt = this.textarea.value; if (this.features) { this.removeFeatures(this.features); } if... |
geom = olwidget.transformVector(geom, this.map.displayProjection, this.map.projection); if (geom.constructor == Array || geom.geometry.CLASS_NAME.class_name === "OpenLayers.Geometry.MultiLineString" || geom.geometry.CLASS_NAME.class_name === "OpenLayers.Geometry.MultiPoint" || geom.geometry.CLASS_NAME.class_name === "O... | if (geom && (geom.constructor != Array || geom[0] != undefined)) { geom = olwidget.transformVector(geom, this.map.displayProjection, this.map.projection); if (geom.constructor == Array || geom.geometry.CLASS_NAME.class_name === "OpenLayers.Geometry.MultiLineString" || geom.geometry.CLASS_NAME.class_name === "OpenLayers... | readWKT: function() { // Read any initial WKT from the text field. We assume that the // WKT uses the projection given in "displayProjection", and ignore // any initial SRID. var wkt = this.textarea.value; if (this.features) { this.removeFeatures(this.features); ... |
this.addFeatures(geoms, {silent: true}); | readWKT: function() { // Read any initial WKT from the text field. We assume that the // WKT uses the projection given in "displayProjection", and ignore // any initial SRID. var wkt = this.textarea.value; if (this.features) { this.removeFeatures(this.features); ... | |
this.addFeatures(geom, {silent: true}); | this.addFeatures([geom], {silent: true}); | readWKT: function() { // Read any initial WKT from the text field. We assume that the // WKT uses the projection given in "displayProjection", and ignore // any initial SRID. var wkt = this.textarea.value; if (this.features) { this.removeFeatures(this.features); ... |
this.addFeatures([geom], {silent: true}); | this.numGeom = 0; | readWKT: function() { // Read any initial WKT from the text field. We assume that the // WKT uses the projection given in "displayProjection", and ignore // any initial SRID. var wkt = this.textarea.value; if (this.features) { this.removeFeatures(this.features); ... |
this.numGeom = this.features.length; | readWKT: function() { // Read any initial WKT from the text field. We assume that the // WKT uses the projection given in "displayProjection", and ignore // any initial SRID. var wkt = this.textarea.value; if (this.features) { this.removeFeatures(this.features); ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.