rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
Sortable.options(oldParentNode).onChange(element); Sortable.options(dropon).onChange(element);
onEmptyHover: function(element, dropon) { if(element.parentNode!=dropon) { dropon.appendChild(element); } },
onEnd: function() {
onEnd: function() { Sortable.unmark();
onEnd: function() { if(this.lastValue != Sortable.serialize(this.element)) this.observer(this.element) }
button.onfocus = function() {
button.onmouseover = button.onfocus = function() {
button.onfocus = function() { button.onclick = function() { // Prepare variables for use in anonymous function. var button = this; var action = button.form.action; var target = button.form.target; // Redirect form submission this.form.action = uri; this.form.target = 'redirect-ta...
return true;
button.onfocus = function() { button.onclick = function() { // Prepare vars for use in anonymous function. var button = this; var action = button.form.action; var target = button.form.target; // Redirect form submission this.form.action = uri; this.form.target = 'redirect-target'...
response = response.replace(/[\f\n\r\t\v]/g, ' ');
button.onmouseover = button.onfocus = function() { button.onclick = function() { // Prepare variables for use in anonymous function. var button = this; var action = button.form.action; var target = button.form.target; // Redirect form submission this.form.action = uri; this.form....
if(overlap>0.5) {
if(Element.isParent(dropon, element)) return; if(overlap > .33 && overlap < .66 && Sortable.options(dropon).tree) { return; } else if(overlap>0.5) {
onHover: function(element, dropon, overlap) { if(overlap>0.5) { Sortable.mark(dropon, 'before'); if(dropon.previousSibling != element) { var oldParentNode = element.parentNode; element.style.visibility = "hidden"; // fix gecko rendering dropon.parentNode.insertBefore(element, dropon)...
Sortable.mark(dropon, 'before');
onHover: function(element, dropon, overlap) { if(overlap>0.5) { if(dropon.previousSibling != element) { var oldParentNode = element.parentNode; element.style.visibility = "hidden"; // fix gecko rendering dropon.parentNode.insertBefore(element, dropon); Sortable.mark(dropon, 'before...
} else {
} else { Sortable.mark(dropon, 'after');
onHover: function(element, dropon, overlap) { if(overlap>0.5) { if(dropon.previousSibling != element) { var oldParentNode = element.parentNode; element.style.visibility = "hidden"; // fix gecko rendering dropon.parentNode.insertBefore(element, dropon); Sortable.mark(dropon, 'before...
Sortable.mark(dropon, 'after');
onHover: function(element, dropon, overlap) { if(overlap>0.5) { if(dropon.previousSibling != element) { var oldParentNode = element.parentNode; element.style.visibility = "hidden"; // fix gecko rendering dropon.parentNode.insertBefore(element, dropon); Sortable.mark(dropon, 'before...
element = Event.findElement(event, 'LI');
var element = Event.findElement(event, 'LI');
onHover: function(event) { element = Event.findElement(event, 'LI'); if(this.index != element.autocompleteIndex) { this.index = element.autocompleteIndex; this.render(); } },
Event.stop(event);
onHover: function(event) { element = Event.findElement(event, 'LI'); if(this.index != element.autocompleteIndex) { this.index = element.autocompleteIndex; this.render(); } },
onHover: function(element, dropon, overlap) { if(overlap>0.5) { if(dropon.previousSibling != element) { var oldParentNode = element.parentNode; element.style.visibility = "hidden"; dropon.parentNode.insertBefore(element, dropon); if(dropon.parentNode!=oldParentNode && oldParentNode.sortable) oldParentNode.sortable.onCh...
onHover: function(element, dropon, overlap) { if(overlap>0.5) { Sortable.mark(dropon, 'before'); if(dropon.previousSibling != element) { var oldParentNode = element.parentNode; element.style.visibility = "hidden"; dropon.parentNode.insertBefore(element, dropon); if(dropon.parentNode!=oldParentNode) Sortable.options(old...
onHover: function(element, dropon, overlap) { if(overlap>0.5) { if(dropon.previousSibling != element) { var oldParentNode = element.parentNode; element.style.visibility = "hidden"; // fix gecko rendering dropon.parentNode.insertBefore(element, dropon); ...
} else { Sortable.mark(dropon, 'after'); var nextElement = dropon.nextSibling || null; if(nextElement != element) { var oldParentNode = element.parentNode; element.style.visibility = "hidden"; dropon.parentNode.insertBefore(element, nextElement); if(dropon.parentNode!=oldParentNode) Sortable.options(oldParentNode).onCh...
onHover: function(element, dropon, overlap) { if(overlap>0.5) { if(dropon.previousSibling != element) { var oldParentNode = element.parentNode; element.style.visibility = "hidden"; // fix gecko rendering dropon.parentNode.insertBefore(element, dropon); ...
this.style.backgroundColor = OpenLayers.Util.onImageLoadErrorColor;
this._attempts = (this._attempts) ? (this._attempts + 1) : 1; if(this._attempts <= OpenLayers.IMAGE_RELOAD_ATTEMPTS) { this.src = this.src; } else { this.style.backgroundColor = OpenLayers.Util.onImageLoadErrorColor; }
OpenLayers.Util.onImageLoadError = function() { this.style.backgroundColor = OpenLayers.Util.onImageLoadErrorColor; this.style.display = "";};
if(navigator.appVersion.indexOf('AppleWebKit')>0) Event.stop(event);
onKeyPress: function(event) { if(this.active) switch(event.keyCode) { case Event.KEY_TAB: case Event.KEY_RETURN: this.select_entry(); Event.stop(event); case Event.KEY_ESC: this.hide(); this.active = false; return; case Event.KEY_LEFT: case...
if(event.keyCode==Event.KEY_TAB || event.keyCode==Event.KEY_RETURN) return;
if(event.keyCode==Event.KEY_TAB || event.keyCode==Event.KEY_RETURN || (navigator.appVersion.indexOf('AppleWebKit') > 0 && event.keyCode == 0)) return;
onKeyPress: function(event) { if(this.active) switch(event.keyCode) { case Event.KEY_TAB: case Event.KEY_RETURN: this.selectEntry(); Event.stop(event); case Event.KEY_ESC: this.hide(); this.active = false; Event.stop(event); return; case ...
this.select_entry();
this.selectEntry();
onKeyPress: function(event) { if(this.active) switch(event.keyCode) { case Event.KEY_TAB: case Event.KEY_RETURN: this.select_entry(); Event.stop(event); case Event.KEY_ESC: this.hide(); this.active = false; return; case Event.KEY_LEFT: case...
this.mark_previous();
this.markPrevious();
onKeyPress: function(event) { if(this.active) switch(event.keyCode) { case Event.KEY_TAB: case Event.KEY_RETURN: this.select_entry(); Event.stop(event); case Event.KEY_ESC: this.hide(); this.active = false; return; case Event.KEY_LEFT: case...
this.mark_next();
this.markNext();
onKeyPress: function(event) { if(this.active) switch(event.keyCode) { case Event.KEY_TAB: case Event.KEY_RETURN: this.select_entry(); Event.stop(event); case Event.KEY_ESC: this.hide(); this.active = false; return; case Event.KEY_LEFT: case...
this.has_focus = true;
this.hasFocus = true;
onKeyPress: function(event) { if(this.active) switch(event.keyCode) { case Event.KEY_TAB: case Event.KEY_RETURN: this.select_entry(); Event.stop(event); case Event.KEY_ESC: this.hide(); this.active = false; return; case Event.KEY_LEFT: case...
Event.stop(event);
onKeyPress: function(event) { if(this.active) switch(event.keyCode) { case Event.KEY_TAB: case Event.KEY_RETURN: this.selectEntry(); Event.stop(event); case Event.KEY_ESC: this.hide(); this.active = false; return; case Event.KEY_LEFT: case ...
this.checked = !this.checked;
var clickedRadioButton = ((this.type == "radio") && (this.checked)); if (!clickedRadioButton) { this.checked = !this.checked; }
onLabelClick: function(e) { this.checked = !this.checked; },
val = ((e.clientX - hop_element_x( slider )) / slider.offsetWidth) * 100;
val = ((hop_event_mouse_x( e ) - hop_element_x( slider )) / slider.offsetWidth) * 100;
var onlineclick = function( e ) { var val; val = ((e.clientX - hop_element_x( slider )) / slider.offsetWidth) * 100; hop_slider_value_set( slider, val ); }
if (tinyMCE.isMSIE && !tinyMCE.isOpera && window.event.type == "readystatechange" && document.readyState != "complete")
if (tinyMCE.isRealIE && window.event.type == "readystatechange" && document.readyState != "complete")
onLoad : function() { // Wait for everything to be loaded first if (tinyMCE.settings.strict_loading_mode && this.loadingIndex != -1) { window.setTimeout('tinyMCE.onLoad();', 1); return; } if (tinyMCE.isMSIE && !tinyMCE.isOpera && window.event.type == "readystatechange" && document.readyState != "complete") r...
if (tinyMCE.getAttrib(element, "class").indexOf(deselector) != -1)
if (new RegExp('\\b' + deselector + '\\b').test(tinyMCE.getAttrib(element, "class")))
onLoad : function() { // Wait for everything to be loaded first if (tinyMCE.settings.strict_loading_mode && this.loadingIndex != -1) { window.setTimeout('tinyMCE.onLoad();', 1); return; } if (tinyMCE.isMSIE && !tinyMCE.isOpera && window.event.type == "readystatechange" && document.readyState != "complete") r...
if (selector != '' && tinyMCE.getAttrib(elm, "class").indexOf(selector) == -1)
if (selector != '' && !new RegExp('\\b' + selector + '\\b').test(tinyMCE.getAttrib(elm, "class")))
onLoad : function() { // Wait for everything to be loaded first if (tinyMCE.settings.strict_loading_mode && this.loadingIndex != -1) { window.setTimeout('tinyMCE.onLoad();', 1); return; } if (tinyMCE.isMSIE && !tinyMCE.isOpera && window.event.type == "readystatechange" && document.readyState != "complete") r...
if (tinyMCE.getAttrib(elm, "class").indexOf(deselector) != -1)
if (new RegExp('\\b' + deselector + '\\b').test(tinyMCE.getAttrib(elm, "class")))
onLoad : function() { // Wait for everything to be loaded first if (tinyMCE.settings.strict_loading_mode && this.loadingIndex != -1) { window.setTimeout('tinyMCE.onLoad();', 1); return; } if (tinyMCE.isMSIE && !tinyMCE.isOpera && window.event.type == "readystatechange" && document.readyState != "complete") r...
}, 10);
}, 100);
onLoad : function() { // Wait for everything to be loaded first if (tinyMCE.settings.strict_loading_mode && this.loadingIndex != -1) { window.setTimeout('tinyMCE.onLoad();', 1); return; } if (tinyMCE.isMSIE && !tinyMCE.isOpera && window.event.type == "readystatechange" && document.readyState != "complete") r...
if ($('successMessages')) { new Effect.Highlight('successMessages'); window.setTimeout("Effect.DropOut('successMessages')", 3000); } if ($('errorMessages')) { new Effect.Highlight('errorMessages'); }
window.onload = function() { highlightFormElements(); /* Commented out b/c causes stack trace with Canoo WebTest http://lists.canoo.com/pipermail/webtest/2005q3/004493.html if ($('successMessages')) new Effect.Highlight('successMessages', {startcolor: '#ffff00', endcolor: '#ffffcc'}); if ($('er...
map.centerAndZoom(new GPoint(-4.218750, 54.724620), 12);
map.centerAndZoom(new GPoint(-4.218750, 34.724620), 16);
function onLoad() { if (GBrowserIsCompatible()) { // do nothing } else { document.getElementById('browserwontwork').className= ''; } map = new GMap(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl());// map.setMapType( _HYBRID...
*/ if (typeof marker!=undefined && marker.length==1) {
if (marker.length==1) {
function onLoad() { if (GBrowserIsCompatible()) { // do nothing } else { document.getElementById('browserwontwork').className= ''; } map = new GMap(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl());// map.setMapType( _HYBRID...
this.form.value.value = transport.responseText.stripTags();
Element.removeClassName(this.form, this.options.loadingClassName); this.editField.disabled = false; this.editField.value = transport.responseText.stripTags();
onLoadedExternalText: function(transport) { this.form.value.value = transport.responseText.stripTags(); },
Field.scrollFreeActivate(this.editField);
onLoadedExternalText: function(transport) { Element.removeClassName(this.form, this.options.loadingClassName); this.editField.disabled = false; this.editField.value = transport.responseText.stripTags(); },
document.forms[0].htmlSource.value = fixContent(tinyMCE.getContent(tinyMCE.getWindowArg('editor_id')));
if (tinyMCE.isGecko) document.body.spellcheck = tinyMCE.getParam("gecko_spellcheck"); document.getElementById('htmlSource').value = tinyMCE.getContent(tinyMCE.getWindowArg('editor_id'));
function onLoadInit() { tinyMCEPopup.resizeToInnerSize(); document.forms[0].htmlSource.value = fixContent(tinyMCE.getContent(tinyMCE.getWindowArg('editor_id'))); resizeInputs(); if (tinyMCE.getParam("theme_advanced_source_editor_wrap", true)) { setWrap('soft'); document.forms[0].wraped.checked = true; }}
document.forms[0].wraped.checked = true;
document.getElementById('wraped').checked = true;
function onLoadInit() { tinyMCEPopup.resizeToInnerSize(); document.forms[0].htmlSource.value = fixContent(tinyMCE.getContent(tinyMCE.getWindowArg('editor_id'))); resizeInputs(); if (tinyMCE.getParam("theme_advanced_source_editor_wrap", true)) { setWrap('soft'); document.forms[0].wraped.checked = true; }}
if (tinyMCE.isGecko) document.body.spellcheck = tinyMCE.getParam("gecko_spellcheck");
function onLoadInit() { tinyMCEPopup.resizeToInnerSize(); resizeInputs();}
addLoadListener(getTestFrame(), addBreakpointSupport);
addLoadListener(getTestFrame(), onloadTestCase);
function onloadTestSuite() { removeLoadListener(getSuiteFrame(), onloadTestSuite); addLoadListener(getTestFrame(), addBreakpointSupport); // Add an onclick function to each link in all suite tables var allTables = getIframeDocument(getSuiteFrame()).getElementsByTagName("table"); for (var tableNum = 0; ta...
testIFrame.addLoadListener(addBreakpointSupport);
testIFrame.addLoadListener(onloadTestCase);
function onloadTestSuite() { suiteIFrame.removeLoadListener(onloadTestSuite); testIFrame.addLoadListener(addBreakpointSupport); // Add an onclick function to each link in all suite tables var allTables = suiteIFrame.getDocument().getElementsByTagName("table"); for (var tableNum = 0; tableNum < allTables....
gPGTranslate.enableTranslate(aLocation.asciiSpec);
onLocationChange:function(aProgress,aRequest,aLocation) { gPGTranslate.enableTranslate(aLocation.asciiSpec); },
if (this.currentHandler != null) { this.currentHandler.menuCommander.detach(); this.currentHandler = null;
if (this.currentMenuCommander != null) { this.currentMenuCommander.detach(); this.currentMenuCommander = null;
GM_BrowserUI.onLocationChange = function(a,b,c) { GM_log("> GM_BrowserUI.onLocationChange"); if (this.currentHandler != null) { this.currentHandler.menuCommander.detach(); this.currentHandler = null; } this.currentHandler = this.getHandler(this.tabBrowser.selectedBrowser. ...
this.currentHandler = this.getHandler(this.tabBrowser.selectedBrowser.
var menuCommander = this.getCommander(this.tabBrowser.selectedBrowser.
GM_BrowserUI.onLocationChange = function(a,b,c) { GM_log("> GM_BrowserUI.onLocationChange"); if (this.currentHandler != null) { this.currentHandler.menuCommander.detach(); this.currentHandler = null; } this.currentHandler = this.getHandler(this.tabBrowser.selectedBrowser. ...
if (!this.currentHandler) { GM_log("* no handler registered for this content doc, exiting")
if (!menuCommander) { GM_log("* no commander found for this document - it must be new.");
GM_BrowserUI.onLocationChange = function(a,b,c) { GM_log("> GM_BrowserUI.onLocationChange"); if (this.currentHandler != null) { this.currentHandler.menuCommander.detach(); this.currentHandler = null; } this.currentHandler = this.getHandler(this.tabBrowser.selectedBrowser. ...
this.currentHandler.menuCommander.attach();
this.currentMenuCommander = menuCommander; this.currentMenuCommander.attach();
GM_BrowserUI.onLocationChange = function(a,b,c) { GM_log("> GM_BrowserUI.onLocationChange"); if (this.currentHandler != null) { this.currentHandler.menuCommander.detach(); this.currentHandler = null; } this.currentHandler = this.getHandler(this.tabBrowser.selectedBrowser. ...
e.preventDefault(); e.stopPropagation();
hop_stop_propagation( e );
cursor.onmousedown = function( e ) { hop_add_event_listener( document, "mousemove", mousemove, true ); hop_add_event_listener( document, "mouseup", delmousemove, true ); hop_add_event_listener( document, "onblur", delmousemove, true ); e.preventDefault(); e.stopPropagation(); }
e.preventDefault(); e.stopPropagation();
cursor.onmousedown = function( e ) { document.addEventListener( "mousemove", mousemove, true ); document.addEventListener( "mouseup", delmousemove, true ); document.addEventListener( "onblur", delmousemove, true ); }
if( event == undefined ) event = window.event;
win.el_resize_left.onmousedown = function( event ) { hop_iwindow_resize( event, win, false, false ); };
cursor.onmousedown = function( e ) {
var onmousedown = function( e ) {
cursor.onmousedown = function( e ) { hop_add_event_listener( doc, "mousemove", mousemove, true ); hop_add_event_listener( doc, "mouseup", delmousemove, true ); hop_add_event_listener( doc, "onblur", delmousemove, true ); }
if( event == undefined ) event = window.event;
document.onmousemove = function( event ) { var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); }
cursor.onmouseout = function( e ) {
var onmouseout = function( e ) {
cursor.onmouseout = function( e ) { div.className = "cursoroff"; };
cursor.onmouseover = function( e ) {
var onmouseover = function( e ) {
cursor.onmouseover = function( e ) { div.className = "cursoron"; };
if( win.onresize ) win.onresize();
document.onmouseup = function( event ) { document.onmousemove = false; }
if( event == undefined ) event = window.event;
document.onmouseup = function( event ) { if( event == undefined ) event = window.event; win.el_body.style.display = "block"; document.onmousemove = false; /* user event */ if( win.onresize ) win.onresize(); }
document.onmousemove = false;
hop_remove_event_listener( document, "mousemove", mousemove );
document.onmouseup = function( event ) { if( event == undefined ) event = window.event; win.el_body.style.display = "block"; document.onmousemove = false; /* user event */ if( win.onresize ) win.onresize(); }
if( event == undefined ) event = window.event;
document.onmouseup = function( event ) { win.el_body.style.display = "block"; document.onmousemove = false; /* user event */ if( win.onresize ) win.onresize(); }
if(this.element.value.length>=this.options.min_chars) {
if(this.getEntry().length>=this.options.min_chars) {
onObserverEvent: function() { this.changed = false; if(this.element.value.length>=this.options.min_chars) { this.startIndicator(); this.options.parameters = this.options.callback ? this.options.callback(this.element, Form.Element.getValue(this.element)) : Form.Element.serialize(this...
this.options.parameters = this.options.callback ? this.options.callback(this.element, Form.Element.getValue(this.element)) : Form.Element.serialize(this.element); new Ajax.Request(this.url, this.options);
this.getUpdatedChoices();
onObserverEvent: function() { this.changed = false; if(this.element.value.length>=this.options.min_chars) { this.startIndicator(); this.options.parameters = this.options.callback ? this.options.callback(this.element, Form.Element.getValue(this.element)) : Form.Element.serialize(this...
if(this.getEntry().length>=this.options.min_chars) {
if(this.getToken().length>=this.options.minChars) {
onObserverEvent: function() { this.changed = false; if(this.getEntry().length>=this.options.min_chars) { this.startIndicator(); this.getUpdatedChoices(); } else { this.active = false; this.hide(); } },
notshown = GXml.value(x.getElementsByTagName('notshown')[0])
var notshown = GXml.value(x.getElementsByTagName('notshown')[0])
r.onreadystatechange = function(){ if (r.readyState ==4) { x = r.responseXML newhtml = GXml.value(x.getElementsByTagName('newhtml')[0]) notshown = GXml.value(x.getElementsByTagName('notshown')[0]) markers = x.getElementsByTagName('result'); for (m=0; m<m...
if (xmlHttp.readyState == 4) { callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter); }
if (xmlHttp.readyState == 4) { callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter);
xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter); } }
}
xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter); } }
if (req.status == 200) {
if (req.status == 200 || req.status == undefined) {
req.onreadystatechange = function() { if (req.readyState == 4) if (req.status == 200) { var o = getObject(layer_name); o.innerHTML = req.responseText; boundPopup(layer_name); addPopup(layer_name, properties); captureMouseEvent(popupMove); show(layer_name); } }
if (xmlHttp.readyState == 4) callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter)
if (xmlHttp.readyState == 4) { callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter); }
xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter) }
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)
r.onreadystatechange = function(){ if (r.readyState ==4) { x = r.responseXML markers = x.getElementsByTagName('result'); for (m=0; m<marker.length; m++) { map.removeOverlay(marker[m]) } marker = [] for (m=0; m<markers.length; m+...
if (update && p.flat) { if (typeof p.flatCallback == "function") p.flatCallback(cal); else alert("No flatCallback given -- doing nothing."); return false; }
function onSelect(cal) { var p = cal.params; var update = (cal.dateClicked || p.electric); if (update && p.flat) { if (typeof p.flatCallback == "function") p.flatCallback(cal); else alert("No flatCallback given -- doing nothing."); return false; } if (update && p.inputField) { p.inputField.value = c...
if (update && typeof p.onUpdate == "function") p.onUpdate(cal);
function onSelect(cal) { var p = cal.params; var update = (cal.dateClicked || p.electric); if (update && p.flat) { if (typeof p.flatCallback == "function") p.flatCallback(cal); else alert("No flatCallback given -- doing nothing."); return false; } if (update && p.inputField) { p.inputField.value = c...
suiteFrame = new SeleniumFrame(getSuiteFrame());
suiteFrame = new HtmlTestSuiteFrame(getSuiteFrame());
function onSeleniumLoad() { suiteFrame = new SeleniumFrame(getSuiteFrame()); testFrame = new HtmlTestFrame(getTestFrame()); htmlTestRunner = new HtmlTestRunner();}
runOptions = new RunOptions();
function onSeleniumLoad() { runOptions = new RunOptions(); suiteFrame = new SeleniumFrame(getSuiteFrame()); testFrame = new HtmlTestFrame(getTestFrame()); htmlTestRunner = new HtmlTestRunner();}
var hrs = this.date.getHours(); var mins = this.date.getMinutes(); var pm = (hrs > 12); if (pm && t12) hrs -= 12; H.firstChild.data = (hrs < 10) ? ("0" + hrs) : hrs; M.firstChild.data = (mins < 10) ? ("0" + mins) : mins; if (t12) AP.firstChild.data = pm ? "pm" : "am";
var pm, hrs = this.date.getHours(), mins = this.date.getMinutes(); if (t12) { pm = (hrs >= 12); if (pm) hrs -= 12; if (hrs == 0) hrs = 12; AP.innerHTML = pm ? "pm" : "am"; } H.innerHTML = (hrs < 10) ? ("0" + hrs) : hrs; M.innerHTML = (mins < 10) ? ("0" + mins) : mins;
cal.onSetTime = function() { var hrs = this.date.getHours(); var mins = this.date.getMinutes(); var pm = (hrs > 12); if (pm && t12) hrs -= 12; H.firstChild.data = (hrs < 10) ? ("0" + hrs) : hrs; M.firstChild.data = (mins < 10) ? ("0" + mins) : mins; if (t12) AP.firstChild.data = pm ? "pm" : ...
var event = Ajax.Request.Events[this.transport.readyState]; (this.options['on' + event] || Ajax.emptyFunction)(this.transport); }
var readyState = this.transport.readyState; if (readyState != 1) this.respondToReadyState(this.transport.readyState); },
onStateChange: function() { var event = Ajax.Request.Events[this.transport.readyState]; (this.options['on' + event] || Ajax.emptyFunction)(this.transport); }
parameters: this.options.callback(this.form, this.form.value.value),
parameters: this.options.callback(this.form, this.editField.value),
onSubmit: function() { this.saving = true; new Ajax.Updater( { success: this.element, // don't update on failure (this could be an option) failure: null }, this.url, { parameters: this.options.callback(this.form, this.form.value.value), onComplete: this.o...
this.saving = true;
var form = this.form; var value = this.editField.value; this.onLoading();
onSubmit: function() { this.saving = true; new Ajax.Updater( { success: this.element, // don't update on failure (this could be an option) failure: null }, this.url, Object.extend({ parameters: this.options.callback(this.form, this.editField.value), onCom...
parameters: this.options.callback(this.form, this.editField.value),
parameters: this.options.callback(form, value),
onSubmit: function() { this.saving = true; new Ajax.Updater( { success: this.element, // don't update on failure (this could be an option) failure: null }, this.url, Object.extend({ parameters: this.options.callback(this.form, this.editField.value), onCom...
this.onLoading();
onSubmit: function() { this.saving = true; new Ajax.Updater( { success: this.element, // don't update on failure (this could be an option) failure: null }, this.url, Object.extend({ parameters: this.options.callback(this.form, this.editField.value), onCom...
if (arguments.length > 1) { Event.stop(arguments[0]); }
onSubmit: function() { this.saving = true; new Ajax.Updater( { success: this.element, // don't update on failure (this could be an option) failure: null }, this.url, Object.extend({ parameters: this.options.callback(this.form, this.editField.value), onCom...
menuText = "Translate " + "\"" + selectedText + "\"";
menuText = gPGTranslateBundle.getString("context.menu.prefix") + " " + "\"" + selectedText + "\"";
function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + ... if (s...
alert(languagePairs[lang].length);
function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + .....
alert("for ok");
function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + .....
alert(languagePair);
function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + .....
alert(menuItemLabel);
function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + .....
alert(menuItemTooltiptext);
function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + .....
alert(menuItemOncommand);
function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + .....
var lang = 2;
function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + .....
var menuPopupElement = document.createElement("menupopup"); alert(languagePairs[lang].length); for(var i = 1; i < languagePairs[lang].length ; i++)
/* var menuPopupElement = document.createElement("menupopup"); alert(languagePairs[locale].length); for(var i = 1; i < languagePairs[local].length ; i++)
function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + .....
var languagePair = languagePairs[lang][i] + "_" + languagePairs[lang][0];
var languagePair = languagePairs[locale][i] + "_" + languagePairs[locale][0];
function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + .....
item = document.getElementById("translate-context"); sep = document.getElementById("translateSeparator");
function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + .....
document.getElementById("translateSeparator");.appendChild(menuItemElement);
function onTranslatePopup(){ // Get the selected text var focusedWindow = document.commandDispatcher.focusedWindow; var selection = focusedWindow.__proto__.getSelection.call(focusedWindow); // if the selected text is blank then don't display the context menu, otherwise, display the first 14 characters + .....
this.defaultWheelDown();
this.defaultWheelDown(e);
onWheelEvent: function(e){ // first determine whether or not the wheeling was inside the map var inMap = false; var elem = OpenLayers.Event.element(e); while(elem != null) { if (this.map && elem == this.map.div) { inMap = true; break; ...
this.defaultWheelUp();
this.defaultWheelUp(e);
onWheelEvent: function(e){ // first determine whether or not the wheeling was inside the map var inMap = false; var elem = OpenLayers.Event.element(e); while(elem != null) { if (this.map && elem == this.map.div) { inMap = true; break; ...
return originalOpen(newUrl, two);
return originalOpen(newUrl, windowName, windowFeatures, replaceFlag);
windowToModify.open = function(url, windowName, windowFeatures, replaceFlag) { if (url.startsWith("http://") || url.startsWith("https://") || url.startsWith("/")) { return originalOpen(url, windowName, windowFeatures, replaceFlag); } // Reduce the current path to the directory ...
NewWindow('/cgi-bin/getcurrentepg2?ref='+xy, 'EPG', '600', '700', 'yes');
NewWindow('/getcurrentepg2?ref='+xy, 'EPG', '600', '700', 'yes');
function openEPG(xy){ NewWindow('/cgi-bin/getcurrentepg2?ref='+xy, 'EPG', '600', '700', 'yes');}
if (xy == undefined) xy = "";
function openEPG(xy){ NewWindow('/getcurrentepg2?ref='+xy, 'EPG', screen.width, screen.height, 'yes');}
currentDocument = null;
function openLocation(target, onloadCallback) { var el = new SelfRemovingLoadListener(onloadCallback); addLoadListener(getIframe(), el.invoke); getIframe().src = target;}
"SeleniumLog.html", "SeleniumLog",
getDocumentBase(document) + "SeleniumLog.html", "SeleniumLog",
openLogWindow: function() { this.logWindow = window.open( "SeleniumLog.html", "SeleniumLog", "width=600,height=250,bottom=0,right=0,status,scrollbars,resizable" ); return this.logWindow; },
if (browserVersion.appearsToBeBrokenInitialIE6) { var pendingMessage = new LogMessage("warn", "You appear to be running an unpatched IE 6, which is not stable and can crash due to memory problems. We recommend you run Windows update to install a more stable version of IE."); this.pendingMessages.push(pendingMessage); ...
openLogWindow: function() { this.logWindow = window.open( getDocumentBase(document) + "SeleniumLog.html", "SeleniumLog", "width=600,height=1000,bottom=0,right=0,status,scrollbars,resizable" ); this.logWindow.moveTo(window.screenX + 1210, window.screenY + window.outerHeight...
NewWindow('/cgi-bin/getMultiEPG?ref='+xy, 'MultiEPG', '1000', '800', 'yes');
NewWindow('/getMultiEPG?ref='+xy, 'MultiEPG', screen.width, screen.height, 'yes');
function openMultiEPG(xy){ NewWindow('/cgi-bin/getMultiEPG?ref='+xy, 'MultiEPG', '1000', '800', 'yes');}
dojo.debug("closed popup.");
function openPopup(url, width, height, formid, action, loadfunc) { closePopup(); var objOverlay = document.getElementById("dialogoverlay"); if(!objOverlay) { var objBody = document.getElementsByTagName("body").item(0); objOverlay = document.createElement("div"); objOverlay.setAttribute('id','dialogoverlay'); objOve...
dojo.debug("making corners.");
function openPopup(url, width, height, formid, action, loadfunc) { closePopup(); var objOverlay = document.getElementById("dialogoverlay"); if(!objOverlay) { var objBody = document.getElementsByTagName("body").item(0); objOverlay = document.createElement("div"); objOverlay.setAttribute('id','dialogoverlay'); objOve...
if (tinyMCE.isMSIE)
if (tinyMCE.isIE)
openWindow : function(template, args) { var html, width, height, x, y, resizable, scrollbars, url; args['mce_template_file'] = template['file']; args['mce_width'] = template['width']; args['mce_height'] = template['height']; tinyMCE.windowArgs = args; html = template['html']; if (!(width = parseInt(template['wi...
if ((tinyMCE.isMSIE && !tinyMCE.isOpera) && resizable != 'yes' && tinyMCE.settings["dialog_type"] == "modal") {
if ((tinyMCE.isRealIE) && resizable != 'yes' && tinyMCE.settings["dialog_type"] == "modal") {
openWindow : function(template, args) { var html, width, height, x, y, resizable, scrollbars, url; args['mce_template_file'] = template['file']; args['mce_width'] = template['width']; args['mce_height'] = template['height']; tinyMCE.windowArgs = args; html = template['html']; if (!(width = parseInt(template['wi...
log(ntype + ": " + nmessage);
function oper_notice(ntype,nmessage) { for(thisoper in Clients) { var oper=Clients[thisoper]; if ((oper.mode&USERMODE_OPER) && !oper.parent) oper.rawout(":" + servername + " NOTICE " + oper.nick + " :*** " + ntype + " -- " + nmessage); }}