rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
|| ((!file_area.lib_list[bbs.curdir].dir_list[bbs.curdir].can_upload)
|| ((!file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].can_upload)
function Filemenu(){ this.items=new Array(); // Width of longest line with no dynamic variables var width=0; var scantime=system.datestr(bbs.new_file_time); // Expand for scan time line. if(width < 27+scantime.length) width=27+scantime.length; if(width < 11+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name.leng...
var matches = []; for (var i = 0; i < this.length; i++) { if (test(this[i])) { matches[matches.length] = this[i];
var matches = []; var len = this.length; for (var i = 0; i < len; i++) { if (test(this[i])) { matches[matches.length] = this[i]; }
Array.prototype.filter = function(test) { var matches = []; for (var i = 0; i < this.length; i++) { if (test(this[i])) { matches[matches.length] = this[i]; } } return matches;};
} return matches; };
return matches; };
Array.prototype.filter = function(test) { var matches = []; for (var i = 0; i < this.length; i++) { if (test(this[i])) { matches[matches.length] = this[i]; } } return matches;};
if ($Element(el, 'hasClass', className)) found.push(el);
if (Element.prototype.hasClass.call(el, className)) found.push(el);
filterByClassName: function(className){ var found = []; this.each(function(el){ if ($Element(el, 'hasClass', className)) found.push(el); }); return found; },
dictTypes ['sc'] = true;
function filterTree (){ var eltMissing = document.getElementById ('missing'); var eltTodo = document.getElementById ('todo'); var eltExtra = document.getElementById ('extra'); var eltErrors = document.getElementById ('errors'); var dictTypes = new Object (); if (eltMissing.checked) dictTypes ['sm'] = true; if (eltTodo...
f_resourceBundle._resources=undefined;
f_resourceBundle._Resources=undefined;
f_resourceBundle.Finalizer=function() { f_resourceBundle._resources=undefined;}
}
},
Finalizer: function() { f_locale._Instance=undefined; }
if($element == null) return null;
function find_class($element,$classnames,$result,$first) { if(!$first)$first=$element; if(!$result)$result=new Array(); if ($element.nodeType==1) { var $test_exp=new RegExp("(^| )("+$classnames+")( |$)"); if($test_exp.test($element.className)) $result[$result.length]=$element; } if ($element.hasChildNo...
var c;
var c, i, ok, n;
function find_config_w32(dirname){ if (!FSO.FolderExists(dirname)) { return; } var f = FSO.GetFolder(dirname); var fc = new Enumerator(f.SubFolders); var c; for (; !fc.atEnd(); fc.moveNext()) { c = FSO.BuildPath(fc.item(), "config.w32"); if (FSO.FileExists(c)) { //WScript.StdOut.WriteLine(c); modules += file_get...
modules += "configure_module_dirname = condense_path(FSO.GetParentFolderName('" + c.replace(new RegExp('(["\\\\])', "g"), '\\$1') + "'));\r\n";
function find_config_w32(dirname){ if (!FSO.FolderExists(dirname)) { return; } var f = FSO.GetFolder(dirname); var fc = new Enumerator(f.SubFolders); var c; for (; !fc.atEnd(); fc.moveNext()) { c = FSO.BuildPath(fc.item(), "config.w32"); if (FSO.FileExists(c)) { //WScript.StdOut.WriteLine(c); modules += file_get...
var re_dep_line = new RegExp("ADD_EXTENSION_DEP\\([^,]*\\s*,\\s*['\"]([^'\"]+)['\"]\\);", "gm");
var re_dep_line = new RegExp("ADD_EXTENSION_DEP\\([^,]*\\s*,\\s*['\"]([^'\"]+)['\"].*\\);", "gm");
function find_config_w32(dirname){ if (!FSO.FolderExists(dirname)) { return; } var f = FSO.GetFolder(dirname); var fc = new Enumerator(f.SubFolders); var c, i, ok, n; var item = null; var re_dep_line = new RegExp("ADD_EXTENSION_DEP\\([^,]*\\s*,\\s*['\"]([^'\"]+)['\"]\\);", "gm"); for (; !fc.atEnd(); fc.moveNext()) { ...
WScript.StdOut.WriteLine(fc.item());
function find_cvsignore(dirname){ if (!FSO.FolderExists(dirname)) return; var f = FSO.GetFolder(dirname); var fc = new Enumerator(f.SubFolders); for (; !fc.atEnd(); fc.moveNext()) { WScript.StdOut.WriteLine(fc.item()); find_cvsignore(fc.item()); } if (FSO.FileExists(dirname + "\\.cvsignore")) { kill_from_cvsignor...
element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode)
var element = Event.element(event); while (element.parentNode && (!element.tagName || (element.tagName.toUpperCase() != tagName.toUpperCase())))
findElement: function(event, tagName) { element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode) element = element.parentNode; return element; },
element = getDoc().getElementById(id);
var element = findElementByIdOrName(id);
function findElement(id) { element = getDoc().getElementById(id); if(element == null) { setRowFailed("Element not found", ERROR); } return element;}
throw new Error("Unrecognised locator type: '" + locatorType + "'");
throw new SeleniumError("Unrecognised locator type: '" + locatorType + "'");
this.findElementBy = function(locatorType, locator, inDocument) { var locatorFunction = this.locationStrategies[locatorType]; if (! locatorFunction) { throw new Error("Unrecognised locator type: '" + locatorType + "'"); } return locatorFunction.call(this, locator, inDocument);...
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.pu...
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elem...
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element...
if(e.tagName && e.tagName==options.tag.toUpperCase() &&
if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() &&
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if...
return element.type != 'hidden' && !element.disabled &&
return element.type != 'hidden' && element.type != 'submit' && !element.disabled &&
findFirstElement: function(form) { return Form.getElements(form).find(function(element) { return element.type != 'hidden' && !element.disabled && ['input', 'select', 'textarea'].include(element.tagName.toLowerCase()); }); },
var last_token_pos = -1;
var lastTokenPos = -1;
findLastToken: function() { var last_token_pos = -1; for (var i=0; i<this.options.tokens.length; i++) { var this_token_pos = this.element.value.lastIndexOf(this.options.tokens[i]); if (this_token_pos > last_token_pos) last_token_pos = this_token_pos; } return last_token_pos; }
var this_token_pos = this.element.value.lastIndexOf(this.options.tokens[i]); if (this_token_pos > last_token_pos) last_token_pos = this_token_pos;
var thisTokenPos = this.element.value.lastIndexOf(this.options.tokens[i]); if (thisTokenPos > lastTokenPos) lastTokenPos = thisTokenPos;
findLastToken: function() { var last_token_pos = -1; for (var i=0; i<this.options.tokens.length; i++) { var this_token_pos = this.element.value.lastIndexOf(this.options.tokens[i]); if (this_token_pos > last_token_pos) last_token_pos = this_token_pos; } return last_token_pos; }
return last_token_pos;
return lastTokenPos;
findLastToken: function() { var last_token_pos = -1; for (var i=0; i<this.options.tokens.length; i++) { var this_token_pos = this.element.value.lastIndexOf(this.options.tokens[i]); if (this_token_pos > last_token_pos) last_token_pos = this_token_pos; } return last_token_pos; }
throw new Error("Option with value '" + this.value + "' not found");
throw new SeleniumError("Option with value '" + this.value + "' not found");
this.findOption = function(element) { for (var i = 0; i < element.options.length; i++) { if (this.patternMatcher.matches(this.value, element.options[i].value)) { return element.options[i]; } } throw new Error("Option with value '" + this.value + "' not found...
curleft += obj.offsetLeft
curleft += obj.offsetLeft;
function findPosX(obj) { var curleft = 0; if (obj.offsetParent) { while (obj.offsetParent) { curleft += obj.offsetLeft obj = obj.offsetParent; } } else if (obj.x) { curleft += obj.x; } return curleft;}
curtop += obj.offsetTop
curtop += obj.offsetTop;
function findPosY(obj) { var curtop = 0; if (obj.offsetParent) { while (obj.offsetParent) { curtop += obj.offsetTop obj = obj.offsetParent; } } else if (obj.y) { curtop += obj.y; } return curtop;}
this.element.style.backgroundImage = this.oldBgImage;
finish: function() { this.element.style.backgroundColor = this.options.restorecolor; }
if(this.oldBgImage) this.element.style.backgroundImage = this.oldBgImage;
this.element.style.backgroundImage = this.oldBgImage;
finish: function() { this.element.style.backgroundColor = this.options.restorecolor; if(this.oldBgImage) this.element.style.backgroundImage = this.oldBgImage; }
this.addLinksToResults();
finish: function(status, summary) { if (!this.log) return; this.lastLogLine.className = status; this.statusCell.innerHTML = status; this.messageCell.innerHTML = this._toHTML(summary); },
this.element.style.backgroundImage = this.oldBgImage;
if(this.oldBgImage) this.element.style.backgroundImage = this.oldBgImage;
finish: function() { this.element.style.backgroundColor = this.options.restorecolor; this.element.style.backgroundImage = this.oldBgImage; }
if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; }
finishDrag: function(event, success) { this.active = false; this.dragging = false; if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(this.opt...
this.element.style.zIndex = this.originalZ;
if(this.options.zindex) this.element.style.zIndex = this.originalZ;
finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggab...
if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; }
finishDrag: function(event, success) { this.active = false; this.dragging = false; if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert...
this.element.style.zIndex = this.originalZ;
if(this.options.zindex) this.element.style.zIndex = this.originalZ;
finishDrag: function(event, success) { this.active = false; this.dragging = false; if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert...
this.unregisterEvents();
finishDrag: function(event, success) { this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables...
popupWindow.close();
if (popupWindow != null) { popupWindow.close(); }
function finishEPerson(){ selectAll(window.document.forms[0].eperson_id); popupWindow.close();}
refreshBufferList(g_cq_buffer_current);
refreshBufferList(g_cq_buffer_current, "finishImport");
function finishImport() { debug('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; debug("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocume...
if (theList.length < 1) theTimeout = setTimeout('finishImport();', g_cq_timeout);
if (theList.length < 1) { debug("no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; }
function finishImport() { debug('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; debug("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocume...
var theOutputDoc = null;
function finishImport() { debug('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; debug("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocume...
if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocument;
if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } if (theOutputDoc == null) return; var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocu...
function finishImport() { debug('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; debug("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocume...
if (theOutputDoc) { var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } var theTimeout = null; if (theList.length < 1) { debug("no list: setting new timeout " + g_cq_timeout); t...
refreshBufferList(g_cq_buffer_current, "finishImport");
function finishImport() { debug('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; debug("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocume...
var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>';
function finishImport() { debug('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; debug("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocume...
debug("theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i].firstChild == null) continue; theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("i = " + i + ", " + theValue); getBuffer(i).value = theValue; } var h...
submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");
function finishImport() { debug('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; debug("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocume...
debug('finishImport: checking for output');
debug.print('finishImport: checking for output');
function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document...
debug("finishImport: theOutput = " + theOutput);
debug.print("finishImport: theOutput = " + theOutput);
function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document...
debug("finishImport: ie, using XMLDocument");
debug.print("finishImport: ie, using XMLDocument");
function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document...
debug("finishImport: no list: setting new timeout " + g_cq_timeout);
debug.print("finishImport: no list: setting new timeout = " + g_cq_timeout);
function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document...
return null;
return;
function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document...
debug("finishImport: gecko workaround");
debug.print("finishImport: normalizing for gecko workaround");
function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document...
debug("finishImport: theList = " + theList.innerHTML + ", length = " + theList.length);
debug.print("finishImport: theList = " + theList.length);
function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document...
debug("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue);
debug.print("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue.substr(0, 16));
function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document...
debug("finishImport: null historyNode");
debug.print("finishImport: null historyNode");
function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document...
saveQueryHistory(theValue, true);
saveQueryHistory(theValue, true, false);
function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document...
debug('finishImport');
function finishImport() { //alert('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; //alert("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDo...
debug("theOutput = " + theOutput);
function finishImport() { //alert('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; //alert("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDo...
debug("theList = " + theList + ", length = " + theList.length);
function finishImport() { //alert('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; //alert("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDo...
debug("i = " + i + ", " + theValue);
function finishImport() { //alert('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; //alert("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDo...
submitForm(document.getElementById(g_cq_query_form),
submitForm(document.getElementById(g_cq_query_form_id),
function finishImport() { //alert('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; //alert("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDo...
saveQueryHistory(theValue, true, false);
saveQueryHistory(theValue, false);
function finishImport() { debug.print('finishImport: checking for output'); var theOutput = getResultFrame(); debug.print("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWin...
debug.print("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename);
debug.print("finishImport: ie, using XMLDocument = " + theOutputDoc.XMLDocument); theOutputDoc = theOutputDoc.XMLDocument; } if (theOutputDoc.getElementsByTagName(g_cq_buffers_area_id).length < 1) { retry = true;
function finishImport() { debug.print('finishImport: checking for output'); var theOutput = getResultFrame(); debug.print("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWin...
if (theList == null || theList.length < 1) { debug.print("finishImport: no list: setting new timeout = "
if (retry) { debug.print("finishImport: retrying with new timeout = "
function finishImport() { debug.print('finishImport: checking for output'); var theOutput = getResultFrame(); debug.print("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWin...
if (theList.length < 1) { var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>Sorry, but ' + theUri + ' was empty</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html"); }
function finishImport() { debug.print('finishImport: checking for output'); var theOutput = getResultFrame(); debug.print("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWin...
this.last_active.onDrop(element, this.last_active.element);
this.last_active.onDrop(element, this.last_active.element, event);
fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); },
if(this.include_scroll_offsets) Position.prepare();
Position.prepare();
fire: function(event, element) { if(!this.drops) return; var pX = Event.pointerX(event); var pY = Event.pointerY(event); if(this.include_scroll_offsets) Position.prepare(); var i = this.drops.length-1; do { var drop = this.drops[i]; if(this.is_affected(pX, pY, element, drop)) if(dr...
if (this.is_affected(Event.pointerX(event), Event.pointerY(event), element, this.last_active))
if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active))
fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.is_affected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active); },
this.last_active.onDrop(element, this.last_active);
this.last_active.onDrop(element, this.last_active.element, event);
fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.is_affected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active); },
this.last_active.onDrop(element, this.last_active);
this.last_active.onDrop(element, this.last_active.element);
fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active); },
for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); }
this.events[type].keys.each(function(fn){ fn.apply(this, args || []); }, this);
fireEvent: function(type, args){ if (this.events && this.events[type]){ args = args || []; if ($type(args) != 'array') args = [args]; for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); } } },
fn.apply(this, args || []);
fn.apply(this, args);
fireEvent: function(type, args){ if (this.events && this.events[type]){ args = args || []; if ($type(args) != 'array') args = [args]; this.events[type].keys.each(function(fn){ fn.apply(this, args || []); }, this); } },
if (this.events[type][fn]) this.events[type][fn].apply(this, args);
if (this.events[type][fn]) this.events[type][fn].apply(this, args || []);
fireEvent: function(type, args){ if (!this.events || !this.events[type]) return; for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args); } },
if (!this.events || !this.events[type]) return; for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []);
if (this.events && this.events[type]){ for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); }
fireEvent: function(type, args){ if (!this.events || !this.events[type]) return; for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); } },
args = args || []; if ($type(args) != 'array') args = [args];
fireEvent: function(type, args){ if (this.events && this.events[type]){ for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); } } },
var nl, i, a, n, xsrc, xhref, el;
var xsrc, xhref;
fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','ob...
el = new Array('a','img','select','area','iframe','base','input','script','embed','object','link');
if (!new RegExp('(src|href)=', 'g').test(h)) return h;
fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','ob...
for (a=0; a<el.length; a++) { n = e.getElementsByTagName(el[a]);
tinyMCE.selectElements(e, 'A,IMG,SELECT,AREA,IFRAME,BASE,INPUT,SCRIPT,EMBED,OBJECT,LINK', function (n) { xsrc = tinyMCE.getAttrib(n, "mce_tsrc"); xhref = tinyMCE.getAttrib(n, "mce_thref");
fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','ob...
for (i=0; i<n.length; i++) { xsrc = tinyMCE.getAttrib(n[i], "mce_tsrc"); xhref = tinyMCE.getAttrib(n[i], "mce_thref"); if (xsrc != "") { try { n[i].src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xsrc); } catch (e) { } n[i].removeAttribute("mce_tsrc");
if (xsrc != "") { try { n.src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xsrc); } catch (e) {
fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','ob...
if (xhref != "") { try { n[i].href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xhref); } catch (e) { }
n.removeAttribute("mce_tsrc"); }
fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','ob...
n[i].removeAttribute("mce_thref");
if (xhref != "") { try { n.href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xhref); } catch (e) {
fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','ob...
}
fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','ob...
el = tinyMCE.selectNodes(e, function(n) {
return false; }); tinyMCE.selectNodes(e, function(n) {
fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','ob...
Position.clone(this.update, this.iefix);
Position.clone(this.update, this.iefix, {setTop:(!this.update.style.height)});
fixIEOverlapping: function() { Position.clone(this.update, this.iefix); this.iefix.style.zIndex = 1; this.update.style.zIndex = 2; Element.show(this.iefix); },
return array.concat(value.constructor == Array ?
return array.concat(value && value.constructor == Array ?
flatten: function() { return this.inject([], function(array, value) { return array.concat(value.constructor == Array ? value.flatten() : [value]); }); },
return ((-Math.cos(pos*Math.PI)/4) + 0.75) + Math.random(0.25);
return ((-Math.cos(pos*Math.PI)/4) + 0.75) + Math.random()/4;
Effect.Transitions.flicker = function(pos) { return ((-Math.cos(pos*Math.PI)/4) + 0.75) + Math.random(0.25);}
if (document.forms[0] && document.forms[0].elements["faqusername"]) { document.forms[0].elements["faqusername"].focus();
if (document.getElementById('faqusername')) { document.getElementById('faqusername').focus();
function focusOnUsernameField(){ if (document.forms[0] && document.forms[0].elements["faqusername"]) { document.forms[0].elements["faqusername"].focus(); }}
textAreaFocus();
setLineNumberStatus();
function focusQueryInput() { var t = getBuffer(); if (!t) return; t.focus(); textAreaFocus();}
new Effect.Scale(element, 5, {
new Effect.Scale(element, 5, Object.extend({
Effect.Fold = function(element) { $(element).style.overflow = 'hidden'; new Effect.Scale(element, 5, { scaleContent: false, scaleTo: 100, scaleX: false, afterFinish: function(effect) { new Effect.Scale(element, 1, { scaleContent: false, scaleTo: 0, scaleY: false, afterFinish: function(eff...
}}.extend(arguments[1] || {}));
}}, arguments[1] || {}));
Effect.Fold = function(element) { $(element).style.overflow = 'hidden'; new Effect.Scale(element, 5, { scaleContent: false, scaleTo: 100, scaleX: false, afterFinish: function(effect) { new Effect.Scale(element, 1, { scaleContent: false, scaleTo: 0, scaleY: false, afterFinish: function(eff...
new Effect2.Scale(element, 5, {
new Effect.Scale(element, 5, {
Effect.Fold = function(element) { $(element).style.overflow = 'hidden'; new Effect2.Scale(element, 5, { scaleContent: false, scaleTo: 100, scaleX: false, afterFinish: function(effect) { new Effect.Scale(element, 1, { scaleContent: false, scaleTo: 0, scaleY: false, afterFinish: function(ef...
}
};
Effect.Fold = function(element) { element = $(element); var oldStyle = { top: element.style.top, left: element.style.left, width: element.style.width, height: element.style.height }; Element.makeClipping(element); return new Effect.Scale(element, 5, Object.extend({ scaleContent: false, scaleX: ...
$(element).style.overflow = 'hidden';
element = $(element); element.style.overflow = 'hidden';
Effect.Fold = function(element) { $(element).style.overflow = 'hidden'; return new Effect.Scale(element, 5, Object.extend({ scaleContent: false, scaleTo: 100, scaleX: false, afterFinish: function(effect) { new Effect.Scale(element, 1, { scaleContent: false, scaleTo: 0, scaleY: false, afte...
$(element).style.overflow = 'hidden'; new Effect.Scale(element, 5, Object.extend({ scaleContent: false, scaleTo: 100, scaleX: false, afterFinish: function(effect) { new Effect.Scale(element, 1, { scaleContent: false, scaleTo: 0, scaleY: false, afterFinish: function(effect) { Element.hide(effect.element) } }); }}, argum...
element = $(element); var originalTop = element.style.top; var originalLeft = element.style.left; var originalWidth = element.style.width; var originalHeight = element.style.height; Element.makeClipping(element); return new Effect.Scale(element, 5, Object.extend({ scaleContent: false, scaleX: false, afterFinishInternal...
Effect.Fold = function(element) { $(element).style.overflow = 'hidden'; new Effect.Scale(element, 5, Object.extend({ scaleContent: false, scaleTo: 100, scaleX: false, afterFinish: function(effect) { new Effect.Scale(element, 1, { scaleContent: false, scaleTo: 0, scaleY: false, afterFinish...
ICONPATH = '/lenya/lenya/images/tree/';
ICONPATH = CONTEXT_PREFIX + '/lenya/images/tree/';
function Folder(folderDescription, hreference) //constructor { //constant data ICONPATH = '/lenya/lenya/images/tree/'; this.desc = folderDescription; this.hreference = hreference; this.id = -1; this.navObj = 0; this.iconImg = 0; this.nodeImg = 0; this.isLastNode = 0; this.iconSrc = ICONPATH + "ftv2foldero...
this.iconSrc = ICONPATH + "ftv2folderopen.gif"; this.iconSrcClosed = ICONPATH + "ftv2folderclosed.gif";
this.iconSrc = ICONPATH + ""; this.iconSrcClosed = ICONPATH + "";
function Folder(folderDescription, hreference) //constructor { //constant data this.desc = folderDescription; this.hreference = hreference; this.id = -1; this.navObj = 0; this.iconImg = 0; this.nodeImg = 0; this.isLastNode = 0; this.iconSrc = ICONPATH + "ftv2folderopen.gif"; this.iconSrcClosed = ICONPATH ...
function forcePlugIn() { return lookForToken("ForceJavaPlugIn"); }
function forcePlugIn() { return lookForToken("ForceJavaPlugIn", true); }
function forcePlugIn() { return lookForToken("ForceJavaPlugIn"); }
var n = document.createTextNode(' '); $(element).appendChild(n); Element.remove(n);
try { element = $(element); var n = document.createTextNode(' '); element.appendChild(n); element.removeChild(n); } catch(e) {}
Element.forceRerendering = function(element) { var n = document.createTextNode(' '); $(element).appendChild(n); Element.remove(n);}
handler.handleWindow(browsers[i].contentWindow);
callForWindow(handler, browsers[i].contentWindow);
function forEachBrowser(handler) { log.debug("forEachBrowser"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator); var e = wm.getEnumerator("navigator:browser"); var window; var browsers; var i; while (e.hasMoreElements()) { window = e.g...
testText = testText.replace(/\$\{encoding\}/g, options["global.encoding"]);
function format(testCase, name, saveHeaderAndFooter, useDefaultHeaderAndFooter) { var text; var commandsText = ""; var testText; var i; for (i = 0; i < testCase.commands.length; i++) { var text = getSourceForCommand(testCase.commands[i]); commandsText = commandsText + text; } var testText; if (testCase.header == nu...
function format(testCase, name, saveHeaderAndFooter) {
function format(testCase, name, saveHeaderAndFooter, useDefaultHeaderAndFooter) {
function format(testCase, name, saveHeaderAndFooter) { var text; var commandsText = ""; var testText; var i; for (i = 0; i < testCase.commands.length; i++) { var text = getSourceForCommand(testCase.commands[i]); commandsText = commandsText + text; } var testText; if (testCase.header == null || testCase.footer == nu...
if (testCase.header == null || testCase.footer == null) {
if (testCase.header == null || testCase.footer == null || useDefaultHeaderAndFooter) {
function format(testCase, name, saveHeaderAndFooter) { var text; var commandsText = ""; var testText; var i; for (i = 0; i < testCase.commands.length; i++) { var text = getSourceForCommand(testCase.commands[i]); commandsText = commandsText + text; } var testText; if (testCase.header == null || testCase.footer == nu...
if (command.command.match(/^(verify|assert)/)) { line = statement((def.negative ? assertFalse : assertTrue)(call));
if (command.command.match(/^assert/) || (this.assertOrVerifyFailureOnNext && command.command.match(/^verify/))) { line = (def.negative ? assertFalse : assertTrue)(call); } else if (command.command.match(/^verify/)) { line = (def.negative ? verifyFalse : verifyTrue)(call);
function formatCommand(command) { var line = null; if (command.type == 'command') { var def = command.getDefinition(); if (def && def.isAccessor) { var call = new CallSelenium(def.name); for (var i = 0; i < def.params.length; i++) { call.args.push(xlateArgument(command.getParameterAt(i))); } var extraArg =...
line = waitFor((def.negative ? not : is)(call));
line = waitFor(def.negative ? call.invert() : call);
function formatCommand(command) { var line = null; if (command.type == 'command') { var def = command.getDefinition(); if (def && def.isAccessor) { var call = new CallSelenium(def.name); for (var i = 0; i < def.params.length; i++) { call.args.push(xlateArgument(command.getParameterAt(i))); } var extraArg =...