rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if (editor.testRunnerResultCallback) { | if (editor && editor.testRunnerResultCallback) { | TestResult.prototype.post = function() { var editor = SeleniumIDE.Loader.getTopEditor(); if (editor.testRunnerResultCallback) { editor.testRunnerResultCallback(this, window); }}; |
} else { this.originalPost(); | TestResult.prototype.post = function() { var editor = SeleniumIDE.Loader.getTopEditor(); if (editor.testRunnerResultCallback) { editor.testRunnerResultCallback(this, window); }}; | |
saveBlog(); | window.setTimeout('saveBlog();', 2000); | function postBlog(id, obj, formid){var bindArgs = { url: "/exec/post/" + obj, content: {ajax: "1"}, mimetype: "text/plain", method: "POST", error: function(type, errObj){ }, load: function(type, data, evt){ // handle successful response here var d = document.getE... |
resultsUrl = "/postResults"; | resultsUrl = "./postResults"; | function postTestResults(suiteFailed, suiteTable) { form = document.createElement("form"); document.body.appendChild(form); form.id = "resultsForm"; form.method="post"; var resultsUrl = getQueryParameter("resultsUrl"); if (!resultsUrl) { resultsUrl = "/postResults"; } var actionAndParamet... |
form.submit(); | if (isQueryParameterTrue("save")) { saveToFile(resultsUrl, form); } else { form.submit(); } | function postTestResults(suiteFailed, suiteTable) { form = document.createElement("form"); document.body.appendChild(form); form.id = "resultsForm"; form.method="post"; form.target="myiframe"; var resultsUrl = getQueryParameter("resultsUrl"); if (!resultsUrl) { resultsUrl = "./postResults"; ... |
if (isQueryParameterTrue("close")) { window.top.close(); } | function postTestResults(suiteFailed, suiteTable) { form = document.createElement("form"); document.body.appendChild(form); form.id = "resultsForm"; form.method="post"; form.target="myiframe"; var resultsUrl = getQueryParameter("resultsUrl"); if (!resultsUrl) { resultsUrl = "./postResults"; ... | |
auxImg.src = ICONPATH + "ftv2folderclosed.gif"; auxImg.src = ICONPATH + "ftv2folderopen.gif"; auxImg.src = ICONPATH + "ftv2doc.gif"; | auxImg.src = ICONPATH + ""; auxImg.src = ICONPATH + ""; auxImg.src = ICONPATH + ""; | function preLoadIcons() { var auxImg auxImg = new Image(); auxImg.src = ICONPATH + "ftv2vertline.gif"; auxImg.src = ICONPATH + "ftv2mlastnode.gif"; auxImg.src = ICONPATH + "ftv2mnode.gif"; auxImg.src = ICONPATH + "ftv2plastnode.gif"; auxImg.src = ICONPATH + "ftv2pnode.gif"; auxImg.src = ICONPATH + "ftv2blank.gif"; auxI... |
auxImg.src = ICONPATH + ""; auxImg.src = ICONPATH + ""; auxImg.src = ICONPATH + ""; | function preLoadIcons() { var auxImg auxImg = new Image(); auxImg.src = ICONPATH + "ftv2vertline.gif"; auxImg.src = ICONPATH + "ftv2mlastnode.gif"; auxImg.src = ICONPATH + "ftv2mnode.gif"; auxImg.src = ICONPATH + "ftv2plastnode.gif"; auxImg.src = ICONPATH + "ftv2pnode.gif"; auxImg.src = ICONPATH + "ftv2blank.gif"; auxI... | |
this.includeScrollOffsets = true; | prepare: function() { this.deltaX = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0; this.deltaY = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop ... | |
for (var i = 0; i < this.val.length; i++) sc_prepWriteCircle(this.val[i], symb, nbPointer); | for (var i = 0; i < this.length; i++) sc_prepWriteCircle(this[i], symb, nbPointer); | sc_Vector.prototype.prepWriteCircle = function(symb, nbPointer) { if (this[symb] !== undefined) { this[symb]++; this[symb + "nb"] = nbPointer.nb++; } else { this[symb] = 0; for (var i = 0; i < this.val.length; i++) sc_prepWriteCircle(this.val[i], symb, nbPointer); }}; |
for (i = 0; i < arguments.length; i++) | for (var i = 0; i < arguments.length; i++) | present: function() { for (i = 0; i < arguments.length; i++) if ($(arguments[i]).value == '') return false; return true; } |
var fileName = srcList.options[srcList.selectedIndex].text; var fileName2 = srcList.options[srcList.selectedIndex].value; | var srcOption = srcList.options[(srcList.selectedIndex < 0) ? 0 : srcList.selectedIndex]; var fileName = srcOption.text; var fileName2 = srcOption.value; | function previewImage( list, image, base_path ) { form = document.adminForm; srcList = eval( "form." + list ); srcImage = eval( "document." + image ); var fileName = srcList.options[srcList.selectedIndex].text; var fileName2 = srcList.options[srcList.selectedIndex].value; if (fileName.length == 0 || fileName2.length ==... |
if (!Calendar.is_ie5) | if (!Calendar.is_ie5 && !Calendar.is_khtml) | Date.prototype.print = function (str) { var m = this.getMonth(); var d = this.getDate(); var y = this.getFullYear(); var wn = this.getWeekNumber(); var w = this.getDay(); var s = {}; var hr = this.getHours(); var pm = (hr >= 12); var ir = (pm) ? (hr - 12) : hr; var dy = this.getDayOfYear(); if (ir == 0) ir = 12; var m... |
header.id = header["message-id"]; | header = convert_msg_header(header); | function process_contribution(header, body, list){ // ToDo: apply filtering here? var msgbase=new MsgBase(list.sub); // ToDo: verify author/sender is a list subscriber here if(!msgbase.open()) { error_file.writeln(log(LOG_ERR,format("%s !ERROR %s opening msgbase: %s" ,list.name, msgbase.error, list.sub))); return(f... |
header.subject=header.subject.replace(RegExp("\\["+listname+"\\]\\s*"), ""); | header.subject=header.subject.replace(RegExp("\\["+list.name+"\\]\\s*"), ""); | function process_contribution(header, body, list){ // ToDo: apply filtering here? var user_list = get_user_list(list); // verify author/sender is a list subscriber here if(find_user(user_list, sender_address)==-1) { error_file.writeln(log(LOG_WARNING,format("ListServer: %s !ERROR %s is not a subscriber" ,list.name, ... |
if(!user.compare_ars(msgbase.cfg.moderated_ars)) | if(msg_area.sub[list.sub.toLowerCase()].is_moderated) | function process_contribution(header, body, list){ // ToDo: apply filtering here? var user_list = get_user_list(list); // verify author/sender is a list subscriber here if(find_user(user_list, sender_address)==-1) { error_file.writeln(log(LOG_WARNING,format("ListServer: %s !ERROR %s is not a subscriber" ,list.name, ... |
header = convert_msg_header(header); | function process_contribution(header, body, list){ // ToDo: apply filtering here? var user_list = get_user_list(list); // verify author/sender is a list subscriber here if(find_user(user_list, sender_address)==-1) { error_file.writeln(log(LOG_WARNING,format("ListServer: %s !ERROR %s is not a subscriber" ,list.name, ... | |
var htmlText = processFunction(m[1], m[2], comment); | var htmlText = processFunction(m[1], m[5], comment); | function processFile(f, fname, inputdir, out) { var s; var firstLine = true; indexFileArray[fname] = ""; // write the header of the output file out.writeLine('<HTML><HEADER><TITLE>' + fname + '</TITLE><BODY>'); if (inputdir != null) { outstr = '<a name=\"_top_\"></a><pre><a href=\"' + indexFile + '\">Index Files<... |
functionDocArray[functionDocArray.length] = {name:m[1], text:htmlText}; if (indexFunctionArray[m[1]]) { with (indexFunctionArray[m[1]]) { filename = filename + "|" + fname; } } else { indexFunctionArray[m[1]] = {filename:fname}; } comment = ""; } firstLine = false; | functionDocArray[functionDocArray.length] = {name:m[1], text:htmlText}; if (indexFunctionArray[m[1]]) { with (indexFunctionArray[m[1]]) { filename = filename + "|" + fname; } } else { indexFunctionArray[m[1]] = {filename:fname}; } comment = ""; } m = s.match(/^\s*(\w*)\.prototype\.(\w*)\s*=\s*function\s*\(([^)]... | function processFile(f, fname, inputdir, out) { var s; var firstLine = true; indexFileArray[fname] = ""; // write the header of the output file out.writeLine('<HTML><HEADER><TITLE>' + fname + '</TITLE><BODY>'); if (inputdir != null) { outstr = '<a name=\"_top_\"></a><pre><a href=\"' + indexFile + '\">Index Files<... |
return {lonlat: new OpenLayers.LonLat(parseFloat(floats[0]), parseFloat(floats[1])), id: null}; | processXMLNode: function(xmlNode) { //this should be overridden by subclasses // must return an Object with 'id' and 'lonlat' values set }, | |
function progressBar(id) { | function progressBar(id, callback, method) { | function progressBar(id) { var pb = this; this.id = id; this.element = document.createElement('div'); this.element.id = id; this.element.className = 'progress'; this.element.innerHTML = '<div class="percentage"></div>'+ '<div class="status"> </div>'+ '<div ... |
this.method = method ? method : HTTPGet; this.callback = callback; | function progressBar(id) { var pb = this; this.id = id; this.element = document.createElement('div'); this.element.id = id; this.element.className = 'progress'; this.element.innerHTML = '<div class="percentage"></div>'+ '<div class="status"> </div>'+ '<div ... | |
this.relayBotToRC("browserbot.recordedPrompts"); | self.relayBotToRC("browserbot.recordedPrompts"); | windowToModify.prompt = function(message) { browserBot.recordedPrompts.push(message); var result = !browserBot.nextConfirmResult ? null : browserBot.nextPromptResult; browserBot.nextConfirmResult = true; browserBot.nextPromptResult = ''; this.relayBotToRC("browserbot.recordedPromp... |
relayBotToRC("browserbot.recordedPrompts"); | windowToModify.prompt = function(message) { browserBot.recordedPrompts.push(message); var result = !browserBot.nextConfirmResult ? null : browserBot.nextPromptResult; browserBot.nextConfirmResult = true; browserBot.nextPromptResult = ''; relayBotToRC("browserbot.recordedPrompts");... | |
var val = gmPrompt("Modify the URL of the page below. You can specify multiple pages using the wildcard (*) character.", self.listbox.selectedItem.label, "Edit Page"); | var val = gmPrompt(manageBundle.getString("promptForEdit.msg"), self.listbox.selectedItem.label, manageBundle.getString("promptForEdit.title")); | function promptForEdit(ev) { var val = gmPrompt("Modify the URL of the page below. You can specify multiple pages using the wildcard (*) character.", self.listbox.selectedItem.label, "Edit Page"); if (val && val != "") { self.listbox.selectedItem.label = val;... |
var val = gmPrompt("Enter a new URL below. You can specify multiple pages using the wildcard (*) character.", "http: | var val = gmPrompt(manageBundle.getString("promptForNewPage.msg"), manageBundle.getString("promptForNewPage.defVal"), manageBundle.getString("promptForNewPage.title"));; | function promptForNewPage(ev) { var val = gmPrompt("Enter a new URL below. You can specify multiple pages using the wildcard (*) character.", "http://foo.com/*", "Add Page"); if (val && val != "") { addPage(val); self.pages.push(val); dirty = tr... |
title = metaDoc.getElementsByTagNameNS("http: | var title = metaDoc.getElementsByTagNameNS("http: | function publication_image_library() { var pageEnvelope = new FlowHelper().getPageEnvelope(cocoon); var pubHelper = new PublicationHelper(pageEnvelope.getPublication()); var allDocs = pubHelper.getAllDocuments(pageEnvelope.getDocument().getArea(), pageEnvelope.getDocument().getLanguage()); var image... |
effect.effects[0].element.hide().setStyle(oldStyle); } | effect.effects[0].element.hide(); effect.effects[0].element.setStyle(oldStyle); } | Effect.Puff = function(element) { element = $(element); var oldStyle = { opacity: element.getInlineOpacity(), position: element.getStyle('position') }; return new Effect.Parallel( [ new Effect.Scale(element, 200, { sync: true, scaleFromCenter: true, scaleContent: true, restoreAfterFinish: true }), new E... |
var oldStyle = { opacity: element.getInlineOpacity(), position: element.getStyle('position') }; | var oldStyle = { opacity: element.getInlineOpacity(), position: element.getStyle('position'), top: element.style.top, left: element.style.left, width: element.style.width, height: element.style.height }; | Effect.Puff = function(element) { element = $(element); var oldStyle = { opacity: element.getInlineOpacity(), position: element.getStyle('position') }; return new Effect.Parallel( [ new Effect.Scale(element, 200, { sync: true, scaleFromCenter: true, scaleContent: true, restoreAfterFinish: true }), new E... |
effect.effects[0].element.setStyle({position: 'absolute'}); }, | Position.absolutize(effect.effects[0].element) }, | Effect.Puff = function(element) { element = $(element); var oldStyle = { opacity: element.getInlineOpacity(), position: element.getStyle('position') }; return new Effect.Parallel( [ new Effect.Scale(element, 200, { sync: true, scaleFromCenter: true, scaleContent: true, restoreAfterFinish: true }), new E... |
new Effect.Parallel( [ new Effect.Scale(element, 200, { sync: true, scaleFromCenter: true }), new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0 } ) ], { duration: 1.0, afterUpdate: function(effect) | element = $(element); var oldOpacity = Element.getInlineOpacity(element); var oldPosition = element.style.position; return new Effect.Parallel( [ new Effect.Scale(element, 200, { sync: true, scaleFromCenter: true, scaleContent: true, restoreAfterFinish: true }), new Effect.Opacity(element, { sync: true, to: 0.0 } ) ], ... | Effect.Puff = function(element) { new Effect.Parallel( [ new Effect.Scale(element, 200, { sync: true, scaleFromCenter: true }), new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0 } ) ], { duration: 1.0, afterUpdate: function(effect) { effect.effects[0].element.style.position = 'absol... |
afterFinish: function(effect) { Element.hide(effect.effects[0].element); } } | afterFinishInternal: function(effect) { Element.hide(effect.effects[0].element); effect.effects[0].element.style.position = oldPosition; Element.setInlineOpacity(effect.effects[0].element, oldOpacity); } }, arguments[1] || {}) | Effect.Puff = function(element) { new Effect.Parallel( [ new Effect.Scale(element, 200, { sync: true, scaleFromCenter: true }), new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0 } ) ], { duration: 1.0, afterUpdate: function(effect) { effect.effects[0].element.style.position = 'absol... |
{ duration: 3.0, | Object.extend(Object.extend({ duration: 3.0, | Effect.Pulsate = function(element) { var options = arguments[1] || {}; var transition = options.transition || Effect.Transitions.sinoidal; var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos)) }; reverser.bind(transition); new Effect.Opacity(element, { duration: 3.0, afte... |
}.extend(options).extend({transition: reverser})); | }, options), {transition: reverser})); | Effect.Pulsate = function(element) { var options = arguments[1] || {}; var transition = options.transition || Effect.Transitions.sinoidal; var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos)) }; reverser.bind(transition); new Effect.Opacity(element, { duration: 3.0, afte... |
element = $(element); | Effect.Pulsate = function(element) { var options = arguments[1] || {}; var transition = options.transition || Effect.Transitions.sinoidal; var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos)) }; reverser.bind(transition); return new Effect.Opacity(element, Object.extend(Object.... | |
new Effect.Opacity(element, Object.extend(Object.extend({ duration: 3.0, afterFinish: function(effect) { Element.show(effect.element); } | return new Effect.Opacity(element, Object.extend(Object.extend({ duration: 3.0, from: 0, afterFinishInternal: function(effect) { Element.setInlineOpacity(effect.element, oldOpacity); } | Effect.Pulsate = function(element) { var options = arguments[1] || {}; var transition = options.transition || Effect.Transitions.sinoidal; var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos)) }; reverser.bind(transition); new Effect.Opacity(element, Object.extend(Object.extend(... |
afterFinishInternal: function(effect) { Element.setStyle(el, {opacity: oldOpacity}); } | afterFinishInternal: function(effect) { Element.setStyle(effect.element, {opacity: oldOpacity}); } | Effect.Pulsate = function(element) { element = $(element); var options = arguments[1] || {}; var oldOpacity = Element.getInlineOpacity(element); var transition = options.transition || Effect.Transitions.sinoidal; var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos)) }; reverser.bin... |
var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos)) }; | var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos, options.pulses)) }; | Effect.Pulsate = function(element) { element = $(element); var options = arguments[1] || {}; var oldOpacity = element.getInlineOpacity(); var transition = options.transition || Effect.Transitions.sinoidal; var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos)) }; reverser.bind(trans... |
Object.extend(Object.extend({ duration: 3.0, from: 0, | Object.extend(Object.extend({ duration: 2.0, from: 0, | Effect.Pulsate = function(element) { element = $(element); var options = arguments[1] || {}; var oldOpacity = element.getInlineOpacity(); var transition = options.transition || Effect.Transitions.sinoidal; var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos)) }; reverser.bind(trans... |
Effect.Transitions.pulse = function(pos) { return (Math.floor(pos*10) % 2 == 0 ? (pos*10-Math.floor(pos*10)) : 1-(pos*10-Math.floor(pos*10))); | Effect.Transitions.pulse = function(pos, pulses) { pulses = pulses || 5; return ( Math.round((pos % (1/pulses)) * pulses) == 0 ? ((pos * pulses * 2) - Math.floor(pos * pulses * 2)) : 1 - ((pos * pulses * 2) - Math.floor(pos * pulses * 2)) ); | Effect.Transitions.pulse = function(pos) { return (Math.floor(pos*10) % 2 == 0 ? (pos*10-Math.floor(pos*10)) : 1-(pos*10-Math.floor(pos*10)));} |
NickHistory.pop; | NickHistory.pop(); | function push_nickbuf(oldnick,newnick) { NickHistory.unshift(new NickBuf(oldnick,newnick)); if(NickHistory.length >= nick_buffer) NickHistory.pop;} |
cocoon.sendPage("checkin",{}); | sendStatus(201); | function put() { var status = executeUsecase("webdav.put"); if(status) cocoon.sendPage("checkin",{}); else { sendStatus(415); }} |
sendStatus(500); | sendStatus(415); | function put() { var status = executeUsecase("webdav.put"); if(status) cocoon.sendPage("checkin",{}); else { sendStatus(500); }} |
var text = this.recorder.testManager.getSourceForCommands(commands); | var text = this.editor.testManager.getSourceForCommands(commands); | this.putCommandsToClipboard = function(commands) { var trans = createTransferable(); var str = createClipboardString(); trans.addDataFlavor("text/unicode"); var text = this.recorder.testManager.getSourceForCommands(commands); str.data = text; trans.setTransferData("text/unicode", str, text.length * 2); clipboar... |
? selectionStart : textArea.length; | ? selectionStart : query.length; this.scrollTop = this.selectionStart; this.scrollLeft = 0; | function QueryBufferClass(query, selectionStart, contentSource) { this.query = query; // start at the end this.selectionStart = (null == selectionStart) ? selectionStart : textArea.length; // also track the contentbase and app-server this.contentSource = contentSource; this.getQuery = function(... |
this.setSelectionStart = function(start) { | this.setPosition = function(start, top, left) { debug.print("QueryBufferClass.setPosition: " + start + ", " + top + ", " + left); | function QueryBufferClass(query, selectionStart, contentSource) { this.query = query; // start at the end this.selectionStart = (null == selectionStart) ? selectionStart : textArea.length; // also track the contentbase and app-server this.contentSource = contentSource; this.getQuery = function(... |
this.scrollTop = top; this.scrollLeft = left; | function QueryBufferClass(query, selectionStart, contentSource) { this.query = query; // start at the end this.selectionStart = (null == selectionStart) ? selectionStart : textArea.length; // also track the contentbase and app-server this.contentSource = contentSource; this.getQuery = function(... | |
if (!aIID.equals(nsIWebProgressListener) && !aIID.equals(nsISupportsWeakReference) && !aIID.equals(nsISupports)) | if (!aIID.equals(Components.interfaces.nsIWebProgressListener) && !aIID.equals(Components.interfaces.nsISupportsWeakReference) && !aIID.equals(Components.interfaces.nsISupports)) | QueryInterface : function(aIID) { if (!aIID.equals(nsIWebProgressListener) && !aIID.equals(nsISupportsWeakReference) && !aIID.equals(nsISupports)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; }, |
ajax.send('index.php?mod=Quick_Message&mode=ajax_refresh', null); | ajax.send('ajax.php?mod=Quick_Message&mode=ajax_refresh', null); | function quick_message_refresh(){ ajax = new core_ajax(); var onreadystatechange = function() { if (ajax.state_ready() && ajax.responseText()) { var area = document.getElementById('qm_block'); area.innerHTML = ajax.responseText(); } } ajax.onreadystatechange(onreadystatechange); ajax.send('index.php?mod=Quick_Me... |
ajax.send('index.php?mod=Quick_Message&mode=ajax_add', poster_name + '&message=' + message.value); | ajax.send('ajax.php?mod=Quick_Message&mode=ajax_add', poster_name + '&message=' + message.value); | function quick_message_submit(){ var message = document.getElementById('message'); var poster_name = document.getElementById('poster_name'); ajax = new core_ajax(); if (!ajax) { return true; } var onreadystatechange = function() { if (ajax.state_ready() && ajax.responseText()) { var area = document.getElementById(... |
case '\x02': | function quote_mode(){ var i; var select_mode=false; var select_start=0; quote_height=parseInt(lines_on_screen/2)-1; /* Rounds down */ var curr_ypos=ypos-topline+edit_top; /* Decide if quote window should go at top or at bottom */ if(curr_ypos>edit_top+quote_height) quote_ontop=true; else quote_ontop=false; if(quote_... | |
case '\x19': quote_ypos-=quote_height-1; quote_topline-=quote_height-1; if(quote_ypos<0) quote_ypos=0; if(quote_topline<0) quote_topline=0; draw_quote_window(); break; | function quote_mode(){ var i; var select_mode=false; var select_start=0; quote_height=parseInt(lines_on_screen/2)-1; /* Rounds down */ var curr_ypos=ypos-topline+edit_top; /* Decide if quote window should go at top or at bottom */ if(curr_ypos>edit_top+quote_height) quote_ontop=true; else quote_ontop=false; if(quote_... | |
for(i=0; i<quote_line.length-1; i++) { | for(i=0; i<quote_line.length; i++) { | function quote_mode(){ var i; var select_mode=false; var select_start=0; quote_height=parseInt(lines_on_screen/2)-1; /* Rounds down */ var curr_ypos=ypos-topline+edit_top; /* Decide if quote window should go at top or at bottom */ if(curr_ypos>edit_top+quote_height) quote_ontop=true; else quote_ontop=false; if(quote_... |
if(ypos-topline > lines_on_screen) | if(ypos-topline >= lines_on_screen) | function quote_mode(){ var i; var select_mode=false; var select_start=0; quote_height=parseInt(lines_on_screen/2)-1; /* Rounds down */ var curr_ypos=ypos-topline+edit_top; /* Decide if quote window should go at top or at bottom */ if(curr_ypos>edit_top+quote_height) quote_ontop=true; else quote_ontop=false; if(quote_... |
var val = Convert (ctrl_value, DataType); | var val = Convert (ctrl_value, DataType, validator); | function RangeValidatorEvaluateIsValid (validator){ var MinimumValue = parseInt (validator.getAttribute ("minimumvalue")); var MaximumValue = parseInt (validator.getAttribute ("maximumvalue")); var ControlToValidate = validator.getAttribute ("controltovalidate"); var DataType = validator.getAttribute ("datatype"); var ... |
if (!this.sendq.bytes && !sendsock.send(str + "\r\n")) | if (this.sendq.bytes || !sendsock.send(str + "\r\n")) | function rawout(str) { var sendsock; var str_end; var str_beg; if (debug) log(format("[RAW->%s]: %s",this.nick,str)); if (this.local) { sendsock = this.socket; } else if (!this.local) { if ((str[0] == ":") && str[0].match(["!"])) { str_end = str.slice(str.indexOf(" ")+1); str_beg = str.slice(0,str.indexOf("!"));... |
sendsock = Servers[this.parent].socket; | sendsock = Servers[this.parent.toLowerCase()].socket; | function rawout(str) { var sendsock; var str_end; var str_beg; if (debug) log(format("[RAW->%s]: %s",this.nick,str)); if (this.local) { sendsock = this.socket; } else if (!this.local) { if ((str[0] == ":") && str[0].match(["!"])) { str_end = str.slice(str.indexOf(" ")+1); str_beg = str.slice(0,str.indexOf("!"));... |
log ("WARNING! No config file found or unable to open. Proceeding with defaults."); | log ("WARNING! No config file found or unable to open." + " Proceeding with defaults."); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array; HLines = new Array; ILines = new Array; KLines = new Array; NLines = new Array; OLines = new Array; PLines = new Array; QLines = new Array; ULines = new Array; diepass = ""; restartpass = ""; YLines = new Array; ZLines = new Array;... |
OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); | OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5]))); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system... |
YLines[0] = new YLine(120,600,1,5050000); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system... | |
OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5]))); | OLines.push(new OLine(arg[1],arg[2],arg[3],parse_oline_flags(arg[4]),parseInt(arg[5]))); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); diepass = ""; restartpass = ""; YLines = new Array(); ZLines = new Array(); fname=""; if (config_... |
conf_line = conf.readln(); | var conf_line = conf.readln(); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); HLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); PLines = new Array(); QLines = new Array(); ULines = new Array(); diepass = ""; restartpass = ""; YLines = new Array();... |
arg = conf_line.split(":"); | var arg = conf_line.split(":"); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); HLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); PLines = new Array(); QLines = new Array(); ULines = new Array(); diepass = ""; restartpass = ""; YLines = new Array();... |
CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); | CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5]))); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); HLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); PLines = new Array(); QLines = new Array(); ULines = new Array(); diepass = ""; restartpass = ""; YLines = new Array();... |
kline_mask = create_ban_mask(arg[1],true); | var kline_mask = create_ban_mask(arg[1],true); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); HLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); PLines = new Array(); QLines = new Array(); ULines = new Array(); diepass = ""; restartpass = ""; YLines = new Array();... |
log("Reading " + fname); | log("Reading Config: " + fname); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system... |
if (conf_line == null) break; arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=... | if ((conf_line != null) && conf_line.match("[:]")) { arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLower... | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system... |
Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) | case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system... |
CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) | case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system... |
kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); | case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system... |
} KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) | case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system... |
servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) | case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system... |
NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) | case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system... |
OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3]) | case "U": if (!arg[1]) break; ULines.push(arg[1]); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system... |
QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) | case "#": case ";": default: | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system... |
ULines.push(arg[1]); break; case "#": case ";": default: break; | } | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system... |
if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { | if (config_filename && config_filename.length) { if(config_filename.indexOf('/')>=0 || config_filename.indexOf('\\')>=0) fname=config_filename; else fname=system.ctrl_dir + config_filename; } else { | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); HLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); PLines = new Array(); QLines = new Array(); ULines = new Array(); diepass = ""; restartpass = ""; YLines = new Array();... |
log("Reading Config: " + fname); | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); HLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); PLines = new Array(); QLines = new Array(); ULines = new Array(); diepass = ""; restartpass = ""; YLines = new Array();... | |
case "X": diepass = arg[1]; restartpass = arg[2]; break; | function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); YLines = new Array(); ZLines = new Array(); fname=""; if (config_filename && config_filename.leng... | |
printf("rsp: %s",rsp); | printf("rsp: %s\r\n",rsp); | function readln(str){ rsp = socket.readln(); if(debug) printf("rsp: %s",rsp); return(rsp);} |
} | }, | readURL: function(url) { var stream = this.openURLInputStream(url); var content = stream.read(stream.available()); stream.close(); return content; } |
NewWindow('/addTimerEvent?ref=' + ref + 'start=' + start + '&duration=' + duration + '&descr=' + description + '&channel=' + channel, 'record', '200', '200', 'no', '5000'); | NewWindow('/addTimerEvent?ref=' + ref + '&start=' + start + '&duration=' + duration + '&descr=' + description + '&channel=' + channel, 'record', '200', '200', 'no', '5000'); | function record(ref, start, duration, description, channel){ NewWindow('/addTimerEvent?ref=' + ref + 'start=' + start + '&duration=' + duration + '&descr=' + description + '&channel=' + channel, 'record', '200', '200', 'no', '5000');} |
this.recordPageLoad = function() { | this.recordPageLoad = function(elementOrWindow) { | this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.excep... |
LOG.debug("Page load location=" + self.getCurrentWindow(true).location); | if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.conten... | this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.excep... |
LOG.debug("Page load detected, location=" + self.getCurrentWindow().location); | LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; } | this.recordPageLoad = function() { LOG.debug("Page load detected, location=" + self.getCurrentWindow().location); self.currentPage = null; self.newPageLoaded = true; }; |
LOG.debug("Page load detected"); | LOG.debug("Page load detected, location=" + self.getCurrentWindow().location); | this.recordPageLoad = function() { LOG.debug("Page load detected"); self.currentPage = null; self.newPageLoaded = true; }; |
LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); | this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = ... | |
addCommand("assertTitle", window.document.title, null, window); | addCommand("assertTitle", exactMatchPattern(window.document.title), null, window); | function recordTitle(window) { if (this.options.recordAssertTitle == 'true' && this.testCase.commands.length > 0) { //setTimeout("addCommand", 200, "assertTitle", window.document.title, null, window); addCommand("assertTitle", window.document.title, null, window); }} |
debug("recoverQueryBuffers: start"); | debug.print("recoverQueryBuffers: start"); | function recoverQueryBuffers() { // given a list of buffers, import them debug("recoverQueryBuffers: start"); var bufCookie = getCookie(g_cq_buffers_cookie); if (bufCookie != null) { var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("recoverQueryBuffers: " + bufCookie); ... |
debug("recoverQueryBuffers: " + bufCookie); | debug.print("recoverQueryBuffers: " + bufCookie); | function recoverQueryBuffers() { // given a list of buffers, import them debug("recoverQueryBuffers: start"); var bufCookie = getCookie(g_cq_buffers_cookie); if (bufCookie != null) { var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("recoverQueryBuffers: " + bufCookie); ... |
debug("recoverQueryBuffers: null buffersNode"); | debug.print("recoverQueryBuffers: null buffersNode"); | function recoverQueryBuffers() { // given a list of buffers, import them debug("recoverQueryBuffers: start"); var bufCookie = getCookie(g_cq_buffers_cookie); if (bufCookie != null) { var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("recoverQueryBuffers: " + bufCookie); ... |
debug("recoverQueryHistory: start"); | debug.print("recoverQueryHistory: start"); | function recoverQueryHistory() { // given a list of queries, put them in the history debug("recoverQueryHistory: start"); var histCookie = getCookie(g_cq_history_cookie); if (histCookie != null) { var listNode = getQueryHistoryListNode(true); if (! listNode) { debug("recoverQueryHis... |
debug("recoverQueryHistory: null listNode"); | debug.print("recoverQueryHistory: null listNode"); | function recoverQueryHistory() { // given a list of queries, put them in the history debug("recoverQueryHistory: start"); var histCookie = getCookie(g_cq_history_cookie); if (histCookie != null) { var listNode = getQueryHistoryListNode(true); if (! listNode) { debug("recoverQueryHis... |
var iframe = document.createElement('iframe'); | var div = document.createElement('div'); div.innerHTML = '<iframe name="redirect-target" id="redirect-target" class="redirect"></iframe>'; var iframe = div.firstChild; | function redirectFormButton(uri, button, handler) { // Insert the iframe var iframe = document.createElement('iframe'); with (iframe) { name = 'redirect-target'; setAttribute('name', 'redirect-target'); id = 'redirect-target'; } with (iframe.style) { position = 'absolute'; height = '1px'; width =... |
button.onfocus = function() { | button.onmouseover = button.onfocus = function() { | function redirectFormButton(uri, button, handler) { // Insert the iframe var iframe = document.createElement('iframe'); with (iframe) { name = 'redirect-target'; setAttribute('name', 'redirect-target'); id = 'redirect-target'; } with (iframe.style) { position = 'absolute'; height = '1px'; width =... |
button.onblur = function() { | button.onmouseout = button.onblur = function() { | function redirectFormButton(uri, button, handler) { // Insert the iframe var iframe = document.createElement('iframe'); with (iframe) { name = 'redirect-target'; setAttribute('name', 'redirect-target'); id = 'redirect-target'; } with (iframe.style) { position = 'absolute'; height = '1px'; width =... |
var div = document.createElement('div'); div.innerHTML = '<iframe name="redirect-target" id="redirect-target" src="" style="width:0px;height:0px;border:0;"></iframe>'; button.parentNode.appendChild(div); | var iframe = document.createElement('iframe'); with (iframe) { name = 'redirect-target'; setAttribute('name', 'redirect-target'); id = 'redirect-target'; } with (iframe.style) { position = 'absolute'; height = '1px'; width = '1px'; visibility = 'hidden'; } document.body.appendChild(iframe); | function redirectFormButton(uri, button, handler) { // Insert the iframe var div = document.createElement('div'); div.innerHTML = '<iframe name="redirect-target" id="redirect-target" src="" style="width:0px;height:0px;border:0;"></iframe>'; button.parentNode.appendChild(div); // Trap the button button.onfocus = f... |
return true; | function redirectFormButton(uri, button, handler) { // Insert the iframe var div = document.createElement('div'); div.innerHTML = '<iframe name="redirect-target" id="redirect-target" src="" style="width:0px;height:0px;border:0;"></iframe>'; button.parentNode.appendChild(div); // Trap the button button.onfocus = f... | |
response = response.replace(/[\f\n\r\t\v]/g, ' '); | function redirectFormButton(uri, button, handler) { // Make sure we have an iframe to target createIframe(); // Trap the button button.onmouseover = button.onfocus = function() { button.onclick = function() { // Prepare variables for use in anonymous function. var button = this; var action = butto... | |
if (!(baseLayer && checked)) { Event.observe(labelSpan, "click", this.onLabelClick.bindAsEventListener(inputElem)); } | Event.observe(labelSpan, "click", this.onLabelClick.bindAsEventListener(inputElem)); | redraw: function() { //clear out previous layers this.baseLayersDiv.innerHTML = ""; this.baseLayerInputs = new Array(); this.dataLayersDiv.innerHTML = ""; this.dataLayerInputs = new Array(); var containsOverlays = false; for( var i = 0; i < t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.