rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
} while(tileoffsetlat > bounds.bottom - tilelat)
} while(tileoffsetlat >= bounds.bottom - tilelat * this.buffer)
_initTiles:function() { //first of all, clear out the main div this.div.innerHTML = ""; //now clear out the old grid and start a new one this.clearGrid(); this.grid = new Array(); var viewSize = this.map.getSize(); var bounds = this.map.getExtent(); var extent...
var doc = inst.getDoc(); var sel = inst.getSel(); var win = inst.contentWindow; var rng = sel.getRangeAt(0); var body = doc.body; var rootElm = doc.documentElement; var blockName = "P";
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
var rngBefore = doc.createRange();
rngBefore = doc.createRange();
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
var rngAfter = doc.createRange();
rngAfter = doc.createRange();
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
var direct = rngBefore.compareBoundaryPoints(rngBefore.START_TO_END, rngAfter) < 0; var startNode = direct ? sel.anchorNode : sel.focusNode; var startOffset = direct ? sel.anchorOffset : sel.focusOffset; var endNode = direct ? sel.focusNode : sel.anchorNode; var endOffset = direct ? sel.focusOffset : sel.anchorOffset;
direct = rngBefore.compareBoundaryPoints(rngBefore.START_TO_END, rngAfter) < 0; startNode = direct ? sel.anchorNode : sel.focusNode; startOffset = direct ? sel.anchorOffset : sel.focusOffset; endNode = direct ? sel.focusNode : sel.anchorNode; endOffset = direct ? sel.focusOffset : sel.anchorOffset;
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
var startBlock = tinyMCE.getParentBlockElement(startNode); var endBlock = tinyMCE.getParentBlockElement(endNode);
startBlock = inst.getParentBlockElement(startNode); endBlock = inst.getParentBlockElement(endNode);
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
if (tinyMCE.getParentElement(startBlock, "OL,UL") != null)
if (tinyMCE.getParentElement(startBlock, "OL,UL", null, body) != null)
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
var paraBefore = (startBlock != null && startBlock.nodeName == blockName) ? startBlock.cloneNode(false) : doc.createElement(blockName); var paraAfter = (endBlock != null && endBlock.nodeName == blockName) ? endBlock.cloneNode(false) : doc.createElement(blockName);
paraBefore = (startBlock != null && startBlock.nodeName == blockName) ? startBlock.cloneNode(false) : doc.createElement(blockName); paraAfter = (endBlock != null && endBlock.nodeName == blockName) ? endBlock.cloneNode(false) : doc.createElement(blockName);
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
var startChop = startNode; var endChop = endNode;
startChop = startNode; endChop = endNode;
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
sel.removeAllRanges();
if (!tinyMCE.isSafari) sel.removeAllRanges();
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
var contents = rng.cloneContents();
contents = rng.cloneContents();
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
paraAfter.normalize(); rngBefore.insertNode(paraAfter); paraBefore.normalize(); rngBefore.insertNode(paraBefore);
if (tinyMCE.isOpera) { paraBefore.normalize(); rngBefore.insertNode(paraBefore); paraAfter.normalize(); rngBefore.insertNode(paraAfter); } else { paraAfter.normalize(); rngBefore.insertNode(paraAfter); paraBefore.normalize(); rngBefore.insertNode(paraBefore); }
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
var contents = rngAfter.cloneContents();
contents = rngAfter.cloneContents();
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
var rng = doc.createRange();
rng = doc.createRange();
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
rng.insertNode(paraAfter); rng.insertNode(paraBefore);
if (tinyMCE.isOpera) { rng.insertNode(paraBefore); rng.insertNode(paraAfter); } else { rng.insertNode(paraAfter); rng.insertNode(paraBefore); }
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
inst.selection.moveToBookmark(b);
_insertPara : function(inst, e) { function isEmpty(para) { function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; } // Check for images if (para.getElementsByTagName("img").length > 0) return false; // Check for tables if (para.getElementsByTagName("...
window.setTimeout('tinyMCE.execCommand("mceCleanup");', 1);
if (tinyMCE.getParam('paste_force_cleanup_wordpaste', true)) window.setTimeout('tinyMCE.execCommand("mceCleanup");', 1);
_insertWordContent : function(content) { if (content && content.length > 0) { // Cleanup Word content var bull = String.fromCharCode(8226); var middot = String.fromCharCode(183); var cb; if ((cb = tinyMCE.getParam("paste_insert_word_content_callback", "")) != "") content = eval(cb + "('before', content)...
th._column=column; th.onmouseover=f_dataGrid._Title_onMouseOver; th.onmouseout=f_dataGrid._Title_onMouseOut; th.onmousedown=f_dataGrid._Title_onMouseDown; th.onmouseup=f_dataGrid._Title_onMouseUp;
_installSorter: function(column, method) { f_core.Assert(column._head, "No Title for column '"+column._index+"'."); if (typeof(method)!="function") { method=eval(method); f_core.Assert(typeof(method)=="function", "Bad sort method for column '"+column._index+"' !"); } column._method=method; var th=column...
if (tinyMCE.isMSIE && !tinyMCE.isOpera && n.nodeType == 1) {
if (tinyMCE.isRealIE && n.nodeType == 1) {
_isDuplicate : function(n) { var i; if (!this.settings.fix_content_duplication) return false; if (tinyMCE.isMSIE && !tinyMCE.isOpera && n.nodeType == 1) { // Mark elements if (n.mce_serialized == this.serializationId) return true; n.setAttribute('mce_serialized', this.serializationId); } else { // Sea...
}
},
_isStringOrNumber: function(param) { return(typeof param=='string' || typeof param=='number'); }
if (!window.calendar) {
var cal = window._dynarch_popupCalendar; if (!cal || cal.multiple)
Calendar._keyEvent = function(ev) { if (!window.calendar) { return false; } (Calendar.is_ie) && (ev = window.event); var cal = window.calendar; var act = (Calendar.is_ie || ev.type == "keypress"); if (ev.ctrlKey) { switch (ev.keyCode) { case 37: // KEY left act && Calendar.cellClick(cal._nav_pm); break; ...
}
Calendar._keyEvent = function(ev) { if (!window.calendar) { return false; } (Calendar.is_ie) && (ev = window.event); var cal = window.calendar; var act = (Calendar.is_ie || ev.type == "keypress"); if (ev.ctrlKey) { switch (ev.keyCode) { case 37: // KEY left act && Calendar.cellClick(cal._nav_pm); break; ...
var cal = window.calendar; var act = (Calendar.is_ie || ev.type == "keypress");
var act = (Calendar.is_ie || ev.type == "keypress"), K = ev.keyCode;
Calendar._keyEvent = function(ev) { if (!window.calendar) { return false; } (Calendar.is_ie) && (ev = window.event); var cal = window.calendar; var act = (Calendar.is_ie || ev.type == "keypress"); if (ev.ctrlKey) { switch (ev.keyCode) { case 37: // KEY left act && Calendar.cellClick(cal._nav_pm); break; ...
switch (ev.keyCode) {
switch (K) {
Calendar._keyEvent = function(ev) { if (!window.calendar) { return false; } (Calendar.is_ie) && (ev = window.event); var cal = window.calendar; var act = (Calendar.is_ie || ev.type == "keypress"); if (ev.ctrlKey) { switch (ev.keyCode) { case 37: // KEY left act && Calendar.cellClick(cal._nav_pm); break; ...
} else switch (ev.keyCode) {
} else switch (K) {
Calendar._keyEvent = function(ev) { if (!window.calendar) { return false; } (Calendar.is_ie) && (ev = window.event); var cal = window.calendar; var act = (Calendar.is_ie || ev.type == "keypress"); if (ev.ctrlKey) { switch (ev.keyCode) { case 37: // KEY left act && Calendar.cellClick(cal._nav_pm); break; ...
var date = cal.date.getDate() - 1; var el = cal.currentDateEl; var ne = null; var prev = (ev.keyCode == 37) || (ev.keyCode == 38); switch (ev.keyCode) { case 37: (--date >= 0) && (ne = cal.ar_days[date]); break; case 38: date -= 7; (date >= 0) && (ne = cal.ar_days[date]); break; case 39: (++date < cal.ar_days.length) &...
var prev, x, y, ne, el, step; prev = K == 37 || K == 38; step = (K == 37 || K == 39) ? 1 : 7; function setVars() { el = cal.currentDateEl; var p = el.pos; x = p & 15; y = p >> 4; ne = cal.ar_days[y][x]; };setVars(); function prevMonth() { var date = new Date(cal.date); date.setDate(date.getDate() - step); cal.setDate(d...
Calendar._keyEvent = function(ev) { if (!window.calendar) { return false; } (Calendar.is_ie) && (ev = window.event); var cal = window.calendar; var act = (Calendar.is_ie || ev.type == "keypress"); if (ev.ctrlKey) { switch (ev.keyCode) { case 37: // KEY left act && Calendar.cellClick(cal._nav_pm); break; ...
if (!ne) { if (prev) { Calendar.cellClick(cal._nav_pm); } else { Calendar.cellClick(cal._nav_nm); } date = (prev) ? cal.date.getMonthDays() : 1; el = cal.currentDateEl; ne = cal.ar_days[date - 1];
if (ne) { if (!ne.disabled) Calendar.cellClick(ne); else if (prev) prevMonth(); else nextMonth();
Calendar._keyEvent = function(ev) { if (!window.calendar) { return false; } (Calendar.is_ie) && (ev = window.event); var cal = window.calendar; var act = (Calendar.is_ie || ev.type == "keypress"); if (ev.ctrlKey) { switch (ev.keyCode) { case 37: // KEY left act && Calendar.cellClick(cal._nav_pm); break; ...
Calendar.removeClass(el, "selected"); Calendar.addClass(ne, "selected"); cal.date = new Date(ne.caldate); cal.callHandler(); cal.currentDateEl = ne;
Calendar._keyEvent = function(ev) { if (!window.calendar) { return false; } (Calendar.is_ie) && (ev = window.event); var cal = window.calendar; var act = (Calendar.is_ie || ev.type == "keypress"); if (ev.ctrlKey) { switch (ev.keyCode) { case 37: // KEY left act && Calendar.cellClick(cal._nav_pm); break; ...
if (act) { cal.callHandler(); cal.hide(); }
if (act) Calendar.cellClick(cal.currentDateEl, ev);
Calendar._keyEvent = function(ev) { if (!window.calendar) { return false; } (Calendar.is_ie) && (ev = window.event); var cal = window.calendar; var act = (Calendar.is_ie || ev.type == "keypress"); if (ev.ctrlKey) { switch (ev.keyCode) { case 37: // KEY left act && Calendar.cellClick(cal._nav_pm); break; ...
script=script.replace(/^\s*(.*?)\s*$/, "$1");
script=f_core.Trim(script);
f_classLoader.prototype._load = function(component, htmlNode, content) { f_core.Assert(component && component._kclass, "f_asyncClassLoader._load: component parameter is invalid : "+component); f_core.Assert(htmlNode && htmlNode.tagName, "f_asyncClassLoader._load: htmlNode parameter is invalid : "+htmlNode); f_core.Asse...
f_core.Debug("f_asyncClassLoader", "Simplify script '"+script+"'.");
var newScript=script.substring(5, v); newScript=f_core.Trim(newScript); f_core.Debug("f_asyncClassLoader", "Simplify script '"+script+"' newScript='"+newScript+"'.");
f_classLoader.prototype._load = function(component, htmlNode, content) { f_core.Assert(component && component._kclass, "f_asyncClassLoader._load: component parameter is invalid : "+component); f_core.Assert(htmlNode && htmlNode.tagName, "f_asyncClassLoader._load: htmlNode parameter is invalid : "+htmlNode); f_core.Asse...
script=script.substring(v+5);
script=newScript;
f_classLoader.prototype._load = function(component, htmlNode, content) { f_core.Assert(component && component._kclass, "f_asyncClassLoader._load: component parameter is invalid : "+component); f_core.Assert(htmlNode && htmlNode.tagName, "f_asyncClassLoader._load: htmlNode parameter is invalid : "+htmlNode); f_core.Asse...
className += " " + tinyMCE.getAttrib(ch, "class");
className = tinyMCE.getAttrib(ch, "class");
_mergeElements : function(scmd, pa, ch, override) { if (scmd == "removeformat") { pa.className = ""; pa.style.cssText = ""; ch.className = ""; ch.style.cssText = ""; return; } var st = tinyMCE.parseStyle(tinyMCE.getAttrib(pa, "style")); var stc = tinyMCE.parseStyle(tinyMCE.getAttrib(ch, "style")); var c...
var inst = tinyMCE.selectedInstance, self = TinyMCE_LayerPlugin, i, z = new Array(); var le = self._getParentLayer(inst.getFocusElement()), ci = -1, fi = -1;
var inst = tinyMCE.selectedInstance, i, z = new Array(); var le = this._getParentLayer(inst.getFocusElement()), ci = -1, fi = -1;
_move : function(d) { var inst = tinyMCE.selectedInstance, self = TinyMCE_LayerPlugin, i, z = new Array(); var le = self._getParentLayer(inst.getFocusElement()), ci = -1, fi = -1; var nl = tinyMCE.selectNodes(inst.getBody(), function(n) { return n.nodeType == 1 && new RegExp('absolute|relative|static', 'gi').test...
if (!tinyMCE.isMSIE) {
if (!tinyMCE.isIE) {
_onAdd : function(replace_element, form_element_name, target_document) { var hc, th, to, editorTemplate; th = this.settings['theme']; to = tinyMCE.themes[th]; var targetDoc = target_document ? target_document : document; this.targetDoc = targetDoc; tinyMCE.themeURL = tinyMCE.baseURL + "/themes/" + this.settings[...
if (tinyMCE.isMSIE)
if (tinyMCE.isIE)
_onAdd : function(replace_element, form_element_name, target_document) { var hc, th, to, editorTemplate; th = this.settings['theme']; to = tinyMCE.themes[th]; var targetDoc = target_document ? target_document : document; this.targetDoc = targetDoc; tinyMCE.themeURL = tinyMCE.baseURL + "/themes/" + this.settings[...
if (f_core._DisabledContextMenu) { f_core._DisabledContextMenu=undefined; f_core.DisableContextMenu(); }
_OnInit: function() { var now=new Date(); f_core.Profile("f_core.onInit.enter", now); try { f_core._FlushLogs(); var window=this; f_core.Info("f_core", "Install library (onload) on "+now); if (f_core.Debug_Mode) { var title=["DEBUG"]; f_core.Info("f_core", "Enable f_core.DEBUG mode"); v...
this.setCurrentTestCase();
this.currentTestCase = new HtmlTestCase(this.getDocument(), htmlTestRunner.getTestSuite().getCurrentRow());
_onLoad: function() { this.setCurrentTestCase(); },
this.htmlTestSuite = new HtmlTestSuite(suiteFrame.getDocument()); if (! this.htmlTestSuite.isAvailable()) {
if (! this.getTestSuite().isAvailable()) {
_onloadTestSuite:function () { this.htmlTestSuite = new HtmlTestSuite(suiteFrame.getDocument()); if (! this.htmlTestSuite.isAvailable()) { return; } if (this.controlPanel.isAutomatedRun()) { htmlTestRunner.startTestSuite(); } else if (this.controlPanel.getAut...
htmlTestRunner.startTestSuite();
this.startTestSuite();
_onloadTestSuite:function () { this.htmlTestSuite = new HtmlTestSuite(suiteFrame.getDocument()); if (! this.htmlTestSuite.isAvailable()) { return; } if (this.controlPanel.isAutomatedRun()) { htmlTestRunner.startTestSuite(); } else if (this.controlPanel.getAut...
this.htmlTestSuite.getSuiteRows()[0].loadTestCase();
this.getTestSuite().getSuiteRows()[0].loadTestCase();
_onloadTestSuite:function () { this.htmlTestSuite = new HtmlTestSuite(suiteFrame.getDocument()); if (! this.htmlTestSuite.isAvailable()) { return; } if (this.controlPanel.isAutomatedRun()) { htmlTestRunner.startTestSuite(); } else if (this.controlPanel.getAut...
addLoadListener(this._getApplicationWindow(), this._startSingleTest.bind(this));
addLoadListener(this._getApplicationWindow(), fnBind(this._startSingleTest, this));
_onloadTestSuite:function () { if (! this.getTestSuite().isAvailable()) { return; } if (this.controlPanel.isAutomatedRun()) { this.startTestSuite(); } else if (this.controlPanel.getAutoUrl()) { //todo what is the autourl doing, left to check it out ...
addLoadListener(getApplicationWindow(), this._startSingleTest.bind(this)); getApplicationWindow().src = this.runOptions.getAutoUrl();
addLoadListener(this._getApplicationWindow(), this._startSingleTest.bind(this)); this._getApplicationWindow().src = this.runOptions.getAutoUrl();
_onloadTestSuite:function () { this.htmlTestSuite = new HtmlTestSuite(suiteFrame.getDocument()); if (! this.htmlTestSuite.isAvailable()) { return; } if (this.runOptions.isAutomatedRun()) { htmlTestRunner.startTestSuite(); } else if (this.runOptions.getAutoUrl...
onInit(this);
onInit.call(this, this);
_onReadyStateChange: function() { var req = this._request; if (!req) { f_core.Info(f_httpRequest, "Request has been canceled !"); return; } var url = this._url; switch (req.readyState) { // UNINITIALIZED, Object created but not initialized, open not called case 0: default: return; // LOADING,...
onProgress(this, response, len, contentType);
onProgress.call(this, this, response, len, contentType);
_onReadyStateChange: function() { var req = this._request; if (!req) { f_core.Info(f_httpRequest, "Request has been canceled !"); return; } var url = this._url; switch (req.readyState) { // UNINITIALIZED, Object created but not initialized, open not called case 0: default: return; // LOADING,...
onLoad(this, response, this._responseContentType);
onLoad.call(this, this, response, this._responseContentType);
_onReadyStateChange: function() { var req = this._request; if (!req) { f_core.Info(f_httpRequest, "Request has been canceled !"); return; } var url = this._url; switch (req.readyState) { // UNINITIALIZED, Object created but not initialized, open not called case 0: default: return; // LOADING,...
tinyMCE.importPluginLanguagePack('flash','en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,zh_tw,zh_tw_utf8,sk,pt_br');var TinyMCE_FlashPlugin={getInfo:function(){return{longname:'Flash',author:'Moxiecode Systems',authorurl:'http:
tinyMCE.importPluginLanguagePack('flash');var TinyMCE_FlashPlugin={getInfo:function(){return{longname:'Flash',author:'Moxiecode Systems AB',authorurl:'http:
tinyMCE.importPluginLanguagePack('flash','en,tr,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,zh_tw,zh_tw_utf8,sk,pt_br');var TinyMCE_FlashPlugin={getInfo:function(){return{longname:'Flash',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce...
testFailed = true; suiteFailed = true; var testDocument = getIframeDocument(getTestFrame()); if (!this.currentRow) { alert(errorMsg); return; }
_recordFailure : function(errorMsg) { LOG.warn("currentTest.recordFailure: " + errorMsg); // Set cell background to red this.currentRow.bgColor = failColor; // Set error message this.currentRow.cells[2].innerHTML = errorMsg; this.currentRow.title = errorMsg; testFail...
testFailed = true; suiteFailed = true;
_recordFailure : function(errorMsg) { LOG.warn("currentTest.recordFailure: " + errorMsg); // Set cell background to red this.currentRow.bgColor = failColor; // Set error message this.currentRow.cells[2].innerHTML = errorMsg; this.currentRow.title = errorMsg; testFail...
var errorRow = this.currentRow; if (!errorRow) { var fakeTable = testDocument.createElement("table"); fakeTable.innerHTML = "<tr><td></td><td></td><td></td></tr>"; testDocument.body.appendChild(fakeTable); errorRow = fakeTable.rows[0];
if (this.currentRow) { this.currentRow.bgColor = failColor; this.currentRow.cells[2].innerHTML = errorMsg; this.currentRow.title = errorMsg; } else { var errorElement = testDocument.createElement("p"); errorElement.id = "error"; errorElement.innerHTML = errorMsg; testDocument.body.appendChild(errorElement); Element.set...
_recordFailure : function(errorMsg) { LOG.warn("currentTest.recordFailure: " + errorMsg); testFailed = true; suiteFailed = true; var testDocument = testIFrame.getDocument(); var errorRow = this.currentRow; if (!errorRow) { // At the end of the test, we might not ...
errorRow.bgColor = failColor; errorRow.cells[2].innerHTML = errorMsg; errorRow.title = errorMsg;
_recordFailure : function(errorMsg) { LOG.warn("currentTest.recordFailure: " + errorMsg); testFailed = true; suiteFailed = true; var testDocument = testIFrame.getDocument(); var errorRow = this.currentRow; if (!errorRow) { // At the end of the test, we might not ...
var accessBlock = accessMethod.bind(commandTarget);
var accessBlock = fnBind(accessMethod, commandTarget);
_registerAllAccessors: function(commandTarget) { // Methods of the form getFoo(target) result in commands: // getFoo, assertFoo, verifyFoo, assertNotFoo, verifyNotFoo // storeFoo, waitForFoo, and waitForNotFoo. for (var functionName in commandTarget) { var match = /^(get|is)([...
var actionBlock = actionMethod.bind(commandTarget);
var actionBlock = fnBind(actionMethod, commandTarget);
_registerAllActions: function(commandTarget) { for (var functionName in commandTarget) { var match = /^do([A-Z].+)$/.exec(functionName); if (match) { var actionName = match[1].lcfirst(); var actionMethod = commandTarget[functionName]; var don...
var assertBlock = commandTarget[functionName].bind(commandTarget);
var assertBlock = fnBind(commandTarget[functionName], commandTarget);
_registerAllAsserts: function(commandTarget) { for (var functionName in commandTarget) { var match = /^assert([A-Z].+)$/.exec(functionName); if (match) { var assertBlock = commandTarget[functionName].bind(commandTarget); // Register the assert with the "ass...
cursor._column=undefined;
_releaseColumns: function() { var columns=this._columns; for(var i=0;i<columns.length;i++) { var column=columns[i]; var head=column._head; if (head) { column._head=undefined; head._column=undefined; head.onmouseout=null; head.onmouseover=null; head.onmousedown=null; head.onmouseup=null; ...
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'), "");
_removeInternal : function(n) { if (tinyMCE.isGecko) { // Remove mce_src from textnodes and comments tinyMCE.selectNodes(n, function(n) { if (n.nodeType == 3 || n.nodeType == 8) { n.nodeValue = n.nodeValue.replace(new RegExp('\\smce_src=\"[^\"]*\"', 'gi'), ""); n.nodeValue = n.nodeValue.replace(new Reg...
inst.useCSS = false;
_resizeTo : function(inst, w, h, set_w) { var editorContainer = document.getElementById(inst.editorId + '_parent'); var tableElm = editorContainer.firstChild; var iframe = inst.iframeElement; if (w == null || w == "null") { set_w = false; w = 0; } if (h == null || h == "null") return; w = parseInt(w); h ...
window.setTimeout(this.resume.bind(this), delay);
window.setTimeout(fnBind(this.resume, this), delay);
_resumeAfterDelay : function() { /** * Pause, then execute the current command. */ // Get the command delay. If a pauseInterval is set, use it once // and reset it. Otherwise, use the defined command-interval. var delay = this.pauseInterval || this.getCommandInterval(); ...
if (av.length != 0) return " " + an + "=" + '"' + this.xmlEncode(av) + '"';
if (av.length != 0) { if (an.indexOf('on') != 0) av = this.xmlEncode(av); return " " + an + "=" + '"' + av + '"'; }
_serializeAttribute : function(n, r, an) { var av = '', t, os = this.settings.on_save; if (os && (an.indexOf('mce_') == 0 || an.indexOf('_moz') == 0)) return ''; if (os && this.mceAttribs[an]) av = this._getAttrib(n, this.mceAttribs[an]); if (av.length == 0) av = this._getAttrib(n, an); if (av.length == 0 &...
var editClass = tinyMCE.getParam("noneditable_editable_class", "mceEditable"); var nonEditClass = tinyMCE.getParam("noneditable_noneditable_class", "mceNonEditable");
var editClass = tinyMCE.getParam("noneditable_editable_class", "mceItemEditable"); var nonEditClass = tinyMCE.getParam("noneditable_noneditable_class", "mceItemNonEditable");
_setEditable : function(elm, state) { var editClass = tinyMCE.getParam("noneditable_editable_class", "mceEditable"); var nonEditClass = tinyMCE.getParam("noneditable_noneditable_class", "mceNonEditable"); var className = elm.className ? elm.className : ""; if (className.indexOf(editClass) != -1 || className.indexO...
var TinyMCE_NonEditablePlugin={getInfo:function(){return{longname:'Non editable elements',author:'Moxiecode Systems',authorurl:'http:
var TinyMCE_NonEditablePlugin={getInfo:function(){return{longname:'Non editable elements',author:'Moxiecode Systems AB',authorurl:'http:
var TinyMCE_NonEditablePlugin={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};},initInstance:function(inst){t...
element.onclick = this.ignoreEvent.bindAsEventListener(this); element.ondblclick = this.ignoreEvent.bindAsEventListener(this); element.onmousedown = this.singleClick.bindAsEventListener(this);
element.onclick = this.singleClick.bindAsEventListener(this); element.ondblclick = this.singleClick.bindAsEventListener(this); element.onmouseup = this.ignoreEvent.bindAsEventListener(this); element.onmousedown = this.ignoreEvent.bindAsEventListener(this);
_setEventHandlers : function(element, labelDiv) { // We only want to respond to a mousedown event. element.onclick = this.ignoreEvent.bindAsEventListener(this); element.ondblclick = this.ignoreEvent.bindAsEventListener(this); element.onmousedown = this.singleClick.bindAsEventListener(thi...
_setEventHandlers : function(element) {
_setEventHandlers : function(element, labelDiv) {
_setEventHandlers : function(element) { // We only want to respond to a mousedown event. element.onclick = this.ignoreEvent.bindAsEventListener(this); element.ondblclick = this.ignoreEvent.bindAsEventListener(this); element.onmousedown = this.singleClick.bindAsEventListener(this); },
if (labelDiv) { element.labelElement = labelDiv; }
_setEventHandlers : function(element) { // We only want to respond to a mousedown event. element.onclick = this.ignoreEvent.bindAsEventListener(this); element.ondblclick = this.ignoreEvent.bindAsEventListener(this); element.onmousedown = this.singleClick.bindAsEventListener(this); },
if (tinyMCE.isMSIE && tinyMCE.settings['fix_content_duplication']) {
if (tinyMCE.isIE && tinyMCE.settings['fix_content_duplication']) {
_setHTML : function(doc, html_content) { // Force closed anchors open //html_content = html_content.replace(new RegExp('<a(.*?)/>', 'gi'), '<a$1></a>'); html_content = tinyMCE.cleanupHTMLCode(html_content); // Try innerHTML if it fails use pasteHTML in MSIE try { tinyMCE.setInnerHTML(doc.body, html_content); }...
this.frame.contentWindow.location.replace(location);
if (browserVersion.isSafari) { this.frame.src = location; } else { this.frame.contentWindow.location.replace(location); }
_setLocation: function(location) { this.frame.contentWindow.location.replace(location); },
var isChrome = browserVersion.isChrome || false; var isHTA = browserVersion.isHTA || false; location += "?thisIsChrome=" + isChrome + "&thisIsHTA=" + isHTA;
_setLocation: function(location) { if (browserVersion.isSafari) { // safari doesn't reload the page when the location equals to current location. // hence, set the location to blank so that the page will reload automatically. this.frame.src = "about:blank"; this.fr...
this.frame.src = "about:blank";
_setLocation: function(location) { if (browserVersion.isSafari) { this.frame.src = location; } else { this.frame.contentWindow.location.replace(location); } },
this.addChildRemoveRuleStr(s.valid_child_elements);
_setupRules : function() { var s = this.settings; // Setup default rule if (!this.rulesDone) { this.addRuleStr(s.valid_elements); this.addRuleStr(s.extended_valid_elements); this.rulesDone = true; } },
if (tinyMCE.getAttrib(elm, 'class').indexOf('mceItemFlash') != -1)
if (tinyMCE.hasPlugin('flash') && tinyMCE.getAttrib(elm, 'class').indexOf('mceItemFlash') != -1)
_showContextMenu : function(e, inst) { function getAttrib(elm, name) { return elm.getAttribute(name) ? elm.getAttribute(name) : ""; } var x, y, elm, contextMenu; var pos = tinyMCE.getAbsPosition(inst.iframeElement); x = tinyMCE.isMSIE ? e.screenX : pos.absLeft + (e.pageX - inst.getBody().scrollLeft); y = tinyM...
else if (tinyMCE.hasPlugin('media') && /mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(tinyMCE.getAttrib(elm, 'class'))) contextMenu.addItem(tinyMCE.baseURL + "/plugins/flash/images/flash.gif", "$lang_media_title", "mceMedia");
_showContextMenu : function(e, inst) { function getAttrib(elm, name) { return elm.getAttribute(name) ? elm.getAttribute(name) : ""; } var x, y, elm, contextMenu; var pos = tinyMCE.getAbsPosition(inst.iframeElement); x = tinyMCE.isMSIE ? e.screenX : pos.absLeft + (e.pageX - inst.getBody().scrollLeft); y = tinyM...
var item=menu.f_appendItem(menu, "_result"+i, "-- Tous les résultats ne sont pas affichés --");
var message=f_resourceBundle.Get(f_suggestTextEntry).f_get("MORE_RELEVANT_RESULTS"); var item=menu.f_appendItem(menu, "_result"+i, message);
_showPopup: function(autoSelect) { var menu=this.f_getSubMenuById(f_suggestTextEntry._SUGGESTION_MENU_ID); if (!menu) { return; } if (menu.f_isOpened()) { menu.f_close(); } menu.f_removeAllItems(menu); var results=new Array; var complete=this._filterProposals(results); if (results.length<1) { retu...
this.getCurrentRow().loadTestCase(htmlTestRunner.startTest);
this.getCurrentRow().loadTestCase(htmlTestRunner.startTest.bind(htmlTestRunner));
_startCurrentTestCase: function() { this.getCurrentRow().markWorking(); this.getCurrentRow().loadTestCase(htmlTestRunner.startTest); },
this.getCurrentRow().loadTestCase(htmlTestRunner.startTest.bind(htmlTestRunner));
this.getCurrentRow().loadTestCase(fnBind(htmlTestRunner.startTest, htmlTestRunner));
_startCurrentTestCase: function() { this.getCurrentRow().loadTestCase(htmlTestRunner.startTest.bind(htmlTestRunner)); },
removeLoadListener(getApplicationWindow(), this._startSingleTest.bind(this));
removeLoadListener(getApplicationWindow(), fnBind(this._startSingleTest, this));
_startSingleTest:function () { removeLoadListener(getApplicationWindow(), this._startSingleTest.bind(this)); var singleTestName = this.controlPanel.getSingleTestName(); testFrame.load(singleTestName, this.startTest.bind(this)); },
testFrame.load(singleTestName, this.startTest.bind(this));
testFrame.load(singleTestName, fnBind(this.startTest, this));
_startSingleTest:function () { removeLoadListener(getApplicationWindow(), this._startSingleTest.bind(this)); var singleTestName = this.controlPanel.getSingleTestName(); testFrame.load(singleTestName, this.startTest.bind(this)); },
tinyMCE.importPluginLanguagePack('style','en');var TinyMCE_StylePlugin={getInfo:function(){return{longname:'Style',author:'Moxiecode Systems',authorurl:'http:
tinyMCE.importPluginLanguagePack('style');var TinyMCE_StylePlugin={getInfo:function(){return{longname:'Style',author:'Moxiecode Systems AB',authorurl:'http:
tinyMCE.importPluginLanguagePack('style','en');var TinyMCE_StylePlugin={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};},getControl...
this.pauseButton.onclick = this.pauseCurrentTest.bindAsEventListener(this);
this.pauseButton.onclick = fnBindAsEventListener(this.pauseCurrentTest, this);
_switchContinueButtonToPause: function() { this.pauseButton.className = "cssPauseTest"; this.pauseButton.onclick = this.pauseCurrentTest.bindAsEventListener(this); },
this.pauseButton.onclick = this.continueCurrentTest.bindAsEventListener(this);
this.pauseButton.onclick = fnBindAsEventListener(this.continueCurrentTest, this);
_switchPauseButtonToContinue: function() { $('stepTest').disabled = false; this.pauseButton.className = "cssContinueTest"; this.pauseButton.onclick = this.continueCurrentTest.bindAsEventListener(this); },
return f_core.CancelEvent(evt); } if (!dataGrid._columnCanBeSorted) {
_Title_onMouseDown: function(evt) { var column=this._column; var dataGrid=column._dataGrid; if (dataGrid.f_getEventLocked()) { return false; } if (!evt) { evt = window.event; } if (dataGrid.f_isDisabled()) { return f_core.CancelEvent(evt); } var sub=f_core.IsPopupButton(evt); if (sub) { var menu=d...
if (dataGrid.f_isDisabled()) { return f_core.CancelEvent(evt);
if (dataGrid.f_isDisabled() || !dataGrid._columnCanBeSorted) { return false;
_Title_onMouseOut: function(evt) { if (!evt) { evt = window.event; } // En drag ? if (window._dragColumn) { return false; } var column=this._column; var dataGrid=column._dataGrid; if (dataGrid.f_isDisabled()) { return f_core.CancelEvent(evt); } if (dataGrid._columnSelected==column) { dataGrid._col...
if (dataGrid.f_getEventLocked(false)) {
if (dataGrid.f_getEventLocked(false) || !dataGrid._columnCanBeSorted) {
_Title_onMouseOver: function(evt) { var column=this._column; var dataGrid=column._dataGrid; if (dataGrid.f_getEventLocked(false)) { return false; } if (!evt) { evt = window.event; } // En drag ? if (window._dragColumn) { return false; } if (dataGrid.f_isDisabled()) { return f_core.CancelEvent(ev...
if (dataGrid.f_isDisabled()) {
if (dataGrid.f_isDisabled() || !dataGrid._columnCanBeSorted) {
_Title_onMouseUp: function(evt) { var column=this._column; var dataGrid=column._dataGrid; if (dataGrid.f_getEventLocked(false)) { return false; } if (!evt) { evt = window.event; } if (dataGrid.f_isDisabled()) { return f_core.CancelEvent(evt); } var oldColumn=dataGrid._columnSelected; if (!oldColumn) { ...
var inst = tinyMCE.selectedInstance, self = TinyMCE_LayerPlugin; var le = self._getParentLayer(inst.getFocusElement());
var inst = tinyMCE.selectedInstance; var le = this._getParentLayer(inst.getFocusElement());
_toggleAbsolute : function() { var inst = tinyMCE.selectedInstance, self = TinyMCE_LayerPlugin; var le = self._getParentLayer(inst.getFocusElement()); if (le == null) le = tinyMCE.getParentElement(inst.getFocusElement(), 'div,p,img'); if (le) { if (le.style.position.toLowerCase() == "absolute") { le.style.p...
}
},
_toHTML: function(txt) { return txt.escapeHTML().replace(/\n/g,"<br/>"); }
if (attributeValue && attribute.specified)
if (attributeValue && (attribute.specified || attribute.nodeName == 'value'))
function _XPathMsxmlDocumentHelper() { this.getDom = function() { activateDom(this); return this.dom; } this.getXml = function() { activateDom(this); return this.dom.xml; } this.getTextResult = function(expression) { expression = expression.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g...
if (node.nodeType == 3) {
if (node.nodeName.indexOf("/") > -1 || node.nodeName == "" || node.nodeName == "#document" || node.nodeName == "#document-fragment" || node.nodeName == "#cdata-section" || node.nodeName == "#xml-declaration" || node.nodeName == "#whitespace" || node.nodeName == "#significat-whitespace" ) { return; } if (node.nodeName...
function _XPathMsxmlDocumentHelper() { this.getDom = function() { activateDom(this); return this.dom; } this.getXml = function() { activateDom(this); return this.dom.xml; } this.getTextResult = function(expression) { expression = expression.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g...
baseUrl = baseUrl.replace(/[\?\#].*/, "");
function absolutify(url, baseUrl) { /** returns a relative url in its absolute form, given by baseUrl. * * This function is a little odd, because it can take baseUrls that * aren't necessarily directories. It uses the same rules as the HTML * &lt;base&gt; tag; if the baseUrl doesn't end with "/", we'l...
if (/^\ var loginHostName = schemepart.replace(/\/(.*)/, ""); return scheme + ": }
function absolutify(url, baseUrl) { /** returns a relative url in its absolute form, given by baseUrl. * * This function is a little odd, because it can take baseUrls that * aren't necessarily directories. It uses the same rules as the HTML * &lt;base&gt; tag; if the baseUrl doesn't end with "/", we'l...
var offsets = Position.cumulativeOffset(element);
var offsets = Position.positionedOffset(element);
Position.absolutize = function(element) { element = $(element); if(element.style.position=='absolute') return; Position.prepare(); var offsets = Position.cumulativeOffset(element); var top = offsets[1]; var left = offsets[0]; var width = element.clientWidth; var height = element.clientHeight; element...
CommandHandler.call("accessor", true, accessor);
CommandHandler.call(this, "accessor", true, accessor);
function AccessorHandler(accessor) { CommandHandler.call("accessor", true, accessor);}
this.max = 15;
function ACDB(uri) { this.uri = uri; this.max = 15; this.delay = 300; this.cache = {};}
function action_area_generate_search_field(field, caption, is_first, is_last) {
function action_area_generate_search_field(field, caption, is_first, is_last, width) {
function action_area_generate_search_field(field, caption, is_first, is_last) { _elm_dt_container = document.createElement('div'); if (is_first == true) { _elm_dt_container.style.paddingTop = '1px'; }else{ _elm_dt_container.style.paddingTop = '3px'; } _elm_dt_container.style.paddingBottom = '3px'; /* container for t...
_elm_dt_container.style.width = width;
function action_area_generate_search_field(field, caption, is_first, is_last) { _elm_dt_container = document.createElement('div'); if (is_first == true) { _elm_dt_container.style.paddingTop = '1px'; }else{ _elm_dt_container.style.paddingTop = '3px'; } _elm_dt_container.style.paddingBottom = '3px'; /* container for t...
function action_area_generate_text_field(field, caption, is_first, is_last, is_split) {
function action_area_generate_text_field(field, caption, is_first, is_last, is_split, width) {
function action_area_generate_text_field(field, caption, is_first, is_last, is_split) { _elm_dt_container = document.createElement('div'); if (is_first == true) { _elm_dt_container.style.paddingTop = '1px'; }else{ _elm_dt_container.style.paddingTop = '3px'; } _elm_dt_container.style.paddingBottom = '3px'; if (is_spli...
_elm_dt_container.style.width = width;
function action_area_generate_text_field(field, caption, is_first, is_last, is_split) { _elm_dt_container = document.createElement('div'); if (is_first == true) { _elm_dt_container.style.paddingTop = '1px'; }else{ _elm_dt_container.style.paddingTop = '3px'; } _elm_dt_container.style.paddingBottom = '3px'; if (is_spli...
_txt_list_text = document.createTextNode(document.getElementById('box-' + box_id + '-text' + parent_form.elements[i].name.substr(box_id.length + 8)).innerHTML);
_txt_list_text = document.createTextNode(strip_html_tags(document.getElementById('box-' + box_id + '-text' + parent_form.elements[i].name.substr(box_id.length + 8)).innerHTML));
function action_area_update_selected_rows(box_id, parent_form) { if (_elm_selected_rows[box_id]) { _elm_selected_rows[box_id].innerHTML = ''; for (var i = 0; i < parent_form.elements.length; i++) { if ((parent_form.elements[i].name.substr(0, box_id.length + 8) == 'box-' + box_id + '-chk') && (parent_form.elements[i...
document.getElementById('box-' + box_id + '-action-area-items').style.height = 'auto'; document.getElementById('box-' + box_id + '-action-area-menu').style.height = 'auto';
function action_area_update_selected_rows(box_id, parent_form) { if (_elm_selected_rows[box_id]) { _elm_selected_rows[box_id].innerHTML = ''; for (var i = 0; i < parent_form.elements.length; i++) { if ((parent_form.elements[i].name.substr(0, box_id.length + 8) == 'box-' + box_id + '-chk') && (parent_form.elements[i...
if(drop.hoverclass) {
if(drop.hoverclass)
activate: function(drop) { if(this.last_active) this.deactivate(this.last_active); if(drop.hoverclass) { Element.Class.add(drop.element, drop.hoverclass); this.last_active = drop; } },
this.last_active = drop; }
this.last_active = drop;
activate: function(drop) { if(this.last_active) this.deactivate(this.last_active); if(drop.hoverclass) { Element.Class.add(drop.element, drop.hoverclass); this.last_active = drop; } },