rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
count++; var context = testcase.setup ? testcase.setup() : {};
var test = testcase.tests[idx];
run: function (stop_on_error) { var count = 0, failed = 0, errors = 0; testcases.reverse(); try { testcases.forEach( function (testcase) { sys.puts('\n[Testcase: ' + testcase.name + ']'); testcase.tests.forEach( function (test) { coun...
try { test.body(context); sys.puts(' [OK] ' + test.name + ': passed'); } catch (e) { if (e instanceof AssertFailedException) { sys.puts(' [--] ' + test.name + ': failed. ' + e.message); failed++; } else { sys.print(' [!!] ' + test.name + ': error. '); if (e.stack && e.type) { sys.puts(e.type + '\n' + e.stack);
if (test) { idx = idx + 1; count = count + 1; var context = testcase.setup ? testcase.setup() : {}; function handle_result(error) { if (error) { if (error instanceof AssertFailedException) { sys.puts(' [--] ' + test.name + ': failed. ' + error.message); failed_cnt++; } else { sys.print(' [!!] ' + test.name + ': erro...
run: function (stop_on_error) { var count = 0, failed = 0, errors = 0; testcases.reverse(); try { testcases.forEach( function (testcase) { sys.puts('\n[Testcase: ' + testcase.name + ']'); testcase.tests.forEach( function (test) { coun...
sys.puts(JSON.stringify(e, 0, 2));
sys.puts(' [OK] ' + test.name + ': passed');
run: function (stop_on_error) { var count = 0, failed = 0, errors = 0; testcases.reverse(); try { testcases.forEach( function (testcase) { sys.puts('\n[Testcase: ' + testcase.name + ']'); testcase.tests.forEach( function (test) { coun...
errors++;
if (testcase.teardown) { testcase.teardown(context); } process.nextTick(run_tests);
run: function (stop_on_error) { var count = 0, failed = 0, errors = 0; testcases.reverse(); try { testcases.forEach( function (testcase) { sys.puts('\n[Testcase: ' + testcase.name + ']'); testcase.tests.forEach( function (test) { coun...
if (stop_on_error) { throw 'stopping on first error'; }
try { test.body(context, handle_result); } catch (e) { handle_result(e); } } else { sys.puts('----'); process.nextTick(run_testcases);
run: function (stop_on_error) { var count = 0, failed = 0, errors = 0; testcases.reverse(); try { testcases.forEach( function (testcase) { sys.puts('\n[Testcase: ' + testcase.name + ']'); testcase.tests.forEach( function (test) { coun...
if (testcase.teardown) { testcase.teardown(context); } }); sys.puts('----'); }); } catch (e) { if (e === 'stopping on first error') { sys.puts(e); } else { throw e; } } sys.puts('\nTotal: ' + count + ', Failures: ' + failed + ', Errors: ' + errors + '');
})();
run: function (stop_on_error) { var count = 0, failed = 0, errors = 0; testcases.reverse(); try { testcases.forEach( function (testcase) { sys.puts('\n[Testcase: ' + testcase.name + ']'); testcase.tests.forEach( function (test) { coun...
this.runMaterialTestSuite = function () { if (!player.ship.docked)
debugConsole.script.runMaterialTestSuite = function ()
this.runMaterialTestSuite = function () { if (!player.ship.docked) { debugConsole.consoleMessage("command-error", "You must be docked to run the material test suite."); return; } // Show instruction/confirmation screen. var substitutions = { shady_count :this.shadyTestCount, non_shady_count: this.nonShadyTe...
debugConsole.consoleMessage("command-error", "You must be docked to run the material test suite."); return;
worldScripts[scriptName].runMaterialTestSuite();
this.runMaterialTestSuite = function () { if (!player.ship.docked) { debugConsole.consoleMessage("command-error", "You must be docked to run the material test suite."); return; } // Show instruction/confirmation screen. var substitutions = { shady_count :this.shadyTestCount, non_shady_count: this.nonShadyTe...
var substitutions = { shady_count :this.shadyTestCount, non_shady_count: this.nonShadyTestCount }; substitutions.count_string = expandMissionText("oolite_material_test_count_" + debugConsole.maximumShaderMode, substitutions); var introText = expandMissionText("oolite_material_test_confirmation", substitutions); if (su...
this.runMaterialTestSuite = function () { if (!player.ship.docked) { debugConsole.consoleMessage("command-error", "You must be docked to run the material test suite."); return; } // Show instruction/confirmation screen. var substitutions = { shady_count :this.shadyTestCount, non_shady_count: this.nonShadyTe...
substitutions.count_string = expandMissionText(this.shadersSupported ? "oolite_material_test_count_full_shaders" : "oolite_material_test_count_no_shaders", substitutions);
substitutions.count_string = expandMissionText("oolite_material_test_count_" + debugConsole.maximumShaderMode, substitutions);
this.runMaterialTestSuite = function () { if (!player.ship.docked) { debugConsole.consoleMessage("command-error", "You must be docked to run the material test suite."); return; } // Show instruction/confirmation screen. var substitutions = { shady_count :this.shadyTestCount, non_shady_count: this.nonShadyTe...
if (substitutions.count_string === null) { log("materialTest.error.unknownMode", "Shader test suite cannot run because maximum shader mode \"" + debugConsole.maximumShaderMode + "\" is not recognised."); return; }
this.runMaterialTestSuite = function () { if (!player.ship.docked) { debugConsole.consoleMessage("command-error", "You must be docked to run the material test suite."); return; } // Show instruction/confirmation screen. var substitutions = { shady_count :this.shadyTestCount, non_shady_count: this.nonShadyTe...
if (testIndex > this.testCount)
if (testIndex > this.settingsByPass[this.passID].maxIndex)
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done. this.perform...
if (this.passID == 1)
var maxPass = this.shadersSupported ? 3 : 1; if (this.passID < maxPass)
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done. this.perform...
this.passID = 2;
this.passID++;
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done. this.perform...
log("shaderTest.complete", "Shader test suite complete.");
log("materialTest.complete", "Shader test suite complete.");
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done. this.perform...
var modelName = "oolite_shader_test_suite_" + testIndex;
var modelName = passData.rolePrefix + testIndex;
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done. this.perform...
var testDesc = ship.scriptInfo["oolite_shader_test_suite_label"];
var testDesc = ship.scriptInfo["oolite_material_test_suite_label"];
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done. this.perform...
debugConsole.shaderMode = this.passID == 1 ? "SHADERS_SIMPLE" : "SHADERS_FULL";
debugConsole.shaderMode = passData.shaderMode;
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done. this.perform...
var testLabel = (this.passID == 1 ? "simple" : "full") + "-" + testIndex; log("shaderTest.runTest", "Running test " + testLabel + " (" + testDesc + ").");
var passNames = ["", "fixed-function", "simple", "full"]; var testLabel = passData.passName + ":" + testIndex; log("materialTest.runTest", "Running test " + testLabel + " (" + testDesc + ").");
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done. this.perform...
log("shaderTest.error.missionScreenFailed", "The shader test suite failed to run a mission screen.");
log("materialTest.error.missionScreenFailed", "The material test suite failed to run a mission screen.");
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done. this.perform...
var message = expandMissionText((this.maxPassID == 1) ? "oolite_material_test_completion_no_shaders" : "oolite_material_test_completion_shaders", substitutions);
var message = expandMissionText(shady ? "oolite_material_test_completion_no_shaders" : "oolite_material_test_completion_shaders", substitutions);
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.settingsByPass[this.passID].maxIndex) { if (this.passID < this.maxPassID) { // Switch to next pass. this.passID++; this.nextTestIndex = 2; testIndex = 1; } else { // All passes have run, we're done...
var config =
var substitutions =
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.settingsByPass[this.passID].maxIndex) { if (this.passID < this.maxPassID) { // Switch to next pass. this.passID++; this.nextTestIndex = 2; testIndex = 1; } else { // All passes have run, we're done...
title: "Shader test suite", message: "The test suite is complete.\n\n\n" + "Your OpenGL renderer information is:\n" + "Vendor: β€œ" + debugConsole.glVendorString + "”\n" + "Renderer: β€œ" + debugConsole.glRendererString + "”\n\n" + "This information can also be found in the Oolite log."
gl_vendor_string: debugConsole.glVendorString, gl_renderer_string: debugConsole.glRendererString, gl_tex_image_unit_count: debugConsole.glFragmentShaderTextureUnitCount
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.settingsByPass[this.passID].maxIndex) { if (this.passID < this.maxPassID) { // Switch to next pass. this.passID++; this.nextTestIndex = 2; testIndex = 1; } else { // All passes have run, we're done...
Mission.runScreen(config, function () {});
mission.runScreen({ titleKey: "oolite_material_test_title", message: message }, function () {});
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.settingsByPass[this.passID].maxIndex) { if (this.passID < this.maxPassID) { // Switch to next pass. this.passID++; this.nextTestIndex = 2; testIndex = 1; } else { // All passes have run, we're done...
if (!Mission.runScreen(config, this.runNextTest, this))
if (!mission.runScreen(config, this.runNextTest, this))
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.settingsByPass[this.passID].maxIndex) { if (this.passID < this.maxPassID) { // Switch to next pass. this.passID++; this.nextTestIndex = 2; testIndex = 1; } else { // All passes have run, we're done...
debugConsole.debugFlags |= debugConsole.DEBUG_NO_SHADER_FALLBACK;
debugConsole.debugFlags |= debugConsole.DEBUG_NO_SHADER_FALLBACK | debugConsole.DEBUG_SHADER_VALIDATION;
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done. this.perform...
debugConsole.displayFPS = true;
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.settingsByPass[this.passID].maxIndex) { if (this.passID < this.maxPassID) { // Switch to next pass. this.passID++; this.nextTestIndex = 2; testIndex = 1; } else { // All passes have run, we're done...
message: "\n\n\n" + testLabel + "\n" + testDesc
message: "\n\n\n" + testLabel + "\n" + testDesc, background: "oolite_material_test_suite_backdrop.png"
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.settingsByPass[this.passID].maxIndex) { if (this.passID < this.maxPassID) { // Switch to next pass. this.passID++; this.nextTestIndex = 2; testIndex = 1; } else { // All passes have run, we're done...
message: "\n\n\n" + testLabel + "\n" + testDesc,
message: "\n\n" + testLabel + "\n" + testDesc,
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.settingsByPass[this.passID].maxIndex) { if (this.passID < this.maxPassID) { // Switch to next pass. this.passID++; this.nextTestIndex = 2; testIndex = 1; } else { // All passes have run, we're done...
var testIndex = this.nextTestIndex++; if (testIndex > this.testCount)
if (this.passID == 1)
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done....
if (this.passID == 1)
this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { this.performCleanUp(); var config =
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done....
this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { this.performCleanUp(); var config = { title: "Shader test suite", message: "The test suite is complete.\n\n\n" + "Your OpenGL renderer information is:\n" + "Vendor: β€œ" + debugConsole.glVendorString + "”\n" + "Renderer: β€œ" + debugConsole.glRendererString ...
title: "Shader test suite", message: "The test suite is complete.\n\n\n" + "Your OpenGL renderer information is:\n" + "Vendor: β€œ" + debugConsole.glVendorString + "”\n" + "Renderer: β€œ" + debugConsole.glRendererString + "”\n\n" + "This information can also be found in the Oolite log." }; log("shaderTest.complete", "Shade...
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done....
var modelName = "oolite_shader_test_suite_" + testIndex; var ship = system.addShips(modelName, 1, system.sun.position, 10000)[0]; var testDesc = ship.scriptInfo["oolite_shader_test_suite_label"]; ship.remove(); debugConsole.shaderMode = this.passID == 1 ? "SHADERS_SIMPLE" : "SHADERS_FULL"; debugConsole.displayFPS = t...
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done....
var maxPass = this.shadersSupported ? 3 : 1; if (this.passID < maxPass)
if (this.passID < this.maxPassID)
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.settingsByPass[this.passID].maxIndex) { var maxPass = this.shadersSupported ? 3 : 1; if (this.passID < maxPass) { // Switch to next pass. this.passID++; this.nextTestIndex = 2; testIndex = 1; } els...
debugConsole.debugFlags |= debugConsole.DEBUG_NO_SHADER_FALLBACK;
this.runNextTest = function () { var testIndex = this.nextTestIndex++; if (testIndex > this.testCount) { if (this.passID == 1) { // Switch to next pass (full shader mode). this.passID = 2; this.nextTestIndex = 2; testIndex = 1; } else { // Both passes have run, we're done....
var autocomplete = YAHOO.util.Dom.get(staticDynamic + "-autocomplete"); var lis = autocomplete.getElementsByTagName("li");
var autocompleteDiv = YAHOO.util.Dom.get(staticDynamic + "-autocomplete"); var autocompleteSuggestions = YAHOO.util.Dom.getElementsByClassName("fr-autocomplete-yui-div", null, autocompleteDiv)[0]; var lis = autocompleteSuggestions.getElementsByTagName("li");
runOnLis: function(staticDynamic, f) { var autocomplete = YAHOO.util.Dom.get(staticDynamic + "-autocomplete"); var lis = autocomplete.getElementsByTagName("li"); for (liIndex = 0; liIndex < lis.length; liIndex++) { var li = lis[liIndex]; if (li.styl...
if (!player.ship.docked) { debugConsole.consoleMessage("command-error", "You must be docked to run the shader test suite."); return; } if (!Mission.runScreen({ title: "Shader test suite", messageKey: "oolite_shader_test_confirmation", choicesKey: "oolite_shader_test_confirmation_choices" }, this.startTest, this)) { l...
debugConsole.consoleMessage("command-error", "You must be docked to run the shader test suite."); return;
this.runShaderTestSuite = function () { if (!player.ship.docked) { debugConsole.consoleMessage("command-error", "You must be docked to run the shader test suite."); return; } // Show instruction/confirmation screen. if (!Mission.runScreen({ title: "Shader test suite", messageKey: "oolite_shader_te...
if (!Mission.runScreen({ title: "Shader test suite", messageKey: "oolite_shader_test_confirmation", choicesKey: "oolite_shader_test_confirmation_choices" }, this.startTest, this)) { log("shaderTest.error.missionScreenFailed", "The shader test suite failed to run a mission screen."); return; } }
this.runShaderTestSuite = function () { if (!player.ship.docked) { debugConsole.consoleMessage("command-error", "You must be docked to run the shader test suite."); return; } // Show instruction/confirmation screen. if (!Mission.runScreen({ title: "Shader test suite", messageKey: "oolite_shader_te...
FBTest.loadScript("FBTestFireformat.js", this);
function runTest() { FBTest.loadScript("FBTestFireformat.js", this); var prefs = new FBTestFireformat.PrefHandler([ "fireformatHtmlFormatter.wrapSize" ]); var formatter = Format.Formatters.getFormatter("com.incaseofstairs.fireformatHTMLFormatter"), xmlDoc = document.implementation.createDocument(null, "",...
FBTest.loadScript("FBTestFireformat.js", this);
function runTest() { FBTest.loadScript("FBTestFireformat.js", this); var prefs = new FBTestFireformat.PrefHandler([ "fireformatCssFormatter.wrapSize", "fireformatCssFormatter.selectorText.selectorsPerLine", "fireformatCssFormatter.selectorText.spaceCount", "fireformatCssFormatter.selectorText....
FBTest.compare(" attr1 = \"attr1 value\"", getAttr(htmlElement), "HTML Attr Default, Wrap");
FBTest.compare("\n attr1 = \"attr1 value\"", getAttr(htmlElement), "HTML Attr Default, Wrap");
function runTest() { FBTest.loadScript("FBTestFireformat.js", this); var prefs = new FBTestFireformat.PrefHandler([ "fireformatHtmlFormatter.attribute.attrsPerLine", "fireformatHtmlFormatter.attribute.indentLevel", "fireformatHtmlFormatter.attribute.listSeparator", "fireformatHtmlFormatter.att...
FBTest.compare(" attr1 = \"attr1 value\"\n attr2 = \"attr2 value\"", getAttr(htmlElement), "HTML Multiple Default, Char Wrap");
FBTest.compare("\n attr1 = \"attr1 value\"\n attr2 = \"attr2 value\"", getAttr(htmlElement), "HTML Multiple Default, Char Wrap");
function runTest() { FBTest.loadScript("FBTestFireformat.js", this); var prefs = new FBTestFireformat.PrefHandler([ "fireformatHtmlFormatter.attribute.attrsPerLine", "fireformatHtmlFormatter.attribute.indentLevel", "fireformatHtmlFormatter.attribute.listSeparator", "fireformatHtmlFormatter.att...
FBTest.loadScript("FBTestFireformat.js", this);
function runTest() { FBTest.loadScript("FBTestFireformat.js", this); var prefs = new FBTestFireformat.PrefHandler([ "fireformatHtmlFormatter.attribute.attrsPerLine", "fireformatHtmlFormatter.attribute.indentLevel", "fireformatHtmlFormatter.attribute.listSeparator", "fireformatHtmlFormatter.att...
FBTest.loadScript("FBTestFireformat.js", this);
function runTest() { FBTest.loadScript("FBTestFireformat.js", this); var prefs = new FBTestFireformat.PrefHandler([ "fireformatHtmlFormatter.element.htmlNameToLower", "fireformatHtmlFormatter.element.separatorBeforeAttributes", "fireformatHtmlFormatter.element.separatorBeforeClose", "fireforma...
prefs.setPrefs(true, " ", "", " "); FBTest.compare("<div class=\"test value\" />", formatter.format(htmlElement), "XHTML Element, Spaces");
function runTest() { FBTest.loadScript("FBTestFireformat.js", this); var prefs = new FBTestFireformat.PrefHandler([ "fireformatHtmlFormatter.element.htmlNameToLower", "fireformatHtmlFormatter.element.separatorBeforeAttributes", "fireformatHtmlFormatter.element.separatorBeforeClose", "fireforma...
+ " div:after {\n" + " content: \"test\";\n" + " }\n"
function runTest() { var urlBase = FBTest.getHTTPURLBase(); var Formatter = FBTest.FirebugWindow.FireDiff.formatter, FBTrace = FBTest.FirebugWindow.FBTrace; //FBTest.loadScript("FBTestFireDiff.js", this); FBTestFirebug.openNewTab(urlBase + "formatter/htmlFormatter/html_index.html", function(win) { var For...
FBTest.loadScript("FBTestFireformat.js", this);
function runTest() { FBTest.loadScript("FBTestFireformat.js", this); var formatter = Format.Formatters.getFormatter("com.incaseofstairs.fireformatHTMLFormatter"), input = "\u0022\u0026\u0027\u003E\u00FF\u0152\u0153\u0160", output = "&quot;&amp;&apos;&gt;&yuml;&OElig;&oelig;&Scaron;" // Test text node outpu...
FBTest.loadScript("FBTestFireformat.js", this);
function runTest() { FBTest.loadScript("FBTestFireformat.js", this); var prefs = new FBTestFireformat.PrefHandler([ "fireformatCssFormatter.wrapSize", "fireformatCssFormatter.atRule.tokensPerLine", "fireformatCssFormatter.atRule.indentLevel", "fireformatCssFormatter.atRule.spaceBeforeValue", ...
FBTest.loadScript("FBTestFireformat.js", this);
function runTest() { FBTest.loadScript("FBTestFireformat.js", this); var prefs = new FBTestFireformat.PrefHandler([ "fireformatCssFormatter.block.indentLevel", "fireformatCssFormatter.block.separatorBeforeOpen", "fireformatCssFormatter.block.separatorAfterOpen", "fireformatCssFormatter.block.s...
+ " div:after {\n" + " content: &quot;test&quot;;\n" + " }\n" + " </HTML:style>\n" + " <HTML:style type=\"text/css\">\n" + " <![CDATA[\n" + " div:after {\n" + " content: \"test\";\n" + " }\n" + " ]]>\n"
function runTest() { var urlBase = FBTest.getHTTPURLBase(); var Formatter = FBTest.FirebugWindow.FireDiff.formatter, FBTrace = FBTest.FirebugWindow.FBTrace; FBTestFirebug.openNewTab(urlBase + "formatter/htmlFormatter/xhtml_index.xhtml", function(win) { var Format = {}; Components.utils.import("resource:...
f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this,[{toggle:c},a,b,d])},swit...
[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.6",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hid...
f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this,[{toggle:c},a,b,d])},swit...
var gl_Slide=new Class({options:{active:'',fx:{wait:false,duration:350},scrollFX:{wait:false,transition:Fx.Transitions.Sine.easeInOut},dimensions:{width:722,height:200}},initialize:function(contents,options){this.setOptions(options);this.content=$(contents);this.sections=this.content.getElements('.tab-pane');if(!this.s...
scrollArrow:function(element){ var direction=Math.pow(-1,['left','right'].indexOf(element.id)+1); var current=this.sectionptr.indexOf(this.filmstrip.getElement('.current').id); var to=current+direction; this.scrollSection(this.sectionptr[to<0?this.sectionptr.length-1:to%this.sectionptr.length]) },
var gl_Slide=new Class({options:{active:'',fx:{wait:false,duration:350},scrollFX:{wait:false,transition:Fx.Transitions.Sine.easeInOut},dimensions:{width:722,height:200}},initialize:function(contents,options){this.setOptions(options);this.content=$(contents);this.sections=this.content.getElements('.tab-pane');if(!this.s...
var gl_Slide=new Class({options:{active:'',fx:{wait:false,duration:350},scrollFX:{wait:false,transition:Fx.Transitions.Sine.easeInOut},dimensions:{width:722,height:200}},initialize:function(contents,options){this.setOptions(options);this.content=$(contents);this.sections=this.content.getElements('.tab-pane');if(!this.s...
scrollSection:function(element){ element=$($(element||this.sections[0]).id.replace('-pane','-tab')); var oldactive=element.getParent().getElement('.current'); if(oldactive)oldactive.removeClass('current'); element.addClass('current'); $(element.id.replace('-tab','-pane')); var offset = this.sectionptr.indexOf(this.film...
var gl_Slide=new Class({options:{active:'',fx:{wait:false,duration:350},scrollFX:{wait:false,transition:Fx.Transitions.Sine.easeInOut},dimensions:{width:722,height:200}},initialize:function(contents,options){this.setOptions(options);this.content=$(contents);this.sections=this.content.getElements('.tab-pane');if(!this.s...
function searchRequest() { var queryString = jQuery("#searchInputField").attr("value"); log('start searching for ' + queryString);
function searchRequest(query) { if (typeof query == "undefined") var queryString= jQuery("#searchInputField").attr("value"); else queryString = query; if(debug) log('start searching for ' + queryString);
function searchRequest() { var queryString = jQuery("#searchInputField").attr("value"); log('start searching for ' + queryString); queryString = urlencode(queryString); var anotherUrl = HIDDEN_SERVICE_URL + 'searchGeoObjects.php?query=' + queryString + '&topicmapId=' + topicId + '&workspaceId=' + workspac...
var anotherUrl = HIDDEN_SERVICE_URL + 'searchGeoObjects.php?query=' + queryString + '&topicmapId=' + topicId + '&workspaceId=' + workspaceId;
var body = '{"method": "searchGeoObjects", "params": ["'+queryString+'", "'+topicId+'", "'+workspaceId+'"]}';
function searchRequest(query) { if (typeof query == "undefined") var queryString= jQuery("#searchInputField").attr("value"); else queryString = query; if(debug) log('start searching for ' + queryString); queryString = urlencode(queryString); var anotherUrl = HIDDEN_SERVICE_URL + 'searchGeoObjects.php?q...
type: "GET", url: anotherUrl,
type: "POST", url: SERVICE_URL, data: body, beforeSend: function(xhr) {xhr.setRequestHeader("Content-Type", "application/json")},
function searchRequest(query) { if (typeof query == "undefined") var queryString= jQuery("#searchInputField").attr("value"); else queryString = query; if(debug) log('start searching for ' + queryString); queryString = urlencode(queryString); var anotherUrl = HIDDEN_SERVICE_URL + 'searchGeoObjects.php?q...
function selectAndShowInMap(originId) { var feature = checkFeatureByOriginId(originId);
function selectAndShowInMap(originId, isTopicId) { var feature = null; if (isTopicId) { feature = checkFeatureByTopicId(originId); } else { feature = checkFeatureByOriginId(originId); }
function selectAndShowInMap(originId) { var feature = checkFeatureByOriginId(originId); if (feature == null) { // project could not be assoiciated with a correct address, though is not published // ### TODO: showInfo in SideBar var helpHtmlOne = '<br/><b class="redTitle">Entschuldigen sie bitte...
E.innerHTML="";},_makeColorButton:function(E){if(!this._colorPicker){this._createColorPicker(this.get("id"));}E.type="color";E.menu=new YAHOO.widget.Overlay(this.get("id")+"_"+E.value+"_menu",{visible:false,position:"absolute",iframe:true});E.menu.setBody("");E.menu.render(this.get("cont"));C.addClass(E.menu.element,"y...
(function(){var b=YAHOO.util.Dom,a=YAHOO.util.Event,c=YAHOO.lang;if(YAHOO.widget.Button){YAHOO.widget.ToolbarButtonAdvanced=YAHOO.widget.Button;YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType="rich";YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue=function(f){var e=this.getMenu().getItems();if(e.length==...
E.innerHTML="";},_makeColorButton:function(E){if(!this._colorPicker){this._createColorPicker(this.get("id"));}E.type="color";E.menu=new YAHOO.widget.Overlay(this.get("id")+"_"+E.value+"_menu",{visible:false,position:"absolute",iframe:true});E.menu.setBody("");E.menu.render(this.get("cont"));C.addClass(E.menu.element,"y...
c.target===d&&setTimeout(function(){e(document).one("mousedown",function(f){f.target!==a.element[0]&&f.target!==d&&!e.ui.contains(d,f.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,d){d=d.item.data("item.autocomplete");false!==a._trigger("focus",null,{item:d})&&/^ke...
"body",b)[0]).mousedown(function(c){var d=a.menu.element[0];e(c.target).closest(".ui-menu-item").length||setTimeout(function(){e(document).one("mousedown",function(g){g.target!==a.element[0]&&g.target!==d&&!e.ui.contains(d,g.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:funct...
c.target===d&&setTimeout(function(){e(document).one("mousedown",function(f){f.target!==a.element[0]&&f.target!==d&&!e.ui.contains(d,f.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,d){d=d.item.data("item.autocomplete");false!==a._trigger("focus",null,{item:d})&&/^ke...
ORBEON.xforms.Document.setValue(this.select1Control.id, option.value);
ORBEON.xforms.Document.setValue(this.select1ControlId, option.value);
selectionMade: function(name, event, option) { this.yuiButton.set("label", option.label); ORBEON.xforms.Document.setValue(this.select1Control.id, option.value); },
logger.log('send', name, JSON.stringify(args))
logger.debug('send', name, JSON.stringify(args))
this.sendFrame = function(name, args) { logger.log('send', name, JSON.stringify(args)) supr(this, 'sendFrame', arguments) }
if (ORBEON.util.Dom.hasClass(candidateForm, "xforms-form")) {
if (YAHOO.util.Dom.hasClass(candidateForm, "xforms-form")) {
sendHeartBeatIfNeeded: function(heartBeatDelay) { var currentTime = new Date().getTime(); if ((currentTime - ORBEON.xforms.Globals.lastEventSentTime) >= heartBeatDelay) { var heartBeatDiv = YAHOO.util.Dom.get("xforms-heartbeat"); if (heartBeatDiv == null) { var for...
serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();retur...
"object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,k){if(k==="success"||k==="notmodified")h.html(f?c("<div>").append(l.responseText.replace(nb,"")).find(f):l.responseText);d&&h.each(d,[l.responseText,k,l])}});return this},serialize:funct...
serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();retur...
serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();retur...
"object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,k){if(k==="success"||k==="notmodified")h.html(f?c("<div>").append(l.responseText.replace(nb,"")).find(f):l.responseText);d&&h.each(d,[l.responseText,k,l])}});return this},serialize:funct...
serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();retur...
sys.puts("loading " + filename + "...");
exports.serveFile = function(req, res, filename) { // TODO: Ensure security against directory traversal attacks var body, headers; var content_type = mime.lookup(extname(filename)); var encoding = (content_type.slice(0,4) === 'text' ? 'utf8' : 'binary'); var status = 200; function loadResponseData...
sys.puts("Error loading " + filename);
exports.serveFile = function(req, res, filename) { // TODO: Ensure security against directory traversal attacks var body, headers; var content_type = mime.lookup(extname(filename)); var encoding = (content_type.slice(0,4) === 'text' ? 'utf8' : 'binary'); var status = 200; function loadResponseData...
sys.puts("static file " + filename + " loaded");
exports.serveFile = function(req, res, filename) { // TODO: Ensure security against directory traversal attacks var body, headers; var content_type = mime.lookup(extname(filename)); var encoding = (content_type.slice(0,4) === 'text' ? 'utf8' : 'binary'); var status = 200; function loadResponseData...
var promise = posix.cat(filename, encoding); promise.addCallback(function(data) {
fs.readFile(filename, encoding, function (error, data) { if (error) { status = 404; body = '404' sys.puts("Error loading " + filename); return callback(); }
exports.serveFile = function(req, res, filename) { // TODO: Ensure security against directory traversal attacks var body, headers; var content_type = mime.lookup(extname(filename)); var encoding = (content_type.slice(0,4) === 'text' ? 'utf8' : 'binary'); var status = 200; function loadResponseData...
promise.addErrback(function() { status = 404; body = '404' sys.puts("Error loading " + filename); callback(); });
exports.serveFile = function(req, res, filename) { // TODO: Ensure security against directory traversal attacks var body, headers; var content_type = mime.lookup(extname(filename)); var encoding = (content_type.slice(0,4) === 'text' ? 'utf8' : 'binary'); var status = 200; function loadResponseData...
res.sendBody(body, encoding); res.finish();
res.write(body, encoding); res.close();
exports.serveFile = function(req, res, filename) { // TODO: Ensure security against directory traversal attacks var body, headers; var content_type = mime.lookup(extname(filename)); var encoding = (content_type.slice(0,4) === 'text' ? 'utf8' : 'binary'); var status = 200; function loadResponseData...
this._mutate({ id: itemId, op: 'set', prop: propName, args: [JSON.stringify(value)] })
var key = shared.keys.getItemPropertyKey(itemId, propName) this._mutate({ key: key, op: 'set', args: [JSON.stringify(value)] })
this.set = function(itemId, propName, value) { if (arguments.length == 2) { var properties = propName for (var propName in properties) { this.set(itemId, propName, properties[propName]) } return } this._mutate({ id: itemId, op: 'set', prop: propName, args: [JSON.stringify(value)] }) }
var key = shared.keys.getItemPropertyKey(itemId, propName)
var key = shared.keys.getItemPropertyKey(itemId, propName), value = properties[propName] if (typeof value == 'boolean') { value = value ? 1 : 0 }
this.set = function(itemId, properties) { var args = [], props = [] if (arguments.length == 3) { var propName = properties properties = {} properties[propName] = arguments[2] } for (var propName in properties) { var key = shared.keys.getItemPropertyKey(itemId, propName) props.push(propName) ar...
args.push(properties[propName])
args.push(JSON.stringify(value))
this.set = function(itemId, properties) { var args = [], props = [] if (arguments.length == 3) { var propName = properties properties = {} properties[propName] = arguments[2] } for (var propName in properties) { var key = shared.keys.getItemPropertyKey(itemId, propName) props.push(propName) ar...
this.send('FIN_REQUEST_MUTATE_ITEM', { id: itemId, op: 'mset', props: props, args: args })
this._mutate({ id: itemId, op: 'mset', props: props, args: args })
this.set = function(itemId, properties) { var args = [], props = [] if (arguments.length == 3) { var propName = properties properties = {} properties[propName] = arguments[2] } for (var propName in properties) { var key = shared.keys.getItemPropertyKey(itemId, propName) props.push(propName) ar...
combo_id_suffix=apieces[apieces.length-1];
combo_id_suffix=apieces[apieces.length-2] + '_' + apieces[apieces.length-1];
function set_combo_if_checkbox(oid,combo_id_prefix,value_to_assign){ var f=document.getElementById(oid); var all_inputs = f.getElementsByTagName('input'); var input_element; var check_id=''; var apieces=''; var combo_id_suffix=''; var cb_id= new Array(); var jdx=0; var idx=0; // Build an array with the html select i...
function set_path(path) {
exports.set_path = function (path) {
function set_path(path) { template_path = path;}
}
};
function set_path(path) { template_path = path;}
if (! ORBEON.util.Dom.existsAncestorOrSelf(element, function(node) { return YAHOO.util.Dom.hasClass(node, "xforms-case-deselected") || YAHOO.util.Dom.hasClass(node, "xforms-disabled") }, null, false)) {
var hasParentDisabledOrNonRelevant = ORBEON.util.Dom.existsAncestorOrSelf(element, function(node) { return YAHOO.util.Dom.hasClass(node, "xforms-case-deselected") || YAHOO.util.Dom.hasClass(node, "xforms-disabled"); }, null, false); if (! hasParentDisabledOrNonRelevant) {
setDisabledOnTree: function(root, disabled) { ORBEON.util.Dom.applyOnFormElements(root, function(element) { if (disabled) { // If the root becomes disabled, make all the form controls under that root disabled ORBEON.xforms.Controls.setDisabledOnFormElement(element, di...
yuiRTE.focus();
setFocus: function(control) { var yuiRTE = rteEditors[control.id]; // NOP: not sure what we can do with YUI 2.6. It seems 2.7 has a focus() method. },
for (i = 0; i < series.length; ++i)
for (var i = 0; i < series.length; ++i)
function setGridSpacing() { // get the most space needed around the grid for things // that may stick out var maxOutset = options.grid.borderWidth; for (i = 0; i < series.length; ++i) maxOutset = Math.max(maxOutset, 2 * (series[i...
var helpImage = ORBEON.xforms.Controls._getControlLHHA(control, "help-image"); ORBEON.util.Dom.removeClass(helpImage, "xforms-disabled");
setHelpMessage: function(control, message) { // We escape the value because the help element is a little special, containing escaped HTML message = ORBEON.util.String.escapeHTMLMinimal(message); ORBEON.xforms.Controls._setMessage(control, "help", message); ORBEON.xforms.Controls._setTool...
if (ORBEON.util.Dom.hasClass(control, "xforms-trigger") || ORBEON.util.Dom.hasClass(control, "xforms-submit")) {
if (YAHOO.util.Dom.hasClass(control, "xforms-trigger") || YAHOO.util.Dom.hasClass(control, "xforms-submit")) {
setHintMessage: function(control, message) { if (ORBEON.util.Dom.hasClass(control, "xforms-trigger") || ORBEON.util.Dom.hasClass(control, "xforms-submit")) { // For triggers, the value is stored in the title for the control if (ORBEON.xforms.Globals.hintTooltipForControl[control.id] == ...
if (ORBEON.util.Dom.hasClass(control, "xforms-trigger") || ORBEON.util.Dom.hasClass(control, "xforms-submit")) {
if (YAHOO.util.Dom.hasClass(control, "xforms-trigger") || YAHOO.util.Dom.hasClass(control, "xforms-submit")) {
setLabelMessage: function(control, message) { if (ORBEON.util.Dom.hasClass(control, "xforms-trigger") || ORBEON.util.Dom.hasClass(control, "xforms-submit")) { var linkButtonElement = ORBEON.util.Utils.isNewXHTMLLayout() ? YAHOO.util.Dom.getFirstChild(control) : contro...
} else if (ORBEON.util.Dom.hasClass(control, "xforms-dialog")) {
} else if (YAHOO.util.Dom.hasClass(control, "xforms-dialog")) {
setLabelMessage: function(control, message) { if (ORBEON.util.Dom.hasClass(control, "xforms-trigger") || ORBEON.util.Dom.hasClass(control, "xforms-submit")) { var linkButtonElement = ORBEON.util.Utils.isNewXHTMLLayout() ? YAHOO.util.Dom.getFirstChild(control) : contro...
} else if (ORBEON.util.Dom.hasClass(control, "xforms-group-appearance-xxforms-fieldset")) {
} else if (YAHOO.util.Dom.hasClass(control, "xforms-group-appearance-xxforms-fieldset")) {
setLabelMessage: function(control, message) { if (ORBEON.util.Dom.hasClass(control, "xforms-trigger") || ORBEON.util.Dom.hasClass(control, "xforms-submit")) { var linkButtonElement = ORBEON.util.Utils.isNewXHTMLLayout() ? YAHOO.util.Dom.getFirstChild(control) : contro...
} else if (ORBEON.util.Dom.hasClass(control, "xforms-output-appearance-xxforms-download")) {
} else if (YAHOO.util.Dom.hasClass(control, "xforms-output-appearance-xxforms-download")) {
setLabelMessage: function(control, message) { if (ORBEON.util.Dom.hasClass(control, "xforms-trigger") || ORBEON.util.Dom.hasClass(control, "xforms-submit")) { var linkButtonElement = ORBEON.util.Utils.isNewXHTMLLayout() ? YAHOO.util.Dom.getFirstChild(control) : contro...
var linkButtonElement = ORBEON.util.Utils.isNewXHTMLLayout() ? YAHOO.util.Dom.getFirstChild(control) : control; if (linkButtonElement.tagName.toLowerCase() == "input") { linkButtonElement.alt = message;
if (ORBEON.util.Utils.isNewXHTMLLayout()) { ORBEON.xforms.Controls._setMessage(control, "control", message);
setLabelMessage: function(control, message) { if (YAHOO.util.Dom.hasClass(control, "xforms-trigger") || YAHOO.util.Dom.hasClass(control, "xforms-submit")) { var linkButtonElement = ORBEON.util.Utils.isNewXHTMLLayout() ? YAHOO.util.Dom.getFirstChild(control) : control;...
linkButtonElement.innerHTML = message;
control.innerHTML = message;
setLabelMessage: function(control, message) { if (YAHOO.util.Dom.hasClass(control, "xforms-trigger") || YAHOO.util.Dom.hasClass(control, "xforms-submit")) { var linkButtonElement = ORBEON.util.Utils.isNewXHTMLLayout() ? YAHOO.util.Dom.getFirstChild(control) : control;...
if (onBerlinDe) fullW = fullW - 1; var mapW = fullW - sideW - 7; if (onBerlinDe) mapW = fullW - sideW - 6;
if (onBerlinDe) fullW = fullW - 1; var mapW = mapW = fullW - sideW - 6;
function setLayout(fullH, fullW) { var sideW = 320; var topHeight = jQuery("#kaheader").css("height"); var startHeight = jQuery("#kaheader").css("top"); topHeight = parseInt(topHeight.substr(0, topHeight.length-2)); startHeight = parseInt(startHeight.substr(0, startHeight.length-2)); // topHeight = ...
jQuery("#kiezatlas").css("width", fullW); jQuery("#kiezatlas").css("visibility", "visible");
if (onBerlinDe) jQuery("#kiezatlas").css("width", fullW); jQuery("#kiezatlas").css("visibility", "visible");
function setLayout(fullH, fullW) { var sideW = 320; var topHeight = jQuery("#kaheader").css("height"); var startHeight = jQuery("#kaheader").css("top"); topHeight = parseInt(topHeight.substr(0, topHeight.length-2)); startHeight = parseInt(startHeight.substr(0, startHeight.length-2)); // topHeight = ...
jQuery("#mapControl").css("left", mapW - 128);
jQuery("#mapControl").css("left", mapW - 129);
function setLayout(fullH, fullW) { var sideW = 320; var topHeight = jQuery("#kaheader").css("height"); var startHeight = jQuery("#kaheader").css("top"); topHeight = parseInt(topHeight.substr(0, topHeight.length-2)); startHeight = parseInt(startHeight.substr(0, startHeight.length-2)); // topHeight = ...
jQuery("#sideBar").css("left", mapW + 5);
jQuery("#sideBar").css("left", mapW + 4);
function setLayout(fullH, fullW) { var sideW = 320; var topHeight = jQuery("#kaheader").css("height"); var startHeight = jQuery("#kaheader").css("top"); topHeight = parseInt(topHeight.substr(0, topHeight.length-2)); startHeight = parseInt(startHeight.substr(0, startHeight.length-2)); // topHeight = ...
jQuery("#resizeButton").attr("height", parseInt(jQuery("#kaheader").css("height"))-4); jQuery("#resizeButton").attr("width", parseInt(jQuery("#kaheader").css("height"))-4);
function setLayout(fullH, fullW) { var sideW = 320; var topHeight = jQuery("#kaheader").css("height"); var startHeight = jQuery("#kaheader").css("top"); topHeight = parseInt(topHeight.substr(0, topHeight.length-2)); startHeight = parseInt(startHeight.substr(0, startHeight.length-2)); // topHeight = ...
var params = { id: this._localId, op: 'set', prop: propName, args: [JSON.stringify(value)] } this._mutate(params, { local: true })
this._mutate({ locals: true, id: this._localId, op: 'set', prop: propName, args: [JSON.stringify(value)] })
this.setLocal = function(propName, value) { var params = { id: this._localId, op: 'set', prop: propName, args: [JSON.stringify(value)] } this._mutate(params, { local: true }) }
this._mutate({ locals: true, id: this._localId, op: 'set', prop: propName, args: [JSON.stringify(value)] })
this._mutate({ local: true, id: this._localId, op: 'set', prop: propName, args: [JSON.stringify(value)] })
this.setLocal = function(propName, value) { this._mutate({ locals: true, id: this._localId, op: 'set', prop: propName, args: [JSON.stringify(value)] }) }
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS...
"marginTop"))||0;d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var f=c(a),h=f.offset(),l=c.css(a,"top"),k=c.css(a,"left"),o=e==="absolute"&&c.inArray("auto",[l,k])>-1;e={};var x={};if(o)x=f.position();l=o?x.t...
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS...
var oElement = this.cfg.getProperty(_ROLE) === _DIALOG ? this.innerElement : this.body; setARIAProperty(oElement, _HIDDEN, !this.cfg.getProperty(_VISIBLE));
setARIAProperty(this.innerElement, _HIDDEN, !this.cfg.getProperty(_VISIBLE));
var setPanelHiddenRole = function () { var oElement = this.cfg.getProperty(_ROLE) === _DIALOG ? this.innerElement : this.body; setARIAProperty(oElement, _HIDDEN, !this.cfg.getProperty(_VISIBLE)); };
if (isRelevant) ORBEON.util.Dom.removeClass(node, "xforms-disabled"); else ORBEON.util.Dom.addClass(node, "xforms-disabled");
if (isRelevant) YAHOO.util.Dom.removeClass(node, "xforms-disabled"); else YAHOO.util.Dom.addClass(node, "xforms-disabled");
setRelevant: function(node, isRelevant) { var FN = ORBEON.xforms.FlatNesting; var YD = YAHOO.util.Dom; var OD = ORBEON.util.Dom; var OC = ORBEON.xforms.Controls; // Update class on group begin or delimiter if (isRelevant) ORBEON.util.Dom.removeClass(node, "xforms-disabled")...
OD.removeClass(node, "xforms-disabled"); OD.removeClass(node, "xforms-disabled-subsequent");
YD.removeClass(node, "xforms-disabled"); YD.removeClass(node, "xforms-disabled-subsequent");
setRelevant: function(node, isRelevant) { var FN = ORBEON.xforms.FlatNesting; var YD = YAHOO.util.Dom; var OD = ORBEON.util.Dom; var OC = ORBEON.xforms.Controls; // Update class on group begin or delimiter if (isRelevant) ORBEON.util.Dom.removeClass(node, "xforms-disabled")...
OD.addClass(node, "xforms-disabled-subsequent");
YD.addClass(node, "xforms-disabled-subsequent");
setRelevant: function(node, isRelevant) { var FN = ORBEON.xforms.FlatNesting; var YD = YAHOO.util.Dom; var OD = ORBEON.util.Dom; var OC = ORBEON.xforms.Controls; // Update class on group begin or delimiter if (isRelevant) ORBEON.util.Dom.removeClass(node, "xforms-disabled")...