rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
return tinyMCE.getButtonHTML(cn, 'lang_layer_insertlayer_desc', '{$pluginurl}/images/insert_layer.gif', 'mceInsertLayer', true);
return tinyMCE.getButtonHTML(cn, 'lang_layer_insertlayer_desc', '{$pluginurl}/images/insertlayer.gif', 'mceInsertLayer', true);
getControlHTML : function(cn) { switch (cn) { case "moveforward": return tinyMCE.getButtonHTML(cn, 'lang_layer_forward_desc', '{$pluginurl}/images/forward.gif', 'mceMoveForward', true); case "movebackward": return tinyMCE.getButtonHTML(cn, 'lang_layer_backward_desc', '{$pluginurl}/images/backward.gif', 'mce...
c = c.substring(1, c.length);
c = c.substr(1, c.length);
function getCookie(name) { if (name == null) return null; var nameEQ = name + "="; var ca = document.cookie.split(';'); for (var i=0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') c = c.substring(1, c.length); if (c.indexOf(nameEQ) == 0) re...
return decodeURIComponent(c.substring(nameEQ.length, c.length));
return decodeURIComponent(c.substr(nameEQ.length, c.length));
function getCookie(name) { if (name == null) return null; var nameEQ = name + "="; var ca = document.cookie.split(';'); for (var i=0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') c = c.substring(1, c.length); if (c.indexOf(nameEQ) == 0) re...
var prefix = name + &#34;=&#34;; var begin = dc.indexOf(&#34;; &#34; + prefix);
var prefix = name + "="; var begin = dc.indexOf("; " + prefix);
function getCookie(name) { var dc = document.cookie; var prefix = name + &#34;=&#34;; var begin = dc.indexOf(&#34;; &#34; + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else { begin += 2; } var end = document.cookie.indexOf(&#34;;&#34;, begin); if (end == -1) {...
var end = document.cookie.indexOf(&#34;;&#34;, begin);
var end = document.cookie.indexOf(";", begin);
function getCookie(name) { var dc = document.cookie; var prefix = name + &#34;=&#34;; var begin = dc.indexOf(&#34;; &#34; + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else { begin += 2; } var end = document.cookie.indexOf(&#34;;&#34;, begin); if (end == -1) {...
return unescape(dc.substring(begin + prefix.length, end)).split("+").join(" ");
return unescape(decodeURI(dc.substring(begin + prefix.length, end))).split("+").join(" ");
function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else { begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1) { end = dc.length; } ...
c = c.substring(1, c.length);
c = c.substr(1, c.length);
function getCookiesStartingWith(name) { var cookies = new Array(); var nameEQ; var ca = document.cookie.split(';'); var c = null; var nvArray = null; for (var i=0; i < ca.length; i++) { c = ca[i]; // skip if expires, path if (c.indexOf("expires=") == 0 || c.indexOf("path=") == 0) ...
eval("try {var csses = tinyMCE.isMSIE ? doc.styleSheets(" + x + ").rules : styles[" + x + "].cssRules;} catch(e) {}");
eval("try {var csses = tinyMCE.isIE ? doc.styleSheets(" + x + ").rules : styles[" + x + "].cssRules;} catch(e) {}");
getCSSClasses : function(editor_id, doc) { var output = new Array(); // Is cached, use that if (typeof(tinyMCE.cssClasses) != "undefined") return tinyMCE.cssClasses; if (typeof(editor_id) == "undefined" && typeof(doc) == "undefined") { var instance; for (var instanceName in tinyMCE.instances) { instance =...
if (!this.currentTestSuite) { this.currentTestSuite = new HtmlTestSuite(this.getDocument()); }
getCurrentTestSuite: function() { return this.currentTestSuite; }
function getDateTime(date, format) { format = tinyMCE.regexpReplace(format, "%D", "%m/%d/%y"); format = tinyMCE.regexpReplace(format, "%r", "%I:%M:%S %p"); format = tinyMCE.regexpReplace(format, "%Y", "" + date.getFullYear()); format = tinyMCE.regexpReplace(format, "%y", "" + date.getYear()); format = tinyMCE.regexpRep...
function getDateTime(d, fmt) { fmt = fmt.replace("%D", "%m/%d/%y"); fmt = fmt.replace("%r", "%I:%M:%S %p"); fmt = fmt.replace("%Y", "" + d.getFullYear()); fmt = fmt.replace("%y", "" + d.getYear()); fmt = fmt.replace("%m", addZeros(d.getMonth()+1, 2)); fmt = fmt.replace("%d", addZeros(d.getDate(), 2)); fmt = fmt.replace...
function getDateTime(date, format) { format = tinyMCE.regexpReplace(format, "%D", "%m/%d/%y"); format = tinyMCE.regexpReplace(format, "%r", "%I:%M:%S %p"); format = tinyMCE.regexpReplace(format, "%Y", "" + date.getFullYear()); format = tinyMCE.regexpReplace(format, "%y", "" + date.getYear()); format = tinyM...
return format;
return fmt;
function getDateTime(date, format) { format = tinyMCE.regexpReplace(format, "%D", "%m/%d/%y"); format = tinyMCE.regexpReplace(format, "%r", "%I:%M:%S %p"); format = tinyMCE.regexpReplace(format, "%Y", "" + date.getFullYear()); format = tinyMCE.regexpReplace(format, "%y", "" + date.getYear()); format = tinyM...
}
};
that.getDebug = function() { return that.preferences.data.debug; }
if(user_input==all) return true;
function getDeleteOwn(element){ if(!element) return false; var user_input = getRadioButtonCheckedValue(element); if(user_input==all) return true; if(user_input==own) return true; else return false;}
if (element.style.display == "none"){ var originalVisibility = element.style.visibility; var originalPosition = element.style.position; element.style.visibility = "hidden"; element.style.position = "absolute"; element.style.display = "";
if (Element.getStyle(element,'display') == "none"){ var els = element.style; var originalVisibility = els.visibility; var originalPosition = els.position; els.visibility = "hidden"; els.position = "absolute"; els.display = "";
Element.getDimensions = function(element){ element = $(element); // All *Width and *Height properties give 0 on elements with display "none", so enable the element temporarily if (element.style.display == "none"){ var originalVisibility = element.style.visibility; var originalPosition = element.style.position;...
element.style.display = "none"; element.style.position = originalPosition; element.style.visibility = originalVisibility;
els.display = "none"; els.position = originalPosition; els.visibility = originalVisibility;
Element.getDimensions = function(element){ element = $(element); // All *Width and *Height properties give 0 on elements with display "none", so enable the element temporarily if (element.style.display == "none"){ var originalVisibility = element.style.visibility; var originalPosition = element.style.position;...
} else { return {width: element.offsetWidth, height: element.offsetHeight};
Element.getDimensions = function(element){ element = $(element); // All *Width and *Height properties give 0 on elements with display "none", so enable the element temporarily if (element.style.display == "none"){ var originalVisibility = element.style.visibility; var originalPosition = element.style.position;...
return {width: element.offsetWidth, height: element.offsetHeight};
Element.getDimensions = function(element){ element = $(element); // All *Width and *Height properties give 0 on elements with display "none", so enable the element temporarily if (element.style.display == "none"){ var originalVisibility = element.style.visibility; var originalPosition = element.style.position;...
if(currentWindow == null) { return getContentWindow().document; } else { commandStr = "getContentWindow().window." + currentWindow + ".document"; return eval(commandStr);
if(currentDocument == null) { var testWindow = getContentWindow(); if (currentWindowName != null) { commandStr = "getContentWindow().window." + currentWindowName; testWindow = eval(commandStr); } modifyWindow(testWindow); currentDocument = testWindow.document;
function getDoc(){ if(currentWindow == null) { return getContentWindow().document; } else { commandStr = "getContentWindow().window." + currentWindow + ".document"; return eval(commandStr); }}
return currentDocument;
function getDoc(){ if(currentWindow == null) { return getContentWindow().document; } else { commandStr = "getContentWindow().window." + currentWindow + ".document"; return eval(commandStr); }}
var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefService); var branch = prefs.getBranch("extensions."+MYSTRING+"."); var editor = branch.getCharPref("editor");
var editor = that.preferences.data.editor;
that.getEditor = function() { var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefService); var branch = prefs.getBranch("extensions."+MYSTRING+"."); var editor = branch.getCharPref("editor"); // TODO: It'd be nice to have this use PATH. //...
var outArray = new Array();
var outArray = new Array(), skip;
getEditorTemplate : function(settings, editorId) { function removeFromArray(in_array, remove_array) { var outArray = new Array(); for (var i=0; i<in_array.length; i++) { skip = false; for (var j=0; j<remove_array.length; j++) { if (in_array[i] == remove_array[j]) { skip = true; } } if ...
template['html'] = '<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}" style="width:{$width}px;height:{$height}px"><tbody>';
template['html'] = '<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}" style="width:{$width_style};height:{$height_style}"><tbody>';
getEditorTemplate : function(settings, editorId) { function removeFromArray(in_array, remove_array) { var outArray = new Array(); for (var i=0; i<in_array.length; i++) { skip = false; for (var j=0; j<remove_array.length; j++) { if (in_array[i] == remove_array[j]) { skip = true; } } if ...
template['html'] += '<tr><td class="mceToolbarTop" align="' + toolbarAlign + '" height="1" nowrap="nowrap">' + toolbarHTML + '</td></tr>';
template['html'] += '<tr><td class="mceToolbarTop" align="' + toolbarAlign + '" height="1" nowrap="nowrap"><span id="' + editorId + '_toolbar" class="mceToolbarContainer">' + toolbarHTML + '</span></td></tr>';
getEditorTemplate : function(settings, editorId) { function removeFromArray(in_array, remove_array) { var outArray = new Array(); for (var i=0; i<in_array.length; i++) { skip = false; for (var j=0; j<remove_array.length; j++) { if (in_array[i] == remove_array[j]) { skip = true; } } if ...
template['html'] += '<tr><td class="mceToolbarBottom" align="' + toolbarAlign + '" height="1">' + toolbarHTML + '</td></tr>';
template['html'] += '<tr><td class="mceToolbarBottom" align="' + toolbarAlign + '" height="1"><span id="' + editorId + '_toolbar" class="mceToolbarContainer">' + toolbarHTML + '</span></td></tr>';
getEditorTemplate : function(settings, editorId) { function removeFromArray(in_array, remove_array) { var outArray = new Array(); for (var i=0; i<in_array.length; i++) { skip = false; for (var j=0; j<remove_array.length; j++) { if (in_array[i] == remove_array[j]) { skip = true; } } if ...
for (var j=0; j<curContainer.length; j++) {
curContainer = removeFromArray(curContainer, tinyMCE.getParam("theme_advanced_disable", "", true, ',')); for (var j=0; j<curContainer.length; j++)
getEditorTemplate : function(settings, editorId) { function removeFromArray(in_array, remove_array) { var outArray = new Array(); for (var i=0; i<in_array.length; i++) { skip = false; for (var j=0; j<remove_array.length; j++) { if (in_array[i] == remove_array[j]) { skip = true; } } if ...
}
getEditorTemplate : function(settings, editorId) { function removeFromArray(in_array, remove_array) { var outArray = new Array(); for (var i=0; i<in_array.length; i++) { skip = false; for (var j=0; j<remove_array.length; j++) { if (in_array[i] == remove_array[j]) { skip = true; } } if ...
this.getTabToolbar() + this.TOOLBAR_SPACER + this.getUndoToolbar() + this.TOOLBAR_SPACER + this.getTitleToolbar() + this.TOOLBAR_SPACER + this.getTableToolbar() + this.TOOLBAR_SPACER + this.getTableRowToolbar() + this.TOOLBAR_SPACER + this.getTableColToolbar() + this.TOOLBAR_SPACER + this.getLinkToolbar();
this.getTabToolbar() + this.TOOLBAR_SPACER + this.getUndoToolbar() + this.TOOLBAR_SPACER + this.getTitleToolbar(); if (this._useStyleToolbar) { str += this.TOOLBAR_SPACER + this.getStyleToolbar(); } str += this.TOOLBAR_SPACER + this.getTableToolbar() + this.TOOLBAR_SPACER + this.getTableRowToolbar() + this.TOOLBAR_SP...
WikiEditor.prototype.getEditorTemplate = function(settings, editor_id) { var template = new Array(); var str = '\ <table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}"><tbody>\ <tr><td class="mceToolbar" align="center" height="1">'; str += this.getTextToolbar() + this...
html += tinyMCE.getButtonHTML('cleanup', 'lang_cleanup_desc', '{$themeurl}/images/cleanup.gif', 'mceCleanup')
html += tinyMCE.getButtonHTML('cleanup', 'lang_cleanup_desc', '{$themeurl}/images/cleanup.gif', 'mceCleanup');
getEditorTemplate : function() { var html = ''; html += '<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}">'; html += '<tr><td align="center">'; html += '<span id="{$editor_id}">IFRAME</span>'; html += '</td></tr>'; html += '<tr><td class="mceToolbar" align="...
html += tinyMCE.getButtonHTML('bullist', 'lang_bullist_desc', '{$themeurl}/images/bullist.gif', 'InsertUnorderedList') html += tinyMCE.getButtonHTML('numlist', 'lang_numlist_desc', '{$themeurl}/images/numlist.gif', 'InsertOrderedList')
html += tinyMCE.getButtonHTML('bullist', 'lang_bullist_desc', '{$themeurl}/images/bullist.gif', 'InsertUnorderedList'); html += tinyMCE.getButtonHTML('numlist', 'lang_numlist_desc', '{$themeurl}/images/numlist.gif', 'InsertOrderedList');
getEditorTemplate : function() { var html = ''; html += '<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}">'; html += '<tr><td align="center">'; html += '<span id="{$editor_id}">IFRAME</span>'; html += '</td></tr>'; html += '<tr><td class="mceToolbar" align="...
var TinyMCE_SimpleTheme={_buttonMap:'bold,bullist,cleanup,italic,numlist,redo,strikethrough,underline,undo',getEditorTemplate:function(){var html='';html+='<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}">';html+='<tr><td align="center">';html+='<span id="{$editor_...
var TinyMCE_SimpleTheme={_buttonMap:'bold,bullist,cleanup,italic,numlist,redo,strikethrough,underline,undo',getEditorTemplate:function(){var html='';html+='<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}">';html+='<tr><td align="center">';html+='<span id="{$editor_...
var TinyMCE_SimpleTheme={_buttonMap:'bold,bullist,cleanup,italic,numlist,redo,strikethrough,underline,undo',getEditorTemplate:function(){var html='';html+='<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}">';html+='<tr><td align="center">';html+='<span id="{$editor_...
if (Calendar.is_ie) { return window.event.srcElement; } else { return ev.currentTarget; }
var f = Calendar.is_ie ? window.event.srcElement : ev.currentTarget; while (f.nodeType != 1 || /^div$/i.test(f.tagName)) f = f.parentNode; return f;
Calendar.getElement = function(ev) { if (Calendar.is_ie) { return window.event.srcElement; } else { return ev.currentTarget; }};
var valueT = 0, valueL = 0;
var valueT = 0; var valueL = 0;
function getElementOffset(element) { var valueT = 0, valueL = 0; do { valueT += element.offsetTop || 0; valueL += element.offsetLeft || 0; element = element.offsetParent; } while (element); return [valueL, valueT];}
if (!el || ((param[1] != '*') && ($Element(el, 'getTag') != param[1]))) return;
if (!el || ((param[1] != '*') && (Element.prototype.getTag.call(el) != param[1]))) return;
getElements: function(selector){ var filters = []; selector.clean().split(' ').each(function(sel, i){ var param = sel.match('^(\\w*|\\*)(?:#([\\w_-]+)|\\.([\\w_-]+))?(?:\\[["\']?(\\w+)["\']?(?:([\\*\\^\\$]?=)["\']?(\\w*)["\']?)?\\])?$'); //PARAM ARRAY: 0 = full string: 1 = tag; 2 = id; 3 = class; 4 = attribute; ...
form = $(form); var elements = new Array(); for (var tagName in Form.Element.Serializers) { var tagElements = form.getElementsByTagName(tagName); for (var j = 0; j < tagElements.length; j++) elements.push(tagElements[j]); } return elements;
return $A($(form).getElementsByTagName('*')).inject([], function(elements, child) { if (Form.Element.Serializers[child.tagName.toLowerCase()]) elements.push(Element.extend(child)); return elements; });
getElements: function(form) { form = $(form); var elements = new Array(); for (var tagName in Form.Element.Serializers) { var tagElements = form.getElementsByTagName(tagName); for (var j = 0; j < tagElements.length; j++) elements.push(tagElements[j]); } return elements; },
for (tagName in Form.Element.Serializers) {
for (var tagName in Form.Element.Serializers) {
getElements: function(form) { form = $(form); var elements = new Array(); for (tagName in Form.Element.Serializers) { var tagElements = form.getElementsByTagName(tagName); for (var j = 0; j < tagElements.length; j++) elements.push(tagElements[j]); } return elements; },
if( all[ i ].className == className ) {
if( re.exec( all[ i ].className ) ) {
document.getElementsByClass = function( className ) { var all = document.getElementsByTagName( "*" ); var res = new Array(); var n = 0; for( var i = 0; i < all.length; i++ ) { if( all[ i ].className == className ) { res[ n++ ] = all[ i ]; } } return res;}
var children = ($(parentElement) || document.body).getElementsByTagName('*'); return $A(children).inject([], function(elements, child) { if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(Element.extend(child));
if (Prototype.BrowserFeatures.XPath) { var q = ". return document._getElementsByXPath(q, parentElement); } else { var children = ($(parentElement) || document.body).getElementsByTagName('*'); var elements = [], child; for (var i = 0, len = children.length; i < len; i++) { child = children[i]; if (child.className.length...
document.getElementsByClassName = function(className, parentElement) { var children = ($(parentElement) || document.body).getElementsByTagName('*'); return $A(children).inject([], function(elements, child) { if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(Element.extend...
});
}
document.getElementsByClassName = function(className, parentElement) { var children = ($(parentElement) || document.body).getElementsByTagName('*'); return $A(children).inject([], function(elements, child) { if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(Element.extend...
document.getElementsByClassName = function(className) { var children = document.getElementsByTagName('*') || document.all; var elements = new Array(); for (var i = 0; i < children.length; i++) { var child = children[i]; var classNames = child.className.split(' '); for (var j = 0; j < classNames.length; j++) { if (clas...
document.getElementsByClassName = function(className, parentElement) { var children = (document.body || $(parentElement)).getElementsByTagName('*'); return $A(children).inject([], function(elements, child) { if (Element.hasClassName(child, className)) elements.push(child); return elements; });
document.getElementsByClassName = function(className) { var children = document.getElementsByTagName('*') || document.all; var elements = new Array(); for (var i = 0; i < children.length; i++) { var child = children[i]; var classNames = child.className.split(' '); for (var j = 0; j < classNames.length; j+...
elements.push(child);
elements.push(Element.extend(child));
document.getElementsByClassName = function(className, parentElement) { var children = ($(parentElement) || document.body).getElementsByTagName('*'); return $A(children).inject([], function(elements, child) { if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(child); ret...
function getElementsByClassName(className, element) { var children = (element || document).getElementsByTagName('*');
function getElementsByClassName(className) { var children = document.getElementsByTagName('*') || document.all;
function getElementsByClassName(className, element) { var children = (element || document).getElementsByTagName('*'); var elements = new Array(); for (var i = 0; i < children.length; i++) { var child = children[i]; var classNames = child.className.split(' '); for (var j = 0; j < classNames.length; j++) { ...
for (var e = 0; e < all.length; e++)
for (var e = 0; e < all.length; e++) {
function getElementsByClassName(className, element) { var all = document.all ? document.all : document.getElementsByTagName(element); var elements = new Array(); for (var e = 0; e < all.length; e++) if (all[e].className == className) elements[elements.length] = all[e]; return elements;}
}
function getElementsByClassName(className, element) { var all = document.all ? document.all : document.getElementsByTagName(element); var elements = new Array(); for (var e = 0; e < all.length; e++) if (all[e].className == className) elements[elements.length] = all[e]; return elements;}
getEntry: function() { var token_pos = this.findLastToken(); if (token_pos != -1) var ret = this.element.value.substr(token_pos + 1).replace(/^\s+/,'').replace(/\s+$/,''); else var ret = this.element.value; return /\n/.test(ret) ? '' : ret;
getEntry: function(index) { return this.update.firstChild.childNodes[index];
getEntry: function() { var token_pos = this.findLastToken(); if (token_pos != -1) var ret = this.element.value.substr(token_pos + 1).replace(/^\s+/,'').replace(/\s+$/,''); else var ret = this.element.value; return /\n/.test(ret) ? '' : ret; },
if(isIE4) {
if(document.documentElement && document.documentElement.scrollLeft) return window.event.clientX + document.documentElement.scrollLeft; if(document.body)
function getEventX(e){ if(isNav4||isNav5) { return e.pageX; } if(isIE4) { return window.event.clientX + document.body.scrollLeft; } return 0;}
} return 0;
handle_incompatible_browser();
function getEventX(e){ if(isNav4||isNav5) { return e.pageX; } if(isIE4) { return window.event.clientX + document.body.scrollLeft; } return 0;}
if(isIE4) {
if(document.documentElement && document.documentElement.scrollTop) return window.event.clientY + document.documentElement.scrollTop; if(document.body)
function getEventY(e){ if(isNav4||isNav5) { return e.pageY; } if(isIE4) { return window.event.clientY + document.body.scrollTop; }}
}
handle_incompatible_browser();
function getEventY(e){ if(isNav4||isNav5) { return e.pageY; } if(isIE4) { return window.event.clientY + document.body.scrollTop; }}
else if (getTestFrame().contentWindow) {
else if (isSafari || isKonqueror) { return new KonquerorIFrameExecutionContext(); } else {
function getExecutionContext() { if (isNewWindow()) { return getWindowExecutionContext(); } else if (getTestFrame().contentWindow) { return new IFrameExecutionContext(); } else { return new KonquerorIFrameExecutionContext(); }}
else { return new KonquerorIFrameExecutionContext(); }
function getExecutionContext() { if (isNewWindow()) { return getWindowExecutionContext(); } else if (getTestFrame().contentWindow) { return new IFrameExecutionContext(); } else { return new KonquerorIFrameExecutionContext(); }}
return new OpenLayers.Bounds(center.lon - w_deg / 2, center.lat - h_deg / 2, center.lon + w_deg / 2, center.lat + h_deg / 2);
extent = new OpenLayers.Bounds(center.lon - w_deg / 2, center.lat - h_deg / 2, center.lon + w_deg / 2, center.lat + h_deg / 2);
getExtent: function () { var extent = null; var center = this.map.getCenter(); if (center != null) { var res = this.getResolution(); var size = this.map.getSize(); var w_deg = size.w * res; var h_deg = size.h * res; return new Ope...
var inst = this.instance;
var inst = this.instance, doc, rng, sel, elm;
getFocusElement : function() { var inst = this.instance; if (tinyMCE.isMSIE && !tinyMCE.isOpera) { var doc = inst.getDoc(); var rng = doc.selection.createRange(); // if (rng.collapse) // rng.collapse(true); var elm = rng.item ? rng.item(0) : rng.parentElement(); } else { if (inst.isHidden()) return in...
if (tinyMCE.isMSIE && !tinyMCE.isOpera) { var doc = inst.getDoc(); var rng = doc.selection.createRange();
if (tinyMCE.isRealIE) { doc = inst.getDoc(); rng = doc.selection.createRange();
getFocusElement : function() { var inst = this.instance; if (tinyMCE.isMSIE && !tinyMCE.isOpera) { var doc = inst.getDoc(); var rng = doc.selection.createRange(); // if (rng.collapse) // rng.collapse(true); var elm = rng.item ? rng.item(0) : rng.parentElement(); } else { if (inst.isHidden()) return in...
var elm = rng.item ? rng.item(0) : rng.parentElement();
elm = rng.item ? rng.item(0) : rng.parentElement();
getFocusElement : function() { var inst = this.instance; if (tinyMCE.isMSIE && !tinyMCE.isOpera) { var doc = inst.getDoc(); var rng = doc.selection.createRange(); // if (rng.collapse) // rng.collapse(true); var elm = rng.item ? rng.item(0) : rng.parentElement(); } else { if (inst.isHidden()) return in...
if (inst.isHidden())
if (!tinyMCE.isSafari && inst.isHidden())
getFocusElement : function() { var inst = this.instance; if (tinyMCE.isMSIE && !tinyMCE.isOpera) { var doc = inst.getDoc(); var rng = doc.selection.createRange(); // if (rng.collapse) // rng.collapse(true); var elm = rng.item ? rng.item(0) : rng.parentElement(); } else { if (inst.isHidden()) return in...
var sel = this.getSel(); var rng = this.getRng();
sel = this.getSel(); rng = this.getRng();
getFocusElement : function() { var inst = this.instance; if (tinyMCE.isMSIE && !tinyMCE.isOpera) { var doc = inst.getDoc(); var rng = doc.selection.createRange(); // if (rng.collapse) // rng.collapse(true); var elm = rng.item ? rng.item(0) : rng.parentElement(); } else { if (inst.isHidden()) return in...
var elm = rng.commonAncestorContainer;
elm = rng.commonAncestorContainer;
getFocusElement : function() { var inst = this.instance; if (tinyMCE.isMSIE && !tinyMCE.isOpera) { var doc = inst.getDoc(); var rng = doc.selection.createRange(); // if (rng.collapse) // rng.collapse(true); var elm = rng.item ? rng.item(0) : rng.parentElement(); } else { if (inst.isHidden()) return in...
var allParams = OpenLayers.Util.extend(allParams, newParams);
allParams = OpenLayers.Util.extend(allParams, newParams); var urlParams = OpenLayers.Util.upperCaseObject( OpenLayers.Util.getArgs(url)); for(var key in allParams) { if(key.toUpperCase() in urlParams) { delete allParams[key]; } }
getFullRequestString:function(newParams, altUrl) { // use layer's url unless altUrl passed in var url = (altUrl == null) ? this.url : altUrl; // if url is not a string, it should be an array of strings, // in which case we will randomly select one of them in order ...
if (!this.grid) return null;
getGridBounds:function() { var topLeftTile = this.grid[0][0]; var bottomRightTile = this.grid[this.grid.length-1][this.grid[0].length-1]; return new OpenLayers.Bounds(topLeftTile.bounds.left, bottomRightTile.bounds.bottom, ...
zoom = olZoom + 1;
zoom = olZoom;
getGZoomFromOLZoom: function(olZoom) { var zoom = null; if (olZoom != null) { zoom = olZoom + 1; } return zoom; },
return "img/";
return OpenLayers._getScriptLocation() + "img/";
OpenLayers.Util.getImagesLocation = function () { return "img/";};
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Save', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_save.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Fullscreen', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_fullscreen.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Context menus', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_contextmenu.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Paste text/word', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_paste.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Directionality', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_directionality.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Inline Popups', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_inlinepopups.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; }
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Preview', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_preview.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Style', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_style.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Non editable elements', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_noneditable.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Tables', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_table.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Zoom', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_zoom.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Auto save', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_autosave.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Layer', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_layer.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Advanced image', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_advimage.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Flash', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_flash.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Advanced link', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_advlink.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Print', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_print.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Advanced HR', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_advhr.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion } },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Insert date/time', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_insertdatetime.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Emotions', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_emotions.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
author : 'Moxiecode Systems',
author : 'Moxiecode Systems AB',
getInfo : function() { return { longname : 'Search/Replace', author : 'Moxiecode Systems', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_searchreplace.html', version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion }; },
if (inputElement.type.toUpperCase() == 'CHECKBOX' || inputElement.type.toUpperCase() == 'RADIO') { return (inputElement.checked ? 'on' : 'off');
if (inputElement.type) { if (inputElement.type.toUpperCase() == 'CHECKBOX' || inputElement.type.toUpperCase() == 'RADIO') { return (inputElement.checked ? 'on' : 'off'); } } if (inputElement.value == null) { throw new SeleniumError("This element has no value; is it really a form field?");
function getInputValue(inputElement) { if (inputElement.type.toUpperCase() == 'CHECKBOX' || inputElement.type.toUpperCase() == 'RADIO') { return (inputElement.checked ? 'on' : 'off'); } return inputElement.value;}
self.paused = true;
this.runner.getInterval = function() { if (self.runner.testCase.debugContext.currentCommand().breakpoint) { return -1; } else if (self.paused) { return -1; } else { return document.getElementById("runInterval").selectedItem.value; } }
throw SeleniumError("invalid keySequence");
throw new SeleniumError("invalid keySequence");
function getKeyCodeFromKeySequence(keySequence) { var match = /^\\(\d{1,3})$/.exec(keySequence); if (match != null) { return match[1]; } match = /^.$/.exec(keySequence); if (match != null) { return match[0].charCodeAt(0); } // this is for backward compatibility with existing tests ...
break;
if(key != '') break;
function getkeye(){ var key; var key2; while(1) { key=console.getkey(K_UPPER); if(key=='/') { write(key); key2=console.getkey(K_UPPER); write("\b \b"); if(key2=="\b" || key2=="\e") { continue; } key=key+key2; } break; } return(key);}
coldfuncs_last_hotkey=key.substr(-1);
function getkeye(){ var key; var key2; while(1) { key=console.getkey(K_UPPER); if(key=='/') { write(key); key2=console.getkey(K_UPPER); write("\b \b"); if(key2=="\b" || key2=="\e") { continue; } key=key+key2; } break; } return(key);}
if (this.buffers.length <= n) { return null; }
this.getLabel = function(n) { // it will be the n-th div below this.labelsBody var labels = this.labelsBody.getElementsByTagName('div'); var label = labels[n]; // if there isn't a label for n, create one if (null == label) { var row = document.createElement('tr'); ...
var linkAction = "javascript:refreshBufferList(" + n + ")";
var linkAction = "javascript:refreshBufferList(" + n + ", \"getLabel.linkAction\")"; var linkFunction = function() { refreshBufferList(n, "getLabel.linkFunction") }; var className = 'bufferlabel';
function getLabel(n) { // get the label text for a buffer: var theNode = document.createElement('div'); var theNum = null; var linkAction = "javascript:refreshBufferList(" + n + ")"; if (g_cq_buffer_current != n) { // provide a link to load the buffer theNum = document.createElement('a'); ...
debug("getLabel: " + n + ", " + g_cq_buffer_current);
debug("getLabel: " + n + " == " + g_cq_buffer_current);
function getLabel(n) { // get the label text for a buffer: var theNode = document.createElement('div'); var theNum = null; var linkAction = "javascript:refreshBufferList(" + n + ")"; if (g_cq_buffer_current != n) { // provide a link to load the buffer theNum = document.createElement('a'); ...
var className = 'bufferlabel'; if (g_cq_buffer_current == n) { className = 'bufferlabelactive'; }
function getLabel(n) { // get the label text for a buffer: var theNode = document.createElement('div'); var theNum = null; var linkAction = "javascript:refreshBufferList(" + n + ")"; if (g_cq_buffer_current != n) { // provide a link to load the buffer theNum = document.createElement('a'); ...
theNode.setAttribute('onclick', linkAction);
function getLabel(n) { // get the label text for a buffer: var theNode = document.createElement('div'); var theNum = null; var linkAction = "javascript:refreshBufferList(" + n + ")"; if (g_cq_buffer_current != n) { // provide a link to load the buffer theNum = document.createElement('a'); ...
var theLabel = nudge(getBuffer(n).value.substring(0, 4096));
var theLabel = nudge(getBuffer(n).value.substr(0, 1024));
function getLabel(n) { // get the label text for a buffer: var theNode = document.createElement('div'); var theNum = null; var linkAction = "javascript:refreshBufferList(" + n + ", \"getLabel.linkAction\")"; var linkFunction = function() { refreshBufferList(n, "getLabel.linkFunction") }; ...
debug("getLabel: " + n + " == " + g_cq_buffer_current);
debug.print("getLabel: " + n + " == " + g_cq_buffer_current);
function getLabel(n) { // get the label text for a buffer: var theNode = document.createElement('div'); var theNum = null; var linkAction = "javascript:refreshBufferList(" + n + ", \"getLabel.linkAction\")"; var linkFunction = function() { refreshBufferList(n, "getLabel.linkFunction") }; ...
var theNode = document.createElement('span'); theNode.setAttribute('class', 'code1');
var theNode = document.createElement('div');
function getLabel(n) { // get the label text for a buffer: var theNode = document.createElement('span'); theNode.setAttribute('class', 'code1'); var theNum = null; if (g_cq_buffer_current != n) { // provide a link to load the buffer theNum = document.createElement('a'); theNum.setAtt...
theNum.setAttribute('href', "javascript:refreshBufferList(" + n + ")"); theNum.appendChild(document.createTextNode("" + (1+n) + "."));
theNum.setAttribute('href', linkAction);
function getLabel(n) { // get the label text for a buffer: var theNode = document.createElement('span'); theNode.setAttribute('class', 'code1'); var theNum = null; if (g_cq_buffer_current != n) { // provide a link to load the buffer theNum = document.createElement('a'); theNum.setAtt...
debug("getLabel: " + n + ", " + g_cq_buffer_current);
function getLabel(n) { // get the label text for a buffer: var theNode = document.createElement('span'); theNode.setAttribute('class', 'code1'); var theNum = null; if (g_cq_buffer_current != n) { // provide a link to load the buffer theNum = document.createElement('a'); theNum.setAtt...
theNum.appendChild(document.createTextNode("" + (1+n) + "."));
function getLabel(n) { // get the label text for a buffer: var theNode = document.createElement('span'); theNode.setAttribute('class', 'code1'); var theNum = null; if (g_cq_buffer_current != n) { // provide a link to load the buffer theNum = document.createElement('a'); theNum.setAtt...
theNode.appendChild(document.createTextNode (" " + normalize(getBuffer(n).value).substring(0, 29)));
var theLabel = normalize(getBuffer(n).value); theNode.appendChild(document.createTextNode(" " + theLabel)); var className = 'bufferlabel'; if (g_cq_buffer_current == n) { className = 'bufferlabelactive'; } theNode.className = className; theNode.setAttribute('onclick', linkAction);
function getLabel(n) { // get the label text for a buffer: var theNode = document.createElement('span'); theNode.setAttribute('class', 'code1'); var theNum = null; if (g_cq_buffer_current != n) { // provide a link to load the buffer theNum = document.createElement('a'); theNum.setAtt...
var theLabel = getBuffer(n).value.substring(0, 4096);
var theLabel = nudge(getBuffer(n).value.substring(0, 4096));
function getLabel(n) { // get the label text for a buffer: var theNode = document.createElement('div'); var theNum = null; var linkAction = "javascript:refreshBufferList(" + n + ")"; if (g_cq_buffer_current != n) { // provide a link to load the buffer theNum = document.createElement('a'); ...