rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
( (this_nline.password == "*") && !this.sentps && | ( (this_nline.password == "*") && | function Unregistered_Commands() { var cmdline; var cmd; var command; if (!this.socket.is_connected) { this.quit(); return 0; } cmdline=this.socket.recvline(4096,0); Global_CommandLine = cmdline; if (!cmdline) return 0; // Only accept up to 512 bytes from unregistered clients. cmdline = cmdline.slice(0,512); // Klud... |
new_server.finalize_server_connect("TS"); | new_server.finalize_server_connect("TS",this.sendps); | function Unregistered_Commands() { var cmdline; var cmd; var command; if (!this.socket.is_connected) { this.quit(); return 0; } cmdline=this.socket.recvline(4096,0); Global_CommandLine = cmdline; if (!cmdline) return 0; // Only accept up to 512 bytes from unregistered clients. cmdline = cmdline.slice(0,512); // Klud... |
) && !qwk_slave) { | ) && !qwk_slave && !this.outgoing) { | function Unregistered_Commands() { var cmdline; var cmd; var command; if (!this.socket.is_connected) { this.quit(); return 0; } cmdline=this.socket.recvline(4096,0); Global_CommandLine = cmdline; if (!cmdline) return 0; // Only accept up to 512 bytes from unregistered clients. cmdline = cmdline.slice(0,512); // Klud... |
new_server.parent = cmd[1].toLowerCase(); | new_server.parent = cmd[1]; | function Unregistered_Commands() { var cmdline; var cmd; var command; if (!this.socket.is_connected) { this.quit(); return 0; } cmdline=this.socket.recvline(4096,0); if (!cmdline) return 0; // Only accept up to 512 bytes from unregistered clients. cmdline = cmdline.slice(0,512); // Kludge for broken clients. if ((cm... |
if (Servers[cmd[1].toUpperCase()]) { | if (Servers[cmd[1].toLowerCase()]) { | function Unregistered_Commands() { var cmdline; var cmd; var command; if (!this.socket.is_connected) { this.quit(); return 0; } cmdline=this.socket.recvline(4096,0); if (!cmdline) return 0; // Only accept up to 512 bytes from unregistered clients. cmdline = cmdline.slice(0,512); // Kludge for broken clients. if ((cm... |
return 0; } if (Servers[cmd[1].toUpperCase()]) { this.quit("Server already exists."); | function Unregistered_Commands() { var cmdline; var cmd; var command; if (!this.socket.is_connected) { this.quit(); return 0; } cmdline=this.socket.recvline(4096,0); if (!cmdline) return 0; // Only accept up to 512 bytes from unregistered clients. cmdline = cmdline.slice(0,512); // Kludge for broken clients. if ((cm... | |
if (legal_command) { if (!Profile[command]) Profile[command] = new StatsM; Profile[command].executions++; Profile[command].ticks += system.clock_ticks - clockticks; } | function Unregistered_Commands() { var cmdline; var cmd; var command; if (!this.socket.is_connected) { this.quit(); return 0; } cmdline=this.socket.recvline(4096,0); Global_CommandLine = cmdline; if (!cmdline) return 0; // Only accept up to 512 bytes from unregistered clients. cmdline = cmdline.slice(0,512); // Klud... | |
( (this_nline.password == "*") && !(this_nline.flags&NLINE_CHECK_QWKPASSWD) ) ) && !qwk_slave && !this.outgoing) { | ( (this_nline.password == "*") && !this.outgoing && !(this_nline.flags&NLINE_CHECK_QWKPASSWD) ) ) && !qwk_slave) { | function Unregistered_Commands() { var cmdline; var cmd; var command; if (!this.socket.is_connected) { this.quit(); return 0; } cmdline=this.socket.recvline(4096,0); Global_CommandLine = cmdline; if (!cmdline) return 0; // Only accept up to 512 bytes from unregistered clients. cmdline = cmdline.slice(0,512); // Klud... |
if (this.hostname && !this.pending_resolve) | if (this.hostname && !this.pending_resolve_time) | function Unregistered_Commands() { var cmdline; var cmd; var command; if (!this.socket.is_connected) { this.quit(); return 0; } cmdline=this.socket.recvline(4096,0); Global_CommandLine = cmdline; if (!cmdline) return 0; // Only accept up to 512 bytes from unregistered clients. cmdline = cmdline.slice(0,512); // Klud... |
rebuild_socksel_array(); | rebuild_socksel_array = true; | function Unregistered_Commands() { var cmdline; var cmd; var command; if (!this.socket.is_connected) { this.quit(); return 0; } cmdline=this.socket.recvline(4096,0); if (!cmdline) return 0; // Only accept up to 512 bytes from unregistered clients. cmdline = cmdline.slice(0,512); // Kludge for broken clients. if ((cm... |
if(server.clients != undefined) log(LOG_DEBUG,format("%d clients", server.clients)); | function Unregistered_Quit(msg) { if (msg) this.rawout("ERROR :" + msg); if (server.client_remove!=undefined) server.client_remove(this.socket); this.socket.close(); delete Local_Sockets[this.id]; delete Local_Sockets_Map[this.id]; delete Unregistered[this.id]; delete this; rebuild_socksel_array = true;} | |
rebuild_socksel_array(); | rebuild_socksel_array = true; | function Unregistered_Quit(msg) { if (msg) this.rawout("ERROR :" + msg); this.socket.close(); delete Local_Sockets[this.id]; delete Local_Sockets_Map[this.id]; delete Unregistered[this.id]; delete this; rebuild_socksel_array();} |
if (my_resolved) { | if (my_resolved && my_resolved!=null) { | function Unregistered_Resolve_Check() { var my_resolved = this.pending_resolve.read(); if (my_resolved) { if (my_resolved.search(/[.]/)) this.hostname = my_resolved; else this.hostname = servername; this.pending_resolve_time = false; } else if ( (time() - this.pending_resolve_time) > 5) { this.hostname = this.i... |
this.pending_resolve = false; return 1; | this.pending_resolve_time = false; } else if ( (time() - this.pending_resolve_time) > 5) { this.hostname = this.ip; this.pending_resolve_time = false; | function Unregistered_Resolve_Check() { var my_resolved = this.pending_resolve.read(); if (my_resolved) { if (my_resolved.search(/[.]/)) this.hostname = my_resolved; else this.hostname = servername; this.pending_resolve = false; return 1; } if ( (time() - this.pending_resolve_time) > 5) { this.hostname = this.... |
if ( (time() - this.pending_resolve_time) > 5) { this.hostname = this.ip; this.pending_resolve = false; return 1; } if (this.criteria_met) | if (this.criteria_met && !this.pending_resolve_time) | function Unregistered_Resolve_Check() { var my_resolved = this.pending_resolve.read(); if (my_resolved) { if (my_resolved.search(/[.]/)) this.hostname = my_resolved; else this.hostname = servername; this.pending_resolve = false; return 1; } if ( (time() - this.pending_resolve_time) > 5) { this.hostname = this.... |
if(!this.active) return; Event.stopObserving(document, "mouseup", this.eventMouseUp); Event.stopObserving(document, "mousemove", this.eventMouseMove); Event.stopObserving(document, "keypress", this.eventKeypress); | unregisterEvents: function() { if(!this.active) return; Event.stopObserving(document, "mouseup", this.eventMouseUp); Event.stopObserving(document, "mousemove", this.eventMouseMove); Event.stopObserving(document, "keypress", this.eventKeypress); }, | |
if (contextMenu!==undefined) { | if (contextMenu) { | UnregisterWindowClick: function(component) { var document=component.ownerDocument; var contextMenu=f_popup._OldContextMenu; if (contextMenu!==undefined) { f_popup._OldContextMenu=undefined; document.body.oncontextmenu=contextMenu; } f_core.Debug("f_popup", "Unregister popup on "+component.id); f_popup.... |
if (contextMenu==f_popup.NO_CONTEXT_POPUP) { contextMenu=null; } else if (!contextMenu) { contextMenu=null; } | UnregisterWindowClick: function(component) { var document=component.ownerDocument; var contextMenu=f_popup._OldContextMenu; if (contextMenu!==undefined) { f_popup._OldContextMenu=undefined; document.body.oncontextmenu=contextMenu; } f_core.Debug("f_popup", "Unregister popup on "+component.id); f_popup.... | |
Element.removeClassName(this.trElement, "selected"); | removeClassName(this.trElement, "selected"); | unselect: function() { Element.removeClassName(this.trElement, "selected"); }, |
for(;l>line.length;l++) | for(;l<line.length;l++) | function unwrap_line(l){ var done=false; var words; var space; var re; var lines=0; var ret=-1; var first=true; var old_lines=line.length; while(!done && line[l+1]!=undefined) { if(line[l]==undefined) { draw_line(l); l++; break; } /* There's a hardcr... all done now. */ if(line[l].hardcr) break; space=79-l... |
var ret=0; var nline; | function unwrap_line(l){ var ret=0; var nline; var done=false; var words; var space; var re; while(!done && line[l+1]!=undefined) { /* There's a hardcr... all done now. */ if(line[l].hardcr) break; words=''; /* Trim whitespace from end */ line[l].text=line[l].text.replace(/\s+$/,''); space=79-line[l].text.lengt... | |
while(!done && line[l+1]!=undefined) { | while(!done && line[l]!=undefined && line[l+1]!=undefined) { | function unwrap_line(l){ var ret=0; var nline; var done=false; var words; var space; var re; while(!done && line[l+1]!=undefined) { /* There's a hardcr... all done now. */ if(line[l].hardcr) break; words=''; /* Trim whitespace from end */ line[l].text=line[l].text.replace(/\s+$/,''); space=79-line[l].text.lengt... |
words=''; line[l].text=line[l].text.replace(/\s+$/,''); space=79-line[l].text.length-1; | space=79-line[l].text.length; | function unwrap_line(l){ var ret=0; var nline; var done=false; var words; var space; var re; while(!done && line[l+1]!=undefined) { /* There's a hardcr... all done now. */ if(line[l].hardcr) break; words=''; /* Trim whitespace from end */ line[l].text=line[l].text.replace(/\s+$/,''); space=79-line[l].text.lengt... |
re=new RegExp("^([^\\s]{1,"+space+"})(?![^\\s])",""); | re=new RegExp("^(.{1,"+space+"}(?![^\\s])\\s*)",""); | function unwrap_line(l){ var ret=0; var nline; var done=false; var words; var space; var re; while(!done && line[l+1]!=undefined) { /* There's a hardcr... all done now. */ if(line[l].hardcr) break; words=''; /* Trim whitespace from end */ line[l].text=line[l].text.replace(/\s+$/,''); space=79-line[l].text.lengt... |
line[l].text+=" "+words[1]; line[l].attr[line[l].attr.length]=curattr; line[l].attr.splice(line[l].text.length,0,line[l+1].attr.slice(0,words[1].length)); line[l+1].text=line[l+1].text.substr(words[0].length+1); line[l+1].attr.splice(0,words[0].length+1); words=line[l+1].text.match(/^\s+/); if(words!=null) { line[l+1]... | line[l].text+=words[1]; line[l].attr+=line[l+1].attr.substr(0,words[1].length); line[l+1].text=line[l+1].text.substr(words[1].length); line[l+1].attr=line[l+1].attr.substr(words[1].length); if(first) { if(ret==-1) ret=words[1].length; else ret+=words[1].length; | function unwrap_line(l){ var ret=0; var nline; var done=false; var words; var space; var re; while(!done && line[l+1]!=undefined) { /* There's a hardcr... all done now. */ if(line[l].hardcr) break; words=''; /* Trim whitespace from end */ line[l].text=line[l].text.replace(/\s+$/,''); space=79-line[l].text.lengt... |
else | else { if(line[l].kludged) line[l].kludged=false; if(line[l+1].text.length==0) { line[l].hardcr=line[l+1].hardcr; line.splice(l+1,1); } | function unwrap_line(l){ var ret=0; var nline; var done=false; var words; var space; var re; while(!done && line[l+1]!=undefined) { /* There's a hardcr... all done now. */ if(line[l].hardcr) break; words=''; /* Trim whitespace from end */ line[l].text=line[l].text.replace(/\s+$/,''); space=79-line[l].text.lengt... |
redraw_line(l); | } if(lines>0) draw_line(l); | function unwrap_line(l){ var ret=0; var nline; var done=false; var words; var space; var re; while(!done && line[l+1]!=undefined) { /* There's a hardcr... all done now. */ if(line[l].hardcr) break; words=''; /* Trim whitespace from end */ line[l].text=line[l].text.replace(/\s+$/,''); space=79-line[l].text.lengt... |
redraw_line(l); | if(lines>0) draw_line(l); | function unwrap_line(l){ var ret=0; var nline; var done=false; var words; var space; var re; while(!done && line[l+1]!=undefined) { /* There's a hardcr... all done now. */ if(line[l].hardcr) break; words=''; /* Trim whitespace from end */ line[l].text=line[l].text.replace(/\s+$/,''); space=79-line[l].text.lengt... |
html = typeof html == 'undefined' ? '' : html.toString(); | Element.Methods.update = function(element, html) { element = $(element); var tagName = element.tagName.toUpperCase(); if (['THEAD','TBODY','TR','TD'].indexOf(tagName) > -1) { var div = document.createElement('div'); switch (tagName) { case 'THEAD': case 'TBODY': div.innerHTML... | |
Draggables.notify('onStart'); | Draggables.notify('onStart', this); | update: function(event) { if(this.active) { if(!this.dragging) { var style = this.element.style; this.dragging = true; if(style.position=="") style.position = "relative"; style.zIndex = this.options.zindex; Draggables.notify('onStart'); if(this.options.starteffect) thi... |
if(style.position=="") style.position = "relative"; style.zIndex = this.options.zindex; | if(Element.getStyle(this.element,'position')=='') style.position = "relative"; if(this.options.zindex) { this.options.originalZ = parseInt(Element.getStyle(this.element,'z-index') || 0); style.zIndex = this.options.zindex; } | update: function(event) { if(this.active) { if(!this.dragging) { var style = this.element.style; this.dragging = true; if(style.position=="") style.position = "relative"; style.zIndex = this.options.zindex; if(this.options.ghosting) { this._clone = this.element.clone... |
h += '<tr><td><a href="javascript:void(0);" onmousedown="' + tinyMCE.xmlEncode(m[i].js) + ';return false;"><span' + c +'>' + t + '</span></a>'; | h += '<tr><td><a href="#" onclick="return tinyMCE.cancelEvent(event);" onmousedown="return tinyMCE.cancelEvent(event);" onmouseup="' + tinyMCE.xmlEncode(m[i].js) + ';return tinyMCE.cancelEvent(event);"><span' + c +'>' + t + '</span></a>'; | update : function() { var e = this.getElement(), h = '', i, t, m = this.items, s = this.settings; if (this.settings.drop_menu) h += '<span class="mceMenuLine"></span>'; h += '<table border="0" cellpadding="0" cellspacing="0">'; for (i=0; i<m.length; i++) { t = tinyMCE.xmlEncode(m[i].text); c = m[i].class_nam... |
if(style.position=="") style.position = "relative"; style.zIndex = this.options.zindex; | if(Element.getStyle(this.element,'position')=='') style.position = "relative"; if(this.options.zindex) { this.options.originalZ = parseInt(Element.getStyle(this.element,'z-index') || 0); style.zIndex = this.options.zindex; } if(this.options.ghosting) { this._clone = this.element.cloneNode(true); Position.absolutize(t... | update: function(event) { if(this.active) { if(!this.dragging) { var style = this.element.style; this.dragging = true; if(style.position=="") style.position = "relative"; style.zIndex = this.options.zindex; Draggables.notify('onStart', this); if(this.options.starteffec... |
if(!this.dragging) { this.dragging = true; if(this.activeHandle.style.position=="") style.position = "relative"; } | if(!this.dragging) this.dragging = true; | update: function(event) { if(this.active) { if(!this.dragging) { this.dragging = true; if(this.activeHandle.style.position=="") style.position = "relative"; } this.draw(event); // fix AppleWebKit rendering if(navigator.appVersion.indexOf('AppleWebKit')>0) window.scrollBy(0,0);... |
depth.times(function(){ div = div.childNodes[0] }); | depth.times(function(){ div = div.firstChild }); | Element.Methods.update = function(element, html) { element = $(element); var tagName = element.tagName.toUpperCase(); if (['THEAD','TBODY','TR','TD'].indexOf(tagName) > -1) { var div = document.createElement('div'); switch (tagName) { case 'THEAD': case 'TBODY': div.innerHTML... |
notshown = GXml.value(x.getElementsByTagName('notshown')[0]) | var notshown = GXml.value(x.getElementsByTagName('notshown')[0]) | function update_place_list() { var bounds = map.getBoundsLatLng(); var r = GXmlHttp.create(); url = "/cgi-bin/list.fcg?type=xml;topleft_lat=" + bounds.maxY + ";topleft_long="+ bounds.minX + ";bottomright_lat=" + bounds.minY + ";bottomright_long=" + bounds.maxX r.open("GET", url, true); r.onreadystatechan... |
url = "/cgi-bin/list.cgi?type=xml;topleft_lat=" + bounds.maxY + ";topleft_long="+ bounds.minX + ";bottomright_lat=" + bounds.minY + ";bottomright_long=" + bounds.maxX | url = "/cgi-bin/list.fcg?type=xml;topleft_lat=" + bounds.maxY + ";topleft_long="+ bounds.minX + ";bottomright_lat=" + bounds.minY + ";bottomright_long=" + bounds.maxX | function update_place_list() { var bounds = map.getBoundsLatLng(); var r = GXmlHttp.create(); url = "/cgi-bin/list.cgi?type=xml;topleft_lat=" + bounds.maxY + ";topleft_long="+ bounds.minX + ";bottomright_lat=" + bounds.minY + ";bottomright_long=" + bounds.maxX r.open("GET", url, true); r.onreadystatechan... |
lat = markers[m].getAttribute('lat') lng = markers[m].getAttribute('lng') zoom = markers[m].getAttribute('zoom') marker[m] = window.createPin(new GPoint(lng, lat), zoom, "Foo") | lat = parseFloat(markers[m].getAttribute('lat')) lng = parseFloat(markers[m].getAttribute('lng')) zoom = parseInt(markers[m].getAttribute('zoom'), 10) bubble = GXml.value(markers[m]) marker[m] = window.createPin(new GPoint(lng, lat), zoom, bubble) | function update_place_list() { var bounds = map.getBoundsLatLng(); var r = GXmlHttp.create(); url = "/cgi-bin/list.cgi?type=xml;topleft_lat=" + bounds.maxY + ";topleft_long="+ bounds.minX + ";bottomright_lat=" + bounds.minY + ";bottomright_long=" + bounds.maxX r.open("GET", url, true); r.onreadystatechan... |
cmd.value += " input " + value( 'vlm_broadcast_input' ); | cmd.value += " input " + sanitize_input( value( 'vlm_broadcast_input' ) ); | function update_vlm_add_broadcast(){ var cmd = document.getElementById( 'vlm_command' ); if( value( 'vlm_broadcast_name' ) ) { cmd.value = "new " + addunderscores( value( 'vlm_broadcast_name' ) ) + " broadcast"; if( checked( 'vlm_broadcast_enabled' ) ) { cmd.v... |
cmd.value += " input " + value( 'vlm_vod_input' ); | cmd.value += " input " + sanitize_input( value( 'vlm_vod_input' ) ); | function update_vlm_add_vod(){ var cmd = document.getElementById( 'vlm_command' ); if( value( 'vlm_vod_name' ) ) { cmd.value = "new " + addunderscores( value( 'vlm_vod_name' ) ) + " vod"; if( checked( 'vlm_vod_enabled' ) ) { cmd.value += " enabled"; } ... |
var label = editor.query(' var dropdown = editor.query(' | var label = editor.query('. var dropdown = editor.query('. | function updateBreakpointTypeOnLine(line){ var breakpoint = files[currentFile].breakpoints[line]; var editor = breakpoint.editor; var label = editor.query('//label[@class="conditionLabel"]'); var dropdown = editor.query('//select[@class="editorDropdown"]'); breakpoint.type = dropdown.selectedIndex; sw... |
updateCallback = function (progress, status, pb) { | var updateCallback = function (progress, status, pb) { | updateCallback = function (progress, status, pb) { if (progress == 100) { pb.stopMonitoring(); window.location = window.location.href.split('op=')[0] +'op=finished'; } } |
this.render(); | if(this.entryCount==1 && this.options.autoSelect) { this.selectEntry(); this.hide(); } else { this.render(); } | updateChoices: function(choices) { if(!this.changed && this.hasFocus) { this.update.innerHTML = choices; Element.cleanWhitespace(this.update); Element.cleanWhitespace(this.update.firstChild); if(this.update.firstChild && this.update.firstChild.childNodes) { this.entryCount = th... |
if(!this.changed && this.has_focus) { | if(!this.changed && this.hasFocus) { | updateChoices: function(choices) { if(!this.changed && this.has_focus) { this.update.innerHTML = choices; Element.cleanWhitespace(this.update); Element.cleanWhitespace(this.update.firstChild); if(this.update.firstChild && this.update.firstChild.childNodes) { this.entry_count = ... |
this.entry_count = | this.entryCount = | updateChoices: function(choices) { if(!this.changed && this.has_focus) { this.update.innerHTML = choices; Element.cleanWhitespace(this.update); Element.cleanWhitespace(this.update.firstChild); if(this.update.firstChild && this.update.firstChild.childNodes) { this.entry_count = ... |
for (var i = 0; i < this.entry_count; i++) { entry = this.get_entry(i); | for (var i = 0; i < this.entryCount; i++) { var entry = this.getEntry(i); | updateChoices: function(choices) { if(!this.changed && this.has_focus) { this.update.innerHTML = choices; Element.cleanWhitespace(this.update); Element.cleanWhitespace(this.update.firstChild); if(this.update.firstChild && this.update.firstChild.childNodes) { this.entry_count = ... |
this.entry_count = 0; | this.entryCount = 0; | updateChoices: function(choices) { if(!this.changed && this.has_focus) { this.update.innerHTML = choices; Element.cleanWhitespace(this.update); Element.cleanWhitespace(this.update.firstChild); if(this.update.firstChild && this.update.firstChild.childNodes) { this.entry_count = ... |
this.container.innerHTML = this.request.transport.responseText; if (this.options.insertion) { | if (!this.options.insertion) { | updateContent: function() { this.container.innerHTML = this.request.transport.responseText; if (this.options.insertion) { this.container.innerHTML = this.request.transport.responseText; } else { new this.options.insertion(this.container, this.request.transport.responseText); } if (this... |
this.container.innerHTML = this.request.transport.responseText; if (this.onComplete) this.onComplete(this.request); | if (!this.options.insertion) { this.container.innerHTML = this.request.transport.responseText; } else { new this.options.insertion(this.container, this.request.transport.responseText); } if (this.onComplete) { setTimeout((function() {this.onComplete(this.request)}).bind(this), 10); } | updateContent: function() { this.container.innerHTML = this.request.transport.responseText; if (this.onComplete) this.onComplete(this.request); } |
if (!tinyMCE.isMSIE) | if (!tinyMCE.isIE) | updateContent : function(form_element_name) { // Find MCE instance linked to given form element and copy it's value var formElement = document.getElementById(form_element_name); for (var n in tinyMCE.instances) { var inst = tinyMCE.instances[n]; if (!tinyMCE.isInstance(inst)) continue; inst.switchSettings(... |
setTimeout(this.onComplete.bind(this), 10); | setTimeout((function() {this.onComplete( this.transport)}).bind(this), 10); | updateContent: function() { var receiver = this.responseIsSuccess() ? this.containers.success : this.containers.failure; var match = new RegExp(Ajax.Updater.ScriptFragment, 'img'); var response = this.transport.responseText.replace(match, ''); var scripts = this.transport.responseText.match(match... |
setTimeout((function() {this.onComplete( this.transport)}).bind(this), 10); | setTimeout(this.onComplete.bind(this), 10); | updateContent: function() { var receiver = this.responseIsSuccess() ? this.containers.success : this.containers.failure; var match = new RegExp(Ajax.Updater.ScriptFragment, 'img'); var response = this.transport.responseText.replace(match, ''); var scripts = this.transport.responseText.match(match... |
p[0] += (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0); p[1] += (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0); | updateDrag: function(event, pointer) { if(!this.dragging) this.startDrag(event); Position.prepare(); Droppables.show(pointer, this.element); Draggables.notify('onDrag', this, event); this.draw(pointer); if(this.options.change) this.options.change(this); if(this.options.scroll) { this.sto... | |
updateElement: function(value) { var last_token_pos = this.findLastToken(); if (last_token_pos != -1) { var new_value = this.element.value.substr(0, last_token_pos + 1); var whitespace = this.element.value.substr(last_token_pos + 1).match(/^\s+/); | updateElement: function(selectedElement) { if (this.options.updateElement) { this.options.updateElement(selectedElement); return; } var value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal'); var lastTokenPos = this.findLastToken(); if (lastTokenPos != -1) { var newValue = this.element.value.substr(0... | updateElement: function(value) { var last_token_pos = this.findLastToken(); if (last_token_pos != -1) { var new_value = this.element.value.substr(0, last_token_pos + 1); var whitespace = this.element.value.substr(last_token_pos + 1).match(/^\s+/); if (whitespace) new_value += whitespace[0]... |
new_value += whitespace[0]; this.element.value = new_value + value; | newValue += whitespace[0]; this.element.value = newValue + value; | updateElement: function(value) { var last_token_pos = this.findLastToken(); if (last_token_pos != -1) { var new_value = this.element.value.substr(0, last_token_pos + 1); var whitespace = this.element.value.substr(last_token_pos + 1).match(/^\s+/); if (whitespace) new_value += whitespace[0]... |
} | } this.element.focus(); if (this.options.afterUpdateElement) this.options.afterUpdateElement(this.element, selectedElement); | updateElement: function(value) { var last_token_pos = this.findLastToken(); if (last_token_pos != -1) { var new_value = this.element.value.substr(0, last_token_pos + 1); var whitespace = this.element.value.substr(last_token_pos + 1).match(/^\s+/); if (whitespace) new_value += whitespace[0]... |
} | } this.element.focus(); | updateElement: function(selectedElement) { if (this.options.updateElement) return(this.options.updateElement(selectedElement)); var value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal'); var lastTokenPos = this.findLastToken(); if (lastTokenPos != -1) { var newValue = this.ele... |
var value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal').unescapeHTML(); | var value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal'); | updateElement: function(selectedElement) { if (this.options.updateElement) return(this.options.updateElement(selectedElement)); var value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal').unescapeHTML(); var lastTokenPos = this.findLastToken(); if (lastTokenPos != -1) { va... |
span.textContent = attr.value; | span.textContent = "\"" + attr.value + "\""; | function updateElementAttributes(){ var focusedNode = Inspector.focusedDOMNode(); var attributesList = document.getElementById("elementAttributesList") attributesList.innerHTML = ""; if (!focusedNode.attributes.length) attributesList.innerHTML = "<span class=\"disabled\">(none)</span>"; for (i = 0... |
span.title = span.textContent; | span.title = attr.value; | function updateElementAttributes(){ var focusedNode = Inspector.focusedDOMNode(); var attributesList = document.getElementById("elementAttributesList") attributesList.innerHTML = ""; if (!focusedNode.attributes.length) attributesList.innerHTML = "<span class=\"disabled\">(none)</span>"; for (i = 0... |
var re = /\\/gi; | var ch = 0; | function updateFilename(elem){ var str = elem.value; var re = /\\/gi; str.replace(re, '/'); var ch = str.lastIndexOf('/'); var e = document.getElementById('filename'); if(e) e.value = str.substring(ch + 1); var d = document.getElementById('filename-div'); if(d) d.innerHTML = str.substring(ch + 1);} |
str.replace(re, '/'); var ch = str.lastIndexOf('/'); | ch = str.lastIndexOf('/'); if(ch == -1) ch = str.lastIndexOf('\\'); | function updateFilename(elem){ var str = elem.value; var re = /\\/gi; str.replace(re, '/'); var ch = str.lastIndexOf('/'); var e = document.getElementById('filename'); if(e) e.value = str.substring(ch + 1); var d = document.getElementById('filename-div'); if(d) d.innerHTML = str.substring(ch + 1);} |
file.lines = null; | function updateFileSource(source, url, force){ var fileIndex = filesLookup[url]; if (!fileIndex || !source.length) return; var file = files[fileIndex]; if (force || file.source.length != source.length || file.source != source) { file.source = source; file.loaded = false; file.lin... | |
if (e.hasAttribute("checked")) { this.options["formats." + formatInfo.id + "." + name] = e.checked ? 'true' : 'false'; | if (e.checked != undefined) { this.options["formats." + this.formatInfo.id + "." + name] = e.checked.toString(); | function updateFormatOptions() { if (this.format && this.format.options) { for (name in this.format.options) { var e = document.getElementById("options_" + name); if (e) { if (e.hasAttribute("checked")) { this.options["formats." + formatInfo.id + "." + name] = e.checked ? 'true' : 'false'; } else { t... |
this.options["formats." + formatInfo.id + "." + name] = e.value; | this.options["formats." + this.formatInfo.id + "." + name] = e.value; | function updateFormatOptions() { if (this.format && this.format.options) { for (name in this.format.options) { var e = document.getElementById("options_" + name); if (e) { if (e.hasAttribute("checked")) { this.options["formats." + formatInfo.id + "." + name] = e.checked ? 'true' : 'false'; } else { t... |
var value = this.options["formats." + formatInfo.id + "." + name] || format.options[name]; if (e.hasAttribute("checked")) { | var value = this.options["formats." + formatInfo.id + "." + name]; if (value == null) { value = format.options[name]; } if (e.checked != undefined) { | function updateFormatSelection() { this.updateFormatOptions(); var formatListBox = document.getElementById("format-list"); var formatId = formatListBox.selectedItem.value; var formatInfo = this.testManager.findFormatInfo(formatId); document.getElementById("format-name").value = formatInfo.name; document.getElementById... |
var formatListBox = document.getElementById("format-list"); var formatId = formatListBox.selectedItem.value; var formatInfo = this.testManager.findFormatInfo(formatId); document.getElementById("format-name").value = formatInfo.name; document.getElementById("delete-button").disabled = formatInfo.save ? false : true; do... | this.showFormatDialog(); | function updateFormatSelection() { this.updateFormatOptions(); var formatListBox = document.getElementById("format-list"); var formatId = formatListBox.selectedItem.value; var formatInfo = this.testManager.findFormatInfo(formatId); document.getElementById("format-name").value = formatInfo.name; document.getElementById... |
addStyleClass(tr, "current"); | tr.addStyleClass("current"); | function updateFunctionStack(){ var stackframeTable = document.getElementById("stackframeTable"); stackframeTable.innerHTML = ""; // clear the content currentStack = new Array(); var stack = DebuggerDocument.currentFunctionStack(); for(var i = 0; i < stack.length; i++) { var tr = document.createEl... |
currentStack = DebuggerDocument.currentFunctionStack(); for(var i = 0; i < currentStack.length; i++) { | currentStack = new Array(); var stack = DebuggerDocument.currentFunctionStack(); for(var i = 0; i < stack.length; i++) { | function updateFunctionStack(){ var stackframeTable = document.getElementById("stackframeTable"); stackframeTable.innerHTML = ""; // clear the content currentStack = DebuggerDocument.currentFunctionStack(); for(var i = 0; i < currentStack.length; i++) { var tr = document.createElement("tr"); v... |
td.innerText = currentStack[i]; | td.innerText = stack[i]; | function updateFunctionStack(){ var stackframeTable = document.getElementById("stackframeTable"); stackframeTable.innerHTML = ""; // clear the content currentStack = DebuggerDocument.currentFunctionStack(); for(var i = 0; i < currentStack.length; i++) { var tr = document.createElement("tr"); v... |
var tr = document.createElement("tr"); var td = document.createElement("td"); td.className = "stackNumber"; td.innerText = i; tr.appendChild(td); td = document.createElement("td"); td.innerText = "Global"; tr.appendChild(td); stackframeTable.appendChild(tr); | function updateFunctionStack(){ var stackframeTable = document.getElementById("stackframeTable"); stackframeTable.innerHTML = ""; // clear the content currentStack = DebuggerDocument.currentFunctionStack(); for(var i = 0; i < currentStack.length; i++) { var tr = document.createElement("tr"); v... | |
}, | } | updateLink: function() { center = this.map.getCenter(); zoom = this.map.getZoom(); lat = Math.round(center.lat*100000)/100000; lon = Math.round(center.lon*100000)/100000; this.element.href = this.base+"?lat="+lat+"&lon="+lon+"&zoom="+zoom; }, |
document.getElementById("noMetrics").style.display = null; | document.getElementById("noMetrics").style.removeProperty("display"); | function updateMetricsPane(){ var style; var focusedNode = Inspector.focusedDOMNode(); if (focusedNode.nodeType == Node.ELEMENT_NODE) style = focusedNode.ownerDocument.defaultView.getComputedStyle(focusedNode); if (!style || style.length == 0) { document.getElementById("noMetrics").style.displ... |
document.getElementById("marginBoxTable").style.display = null; | document.getElementById("marginBoxTable").style.removeProperty("display"); | function updateMetricsPane(){ var style; var focusedNode = Inspector.focusedDOMNode(); if (focusedNode.nodeType == Node.ELEMENT_NODE) style = focusedNode.ownerDocument.defaultView.getComputedStyle(focusedNode); if (!style || style.length == 0) { document.getElementById("noMetrics").style.displ... |
var style; var focusedNode = Inspector.focusedDOMNode(); if (focusedNode.nodeType == Node.ELEMENT_NODE) style = focusedNode.ownerDocument.defaultView.getComputedStyle(focusedNode); if (!style || style.length == 0) { document.getElementById("noMetrics").style.display = null; document.getElementById("marginBoxTable").sty... | function updateMetricsPane(){} | |
document.getElementById("nodeContents").style.display = null; | document.getElementById("nodeContents").style.removeProperty("display"); | function updateNodePane(){ var focusedNode = Inspector.focusedDOMNode(); if (focusedNode.nodeType == Node.TEXT_NODE || focusedNode.nodeType == Node.COMMENT_NODE) { document.getElementById("nodeNamespaceRow").style.display = "none"; document.getElementById("elementAttributes").style.display = "none";... |
document.getElementById("elementAttributes").style.display = null; | document.getElementById("elementAttributes").style.removeProperty("display"); | function updateNodePane(){ var focusedNode = Inspector.focusedDOMNode(); if (focusedNode.nodeType == Node.TEXT_NODE || focusedNode.nodeType == Node.COMMENT_NODE) { document.getElementById("nodeNamespaceRow").style.display = "none"; document.getElementById("elementAttributes").style.display = "none";... |
document.getElementById("nodeNamespaceRow").style.display = null; | document.getElementById("nodeNamespaceRow").style.removeProperty("display"); | function updateNodePane(){ var focusedNode = Inspector.focusedDOMNode(); if (focusedNode.nodeType == Node.TEXT_NODE || focusedNode.nodeType == Node.COMMENT_NODE) { document.getElementById("nodeNamespaceRow").style.display = "none"; document.getElementById("elementAttributes").style.display = "none";... |
document.getElementById("nodeXpathValue").textContent = xpathForNode(focusedNode); | function updateNodePane() { var focusedNode = Inspector.focusedDOMNode(); if (focusedNode.nodeType == Node.TEXT_NODE || focusedNode.nodeType == Node.COMMENT_NODE) { document.getElementById("nodeNamespaceRow").style.display = "none"; document.getElementById("elementAttributes").style.display = "none"... | |
document.getElementById("nodeXpathValue").textContent = xpathForNode(focusedNode); | function updateNodePane() { var focusedNode = Inspector.focusedDOMNode(); if (focusedNode.nodeType == Node.TEXT_NODE) { document.getElementById("nodeNamespaceRow").style.display = "none"; document.getElementById("elementAttributes").style.display = "none"; document.getElementById("nodeContent... | |
updateElementAttributes(); | function updateNodePane() { var focusedNode = Inspector.focusedDOMNode(); if (focusedNode.nodeType == Node.TEXT_NODE) { document.getElementById("nodeNamespaceRow").style.display = "none"; document.getElementById("elementAttributes").style.display = "none"; document.getElementById("nodeContent... | |
document.getElementById("nodeContents").style.display = null; | document.getElementById("nodeContents").style.display = "none"; | function updateNodePane() { var focusedNode = Inspector.focusedDOMNode(); if (focusedNode.nodeType == Node.TEXT_NODE) { document.getElementById("nodeNamespaceRow").style.display = "none"; document.getElementById("elementAttributes").style.display = "none"; document.getElementById("nodeContent... |
document.getElementById("nodeContentsScrollview").innerHTML = "<span class=\"disabled\">Loading...</span>"; nodeContentsScrollArea.refresh(); clearTimeout(nodeUpdateTimeout); nodeUpdateTimeout = setTimeout("delayedNodePaneUpdate()", 250); | function updateNodePane() { var focusedNode = Inspector.focusedDOMNode(); if (focusedNode.nodeType == Node.TEXT_NODE) { document.getElementById("nodeNamespaceRow").style.display = "none"; document.getElementById("elementAttributes").style.display = "none"; document.getElementById("nodeContent... | |
refreshScrollbars(); | function updateNodePane() { var focusedNode = Inspector.focusedDOMNode(); if (focusedNode.nodeType == Node.TEXT_NODE) { document.getElementById("nodeNamespaceRow").style.display = "none"; document.getElementById("elementAttributes").style.display = "none"; document.getElementById("nodeContent... | |
span.textContent = name; | span.textContent = name + ": "; | function updatePropertiesPane(){ // FIXME: Like the style pane, this should have a top item that's "all properties" // and separate items for each item in the prototype chain. For now, we implement // only the "all properties" part, and only for enumerable properties. var focusedNode = Inspector.focusedDOMN... |
span.title = value; | function updatePropertiesPane(){ // FIXME: Like the style pane, this should have a top item that's "all properties" // and separate items for each item in the prototype chain. For now, we implement // only the "all properties" part, and only for enumerable properties. var focusedNode = Inspector.focusedDOMN... | |
if(this.map.projection != this.ovmap.map.projection) { | if(this.map.getProjection() != this.ovmap.getProjection()) { | updateRectToMap: function() { if(this.map.units != 'degrees') { if(this.map.projection != this.ovmap.map.projection) { alert('The overview map only works when it is in the same projection as the main map'); } } var pxBounds = this.getRectBoundsFromMapBounds(... |
if (!newSize.equals(this.getSize())) { | var oldSize = this.getSize(); if (oldSize == null) this.size = oldSize = newSize; if (!newSize.equals(oldSize)) { var dx = (newSize.w - oldSize.w) / 2, dy = (newSize.h - oldSize.h) / 2; var lcStyle = this.layerContainerDiv.style; lcStyle.left = (parseInt(lcStyle.left) + dx) + "px"; lcStyle.top = (parseInt(lcStyle.top... | updateSize: function() { var newSize = this.getCurrentSize(); if (!newSize.equals(this.getSize())) { this.events.element.offsets = null; this.size = newSize; } }, |
this.size = newSize; | updateSize: function() { var newSize = this.getCurrentSize(); if (!newSize.equals(this.getSize())) { this.events.element.offsets = null; this.size = newSize; } }, | |
if (this.size.w == 0 && this.size.h == 0) { this.size.w = parseInt(this.div.style.width); this.size.h = parseInt(this.div.style.height); } | updateSize: function() { this.size = new OpenLayers.Size( this.div.clientWidth, this.div.clientHeight); this.events.div.offsets = null; // Workaround for the fact that hidden elements return 0 for size. if (this.size.w == 0 && this.size.h == 0) { var dim = E... | |
var center = new OpenLayers.Pixel(newSize.w /2, newSize.h / 2); var zoom = this.getZoom(); this.zoom = null; this.setCenter(center, zoom); | updateSize: function() { var newSize = this.getCurrentSize(); var oldSize = this.getSize(); if (oldSize == null) this.size = oldSize = newSize; if (!newSize.equals(oldSize)) { //notify layers of mapresize for(var i=0; i < this.layers.length; i... | |
if (this.baseLayer != null) { var center = new OpenLayers.Pixel(newSize.w /2, newSize.h / 2); var centerLL = this.getLonLatFromViewPortPx(center); var zoom = this.getZoom(); this.zoom = null; this.setCenter(this.getCenter(), zoom); } | updateSize: function() { var newSize = this.getCurrentSize(); var oldSize = this.getSize(); if (oldSize == null) this.size = oldSize = newSize; if (!newSize.equals(oldSize)) { //notify layers of mapresize for(var i=0; i < this.layers.length; i... | |
this.size.w = parseInt(this.div.style.width); this.size.h = parseInt(this.div.style.height); | var dim = Element.getDimensions(this.div); this.size.w = dim.width; this.size.h = dim.height; | updateSize: function() { this.size = new OpenLayers.Size( this.div.clientWidth, this.div.clientHeight); this.events.div.offsets = null; // Workaround for the fact that hidden elements return 0 for size. if (this.size.w == 0 && this.size.h == 0) { this.size.w... |
this.textbox.value = recorder.testManager.getSourceForTestCase(this.testCase); | this.textbox.value = this.lastValue = recorder.testManager.getSourceForTestCase(this.testCase); | this.updateView = function() { var scrollTop = this.textbox.inputField.scrollTop; //this.textbox.value = this.testCase.getSource(this.recorder.options, "New Test"); this.textbox.value = recorder.testManager.getSourceForTestCase(this.testCase); this.textbox.inputField.scrollTop = scrollTop; //log.debug("source=" +... |
function upHandler(e) {if (!e) e = window.event; | function upHandler(scwEvt) { if (!scwEvt) scwEvt = window.event; | function upHandler(e) {if (!e) e = window.event; if (document.removeEventListener) {document.removeEventListener('mousemove', moveHandler, true); // Capture phase ... |
scwStopPropagation(e); } | scwStopPropagation(scwEvt); } | function upHandler(e) {if (!e) e = window.event; if (document.removeEventListener) {document.removeEventListener('mousemove', moveHandler, true); // Capture phase ... |
var button = input.name.substr(5, input.name.length - 6).replace('][', '-'); var wrapper = button + '-wrapper'; var hide = button + '-hide'; | var base = input.id.substring(5, input.id.length - 4); var button = base + '-button'; var wrapper = base + '-wrapper'; var hide = base + '-hide'; | function uploadAutoAttach() { var inputs = document.getElementsByTagName('input'); for (i = 0; input = inputs[i]; i++) { if (input && hasClass(input, 'upload')) { var uri = input.value; // Extract the button ID based on a substring of the input name: edit[foo][bar] -> foo-bar var button = input.name... |
var button = input.id.substr(5); | var button = input.name.substr(5, input.name.length - 6).replace('][', '-'); | function uploadAutoAttach() { var acdb = []; var inputs = document.getElementsByTagName('input'); for (i = 0; input = inputs[i]; i++) { if (input && hasClass(input, 'upload')) { var uri = input.value; var button = input.id.substr(5); var wrapper = button + '-wrapper'; var hide = button + '-hid... |
cocoon.sendPage("redirect.xml", { "url" : redirectUri }); | cocoon.redirectTo(redirectUri); | function uploadDocument() { var documentRoot = cocoon.parameters["documentRoot"]; var cocoonFlowHelper = new Packages.org.apache.lenya.cms.cocoon.flow.FlowHelper(); var redirectUri = cocoonFlowHelper.getRequestURI(cocoon); var servletContextPath = cocoonFlowHelper.getPageEnvelope(cocoon).getPublication().ge... |
s = s.replace(/[^\w\s-]/g, ''); | s = s.replace(/[^-A-Z0-9\s]/gi, ''); | function URLify(s, num_chars) { // changes, e.g., "Petty theft" to "petty_theft" // remove all these words from the string before urlifying removelist = ["a", "an", "as", "at", "before", "but", "by", "for", "from", "is", "in", "into", "like", "of", "off", "on", "onto", "per", ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.