rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 13
136k
| meta
stringlengths 132
347
|
---|---|---|---|
} | function BX_init() { BX_schema_init(); BX_xmlTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformfile']"); BX_xmlTR.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformfile']"); BX_xmlTR.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xmltransformfile']","xsltParamName"); BX_xslTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xsltransformfile']"); BX_xmlTRBack = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformbackfile']"); BX_xmlTRBack.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformbackfile']"); BX_xslViewSource = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xslViewSourceFile']"); /* not implemented yet */ // var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xml = new BXE_XmlDocument("/config/files/input/file[@name='BX_xmlfile']"); BX_xsl = new BXE_XmlDocument("/config/files/input/file[@name='BX_xslfile']"); BX_xsl.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xslfile']","xsltParamName"); BX_posturl = new BXE_XmlDocument("/config/files/output/file[@name='BX_posturl']"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { var nodeValue = BX_config_translateUrl(node); //replace quotes typed in config.xml. can go away later. nodeValue = "'" + nodeValue.replace(/^'/,"").replace(/'$/,"") + "'"; // the == "'0'" operator should go away later as will, it // should make transitioning easier. if (nodeValue == "'false'" || nodeValue == "'0'") { nodeValue = false; } else if (nodeValue == "'true'") { nodeValue = true; } eval(node.getAttribute("name") + ' = ' + nodeValue ); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_infobar.addEventListener("mouseup", BX_event_buttonbarMouseUp, false); BX_xml.load(); BX_xsl.load(); BX_xmlTR.load(); BX_xslTR.load(); BX_xmlTRBack.load(BX_xmlTRBack_loaded); BX_transformLocation = document.getElementById("transformlocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.doc.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
|
function BX_init() { | function BX_init() { | function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); | BX_xmlTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformfile']"); BX_xmlTR.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformfile']"); BX_xmlTR.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xmltransformfile']","xsltParamName"); | function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); | BX_xslTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xsltransformfile']"); | function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']"); /* not implemented yet */ | BX_xmlTRBack = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformbackfile']"); BX_xmlTRBack.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformbackfile']"); | function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); | BX_xslViewSource = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xslViewSourceFile']"); /* not implemented yet */ | function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); | BX_xml = new BXE_XmlDocument("/config/files/input/file[@name='BX_xmlfile']"); | function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); | BX_xsl = new BXE_XmlDocument("/config/files/input/file[@name='BX_xslfile']"); BX_xsl.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xslfile']","xsltParamName"); BX_posturl = new BXE_XmlDocument("/config/files/output/file[@name='BX_posturl']"); | function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { | while (node = options.iterateNext()) { if (node.firstChild) { var nodeValue = BX_config_translateUrl(node); nodeValue = "'" + nodeValue.replace(/^'/,"").replace(/'$/,"") + "'"; if (nodeValue == "'false'" || nodeValue == "'0'") { nodeValue = false; } else if (nodeValue == "'true'") { nodeValue = true; } eval(node.getAttribute("name") + ' = ' + nodeValue ); } else { | function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); | BX_xml.load(); BX_xsl.load(); | function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); | BX_xmlTR.load(); | function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); | BX_xslTR.load(); | function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); | BX_xmlTRBack.load(BX_xmlTRBack_loaded); | function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_transformLocation = document.getElementById("transformLocation"); | BX_transformLocation = document.getElementById("transformlocation"); | function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_xml.getElementById = BX_getElementById; | BX_xml.doc.getElementById = BX_getElementById; | function BX_init(){ BX_schema_init(); BX_xmltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']"); var BX_xmltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformfile']/@method"); BX_xsltransformfile = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']"); var BX_xsltransformfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xsltransformfile']/@method"); BX_xmltransformbackfile = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']"); var BX_xmltransformbackfile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xmltransformbackfile']/@method"); BX_xslViewSourceFile = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']");/* not implemented yet */// var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method"); BX_xmlfile = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']"); var BX_xmlfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xmlfile']/@method"); BX_xslfile = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']"); var BX_xslfile_method = BX_config_getContent("/config/files/input/file[@name='BX_xslfile']/@method"); BX_posturl = BX_config_getContent("/config/files/output/file[@name='BX_posturl']"); // there is no var here as we need this info later BX_posturl_method = BX_config_getContent("/config/files/output/file[@name='BX_posturl']/@method"); var node; var options = BX_config_getNodes("/config/options/option"); while (node = options.iterateNext()) { if (node.firstChild) { eval(node.getAttribute("name") + " = " + node.firstChild.data + ""); } else { eval(node.getAttribute("name") + " = ''"); } } BX_init_page(); BX_init_buttonBar(); BX_infobar = document.getElementById("BX_infobar"); BX_infotext = document.getElementById("BX_infotext"); BX_infotext2 = document.getElementById("BX_infotext2"); BX_infoerror = document.getElementById("BX_infoerror"); BX_infoerror_timeout = false; BX_init_adjustButtonbar(); window.onresize = BX_init_adjustButtonbar; BX_xml = BX_load_document(BX_xmlfile,BX_xmlfile_method); BX_xsl = BX_load_document(BX_xslfile,BX_xslfile_method); BX_xmlTR = BX_load_document(BX_xmltransformfile,BX_xmltransformfile_method); BX_xslTR = BX_load_document(BX_xsltransformfile,BX_xsltransformfile_method); BX_xmlTRBack = BX_load_document(BX_xmltransformbackfile,BX_xmltransformbackfile_method); BX_transformLocation = document.getElementById("transformLocation"); BX_xsltProcessor = new XSLTProcessor(); document.getElementsByNameAndAttribute = getElementsByNameAndAttribute; BX_xml.getElementById = BX_getElementById; //temporary ranges. to be used in some functions /* it is used in BX_insertContent(), so instead of creating it * everytime we insert content, just do it once here */ BX_tmp_r1 = document.createRange(); BX_tmp_r2 = document.createRange(); BX_popup = document.getElementById("BX_popup");} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_infobar.style.width = window.innerWidth; BX_infobar.style.top = window.innerHeight - 30; | BX_infobar.style.width = window.innerWidth + "px"; BX_infobar.style.top = window.innerHeight - 30 + "px"; | function BX_init_adjustButtonbar() { BX_infobar.style.width = window.innerWidth; BX_infobar.style.top = window.innerHeight - 30;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
function BX_init_buttonBar() { | function BX_init_buttonBar() { | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons | BX_buttonbar.style.width = window.innerWidth + "px"; var result = BX_config.doc.evaluate("/config/buttons | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); | BX_buttonbar = BX_buttonbar.appendChild(document.createElementNS("http: | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
while (node = result.iterateNext()) { | while (node = result.iterateNext()) { | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { | if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
} else if (node.getAttribute("type") == "graph") { | } else if (node.getAttribute("type") == "graph") { | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
} else if (node.getAttribute("type") == "link") { | } else if (node.getAttribute("type") == "link") { | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
var ahref = document.createElement("a"); | var ahref = document.createElementNS("http: | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
} else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") | } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElementNS("http: } else | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); | BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElementNS("http: | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
} | } else if (node.nodeName == "cell") { | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
else if (node.nodeName == "cell") { | if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElementNS("http: } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElementNS("http: } | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { | if (node.getAttribute("align")) { | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
if (node.getAttribute("colspan")) { | if (node.getAttribute("colspan")) { | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_buttonbar.addEventListener("mouseup", BX_event_buttonbarMouseUp, false); | function BX_init_buttonBar(){ BX_buttonbar = document.getElementById("BX_buttonbar"); BX_buttonbar.style.width = window.innerWidth; var result = BX_config.evaluate("/config/buttons//*", BX_config, null, 0, null); var node; var resultArray = new Array(); var i = 0; BX_buttonbar = BX_buttonbar.appendChild(document.createElement("table")); BX_buttonbar.setAttribute("cellpadding",0); BX_buttonbar.setAttribute("cellspacing",0); BX_buttonbar.setAttribute("border",0); while (node = result.iterateNext()) { i++; if (node.nodeName == "button") { if (node.getAttribute("type") == "register") { BX_registerButton(node.getAttribute("tag"),node.getAttribute("name"),node.getAttribute("width"),node.getAttribute("height"),node.getAttribute("title"),eval(node.getAttribute("options")),node.getAttribute("callback")); } else if (node.getAttribute("type") == "graph") { BX_buttonbar.appendChild(BX_printButton(node.getAttribute("name"),node.getAttribute("width"))); } else if (node.getAttribute("type") == "link") { BX_buttonbar.appendChild(document.createTextNode(" ")); var ahref = document.createElement("a"); ahref.setAttribute("href",node.getAttribute("href")); ahref.appendChild(document.createTextNode(node.getAttribute("text"))); BX_buttonbar.appendChild(ahref); } } else if (node.nodeName == "row") { if (BX_buttonbar.nodeName.toLowerCase() == "table") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("tr")); } else //it's a td { BX_buttonbar = BX_buttonbar.parentNode.parentNode.appendChild(document.createElement("tr")); } } else if (node.nodeName == "cell") { if (BX_buttonbar.nodeName.toLowerCase() == "tr") { BX_buttonbar = BX_buttonbar.appendChild(document.createElement("td")); } else { BX_buttonbar = BX_buttonbar.parentNode.appendChild(document.createElement("td")); } if (node.getAttribute("align")) { BX_buttonbar.setAttribute("align",node.getAttribute("align")); } if (node.getAttribute("colspan")) { BX_buttonbar.setAttribute("colspan",node.getAttribute("colspan")); } BX_buttonbar.setAttribute("valign","absmiddle"); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
|
function BX_init_page() { | function BX_init_page() { | function BX_init_page(){ var html = '<div id="BX_buttonbar" style="height: 65px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -7px;"></div>'; html += '<div style="position:absolute; top:70; left: 5; z-index: 3;" id="transformLocation" ></div>' html += '<div id="BX_infobar" style="visibility: hidden; top: 530px; height: 45px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -10px;">'; html += '<div id="BX_infotext" style="width: 95%; position: absolute; top: 0px; margin-left: 5px; ">'; html += '<span id="BX_infoerror" style="float: right; z-index: 400; color: red; text-align: right; "></span>'; html += '<div id="BX_infotext_tags"> </div>'; html += '<div id="BX_infotext_attr"> </div>'; html += '<div id="BX_infotext2" style="position: absolute; top: 0px; margin-left: 5px; visibility: hidden; "> </div>'; html += '<div id="BX_popup" class="popup" style="visibility: hidden; top: 130px; height: 30px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 40;"></div>'; html += '<form name="poster" action="/admin/wysiwyg_config/php/insertintodb.php" method="post" style="visibility: hidden;">'; html += '<input name="content" type="hidden">'; html += '</form>'; document.getElementsByTagName("body")[0].innerHTML = html;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
var html = '<div id="BX_buttonbar" style="height: 65px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -7px;"></div>'; html += '<div style="position:absolute; top:70; left: 5; z-index: 3;" id="transformLocation" ></div>' html += '<div id="BX_infobar" style="visibility: hidden; top: 530px; height: 45px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -10px;">'; | var html = ''; html += '<div id="BX_buttonbar" ></div>'; html += '<div id="transformlocation" ></div>' html += '<div id="BX_infobar" >'; | function BX_init_page(){ var html = '<div id="BX_buttonbar" style="height: 65px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -7px;"></div>'; html += '<div style="position:absolute; top:70; left: 5; z-index: 3;" id="transformLocation" ></div>' html += '<div id="BX_infobar" style="visibility: hidden; top: 530px; height: 45px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -10px;">'; html += '<div id="BX_infotext" style="width: 95%; position: absolute; top: 0px; margin-left: 5px; ">'; html += '<span id="BX_infoerror" style="float: right; z-index: 400; color: red; text-align: right; "></span>'; html += '<div id="BX_infotext_tags"> </div>'; html += '<div id="BX_infotext_attr"> </div>'; html += '<div id="BX_infotext2" style="position: absolute; top: 0px; margin-left: 5px; visibility: hidden; "> </div>'; html += '<div id="BX_popup" class="popup" style="visibility: hidden; top: 130px; height: 30px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 40;"></div>'; html += '<form name="poster" action="/admin/wysiwyg_config/php/insertintodb.php" method="post" style="visibility: hidden;">'; html += '<input name="content" type="hidden">'; html += '</form>'; document.getElementsByTagName("body")[0].innerHTML = html;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
html += '<div id="BX_infotext_tags"> </div>'; html += '<div id="BX_infotext_attr"> </div>'; html += '<div id="BX_infotext2" style="position: absolute; top: 0px; margin-left: 5px; visibility: hidden; "> </div>'; html += '<div id="BX_popup" class="popup" style="visibility: hidden; top: 130px; height: 30px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 40;"></div>'; html += '<form name="poster" action="/admin/wysiwyg_config/php/insertintodb.php" method="post" style="visibility: hidden;">'; html += '<input name="content" type="hidden">'; | html += '<div id="BX_infotext_tags"> </div>\n'; html += '<div id="BX_infotext_attr"> </div>\n'; html += '<div id="BX_infotext2" style="position: absolute; top: 0px; margin-left: 5px; visibility: hidden; "> </div>\n'; html += '<div id="BX_popup" class="popup" style="visibility: hidden; top: 130px; height: 30px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 40;"></div></div></div>\n'; html += '<form name="poster" action="/admin/wysiwyg_config/php/insertintodb.php" method="post" style="visibility: hidden;">\n'; html += '<input name="content" type="hidden" />\n'; | function BX_init_page(){ var html = '<div id="BX_buttonbar" style="height: 65px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -7px;"></div>'; html += '<div style="position:absolute; top:70; left: 5; z-index: 3;" id="transformLocation" ></div>' html += '<div id="BX_infobar" style="visibility: hidden; top: 530px; height: 45px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -10px;">'; html += '<div id="BX_infotext" style="width: 95%; position: absolute; top: 0px; margin-left: 5px; ">'; html += '<span id="BX_infoerror" style="float: right; z-index: 400; color: red; text-align: right; "></span>'; html += '<div id="BX_infotext_tags"> </div>'; html += '<div id="BX_infotext_attr"> </div>'; html += '<div id="BX_infotext2" style="position: absolute; top: 0px; margin-left: 5px; visibility: hidden; "> </div>'; html += '<div id="BX_popup" class="popup" style="visibility: hidden; top: 130px; height: 30px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 40;"></div>'; html += '<form name="poster" action="/admin/wysiwyg_config/php/insertintodb.php" method="post" style="visibility: hidden;">'; html += '<input name="content" type="hidden">'; html += '</form>'; document.getElementsByTagName("body")[0].innerHTML = html;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
document.getElementsByTagName("body")[0].innerHTML = html; | var bxe_area = document.getElementById("bxe_area"); BX_innerHTML(bxe_area,html) | function BX_init_page(){ var html = '<div id="BX_buttonbar" style="height: 65px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -7px;"></div>'; html += '<div style="position:absolute; top:70; left: 5; z-index: 3;" id="transformLocation" ></div>' html += '<div id="BX_infobar" style="visibility: hidden; top: 530px; height: 45px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 5; margin-left: -10px;">'; html += '<div id="BX_infotext" style="width: 95%; position: absolute; top: 0px; margin-left: 5px; ">'; html += '<span id="BX_infoerror" style="float: right; z-index: 400; color: red; text-align: right; "></span>'; html += '<div id="BX_infotext_tags"> </div>'; html += '<div id="BX_infotext_attr"> </div>'; html += '<div id="BX_infotext2" style="position: absolute; top: 0px; margin-left: 5px; visibility: hidden; "> </div>'; html += '<div id="BX_popup" class="popup" style="visibility: hidden; top: 130px; height: 30px; width: 500px; position: fixed; background-color: #b4b4b4; z-index: 40;"></div>'; html += '<form name="poster" action="/admin/wysiwyg_config/php/insertintodb.php" method="post" style="visibility: hidden;">'; html += '<input name="content" type="hidden">'; html += '</form>'; document.getElementsByTagName("body")[0].innerHTML = html;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
} catch (e) { return false; } | function BX_innerHTML (element,html,append){ if (html) { html = '<root xmlns="http://www.w3.org/1999/xhtml">'+html+"</root>"; docfrag = BX_parser.parseFromString(html,"text/xml"); } if (!append) { var len = element.childNodes.length; for (var i = 0; i < len ; i++) { element.removeChild(element.firstChild); } } if (html) { var len = docfrag.documentElement.childNodes.length; for (var i = 0; i < len; i++) { element.appendChild(docfrag.documentElement.firstChild); } }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor.js |
|
BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); | try { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1);} catch(e) {}; | function BX_insertContent(content, doNoCollapse) { var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { try { bla = BX_range.deleteContents(); } catch(e) {} if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } else { // we have to remove all Ranges before going further // otherwise we have strange selection stuff on the screen // it is only needed, when we insert nodes, so it's only here // (and BX_range.deleteContents is doubled..) // hope this resolves bug #6 BX_selection.removeAllRanges(); try { BX_range.deleteContents(); } catch(e) {} } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue ); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else { // if (StartContainer.nodeType == StartContainer.TEXT_NODE) var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; content.normalize(); try { BX_range.insertNodeBX(content); } catch(e) {} ; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); // BX_range.setEnd(EndContainer ,EndPosition +1); } if (!doNoCollapse) { BX_range.collapse(false); } } BX_selection.addRange(BX_range); return content;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ddc240ced5875d7129300fbe7ba664b285e93a9a/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
/* BX_selection.removeAllRanges();*/ try { BX_range.deleteContents(); } catch(e) {} ; | function BX_insertContent(content, doNoCollapse) { /* BX_selection.removeAllRanges();*/ try { BX_range.deleteContents(); } catch(e) {} ; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; content.normalize(); try { BX_range.insertNodeBX(content); } catch(e) {} ; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); // BX_range.setEnd(EndContainer ,EndPosition +1); } if (!doNoCollapse) { BX_range.collapse(false); } } BX_selection.addRange(BX_range); return content;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
|
} | } else { BX_selection.removeAllRanges(); try { BX_range.deleteContents(); } catch(e) {} | function BX_insertContent(content, doNoCollapse) { /* BX_selection.removeAllRanges();*/ try { BX_range.deleteContents(); } catch(e) {} ; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; content.normalize(); try { BX_range.insertNodeBX(content); } catch(e) {} ; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); // BX_range.setEnd(EndContainer ,EndPosition +1); } if (!doNoCollapse) { BX_range.collapse(false); } } BX_selection.addRange(BX_range); return content;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
StartContainer.insertData(StartPosition, content.nodeValue); | StartContainer.insertData(StartPosition, content.nodeValue ); | function BX_insertContent(content, doNoCollapse) { /* BX_selection.removeAllRanges();*/ try { BX_range.deleteContents(); } catch(e) {} ; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; content.normalize(); try { BX_range.insertNodeBX(content); } catch(e) {} ; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); // BX_range.setEnd(EndContainer ,EndPosition +1); } if (!doNoCollapse) { BX_range.collapse(false); } } BX_selection.addRange(BX_range); return content;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
} else { | } else { | function BX_insertContent(content, doNoCollapse) { /* BX_selection.removeAllRanges();*/ try { BX_range.deleteContents(); } catch(e) {} ; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; content.normalize(); try { BX_range.insertNodeBX(content); } catch(e) {} ; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); // BX_range.setEnd(EndContainer ,EndPosition +1); } if (!doNoCollapse) { BX_range.collapse(false); } } BX_selection.addRange(BX_range); return content;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
function BX_insertContent(content, do_undo_save) { | function BX_insertContent(content, doNoCollapse) { | function BX_insertContent(content, do_undo_save){ /* BX_selection.removeAllRanges();*/ try {BX_range.deleteContents();} catch(e){}; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; try{ BX_range.insertNodeBX(content);} catch(e) {}; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); } BX_range.collapse(false); } BX_selection.addRange(BX_range); return content;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
try {BX_range.deleteContents();} catch(e){}; | try { BX_range.deleteContents(); } catch(e) {} ; | function BX_insertContent(content, do_undo_save){ /* BX_selection.removeAllRanges();*/ try {BX_range.deleteContents();} catch(e){}; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; try{ BX_range.insertNodeBX(content);} catch(e) {}; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); } BX_range.collapse(false); } BX_selection.addRange(BX_range); return content;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
if (typeof(content) == "string") { | if (typeof(content) == "string") { | function BX_insertContent(content, do_undo_save){ /* BX_selection.removeAllRanges();*/ try {BX_range.deleteContents();} catch(e){}; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; try{ BX_range.insertNodeBX(content);} catch(e) {}; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); } BX_range.collapse(false); } BX_selection.addRange(BX_range); return content;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
if (content.length == 1) { | if (content.length == 1) { | function BX_insertContent(content, do_undo_save){ /* BX_selection.removeAllRanges();*/ try {BX_range.deleteContents();} catch(e){}; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; try{ BX_range.insertNodeBX(content);} catch(e) {}; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); } BX_range.collapse(false); } BX_selection.addRange(BX_range); return content;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
} else if (content.indexOf("<") >= 0) { | } else if (content.indexOf("<") >= 0) { | function BX_insertContent(content, do_undo_save){ /* BX_selection.removeAllRanges();*/ try {BX_range.deleteContents();} catch(e){}; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; try{ BX_range.insertNodeBX(content);} catch(e) {}; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); } BX_range.collapse(false); } BX_selection.addRange(BX_range); return content;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
} else { | } else { | function BX_insertContent(content, do_undo_save){ /* BX_selection.removeAllRanges();*/ try {BX_range.deleteContents();} catch(e){}; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; try{ BX_range.insertNodeBX(content);} catch(e) {}; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); } BX_range.collapse(false); } BX_selection.addRange(BX_range); return content;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { | if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { | function BX_insertContent(content, do_undo_save){ /* BX_selection.removeAllRanges();*/ try {BX_range.deleteContents();} catch(e){}; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; try{ BX_range.insertNodeBX(content);} catch(e) {}; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); } BX_range.collapse(false); } BX_selection.addRange(BX_range); return content;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
if (startOffBefore == BX_range.startOffset) { | if (startOffBefore == BX_range.startOffset) { | function BX_insertContent(content, do_undo_save){ /* BX_selection.removeAllRanges();*/ try {BX_range.deleteContents();} catch(e){}; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; try{ BX_range.insertNodeBX(content);} catch(e) {}; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); } BX_range.collapse(false); } BX_selection.addRange(BX_range); return content;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
else { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; try{ BX_range.insertNodeBX(content);} catch(e) {}; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); } BX_range.collapse(false); } BX_selection.addRange(BX_range); | function BX_insertContent(content, do_undo_save){ /* BX_selection.removeAllRanges();*/ try {BX_range.deleteContents();} catch(e){}; var StartContainer = BX_range.startContainer; var StartPosition = BX_range.startOffset; if (typeof(content) == "string") { if (content.length == 1) { content = document.createTextNode(content); } else if (content.indexOf("<") >= 0) { content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml"); content = content.childNodes[0]; BX_tmp_r1 = document.createRange(); BX_tmp_r1.selectNodeContents(content); content = BX_tmp_r1.extractContents(); } else { content = document.createTextNode(content); } // BX_range.createContextualFragment(content); } var startOffBefore = BX_range.startOffset; if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) { StartContainer.insertData(StartPosition, content.nodeValue); if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); BX_range.collapse(false); } } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE) { var startOffBefore = BX_range.startOffset; BX_range.insertNodeBX = InsertNodeAtStartOfRange; try{ BX_range.insertNodeBX(content);} catch(e) {}; if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); } BX_range.collapse(false); } BX_selection.addRange(BX_range); return content;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
|
function BX_key_delete() { BX_get_selection(); BX_selection.removeAllRanges(); if (BX_range.toString().length == 0 && typeof (BX_range.endContainer.data) != "undefined") { var rightOfSelection = BX_range.endContainer.data.substring(BX_range.endOffset,BX_range.endContainer.data.length); var leftOfSelection = BX_range.endContainer.data.substring(0,BX_range.endOffset); // if there is content left of the selection, replace ending spaces with one space, if nor, delete everything if (/[^\t\n\r\s]/.test(leftOfSelection)) { var stripWS = rightOfSelection.replace(/^[\t\n\r\s]+/," "); /* maybe this would be a solution for inline handling... if (BX_getComputedStyle(BX_range.endContainer.parentNode,"display") == "inline") { var stripWS = rightOfSelection.replace(/^[\t\n\r\s]+/," "); } else { var stripWS = rightOfSelection.replace(/^[\t\n\r\s]+/,""); }*/ } else { var stripWS = rightOfSelection.replace(/^[\t\n\r\s]+$/,""); } if (stripWS.length == 0 ) { var walker = document.createTreeWalker(document,NodeFilter.SHOW_TEXT, { acceptNode : function(node) { if (!(/[^\t\n\r ]/.test(node.nodeValue))) return NodeFilter.FILTER_REJECT; return NodeFilter.FILTER_ACCEPT; } } ,null); walker.currentNode = BX_range.endContainer; var nextNode = walker.nextNode(); if (nextNode) { BX_range.selectNodeContents(nextNode); var rightOfSelection = nextNode.data; var stripWS = rightOfSelection.replace(/^[\t\n\r\s]+$/,"").replace(/^[\t\n\r\s]{2,}/," "); } // BX_range.collapse(true); } BX_range.setEnd(BX_range.endContainer, BX_range.endOffset+( rightOfSelection.length - stripWS.length) + 1); } BX_range.extractContents(); BX_selection.removeAllRanges(); // BX_range.collapse(true); BX_selection.addRange(BX_range); // BX_range = BX_selection.getRangeAt( BX_selection.rangeCount-1 ).cloneRange();} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
||
function BX_key_delete() { | function BX_key_delete() { | function BX_key_delete(){ BX_get_selection(); BX_selection.removeAllRanges(); if (BX_range.toString().length == 0) { if (BX_range.endOffset == BX_range.endContainer.data.length) { if (BX_range.endContainer.nextSibling) { BX_range.selectNodeContents(BX_range.endContainer.nextSibling.childNodes[0]); } else if (BX_range.endContainer.parentNode) { BX_range.selectNodeContents(BX_range.endContainer.parentNode.nextSibling); } BX_range.collapse(1); } BX_range.setEnd(BX_range.endContainer, BX_range.endOffset+1); } BX_range.extractContents(); BX_selection.removeAllRanges(); BX_range.collapse(1); BX_selection.addRange(BX_range); // BX_range = BX_selection.getRangeAt( BX_selection.rangeCount-1 ).cloneRange();} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
if (BX_range.toString().length == 0) { if (BX_range.endOffset == BX_range.endContainer.data.length) { if (BX_range.endContainer.nextSibling) { BX_range.selectNodeContents(BX_range.endContainer.nextSibling.childNodes[0]); | if (BX_range.toString().length == 0 && typeof (BX_range.endContainer.data) != "undefined") { var rightOfSelection = BX_range.endContainer.data.substring(BX_range.endOffset,BX_range.endContainer.data.length); var leftOfSelection = BX_range.endContainer.data.substring(0,BX_range.endOffset); if (/[^\t\n\r\s]/.test(leftOfSelection)) { var stripWS = rightOfSelection.replace(/^[\t\n\r\s]+/," "); /* maybe this would be a solution for inline handling... if (BX_getComputedStyle(BX_range.endContainer.parentNode,"display") == "inline") { var stripWS = rightOfSelection.replace(/^[\t\n\r\s]+/," "); } else { var stripWS = rightOfSelection.replace(/^[\t\n\r\s]+/,""); }*/ } else { var stripWS = rightOfSelection.replace(/^[\t\n\r\s]+$/,""); } if (stripWS.length == 0 ) { var walker = document.createTreeWalker(document,NodeFilter.SHOW_TEXT, { acceptNode : function(node) { if (!(/[^\t\n\r ]/.test(node.nodeValue))) return NodeFilter.FILTER_REJECT; return NodeFilter.FILTER_ACCEPT; } } ,null); walker.currentNode = BX_range.endContainer; var nextNode = walker.nextNode(); if (nextNode) { BX_range.selectNodeContents(nextNode); var rightOfSelection = nextNode.data; var stripWS = rightOfSelection.replace(/^[\t\n\r\s]+$/,"").replace(/^[\t\n\r\s]{2,}/," "); | function BX_key_delete(){ BX_get_selection(); BX_selection.removeAllRanges(); if (BX_range.toString().length == 0) { if (BX_range.endOffset == BX_range.endContainer.data.length) { if (BX_range.endContainer.nextSibling) { BX_range.selectNodeContents(BX_range.endContainer.nextSibling.childNodes[0]); } else if (BX_range.endContainer.parentNode) { BX_range.selectNodeContents(BX_range.endContainer.parentNode.nextSibling); } BX_range.collapse(1); } BX_range.setEnd(BX_range.endContainer, BX_range.endOffset+1); } BX_range.extractContents(); BX_selection.removeAllRanges(); BX_range.collapse(1); BX_selection.addRange(BX_range); // BX_range = BX_selection.getRangeAt( BX_selection.rangeCount-1 ).cloneRange();} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
else if (BX_range.endContainer.parentNode) { BX_range.selectNodeContents(BX_range.endContainer.parentNode.nextSibling); } BX_range.collapse(1); | function BX_key_delete(){ BX_get_selection(); BX_selection.removeAllRanges(); if (BX_range.toString().length == 0) { if (BX_range.endOffset == BX_range.endContainer.data.length) { if (BX_range.endContainer.nextSibling) { BX_range.selectNodeContents(BX_range.endContainer.nextSibling.childNodes[0]); } else if (BX_range.endContainer.parentNode) { BX_range.selectNodeContents(BX_range.endContainer.parentNode.nextSibling); } BX_range.collapse(1); } BX_range.setEnd(BX_range.endContainer, BX_range.endOffset+1); } BX_range.extractContents(); BX_selection.removeAllRanges(); BX_range.collapse(1); BX_selection.addRange(BX_range); // BX_range = BX_selection.getRangeAt( BX_selection.rangeCount-1 ).cloneRange();} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
|
BX_range.setEnd(BX_range.endContainer, BX_range.endOffset+1); | BX_range.setEnd(BX_range.endContainer, BX_range.endOffset+( rightOfSelection.length - stripWS.length) + 1); | function BX_key_delete(){ BX_get_selection(); BX_selection.removeAllRanges(); if (BX_range.toString().length == 0) { if (BX_range.endOffset == BX_range.endContainer.data.length) { if (BX_range.endContainer.nextSibling) { BX_range.selectNodeContents(BX_range.endContainer.nextSibling.childNodes[0]); } else if (BX_range.endContainer.parentNode) { BX_range.selectNodeContents(BX_range.endContainer.parentNode.nextSibling); } BX_range.collapse(1); } BX_range.setEnd(BX_range.endContainer, BX_range.endOffset+1); } BX_range.extractContents(); BX_selection.removeAllRanges(); BX_range.collapse(1); BX_selection.addRange(BX_range); // BX_range = BX_selection.getRangeAt( BX_selection.rangeCount-1 ).cloneRange();} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_range.collapse(1); | function BX_key_delete(){ BX_get_selection(); BX_selection.removeAllRanges(); if (BX_range.toString().length == 0) { if (BX_range.endOffset == BX_range.endContainer.data.length) { if (BX_range.endContainer.nextSibling) { BX_range.selectNodeContents(BX_range.endContainer.nextSibling.childNodes[0]); } else if (BX_range.endContainer.parentNode) { BX_range.selectNodeContents(BX_range.endContainer.parentNode.nextSibling); } BX_range.collapse(1); } BX_range.setEnd(BX_range.endContainer, BX_range.endOffset+1); } BX_range.extractContents(); BX_selection.removeAllRanges(); BX_range.collapse(1); BX_selection.addRange(BX_range); // BX_range = BX_selection.getRangeAt( BX_selection.rangeCount-1 ).cloneRange();} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
|
function BX_load2(config_file,fromUrl) {//stage 2, after all core js files are loaded... BXEui = new BXE_widget(); try { BXEui.lm = BXEui.newObject("loadMessage"); BXEui.lm.set("Loading Bitflux Editor files...."); BXE = new BXE_main(); //create loader BXE_loader = new BXE_TransportDriver(); if (fromUrl) { config_file = BXE.urlParams[config_file]; } BX_config = new BXE_XmlDocument(); BX_config.filename = config_file; BX_config.load(BX_config_loaded); } catch(e) { BXEui.newObject("initAlert",e); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor.js |
||
function BX_load2(config_file,fromUrl) {//stage 2, after all core js files are loaded... BXEui = new BXE_widget(); try { BXEui.lm = BXEui.newObject("loadMessage"); BXEui.lm.set("Loading Bitflux Editor files...."); BXE = new BXE_main(); //create loader BXE_loader = new BXE_TransportDriver(); if (fromUrl) { config_file = BXE.urlParams[config_file]; } BX_config = new BXE_XmlDocument(); BX_config.filename = config_file; BX_config.load(BX_config_loaded); } catch(e) { BXEui.newObject("initAlert",e); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor.js |
||
function BX_load2(config_file,fromUrl) {//stage 2, after all core js files are loaded... BXEui = new BXE_widget(); try { BXEui.lm = BXEui.newObject("loadMessage"); BXEui.lm.set("Loading Bitflux Editor files...."); BXE = new BXE_main(); //create loader BXE_loader = new BXE_TransportDriver(); if (fromUrl) { config_file = BXE.urlParams[config_file]; } BX_config = new BXE_XmlDocument(); BX_config.filename = config_file; BX_config.load(BX_config_loaded); } catch(e) { BXEui.newObject("initAlert",e); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ddc240ced5875d7129300fbe7ba664b285e93a9a/bitfluxeditor.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor.js |
||
function BX_load(config_file) { try { if (navigator.appName != "Netscape" ) { BX_config_setLoadMessage("You need Mozilla or Netscape 7 for this Editor. Get it from <a href='http: return false; } if (navigator.productSub >= 20020826) { BX_mozilla_version = 1.1; } else if (navigator.productSub >= 20020523) { BX_mozilla_version = 1.0; } else { BX_config_setLoadMessage("You're Mozilla seems to be not recent enough. You need at least Mozilla 1.0 or Netscape 7. Get it from <a href='http: return false; } | function BX_load(config_file,fromUrl) { text = "Loading Bitflux Editor files...."; BX_innerHTML(document.getElementById("bxe_area"),"<br/><img hspace='5' width='314' height='34' src='./bxe/img/bxe_logo.png'/><br/><span style='font-family: Arial; padding: 5px; background-color: #ffffff'>"+text.replace(/\n/g,"<br/><br/>")+"</span>"); var head = document.getElementsByTagName("head")[0]; | function BX_load(config_file){ try { if (navigator.appName != "Netscape" ) { BX_config_setLoadMessage("You need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } if (navigator.productSub >= 20020826) { BX_mozilla_version = 1.1; } else if (navigator.productSub >= 20020523) { BX_mozilla_version = 1.0; } else { BX_config_setLoadMessage("You're Mozilla seems to be not recent enough. You need at least Mozilla 1.0 or Netscape 7. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } BX_config = document.implementation.createDocument("","",null); BX_config_setLoadMessage("Loading Bitflux Editor files...."); BX_config.onload = BX_config_loaded; // set the callback when we are done loading BX_config.load(config_file); } catch(e) { BX_init_alert(e); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor.js |
BX_config = document.implementation.createDocument("","",null); BX_config_setLoadMessage("Loading Bitflux Editor files...."); | for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElementNS("http: | function BX_load(config_file){ try { if (navigator.appName != "Netscape" ) { BX_config_setLoadMessage("You need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } if (navigator.productSub >= 20020826) { BX_mozilla_version = 1.1; } else if (navigator.productSub >= 20020523) { BX_mozilla_version = 1.0; } else { BX_config_setLoadMessage("You're Mozilla seems to be not recent enough. You need at least Mozilla 1.0 or Netscape 7. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } BX_config = document.implementation.createDocument("","",null); BX_config_setLoadMessage("Loading Bitflux Editor files...."); BX_config.onload = BX_config_loaded; // set the callback when we are done loading BX_config.load(config_file); } catch(e) { BX_init_alert(e); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor.js |
BX_config.onload = BX_config_loaded; BX_config.load(config_file); } catch(e) { BX_init_alert(e); } | scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); if (i == BX_js_files.length - 1) { scr.setAttribute('onload', 'try{BX_load2("'+config_file+'",'+fromUrl+')} catch(e) { alert(e)}'); } head.appendChild(scr); } | function BX_load(config_file){ try { if (navigator.appName != "Netscape" ) { BX_config_setLoadMessage("You need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } if (navigator.productSub >= 20020826) { BX_mozilla_version = 1.1; } else if (navigator.productSub >= 20020523) { BX_mozilla_version = 1.0; } else { BX_config_setLoadMessage("You're Mozilla seems to be not recent enough. You need at least Mozilla 1.0 or Netscape 7. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } BX_config = document.implementation.createDocument("","",null); BX_config_setLoadMessage("Loading Bitflux Editor files...."); BX_config.onload = BX_config_loaded; // set the callback when we are done loading BX_config.load(config_file); } catch(e) { BX_init_alert(e); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor.js |
function BX_load(config_file,fromUrl) { | function BX_load(config_file,fromUrl,path) { | function BX_load(config_file,fromUrl) { text = "Loading Bitflux Editor files...."; BX_innerHTML(document.getElementById("bxe_area"),"<br/><img hspace='5' width='314' height='34' src='./bxe/img/bxe_logo.png'/><br/><span style='font-family: Arial; padding: 5px; background-color: #ffffff'>"+text.replace(/\n/g,"<br/><br/>")+"</span>"); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElementNS("http://www.w3.org/1999/xhtml","script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); if (i == BX_js_files.length - 1) { scr.setAttribute('onload', 'try{BX_load2("'+config_file+'",'+fromUrl+')} catch(e) { alert(e)}'); } head.appendChild(scr); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor.js |
BX_innerHTML(document.getElementById("bxe_area"),"<br/><img hspace='5' width='314' height='34' src='./bxe/img/bxe_logo.png'/><br/><span style='font-family: Arial; padding: 5px; background-color: #ffffff'>"+text.replace(/\n/g,"<br/><br/>")+"</span>"); | if (! (BX_checkUnsupportedBrowsers())) { return false; } BX_parser = new DOMParser(); BX_ser = new XMLSerializer(); if (!path) { BX_root_dir = "./bxe/"; } else { BX_root_dir = path; } BX_innerHTML(document.getElementById("bxe_area"),"<br/><img hspace='5' width='314' height='34' src='"+BX_root_dir+"img/bxe_logo.png'/><br/><span style='font-family: Arial; padding: 5px; background-color: #ffffff'>"+text.replace(/\n/g,"<br/><br/>")+"</span>"); | function BX_load(config_file,fromUrl) { text = "Loading Bitflux Editor files...."; BX_innerHTML(document.getElementById("bxe_area"),"<br/><img hspace='5' width='314' height='34' src='./bxe/img/bxe_logo.png'/><br/><span style='font-family: Arial; padding: 5px; background-color: #ffffff'>"+text.replace(/\n/g,"<br/><br/>")+"</span>"); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElementNS("http://www.w3.org/1999/xhtml","script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); if (i == BX_js_files.length - 1) { scr.setAttribute('onload', 'try{BX_load2("'+config_file+'",'+fromUrl+')} catch(e) { alert(e)}'); } head.appendChild(scr); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor.js |
for (var i=0; i < BX_js_files.length; i++) { | for (var i=0; i < BX_js_files.length; i++) { | function BX_load(config_file,fromUrl) { text = "Loading Bitflux Editor files...."; BX_innerHTML(document.getElementById("bxe_area"),"<br/><img hspace='5' width='314' height='34' src='./bxe/img/bxe_logo.png'/><br/><span style='font-family: Arial; padding: 5px; background-color: #ffffff'>"+text.replace(/\n/g,"<br/><br/>")+"</span>"); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElementNS("http://www.w3.org/1999/xhtml","script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); if (i == BX_js_files.length - 1) { scr.setAttribute('onload', 'try{BX_load2("'+config_file+'",'+fromUrl+')} catch(e) { alert(e)}'); } head.appendChild(scr); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor.js |
scr.setAttribute("src",BX_js_files[i]); | scr.setAttribute("src",BX_root_dir + BX_js_files[i]); | function BX_load(config_file,fromUrl) { text = "Loading Bitflux Editor files...."; BX_innerHTML(document.getElementById("bxe_area"),"<br/><img hspace='5' width='314' height='34' src='./bxe/img/bxe_logo.png'/><br/><span style='font-family: Arial; padding: 5px; background-color: #ffffff'>"+text.replace(/\n/g,"<br/><br/>")+"</span>"); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElementNS("http://www.w3.org/1999/xhtml","script"); scr.setAttribute("src",BX_js_files[i]); scr.setAttribute("language","JavaScript"); if (i == BX_js_files.length - 1) { scr.setAttribute('onload', 'try{BX_load2("'+config_file+'",'+fromUrl+')} catch(e) { alert(e)}'); } head.appendChild(scr); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor.js |
function BX_load(config_file,fromUrl,path) { text = "Loading Bitflux Editor files...."; if (! (BX_checkUnsupportedBrowsers())) { return false; } BX_parser = new DOMParser(); BX_ser = new XMLSerializer(); if (!path) { BX_root_dir = "./bxe/"; } else { BX_root_dir = path; } BX_innerHTML(document.getElementById("bxe_area"),"<br/><img hspace='5' width='314' height='34' src='"+BX_root_dir+"img/bxe_logo.png'/><br/><span style='font-family: Arial; padding: 5px; background-color: #ffffff'>"+text.replace(/\n/g,"<br/><br/>")+"</span>"); var head = document.getElementsByTagName("head")[0]; // first load the core js files for (var i=0; i < BX_js_files.length; i++) { var scr = document.createElementNS("http://www.w3.org/1999/xhtml","script"); scr.setAttribute("src",BX_root_dir + BX_js_files[i]); scr.setAttribute("language","JavaScript"); if (i == BX_js_files.length - 1) { scr.setAttribute('onload', 'try{BX_load2("'+config_file+'",'+fromUrl+')} catch(e) { alert(e)}'); } head.appendChild(scr); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ddc240ced5875d7129300fbe7ba664b285e93a9a/bitfluxeditor.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor.js |
||
function BX_node_change(node,newNodeName) { | function BX_node_change(node,newNodeName) { | function BX_node_change(node,newNodeName){ var nodeChildren = node.childNodes; var newNode = BX_xml.createElementNS("http://www.w3.org/1999/xhtml",newNodeName); for (i = 0; i < nodeChildren.length; i++) { newNode.appendChild(nodeChildren[i].cloneNode(1)); } newNode.setAttribute("id","BX_id_"+BX_id_counter); BX_id_counter++; newNode.setAttribute("internalid",'yes'); node.parentNode.replaceChild(newNode,node); // BX_range_updateToCursor(); BX_undo_save(); if (BX_elements[newNodeName]["doTransform"]) { BX_transform(); } BX_selection.collapse(newNode,0); BX_updateButtons(); BX_scrollToCursor();} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
var newNode = BX_xml.createElementNS("http: for (i = 0; i < nodeChildren.length; i++) { | var newNode = BX_xml.doc.createElement(newNodeName); for (i = 0; i < nodeChildren.length; i++) { | function BX_node_change(node,newNodeName){ var nodeChildren = node.childNodes; var newNode = BX_xml.createElementNS("http://www.w3.org/1999/xhtml",newNodeName); for (i = 0; i < nodeChildren.length; i++) { newNode.appendChild(nodeChildren[i].cloneNode(1)); } newNode.setAttribute("id","BX_id_"+BX_id_counter); BX_id_counter++; newNode.setAttribute("internalid",'yes'); node.parentNode.replaceChild(newNode,node); // BX_range_updateToCursor(); BX_undo_save(); if (BX_elements[newNodeName]["doTransform"]) { BX_transform(); } BX_selection.collapse(newNode,0); BX_updateButtons(); BX_scrollToCursor();} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
newNode.setAttribute("internalid",'yes'); | newNode.setAttribute("bxe_internalid",'yes'); | function BX_node_change(node,newNodeName){ var nodeChildren = node.childNodes; var newNode = BX_xml.createElementNS("http://www.w3.org/1999/xhtml",newNodeName); for (i = 0; i < nodeChildren.length; i++) { newNode.appendChild(nodeChildren[i].cloneNode(1)); } newNode.setAttribute("id","BX_id_"+BX_id_counter); BX_id_counter++; newNode.setAttribute("internalid",'yes'); node.parentNode.replaceChild(newNode,node); // BX_range_updateToCursor(); BX_undo_save(); if (BX_elements[newNodeName]["doTransform"]) { BX_transform(); } BX_selection.collapse(newNode,0); BX_updateButtons(); BX_scrollToCursor();} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
if (BX_elements[newNodeName]["doTransform"]) { | if (BX_elements[newNodeName]["doTransform"]) { | function BX_node_change(node,newNodeName){ var nodeChildren = node.childNodes; var newNode = BX_xml.createElementNS("http://www.w3.org/1999/xhtml",newNodeName); for (i = 0; i < nodeChildren.length; i++) { newNode.appendChild(nodeChildren[i].cloneNode(1)); } newNode.setAttribute("id","BX_id_"+BX_id_counter); BX_id_counter++; newNode.setAttribute("internalid",'yes'); node.parentNode.replaceChild(newNode,node); // BX_range_updateToCursor(); BX_undo_save(); if (BX_elements[newNodeName]["doTransform"]) { BX_transform(); } BX_selection.collapse(newNode,0); BX_updateButtons(); BX_scrollToCursor();} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
function BX_node_changeID(id,newNodeName) { | function BX_node_changeID(id,newNodeName) { | function BX_node_changeID(id,newNodeName){ var node = BX_getElementByIdClean(id,document); BX_node_change(node,newNodeName);} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
} catch(e) {}; | function BX_node_clean_bg() { if (BX_opa_node != null) { var Opa_node = BX_getElementByIdClean(BX_opa_node,document); Opa_node.removeAttribute("bxe_mark"); BX_opa_node = null; }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
|
function BX_node_clean_bg() { if (BX_opa_node != null) { | function BX_node_clean_bg() { if (BX_opa_node != null) { | function BX_node_clean_bg(){ if (BX_opa_node != null) { var Opa_node = BX_getElementByIdClean(BX_opa_node,document); Opa_node.style.background = "transparent"; Opa_node.style.removeProperty("background",false); BX_opa_node = null; }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
Opa_node.style.background = "transparent"; Opa_node.style.removeProperty("background",false); | Opa_node.removeAttribute("bxe_mark"); | function BX_node_clean_bg(){ if (BX_opa_node != null) { var Opa_node = BX_getElementByIdClean(BX_opa_node,document); Opa_node.style.background = "transparent"; Opa_node.style.removeProperty("background",false); BX_opa_node = null; }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
function BX_node_insertID(node) | function BX_node_insertID(node) { | function BX_node_insertID(node){ if (node == "[object NodeList]") { node=node.item(0); } node.setAttribute("id",'BX_id_'+BX_id_counter); node.setAttribute("internalid",'yes'); BX_id_counter++; if (BX_elements[node.nodeName] && BX_elements[node.nodeName]["originalName"]){ node.setAttribute("bx_originalname",BX_elements[node.nodeName]["originalName"]); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
{ if (node == "[object NodeList]") { | if (node == "[object NodeList]") { | function BX_node_insertID(node){ if (node == "[object NodeList]") { node=node.item(0); } node.setAttribute("id",'BX_id_'+BX_id_counter); node.setAttribute("internalid",'yes'); BX_id_counter++; if (BX_elements[node.nodeName] && BX_elements[node.nodeName]["originalName"]){ node.setAttribute("bx_originalname",BX_elements[node.nodeName]["originalName"]); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
node.setAttribute("internalid",'yes'); | node.setAttribute("bxe_internalid",'yes'); | function BX_node_insertID(node){ if (node == "[object NodeList]") { node=node.item(0); } node.setAttribute("id",'BX_id_'+BX_id_counter); node.setAttribute("internalid",'yes'); BX_id_counter++; if (BX_elements[node.nodeName] && BX_elements[node.nodeName]["originalName"]){ node.setAttribute("bx_originalname",BX_elements[node.nodeName]["originalName"]); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
if (BX_elements[node.nodeName] && BX_elements[node.nodeName]["originalName"]){ node.setAttribute("bx_originalname",BX_elements[node.nodeName]["originalName"]); | if (BX_elements[node.nodeName] && BX_elements[node.nodeName]["originalName"]) { node.setAttribute("bxe_originalname",BX_elements[node.nodeName]["originalName"]); | function BX_node_insertID(node){ if (node == "[object NodeList]") { node=node.item(0); } node.setAttribute("id",'BX_id_'+BX_id_counter); node.setAttribute("internalid",'yes'); BX_id_counter++; if (BX_elements[node.nodeName] && BX_elements[node.nodeName]["originalName"]){ node.setAttribute("bx_originalname",BX_elements[node.nodeName]["originalName"]); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_opa_node=node.getAttribute("id"); try { node.setAttribute("bxe_mark","true"); } | function BX_node_move_down (id) { // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.nextSibling; BX_popup_hide(); BX_node_clean_bg(); BX_opa_node=node.getAttribute("id"); try { node.setAttribute("bxe_mark","true"); } // try{node.style.borderWidth="thin";} catch(e) {} while (next != null && next.nodeName == "#text") { next = next.nextSibling; } if (next != null) { node.parentNode.insertBefore(node,next.nextSibling); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
|
catch(e) {} | function BX_node_move_down (id) { // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.nextSibling; BX_popup_hide(); BX_node_clean_bg(); BX_opa_node=node.getAttribute("id"); try { node.setAttribute("bxe_mark","true"); } // try{node.style.borderWidth="thin";} catch(e) {} while (next != null && next.nodeName == "#text") { next = next.nextSibling; } if (next != null) { node.parentNode.insertBefore(node,next.nextSibling); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
|
BX_range = BX_selection.getRangeAt(0); document.addEventListener("keypress",BX_keypress,false); | function BX_node_move_down (id) { // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.nextSibling; BX_popup_hide(); BX_node_clean_bg(); BX_opa_node=node.getAttribute("id"); try { node.setAttribute("bxe_mark","true"); } // try{node.style.borderWidth="thin";} catch(e) {} while (next != null && next.nodeName == "#text") { next = next.nextSibling; } if (next != null) { node.parentNode.insertBefore(node,next.nextSibling); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
|
function BX_node_move_down (id) { | function BX_node_move_down (id) { | function BX_node_move_down (id){ // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.nextSibling; BX_popup_hide(); BX_node_clean_bg(); BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} // try{node.style.borderWidth="thin";} catch(e) {} while (next != null && next.nodeName == "#text") { next = next.nextSibling; } if (next != null) { node.parentNode.insertBefore(node,next.nextSibling); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} | BX_opa_node=node.getAttribute("id"); try { node.setAttribute("bxe_mark","true"); } | function BX_node_move_down (id){ // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.nextSibling; BX_popup_hide(); BX_node_clean_bg(); BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} // try{node.style.borderWidth="thin";} catch(e) {} while (next != null && next.nodeName == "#text") { next = next.nextSibling; } if (next != null) { node.parentNode.insertBefore(node,next.nextSibling); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
while (next != null && next.nodeName == "#text") { | while (next != null && next.nodeName == "#text") { | function BX_node_move_down (id){ // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.nextSibling; BX_popup_hide(); BX_node_clean_bg(); BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} // try{node.style.borderWidth="thin";} catch(e) {} while (next != null && next.nodeName == "#text") { next = next.nextSibling; } if (next != null) { node.parentNode.insertBefore(node,next.nextSibling); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
if (next != null) { | if (next != null) { | function BX_node_move_down (id){ // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.nextSibling; BX_popup_hide(); BX_node_clean_bg(); BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} // try{node.style.borderWidth="thin";} catch(e) {} while (next != null && next.nodeName == "#text") { next = next.nextSibling; } if (next != null) { node.parentNode.insertBefore(node,next.nextSibling); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
try { node.setAttribute("bxe_mark","true") } catch(e) {} | function BX_node_move_up (id) { // var node = BX_getElementByIdClean(id,document); var node = BX_getElementById(id,document); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.previousSibling; BX_popup_hide(); BX_node_clean_bg() ; BX_opa_node=node.getAttribute("id"); try { node.setAttribute("bxe_mark","true") } catch(e) {} while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { next = next.previousSibling; } if (next != null) { node.parentNode.insertBefore(node,next); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
|
BX_range = BX_selection.getRangeAt(0); document.addEventListener("keypress",BX_keypress,false); | function BX_node_move_up (id) { // var node = BX_getElementByIdClean(id,document); var node = BX_getElementById(id,document); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.previousSibling; BX_popup_hide(); BX_node_clean_bg() ; BX_opa_node=node.getAttribute("id"); try { node.setAttribute("bxe_mark","true") } catch(e) {} while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { next = next.previousSibling; } if (next != null) { node.parentNode.insertBefore(node,next); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
|
function BX_node_move_up (id) { | function BX_node_move_up (id) { | function BX_node_move_up (id){ // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.previousSibling; BX_popup_hide(); BX_node_clean_bg() ; BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} catch(e) {} while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { next = next.previousSibling; } if (next != null) { node.parentNode.insertBefore(node,next); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
var node = document.getElementById(id); | var node = BX_getElementById(id,document); | function BX_node_move_up (id){ // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.previousSibling; BX_popup_hide(); BX_node_clean_bg() ; BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} catch(e) {} while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { next = next.previousSibling; } if (next != null) { node.parentNode.insertBefore(node,next); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
BX_opa_node=node.getAttribute("ID"); | BX_opa_node=node.getAttribute("id"); | function BX_node_move_up (id){ // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.previousSibling; BX_popup_hide(); BX_node_clean_bg() ; BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} catch(e) {} while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { next = next.previousSibling; } if (next != null) { node.parentNode.insertBefore(node,next); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
try{node.style.background="#dddddd";} catch(e) {} | try { node.setAttribute("bxe_mark","true") } catch(e) {} | function BX_node_move_up (id){ // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.previousSibling; BX_popup_hide(); BX_node_clean_bg() ; BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} catch(e) {} while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { next = next.previousSibling; } if (next != null) { node.parentNode.insertBefore(node,next); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { | while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { | function BX_node_move_up (id){ // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.previousSibling; BX_popup_hide(); BX_node_clean_bg() ; BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} catch(e) {} while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { next = next.previousSibling; } if (next != null) { node.parentNode.insertBefore(node,next); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
if (next != null) { | if (next != null) { | function BX_node_move_up (id){ // var node = BX_getElementByIdClean(id,document); var node = document.getElementById(id); var anchorNode = BX_selection.anchorNode; var anchorOffset = BX_selection.anchorOffset; var next = node.previousSibling; BX_popup_hide(); BX_node_clean_bg() ; BX_opa_node=node.getAttribute("ID"); try{node.style.background="#dddddd";} catch(e) {} while (next != null && (next.nodeName == "#text" || next.childNodes.length == 0)) { next = next.previousSibling; } if (next != null) { node.parentNode.insertBefore(node,next); } // BX_range_updateToCursor(); BX_selection.collapse(anchorNode,anchorOffset); BX_undo_save(); BX_scrollToCursor(); BX_update_buttons = true;} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
function BX_onContextMenuImg(e){ | function BX_onContextMenuImg(e,event){ | function BX_onContextMenuImg(e){ var xref = e; BX_popup_start("Image",0,0); BX_popup_addLine("Copy Image","javascript:BX_copy_copyID('"+xref.id+"');BX_popup_hide()"); BX_popup_addLine("Cut Image","javascript:BX_copy_extractID('"+xref.id+"');BX_popup_hide()");// BX_popup_addLine("Edit Image","javascript:BX_open_ImageEdit(BX_getElementByIdClean('"+xref.id+"',document).getAttribute('linkend').replace(/Mediaobject/,''))"); if (BX_clipboard && BX_clipboard.nodeName == "xref") { BX_popup_addLine("Paste Clipboard Image After","javascript:BX_copy_pasteID('"+xref.id+"');BX_popup_hide()"); BX_popup_addLine("Paste Clipboard Image Before","javascript:BX_copy_pasteID('"+xref.id+"',1);BX_popup_hide()"); } if (xref.parentNode.nodeName == "mediagroup") { BX_popup_addLine("Copy Mediagroup","javascript:BX_copy_copyID('"+xref.parentNode.id+"');BX_popup_hide()"); BX_popup_addLine("Cut Mediagroup","javascript:BX_copy_extractID('"+xref.parentNode.id+"');BX_popup_hide()"); } BX_popup_show(); BX_range.selectNodeContents(xref); BX_updateButtons();} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_image.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_image.js |
function BX_onContextMenuImg(e){ var xref = e; BX_popup_start("Image",0,0); BX_popup_addLine("Copy Image","javascript:BX_copy_copyID('"+xref.id+"');BX_popup_hide()"); BX_popup_addLine("Cut Image","javascript:BX_copy_extractID('"+xref.id+"');BX_popup_hide()");// BX_popup_addLine("Edit Image","javascript:BX_open_ImageEdit(BX_getElementByIdClean('"+xref.id+"',document).getAttribute('linkend').replace(/Mediaobject/,''))"); if (BX_clipboard && BX_clipboard.nodeName == "xref") { BX_popup_addLine("Paste Clipboard Image After","javascript:BX_copy_pasteID('"+xref.id+"');BX_popup_hide()"); BX_popup_addLine("Paste Clipboard Image Before","javascript:BX_copy_pasteID('"+xref.id+"',1);BX_popup_hide()"); } if (xref.parentNode.nodeName == "mediagroup") { BX_popup_addLine("Copy Mediagroup","javascript:BX_copy_copyID('"+xref.parentNode.id+"');BX_popup_hide()"); BX_popup_addLine("Cut Mediagroup","javascript:BX_copy_extractID('"+xref.parentNode.id+"');BX_popup_hide()"); } BX_popup_show(); BX_range.selectNodeContents(xref); BX_updateButtons();} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_image.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_image.js |
||
function BX_onkeyup(e) { switch (e.keyCode) { case e.DOM_VK_UP: case e.DOM_VK_DOWN: case e.DOM_VK_LEFT: case e.DOM_VK_RIGHT: case e.DOM_VK_DELETE: case e.DOM_VK_BACK_SPACE: if (!BX_no_events) { BX_update_buttons = true; window.setTimeout("BX_updateButtonsDelayed()",10); var _node = window.getSelection().anchorNode; _node.target = _node; BX_focusSpan(_node); } e.preventDefault(); e.stopPropagation(); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ddc240ced5875d7129300fbe7ba664b285e93a9a/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
||
function BX_onkeyup(e) { switch (e.keyCode) { case e.DOM_VK_UP: case e.DOM_VK_DOWN: case e.DOM_VK_LEFT: case e.DOM_VK_RIGHT: case e.DOM_VK_DELETE: case e.DOM_VK_BACK_SPACE: if (!BX_no_events) { BX_update_buttons = true; window.setTimeout("BX_updateButtonsDelayed()",10); var _node = window.getSelection().anchorNode; _node.target = _node; BX_focusSpan(_node); } e.preventDefault(); e.stopPropagation(); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ddc240ced5875d7129300fbe7ba664b285e93a9a/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
||
BX_dump("window.setTimeout(BX_updateButtonsDelayed()) in BX_onkeyup"); | function BX_onkeyup(e) { switch (e.keyCode) { case e.DOM_VK_UP: case e.DOM_VK_DOWN: case e.DOM_VK_LEFT: case e.DOM_VK_RIGHT: case e.DOM_VK_DELETE: case e.DOM_VK_BACK_SPACE: if (!BX_no_events) { BX_update_buttons = true; window.setTimeout("BX_updateButtonsDelayed()",10); var _node = window.getSelection().anchorNode; _node.target = _node; BX_focusSpan(_node); BX_dump("window.setTimeout(BX_updateButtonsDelayed()) in BX_onkeyup"); } e.preventDefault(); e.stopPropagation(); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
|
function BX_onkeyup(e) { | function BX_onkeyup(e) { | function BX_onkeyup(e){ switch (e.keyCode) { case e.DOM_VK_UP: case e.DOM_VK_DOWN: case e.DOM_VK_LEFT: case e.DOM_VK_RIGHT: case e.DOM_VK_DELETE: case e.DOM_VK_BACK_SPACE: BX_update_buttons = true; window.setTimeout("BX_updateButtonsDelayed()",10); }} | 791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.