rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if(/MSIE/.test(navigator.userAgent))
if(/MSIE/.test(navigator.userAgent) && !window.opera)
Element.setOpacity = function(element, value){ element= $(element); if (value == 1){ Element.setStyle(element, { opacity: (/Gecko/.test(navigator.userAgent) && !/Konqueror|Safari|KHTML/.test(navigator.userAgent)) ? 0.999999 : null }); if(/MSIE/.test(navigator.userAgent)) Element.setStyle(...
if (value == 1){ Element.setStyle(element, {opacity: 0.999999});
if (value == 1){ Element.setStyle(element, { opacity: (/Gecko/.test(navigator.userAgent) && !/Konqueror|Safari|KHTML/.test(navigator.userAgent)) ? 0.999999 : null });
Element.setOpacity = function(element, value){ element= $(element); if (value == 1){ Element.setStyle(element, {opacity: 0.999999}); if(/MSIE/.test(navigator.userAgent)) Element.setStyle(element, {filter: Element.getStyle(element,'filter').replace(/alpha\([^\)]*\)/gi,'')}); } else { if(valu...
this.options = {
this.options = Object.extend({
setOptions: function(options) { this.options = { transition: Effect.Transitions.sinoidal, duration: 1.0, // seconds fps: 25.0, // max. 100fps sync: false, // true for combining from: 0.0, to: 1.0 }.extend(options || {}); },
}.extend(options || {});
}, options || {});
setOptions: function(options) { this.options = { transition: Effect.Transitions.sinoidal, duration: 1.0, // seconds fps: 25.0, // max. 100fps sync: false, // true for combining from: 0.0, to: 1.0 }.extend(options || {}); },
contentType: 'application/x-www-form-urlencoded',
setOptions: function(options) { this.options = { method: 'post', asynchronous: true, parameters: '' } Object.extend(this.options, options || {}); },
to: 1.0
to: 1.0, delay: 0.0, queue: 'parallel'
setOptions: function(options) { this.options = Object.extend({ transition: Effect.Transitions.sinoidal, duration: 1.0, // seconds fps: 25.0, // max. 100fps sync: false, // true for combining from: 0.0, to: 1.0 }, options || {}); },
if (option.test('^on[A-Z]') && $type(this.options[option]) == 'function') this.addEvent(option, this.options[option]);
if (($type(this.options[option]) == 'function') && option.test('^on[A-Z]')) this.addEvent(option, this.options[option]);
setOptions: function(defaults, options){ this.options = Object.extend(defaults, options); if (this.addEvent){ for (var option in this.options){ if (option.test('^on[A-Z]') && $type(this.options[option]) == 'function') this.addEvent(option, this.options[option]); } } return this; }
partial_search: true, partial_chars: 2, ignore_case: true, full_search: false,
partialSearch: true, partialChars: 2, ignoreCase: true, fullSearch: false,
setOptions: function(options) { this.options = Object.extend({ choices: 10, partial_search: true, partial_chars: 2, ignore_case: true, full_search: false, selector: function(instance) { var ret = new Array(); // Beginning matches var partial = new Array(); // Ins...
var ret = new Array(); var partial = new Array(); var entry = instance.getEntry();
var ret = []; var partial = []; var entry = instance.getToken();
setOptions: function(options) { this.options = Object.extend({ choices: 10, partial_search: true, partial_chars: 2, ignore_case: true, full_search: false, selector: function(instance) { var ret = new Array(); // Beginning matches var partial = new Array(); // Ins...
var found_pos = instance.options.ignore_case ?
var foundPos = instance.options.ignoreCase ?
setOptions: function(options) { this.options = Object.extend({ choices: 10, partial_search: true, partial_chars: 2, ignore_case: true, full_search: false, selector: function(instance) { var ret = new Array(); // Beginning matches var partial = new Array(); // Ins...
while (found_pos != -1) { if (found_pos == 0 && elem.length != entry.length) {
while (foundPos != -1) { if (foundPos == 0 && elem.length != entry.length) {
setOptions: function(options) { this.options = Object.extend({ choices: 10, partial_search: true, partial_chars: 2, ignore_case: true, full_search: false, selector: function(instance) { var ret = new Array(); // Beginning matches var partial = new Array(); // Ins...
} else if (entry.length >= instance.options.partial_chars && instance.options.partial_search && found_pos != -1) { if (instance.options.full_search || /\s/.test(elem.substr(found_pos-1,1))) { partial.push("<li>" + elem.substr(0, found_pos) + "<strong>" + elem.substr(found_pos, entry.length) + "</strong>" + elem.substr(...
} else if (entry.length >= instance.options.partialChars && instance.options.partialSearch && foundPos != -1) { if (instance.options.fullSearch || /\s/.test(elem.substr(foundPos-1,1))) { partial.push("<li>" + elem.substr(0, foundPos) + "<strong>" + elem.substr(foundPos, entry.length) + "</strong>" + elem.substr( foundP...
setOptions: function(options) { this.options = Object.extend({ choices: 10, partial_search: true, partial_chars: 2, ignore_case: true, full_search: false, selector: function(instance) { var ret = new Array(); // Beginning matches var partial = new Array(); // Ins...
found_pos = instance.options.ignore_case ? elem.toLowerCase().indexOf(entry.toLowerCase(), found_pos + 1) : elem.indexOf(entry, found_pos + 1);
foundPos = instance.options.ignoreCase ? elem.toLowerCase().indexOf(entry.toLowerCase(), foundPos + 1) : elem.indexOf(entry, foundPos + 1);
setOptions: function(options) { this.options = Object.extend({ choices: 10, partial_search: true, partial_chars: 2, ignore_case: true, full_search: false, selector: function(instance) { var ret = new Array(); // Beginning matches var partial = new Array(); // Ins...
}.extend(options || {});
} Object.extend(this.options, options || {});
setOptions: function(options) { this.options = { method: 'post', asynchronous: true, parameters: '' }.extend(options || {}); },
this.setParentBottomOffset = function(poy) { this.poy = poy; };
this.setParentBottomOffset = function(poy) { this.poy = poy; return this;};
this.setParentBottomOffset = function(poy) { this.poy = poy; };
this.setParentRightOffset = function(pox) { this.pox = pox; };
this.setParentRightOffset = function(pox) { this.pox = pox; return this;};
this.setParentRightOffset = function(pox) { this.pox = pox; };
var el = false;
setProperty: function(property, value){ var el = false; switch (property){ case 'class': this.className = value; break; case 'style': this.setStyles(value); break; case 'name': if (window.ie6){ var el = $(document.createElement('<'+this.getTag()+' name="'+value+'" />')); $each(this.attributes, function(a...
break; };
return el; }
setProperty: function(property, value){ var el = false; switch (property){ case 'class': this.className = value; break; case 'style': this.setStyles(value); break; case 'name': if (window.ie6){ var el = $(document.createElement('<'+this.getTag()+' name="'+value+'" />')); $each(this.attributes, function(a...
return el || this;
return this;
setProperty: function(property, value){ var el = false; switch (property){ case 'class': this.className = value; break; case 'style': this.setStyles(value); break; case 'name': if (window.ie6){ var el = $(document.createElement('<'+this.getTag()+' name="'+value+'" />')); $each(this.attributes, function(a...
requestHeaders.push('Connection', 'close',
requestHeaders.push(
setRequestHeaders: function() { var requestHeaders = ['X-Requested-With', 'XMLHttpRequest', 'X-Prototype-Version', Prototype.Version]; if (this.options.method == 'post') requestHeaders.push('Connection', 'close', 'Content-type', 'application/x-www-form-urlencoded'); if (this.options.requ...
this.transport.setRequestHeader(requestHeader[i], requestHeader[i+1]);
this.transport.setRequestHeader(requestHeaders[i], requestHeaders[i+1]);
setRequestHeaders: function() { var requestHeaders = ['X-Requested-With', 'XMLHttpRequest', 'X-Prototype-Version', Prototype.Version]; if (this.options.method == 'post') requestHeaders.push('Connection', 'close', 'Content-type', 'application/x-www-form-urlencoded'); if (this.options.requ...
requestHeaders.push('Content-type', 'application/x-www-form-urlencoded');
requestHeaders.push('Content-type', this.options.contentType);
setRequestHeaders: function() { var requestHeaders = ['X-Requested-With', 'XMLHttpRequest', 'X-Prototype-Version', Prototype.Version, 'Accept', 'text/javascript, text/html, application/xml, text/xml, */*']; if (this.options.method == 'post') { requestHeaders.push('Content-type', 'ap...
'X-Prototype-Version', Prototype.Version];
'X-Prototype-Version', Prototype.Version, 'Accept', 'text/javascript, text/html, application/xml, text/xml, */*'];
setRequestHeaders: function() { var requestHeaders = ['X-Requested-With', 'XMLHttpRequest', 'X-Prototype-Version', Prototype.Version]; if (this.options.method == 'post') { requestHeaders.push('Content-type', 'application/x-www-form-urlencoded'); /* Force "Connection: close" for Mozil...
requestHeaders.push('Content-type', 'application/x-www-form-urlencoded');
requestHeaders.push('Content-type', this.options.contentType);
setRequestHeaders: function() { var requestHeaders = ['X-Requested-With', 'XMLHttpRequest', 'X-Prototype-Version', Prototype.Version]; if (this.options.method == 'post') { requestHeaders.push('Content-type', 'application/x-www-form-urlencoded'); /* Force "Connection: close" for Mozil...
tableContents = suiteTable.ownerDocument.createTextNode(getTestFrame().contentWindow.document.body.innerHTML);
tableContents = suiteTable.ownerDocument.createTextNode(getIframeDocument(getTestFrame()).body.innerHTML);
function setResultsData(suiteTable, row) { // Create a text node of the test table tableContents = suiteTable.ownerDocument.createTextNode(getTestFrame().contentWindow.document.body.innerHTML); new_column = suiteTable.ownerDocument.createElement("td"); new_column.appendChild(tableContents); // Set the co...
Rico.Corner.round(this.div, options);
OpenLayers.Rico.Corner.round(this.div, options);
setRicoCorners:function(firstTime) { var corners = this.getCornersToRound(this.relativePosition); var options = {corners: corners, color: this.backgroundColor, bgColor: "transparent", blend: false}; if (firstTime) { ...
Rico.Corner.reRound(this.contentDiv, options);
OpenLayers.Rico.Corner.reRound(this.contentDiv, options);
setRicoCorners:function(firstTime) { var corners = this.getCornersToRound(this.relativePosition); var options = {corners: corners, color: this.backgroundColor, bgColor: "transparent", blend: false}; if (firstTime) { ...
runInterval = this.value;
var runModeOptions = document.forms['controlPanel'].runMode; for (var i = 0; i < runModeOptions.length; i++) { if (runModeOptions[i].checked) { runInterval = runModeOptions[i].value; break; } }
function setRunInterval() { runInterval = this.value;}
function setRunInterval(radio) { runInterval = radio.value;
function setRunInterval() { runInterval = this.value;
function setRunInterval(radio) { runInterval = radio.value; var stepButton = document.getElementById("stepNext"); if (runInterval == -1) { stepButton.style.visibility = ''; } else { stepButton.style.visibility = 'hidden'; }}
this.rgb = Rico.Color.HSBtoRGB(hsb.h, hsb.s, hsb.b);
this.rgb = OpenLayers.Rico.Color.HSBtoRGB(hsb.h, hsb.s, hsb.b);
setSaturation: function(s) { // get an HSB model, and set the new hue... var hsb = this.asHSB(); hsb.s = s; // convert back to RGB and set values... this.rgb = Rico.Color.HSBtoRGB(hsb.h, hsb.s, hsb.b); },
this.setRicoCorners(!this.rounded); this.rounded = true;
if (this.map) { this.setRicoCorners(!this.rounded); this.rounded = true; }
setSize:function(size) { OpenLayers.Popup.Anchored.prototype.setSize.apply(this, arguments); if (this.contentDiv != null) { var contentSize = this.size.clone(); contentSize.h -= (2 * OpenLayers.Popup.AnchoredBubble.CORNER_SIZE); contentSize.h -= (2 * this.padd...
this.div.style.width = this.size.w; this.div.style.height = this.size.h;
this.div.style.width = this.size.w + "px"; this.div.style.height = this.size.h + "px";
setSize:function(size) { if (size != undefined) { this.size = size; } if (this.div != null) { this.div.style.width = this.size.w; this.div.style.height = this.size.h; } },
if (this.contentDiv != null){ this.contentDiv.style.width = this.size.w + "px"; this.contentDiv.style.height = this.size.h + "px"; }
setSize:function(size) { if (size != undefined) { this.size = size; } if (this.div != null) { this.div.style.width = this.size.w + "px"; this.div.style.height = this.size.h + "px"; } },
span.style.height = this.translateToPx(range.end - range.start);
span.style.height = this.translateToPx(range.end - range.start + this.range.start);
setSpan: function(span, range) { if(this.isVertical()) { span.style.top = this.translateToPx(range.start); span.style.height = this.translateToPx(range.end - range.start); } else { span.style.left = this.translateToPx(range.start); span.style.width = this.translateToPx(range.end - range.star...
span.style.width = this.translateToPx(range.end - range.start);
span.style.width = this.translateToPx(range.end - range.start + this.range.start);
setSpan: function(span, range) { if(this.isVertical()) { span.style.top = this.translateToPx(range.start); span.style.height = this.translateToPx(range.end - range.start); } else { span.style.left = this.translateToPx(range.start); span.style.width = this.translateToPx(range.end - range.star...
for (name in style)
for (var name in style)
setStyle: function(element, style) { element = $(element); for (name in style) element.style[name.camelize()] = style[name]; },
else this.style[property.camelCase()] = value;
else this.style[property.camelCase()] = (value.push) ? value.rgbToHex() : value;
setStyle: function(property, value){ if (property == 'opacity') this.setOpacity(parseFloat(value)); else this.style[property.camelCase()] = value; return this; },
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b";
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"+ctrl('O')+ctrl('U')+ctrl('T')+ctrl('K')+ctrl('P');
function Settingsmenu(){ var width=18; this.items=new Array(); this.xpos=30; this.ypos=2; this.lpadding="\xb3"; this.rpadding="\xb3"; this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"; this.add(top_bar(width),undefined,undefined,"",""); this.add("|User Configuration","U",width); this.add("Minute |Bank","B",width); this.add(...
this.transforms = this.options.style.parseStyle().map(function(property){ var originalValue = this.element.getStyle(property[0]);
this.transforms = this.style.map(function(pair){ var property = pair[0].underscore().dasherize(), value = pair[1], unit = null; if(value.parseColor('#zzzzzz') != '#zzzzzz') { value = value.parseColor(); unit = 'color'; } else if(property == 'opacity') { value = parseFloat(value); if(/MSIE/.test(navigator.userAgent) &...
setup: function(){ function parseColor(color){ if(!color || ['rgba(0, 0, 0, 0)','transparent'].include(color)) color = '#ffffff'; color = color.parseColor(); return $R(0,2).map(function(i){ return parseInt( color.slice(i*2+1,i*2+3), 16 ) }); } this.transforms = this.options.style....
style: property[0], originalValue: property[1].unit=='color' ? parseColor(originalValue) : parseFloat(originalValue || 0), targetValue: property[1].unit=='color' ? parseColor(property[1].value) : property[1].value, unit: property[1].unit
style: property, originalValue: unit=='color' ? parseColor(originalValue) : parseFloat(originalValue || 0), targetValue: unit=='color' ? parseColor(value) : value, unit: unit
setup: function(){ function parseColor(color){ if(!color || ['rgba(0, 0, 0, 0)','transparent'].include(color)) color = '#ffffff'; color = color.parseColor(); return $R(0,2).map(function(i){ return parseInt( color.slice(i*2+1,i*2+3), 16 ) }); } this.transforms = this.options.style....
param_default("firstDay", 0);
param_default("dateText", null); param_default("firstDay", null);
Calendar.setup = function (params) { function param_default(pname, def) { if (typeof params[pname] == "undefined") { params[pname] = def; } }; param_default("inputField", null); param_default("displayArea", null); param_default("button", null); param_default("eventName", "click"); param_default("ifF...
if (!(params.flat || params.inputField || params.displayArea || params.button)) {
if (!(params.flat || params.multiple || params.inputField || params.displayArea || params.button)) {
Calendar.setup = function (params) { function param_default(pname, def) { if (typeof params[pname] == "undefined") { params[pname] = def; } }; param_default("inputField", null); param_default("displayArea", null); param_default("button", null); param_default("eventName", "click"); param_default("ifF...
if (update && p.flat) { if (typeof p.flatCallback == "function") p.flatCallback(cal); else alert("No flatCallback given -- doing nothing."); return false; }
Calendar.setup = function (params) { function param_default(pname, def) { if (typeof params[pname] == "undefined") { params[pname] = def; } }; param_default("inputField", null); param_default("displayArea", null); param_default("button", null); param_default("eventName", "click"); param_default("ifF...
if (update && typeof p.onUpdate == "function") p.onUpdate(cal);
Calendar.setup = function (params) { function param_default(pname, def) { if (typeof params[pname] == "undefined") { params[pname] = def; } }; param_default("inputField", null); param_default("displayArea", null); param_default("button", null); param_default("eventName", "click"); param_default("ifF...
cal.parseDate(dateEl.value || dateEl.innerHTML);
Calendar.setup = function (params) { function param_default(pname, def) { if (typeof params[pname] == "undefined") { params[pname] = def; } }; param_default("inputField", null); param_default("displayArea", null); param_default("button", null); param_default("eventName", "click"); param_default("ifF...
return cal;
Calendar.setup = function (params) { function param_default(pname, def) { if (typeof params[pname] == "undefined") { params[pname] = def; } }; param_default("inputField", null); param_default("displayArea", null); param_default("button", null); param_default("eventName", "click"); param_default("ifF...
return parseInt( ((!color || color=='transparent') ? '#ffffff' : color).parseColor().slice(i*2+1,i*2+3), 16 )
return parseInt( ((!color || ['rgba(0, 0, 0, 0)','transparent'].include(color)) ? '#ffffff' : color).parseColor().slice(i*2+1,i*2+3), 16 )
setup: function(){ function parseColor(color){ return $R(0,2).map(function(i){ return parseInt( ((!color || color=='transparent') ? '#ffffff' : color).parseColor().slice(i*2+1,i*2+3), 16 ) }); } this.transforms = this.options.style.split(';').map(function(style){ return style.par...
this.commands.push(new Command('assertNotText', 'test', 'regexp:ab[cd]'));
function setUp() { this.formats = new FormatCollection({}); this.commands = []; this.commands.push(new Command('assertTextPresent', 'hello')); this.commands.push(new Command('assertTextNotPresent', 'hello')); this.commands.push(new Command('storeTextPresent', 'test', 'abc')); this.commands.push(new Command('waitForText...
var inst = tinyMCE.instances[editor_id];
var inst = tinyMCE.instances[editor_id], i;
setupContent : function(editor_id) { var inst = tinyMCE.instances[editor_id]; var doc = inst.getDoc(); var head = doc.getElementsByTagName('head').item(0); var content = inst.startContent; // HTML values get XML encoded in strict mode if (tinyMCE.settings.strict_loading_mode) { content = content.replace(/&lt;/...
if (!tinyMCE.isMSIE && tinyMCE.getParam("setupcontent_reload", false) && doc.title != "blank_page") {
if (!tinyMCE.isIE && tinyMCE.getParam("setupcontent_reload", false) && doc.title != "blank_page") {
setupContent : function(editor_id) { var inst = tinyMCE.instances[editor_id]; var doc = inst.getDoc(); var head = doc.getElementsByTagName('head').item(0); var content = inst.startContent; // HTML values get XML encoded in strict mode if (tinyMCE.settings.strict_loading_mode) { content = content.replace(/&lt;/...
inst.getDoc().body.setAttribute('id', 'mceSpanFonts');
inst.getBody().setAttribute('id', 'mceSpanFonts');
setupContent : function(editor_id) { var inst = tinyMCE.instances[editor_id]; var doc = inst.getDoc(); var head = doc.getElementsByTagName('head').item(0); var content = inst.startContent; // HTML values get XML encoded in strict mode if (tinyMCE.settings.strict_loading_mode) { content = content.replace(/&lt;/...
if (!tinyMCE.isMSIE)
if (!tinyMCE.isIE)
setupContent : function(editor_id) { var inst = tinyMCE.instances[editor_id]; var doc = inst.getDoc(); var head = doc.getElementsByTagName('head').item(0); var content = inst.startContent; // HTML values get XML encoded in strict mode if (tinyMCE.settings.strict_loading_mode) { content = content.replace(/&lt;/...
if (tinyMCE.isMSIE) {
if (tinyMCE.isIE) {
setupContent : function(editor_id) { var inst = tinyMCE.instances[editor_id]; var doc = inst.getDoc(); var head = doc.getElementsByTagName('head').item(0); var content = inst.startContent; // HTML values get XML encoded in strict mode if (tinyMCE.settings.strict_loading_mode) { content = content.replace(/&lt;/...
if (!tinyMCE.isMSIE) {
if (!tinyMCE.isIE) {
setupContent : function(editor_id) { var inst = tinyMCE.instances[editor_id]; var doc = inst.getDoc(); var head = doc.getElementsByTagName('head').item(0); var content = inst.startContent; // HTML values get XML encoded in strict mode if (tinyMCE.settings.strict_loading_mode) { content = content.replace(/&lt;/...
else { content = tinyMCE.regexpReplace(content, "<strong", "<b", "gi"); content = tinyMCE.regexpReplace(content, "<em(/?)>", "<i$1>", "gi"); content = tinyMCE.regexpReplace(content, "<em ", "<i ", "gi"); content = tinyMCE.regexpReplace(content, "</strong>", "</b>", "gi"); content = tinyMCE.regexpReplace(content, "</em...
else
setupContent : function(editor_id) { var inst = tinyMCE.instances[editor_id]; var doc = inst.getDoc(); var head = doc.getElementsByTagName('head').item(0); var content = inst.startContent; // HTML values get XML encoded in strict mode if (tinyMCE.settings.strict_loading_mode) { content = content.replace(/&lt;/...
}
setupContent : function(editor_id) { var inst = tinyMCE.instances[editor_id]; var doc = inst.getDoc(); var head = doc.getElementsByTagName('head').item(0); var content = inst.startContent; // HTML values get XML encoded in strict mode if (tinyMCE.settings.strict_loading_mode) { content = content.replace(/&lt;/...
tinyMCE.selectedInstance = inst;
inst.select();
setupContent : function(editor_id) { var inst = tinyMCE.instances[editor_id]; var doc = inst.getDoc(); var head = doc.getElementsByTagName('head').item(0); var content = inst.startContent; // HTML values get XML encoded in strict mode if (tinyMCE.settings.strict_loading_mode) { content = content.replace(/&lt;/...
if (n.nodeType == 3 || n.nodeType == 8) { n.nodeValue = n.nodeValue.replace(new RegExp('\\smce_src=\"[^\"]*\"', 'gi'), ""); n.nodeValue = n.nodeValue.replace(new RegExp('\\smce_href=\"[^\"]*\"', 'gi'), ""); }
if (n.nodeType == 3 || n.nodeType == 8) n.nodeValue = n.nodeValue.replace(new RegExp('\\s(mce_src|mce_href)=\"[^\"]*\"', 'gi'), "");
setupContent : function(editor_id) { var inst = tinyMCE.instances[editor_id]; var doc = inst.getDoc(); var head = doc.getElementsByTagName('head').item(0); var content = inst.startContent; // HTML values get XML encoded in strict mode if (tinyMCE.settings.strict_loading_mode) { content = content.replace(/&lt;/...
for (var index = 0; index < sourceSelect.options.length; index++) { var sourceOption = sourceSelect.options[index];
for (var sourceIndex = 0, targetIndex = 0; sourceIndex < sourceSelect.options.length; sourceIndex++) { var sourceOption = sourceSelect.options[sourceIndex];
function setupFolderOptions(sourceSelect, targetSelect, selectedOptionValue, excludedOptionValue) { targetSelect.length = 0; for (var index = 0; index < sourceSelect.options.length; index++) { var sourceOption = sourceSelect.options[index]; if (typeof excludedOptionValue == "undefined" || excludedOp...
targetSelect.options[index] = new Option(sourceOption.text, sourceOption.value); targetSelect.options[index].className = sourceOption.className;
targetSelect.options[targetIndex] = new Option(sourceOption.text, sourceOption.value); targetSelect.options[targetIndex].className = sourceOption.className;
function setupFolderOptions(sourceSelect, targetSelect, selectedOptionValue, excludedOptionValue) { targetSelect.length = 0; for (var index = 0; index < sourceSelect.options.length; index++) { var sourceOption = sourceSelect.options[index]; if (typeof excludedOptionValue == "undefined" || excludedOp...
if (!(typeof selectedOptionValue == "undefined") && targetSelect.options[index].value == selectedOptionValue) { targetSelect.options[index].selected = true;
if (!(typeof selectedOptionValue == "undefined") && targetSelect.options[targetIndex].value == selectedOptionValue) { targetSelect.options[targetIndex].selected = true;
function setupFolderOptions(sourceSelect, targetSelect, selectedOptionValue, excludedOptionValue) { targetSelect.length = 0; for (var index = 0; index < sourceSelect.options.length; index++) { var sourceOption = sourceSelect.options[index]; if (typeof excludedOptionValue == "undefined" || excludedOp...
targetIndex++;
function setupFolderOptions(sourceSelect, targetSelect, selectedOptionValue, excludedOptionValue) { targetSelect.length = 0; for (var index = 0; index < sourceSelect.options.length; index++) { var sourceOption = sourceSelect.options[index]; if (typeof excludedOptionValue == "undefined" || excludedOp...
this.moveTo();
this.draw();
setUrl: function(newUrl) { this.url = newUrl; this.moveTo(); },
this.activeHandle = this.handles[handleIdx]; this.activeHandleIdx = handleIdx;
this.activeHandleIdx = handleIdx || 0; this.activeHandle = this.handles[this.activeHandleIdx];
setValue: function(sliderValue, handleIdx){ if(!this.active) { this.activeHandle = this.handles[handleIdx]; this.activeHandleIdx = handleIdx; this.updateStyles(); } handleIdx = handleIdx || this.activeHandleIdx || 0; if(this.initialized && this.restricted) { if((handleIdx>0) && (sli...
if(!this.event) this.updateFinished();
if(!this.dragging || !this.event) this.updateFinished();
setValue: function(sliderValue, handleIdx){ if(!this.active) { this.activeHandle = this.handles[handleIdx]; this.activeHandleIdx = handleIdx; this.updateStyles(); } handleIdx = handleIdx || this.activeHandleIdx || 0; if(this.initialized && this.restricted) { if((handleIdx>0) && (sli...
this.updateFinished();
if(!this.event) this.updateFinished();
setValue: function(sliderValue, handleIdx){ if(!this.active) { this.activeHandle = this.handles[handleIdx]; this.activeHandleIdx = handleIdx; this.updateStyles(); } handleIdx = handleIdx || this.activeHandleIdx || 0; if(this.initialized && this.restricted) { if((handleIdx>0) && (sli...
setTimeout("reload()", 100);
setTimeout("reload()", 1000);
function setVid(xy){ document.location = "/setVideo?position="+xy; setTimeout("reload()", 100);}
setVisibility: function(visible) {
setVisibility: function(visible, noEvent) {
setVisibility: function(visible) { if (visible != this.getVisibility()) { this.div.style.display = (visible) ? "block" : "none"; if (this.map != null) { if (visible) { var extent = this.map.getExtent(); if (extent != null) { ...
if (this.map != null) { if (visible) { var extent = this.map.getExtent(); if (extent != null) { this.moveTo(this.map.getExtent()); }
if ((visible) && (this.map != null)) { var extent = this.map.getExtent(); if (extent != null) { this.moveTo(this.map.getExtent());
setVisibility: function(visible) { if (visible != this.getVisibility()) { this.div.style.display = (visible) ? "block" : "none"; if (this.map != null) { if (visible) { var extent = this.map.getExtent(); if (extent != null) { ...
} if ((this.map != null) && ((noEvent == null) || (noEvent == false))) {
setVisibility: function(visible) { if (visible != this.getVisibility()) { this.div.style.display = (visible) ? "block" : "none"; if (this.map != null) { if (visible) { var extent = this.map.getExtent(); if (extent != null) { ...
setTimeout("reload()", 100);
setTimeout("reload()", 1000);
function setVol(xy){ document.location = "/setVolume?volume="+xy; setTimeout("reload()", 100);}
parent.update();
headerUpdate();
function setVol(xy){ document.location = "setVolume?volume="+xy; if (window.screen.width < 800) setTimeout("reload()", 1000); else parent.update();}
var s = document.forms[0].htmlSource;
var s = document.getElementById('htmlSource');
function setWrap(val) { var s = document.forms[0].htmlSource; s.wrap = val; if (tinyMCE.isGecko) { var v = s.value; var n = s.cloneNode(false); n.setAttribute("wrap", val); s.parentNode.replaceChild(n, s); n.value = v; }}
new Effect.MoveBy(element, 0, 20, { duration: 0.05, afterFinish: function(effect) {
element = $(element); var oldTop = element.style.top; var oldLeft = element.style.left; return new Effect.MoveBy(element, 0, 20, { duration: 0.05, afterFinishInternal: function(effect) {
Effect.Shake = function(element) { new Effect.MoveBy(element, 0, 20, { duration: 0.05, afterFinish: function(effect) { new Effect.MoveBy(effect.element, 0, -40, { duration: 0.1, afterFinish: function(effect) { new Effect.MoveBy(effect.element, 0, 40, { duration: 0.1, afterFinish: function(effect) { n...
{ duration: 0.1, afterFinish: function(effect) {
{ duration: 0.1, afterFinishInternal: function(effect) {
Effect.Shake = function(element) { new Effect.MoveBy(element, 0, 20, { duration: 0.05, afterFinish: function(effect) { new Effect.MoveBy(effect.element, 0, -40, { duration: 0.1, afterFinish: function(effect) { new Effect.MoveBy(effect.element, 0, 40, { duration: 0.1, afterFinish: function(effect) { n...
{ duration: 0.05, afterFinish: function(effect) {
{ duration: 0.05, afterFinishInternal: function(effect) { Element.undoPositioned(effect.element); effect.element.style.left = oldLeft; effect.element.style.top = oldTop;
Effect.Shake = function(element) { new Effect.MoveBy(element, 0, 20, { duration: 0.05, afterFinish: function(effect) { new Effect.MoveBy(effect.element, 0, -40, { duration: 0.1, afterFinish: function(effect) { new Effect.MoveBy(effect.element, 0, 40, { duration: 0.1, afterFinish: function(effect) { n...
theObj.style.left = x; theObj.style.top = y;
theObj.style.left = x+'px'; theObj.style.top = y+'px';
function shiftTo(obj, x, y) { var theObj = getObject(obj); if (isNav4) { theObj.moveTo(x,y); } else if (isNav5) { theObj.style.left = x; theObj.style.top = y; } else { theObj.style.pixelLeft = x; theObj.style.pixelTop = y; }}
else testFailed(_a + " should be " + _bv + ". Was " + _av);
else { testFailed(_a + " should be " + _bv + " (of type " + typeof _bv + "). Was " + _av + " (of type " + typeof _av + ")."); }
function shouldBe(_a, _b){ if (typeof _a != "string" || typeof _b != "string") debug("WARN: shouldBe() expects string arguments"); var exception; var _av; try { _av = eval(_a); } catch (e) { exception = e; } var _bv = eval(_b); if (exception) testFailed(_a + " should be " + _bv + ". Threw exceptio...
testFailed(_a + " should throw exception " + _e + ". Thre exception " + exception + ".");
testFailed(_a + " should throw exception " + _e + ". Threw exception " + exception + ".");
function shouldThrow(_a, _e){ var exception; var _av; try { _av = eval(_a); } catch (e) { exception = e; } var _ev; if (_e) _ev = eval(_e); if (exception) { if (typeof _e == "undefined" || exception == _ev) testPassed(_a + " threw exception " + exception + "."); else testFailed(_a ...
testFailed(_a + " should throw exception " + _e + ". Threw exception " + exception + ".");
testFailed(_a + " should throw exception " + _ev + ". Threw exception " + exception + ".");
function shouldThrow(_a, _e){ var exception; var _av; try { _av = eval(_a); } catch (e) { exception = e; } var _ev; if (_e) _ev = eval(_e); if (exception) { if (typeof _e == "undefined" || exception == _ev) testPassed(_a + " threw exception " + exception + "."); else testFailed(_a ...
'style="display:none;filter:progid:DXImageTransform.Microsoft.Alpha(apacity=0);" ' + 'src="javascript:;" frameborder="0" scrolling="no"></iframe>');
'style="display:none;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);" ' + 'src="javascript:false;" frameborder="0" scrolling="no"></iframe>');
show: function() { if(this.update.style.display=='none') this.options.onShow(this.element, this.update); if(!this.iefix && (navigator.appVersion.indexOf('MSIE')>0) && this.update.style.position=='absolute') { new Insertion.After(this.update, '<iframe id="' + this.update.id + '_iefix" '+ 'style...
Element.show(this.update); if(!this.iefix && (navigator.appVersion.indexOf('MSIE')>0)) { new Insertion.Before(this.update, '<iframe id="' + this.update.id + '_iefix" style="display:none;" src="javascript:false;" frameborder="0" scrolling="no"></iframe>');
if(this.update.style.display=='none') this.options.onShow(this.element, this.update); if(!this.iefix && (navigator.appVersion.indexOf('MSIE')>0) && this.update.style.position=='absolute') { new Insertion.After(this.update, '<iframe id="' + this.update.id + '_iefix" '+ 'style="display:none;filter:progid:DXImageTransform...
show: function() { Element.show(this.update); if(!this.iefix && (navigator.appVersion.indexOf('MSIE')>0)) { new Insertion.Before(this.update, '<iframe id="' + this.update.id + '_iefix" style="display:none;" src="javascript:false;" frameborder="0" scrolling="no"></iframe>'); this.iefix = $(this....
this.iefix.style.position = 'absolute'; this.iefix.style.zIndex = 1; this.update.style.zIndex = 2;
show: function() { Element.show(this.update); if(!this.iefix && (navigator.appVersion.indexOf('MSIE')>0)) { new Insertion.Before(this.update, '<iframe id="' + this.update.id + '_iefix" style="display:none;" src="javascript:false;" frameborder="0" scrolling="no"></iframe>'); this.iefix = $(this....
this.iefix.style.zIndex = 1; this.update.style.zIndex = 2;
show: function() { Element.show(this.update); if(!this.iefix && (navigator.appVersion.indexOf('MSIE')>0)) { new Insertion.Before(this.update, '<iframe id="' + this.update.id + '_iefix" style="display:none;" src="javascript:false;" frameborder="0" scrolling="no"></iframe>'); this.iefix = $(this....
collapse_link.innerHTML = 'Hide';
collapse_link.innerHTML = gettext('Hide');
show: function(fieldset_index) { var fs = document.getElementsByTagName('fieldset')[fieldset_index]; // Remove the class name that causes the "display: none". fs.className = fs.className.replace(CollapsedFieldsets.collapsed_re, ''); // Toggle the "Show" link to a "Hide" link var collapse_link = document.getElemen...
if(Droppables.isAffected(point, element, drop)) { if(drop.onHover) drop.onHover(element, drop.element, Position.overlap(drop.overlap, drop.element)); if(drop.greedy) { Droppables.activate(drop); throw $break; } }
if(Droppables.isAffected(point, element, drop)) affected.push(drop);
show: function(point, element) { if(!this.drops.length) return; if(this.last_active) this.deactivate(this.last_active); this.drops.each( function(drop) { if(Droppables.isAffected(point, element, drop)) { if(drop.onHover) drop.onHover(element, drop.element, Position.overlap(drop.over...
if(affected.length>0) { drop = Droppables.findDeepestChild(affected); Position.within(drop.element, point[0], point[1]); if(drop.onHover) drop.onHover(element, drop.element, Position.overlap(drop.overlap, drop.element)); Droppables.activate(drop); }
show: function(point, element) { if(!this.drops.length) return; if(this.last_active) this.deactivate(this.last_active); this.drops.each( function(drop) { if(Droppables.isAffected(point, element, drop)) { if(drop.onHover) drop.onHover(element, drop.element, Position.overlap(drop.over...
if(this.iefix) { Position.clone(this.update, this.iefix); this.iefix.style.zIndex = 1; this.update.style.zIndex = 2; Element.show(this.iefix); }
if(this.iefix) setTimeout(this.fixIEOverlapping.bind(this), 50);
show: function() { if(Element.getStyle(this.update, 'display')=='none') this.options.onShow(this.element, this.update); if(!this.iefix && (navigator.appVersion.indexOf('MSIE')>0) && (Element.getStyle(this.update, 'position')=='absolute')) { new Insertion.After(this.update, '<iframe id="' + this.upda...
if(this.include_scroll_offsets) Position.prepare();
Position.prepare();
show: 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(...
if(this.last_active) this.deactivate(this.last_active);
show: function(event, element) { if(!this.drops.length) return; var pX = Event.pointerX(event); var pY = Event.pointerY(event); Position.prepare(); var i = this.drops.length-1; do { var drop = this.drops[i]; if(this.isAffected(pX, pY, element, drop)) { if(drop.onHover) drop.o...
if(!this.drops) return;
if(!this.drops.length) return;
show: function(event, element) { if(!this.drops) return; var pX = Event.pointerX(event); var pY = Event.pointerY(event); Position.prepare(); var i = this.drops.length-1; do { var drop = this.drops[i]; if(this.isAffected(pX, pY, element, drop)) { if(drop.onHover) drop.onHover(...
var vp, width, height;
var vp, width, height, yo;
show : function(x, y) { var vp, width, height; if (this.html == "") return; var html = ''; html += '<a href="#"></a><table border="0" cellpadding="0" cellspacing="0">'; html += this.html; html += '</table>'; this.contextMenuDiv.innerHTML = html; // Get dimensions this.contextMenuDiv.style.display = "block";...
this.contextMenuDiv.style.left = (x > vp.width - width ? vp.width - width : x) + 'px'; this.contextMenuDiv.style.top = (y > vp.height - height ? vp.height - height : y) + 'px';
yo = tinyMCE.isMSIE5_0 ? document.body.scrollTop : self.pageYOffset; this.contextMenuDiv.style.left = (x > vp.left + vp.width - width ? vp.left + vp.width - width : x) + 'px'; this.contextMenuDiv.style.top = (y > vp.top + vp.height - height ? vp.top + vp.height - height : y) + 'px';
show : function(x, y) { var vp, width, height; if (this.html == "") return; var html = ''; html += '<a href="#"></a><table border="0" cellpadding="0" cellspacing="0">'; html += this.html; html += '</table>'; this.contextMenuDiv.innerHTML = html; // Get dimensions this.contextMenuDiv.style.display = "block";...
'style="display:none;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);" ' +
'style="display:none;position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);" ' +
show: function() { if(Element.getStyle(this.update, 'display')=='none') this.options.onShow(this.element, this.update); if(!this.iefix && (navigator.appVersion.indexOf('MSIE')>0) && (Element.getStyle(this.update, 'position')=='absolute')) { new Insertion.After(this.update, '<iframe id="' + this.upda...
if(!this.iefix && (navigator.appVersion.indexOf('MSIE')>0) && (Element.getStyle(this.update, 'position')=='absolute')) {
if(!this.iefix && (navigator.appVersion.indexOf('MSIE')>0) && (navigator.userAgent.indexOf('Opera')<0) && (Element.getStyle(this.update, 'position')=='absolute')) {
show: function() { if(Element.getStyle(this.update, 'display')=='none') this.options.onShow(this.element, this.update); if(!this.iefix && (navigator.appVersion.indexOf('MSIE')>0) && (Element.getStyle(this.update, 'position')=='absolute')) { new Insertion.After(this.update, '<iframe id="' + this.upda...
function show(s) { if (!s) return; s.style.display = "block";
HTMLElement.prototype.show = function() { this.style.display = 'block';
function show(s) { if (!s) return; s.style.display = "block";}
this.scrollbar.style.display = null;
this.scrollbar.style.removeProperty("display");
AppleScrollbar.prototype.show = function() { this._track.style.display = "block"; this.scrollbar.style.display = null; if (this.hidden) { this.hidden = false; this.refresh(); } }
if(!this.drops) return;
if(!this.drops.length) return;
show: function(event, element) { if(!this.drops) return; var pX = Event.pointerX(event); var pY = Event.pointerY(event); Position.prepare(); var i = this.drops.length-1; do { var drop = this.drops[i]; if(this.is_affected(pX, pY, element, drop)) { if(drop.onHover) drop.onH...
if(this.is_affected(pX, pY, element, drop)) {
if(this.isAffected(pX, pY, element, drop)) {
show: function(event, element) { if(!this.drops) return; var pX = Event.pointerX(event); var pY = Event.pointerY(event); Position.prepare(); var i = this.drops.length-1; do { var drop = this.drops[i]; if(this.is_affected(pX, pY, element, drop)) { if(drop.onHover) drop.onH...
if(this.last_active) this.deactivate(this.last_active);
show: function(event, element) { if(!this.drops) return; var pX = Event.pointerX(event); var pY = Event.pointerY(event); Position.prepare(); var i = this.drops.length-1; do { var drop = this.drops[i]; if(this.is_affected(pX, pY, element, drop)) { if(drop.onHover) drop.onH...