rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
} else {
} else {
function BX_source_insert(id,selectNodeContents){ var oldnode = document.getElementById(id); BX_clipboard_copyToBX_clipboard(); if (selectNodeContents) { var childLength = oldnode.childNodes.length; for(var i = 0; i < childLength; i++) { window.defaultStatus += " " +i; oldnode.removeChild(oldnode.childNodes[0]); } oldnode.appendChild(BX_clipboard); } else { oldnode.parentNode.replaceChild(BX_clipboard,oldnode); } BX_transform();}
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_splitNode(id) { if (id) {
function BX_splitNode(id) { if (id) {
function BX_splitNode(id){ if (id) { var parent = BX_getElementByIdClean(id,document); } else { var parent = BX_range.startContainer.parentNode; } BX_tmp_r1 = BX_range.cloneRange(); BX_tmp_r1.setEndAfter(parent); BX_range.setStartBefore(parent); var FirstNode = BX_range.extractContents(); var ThirdNode = BX_tmp_r1.extractContents(); parent.parentNode.insertBefore(FirstNode,parent); //var SecondNode = parent.parentNode.insertBefore(newReturnElement,parent); parent.parentNode.insertBefore(ThirdNode,parent); BX_selection.collapse(parent.previousSibling,0); BX_node_insertID(parent.previousSibling); BX_node_insertID(parent.previousSibling.previousSibling); BX_range.selectNode(parent.previousSibling.previousSibling); BX_range.collapse(false); parent.parentNode.removeChild(parent); /* BX_tmp_r1 = BX_range.cloneRange(); BX_tmp_r1.setEndAfter(BX_range.startContainer); BX_range.setStartBefore(BX_range.startContainer); parent.insertBefore(BX_range.extractContents(),BX_tmp_r1.startContainer); BX_range.selectNode(BX_tmp_r1.startContainer); BX_range.collapse(true); BX_tmp_r1.detach();*/}
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_splitNode(id){ if (id) { var parent = BX_getElementByIdClean(id,document); } else { var parent = BX_range.startContainer.parentNode; } BX_tmp_r1 = BX_range.cloneRange(); BX_tmp_r1.setEndAfter(parent); BX_range.setStartBefore(parent); var FirstNode = BX_range.extractContents(); var ThirdNode = BX_tmp_r1.extractContents(); parent.parentNode.insertBefore(FirstNode,parent); //var SecondNode = parent.parentNode.insertBefore(newReturnElement,parent); parent.parentNode.insertBefore(ThirdNode,parent); BX_selection.collapse(parent.previousSibling,0); BX_node_insertID(parent.previousSibling); BX_node_insertID(parent.previousSibling.previousSibling); BX_range.selectNode(parent.previousSibling.previousSibling); BX_range.collapse(false); parent.parentNode.removeChild(parent); /* BX_tmp_r1 = BX_range.cloneRange(); BX_tmp_r1.setEndAfter(BX_range.startContainer); BX_range.setStartBefore(BX_range.startContainer); parent.insertBefore(BX_range.extractContents(),BX_tmp_r1.startContainer); BX_range.selectNode(BX_tmp_r1.startContainer); BX_range.collapse(true); BX_tmp_r1.detach();*/}
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_submit() { BX_save_document(BX_posturl,BX_posturl_method);
function BX_submit(options) { BXE_loader.save(BX_posturl.filename,BX_posturl.method,options);
function BX_submit(){ BX_save_document(BX_posturl,BX_posturl_method);}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_load.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_load.js
BX_popup_start("Create Table",100,90);
BX_popup_start("Create Table",0,90);
function BX_table_insert(e){ var output = ""; BX_popup_start("Create Table",100,90); if (BX_range) { output = "<form action='javascript:BX_table_newtable();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td >Columns</td><td ><input value='2' size=\"3\" name=\"cols\"></td>\n"; output += "</tr><tr>\n"; output += "<td>Rows</td><td ><input value='2' size=\"3\" name=\"rows\"></td>\n"; output += "</tr><tr>\n"; output += "<td colspan='2' align='right'>\n"; output += "<input type='submit' class=\"usualBlackTd\" value='create'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); } else { output = "<span class='usualBlackTd'>Nothing selected, please select the point, where you want the table inserted</span>"; BX_popup_addHtml(output); } BX_removeEvents(); BX_popup_show();}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
output = "<form action='javascript:BX_table_newtable();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td >Columns</td><td ><input value='2' size=\"3\" name=\"cols\"></td>\n";
output = "<form action='javascript:BX_table_newtable();' id='bxe_tabelle' name='tabelle'><table class=\"usual\"><tr>"; output += "<td >Columns</td><td ><input value='2' size=\"3\" name=\"cols\" /></td>\n";
function BX_table_insert(e){ var output = ""; BX_popup_start("Create Table",100,90); if (BX_range) { output = "<form action='javascript:BX_table_newtable();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td >Columns</td><td ><input value='2' size=\"3\" name=\"cols\"></td>\n"; output += "</tr><tr>\n"; output += "<td>Rows</td><td ><input value='2' size=\"3\" name=\"rows\"></td>\n"; output += "</tr><tr>\n"; output += "<td colspan='2' align='right'>\n"; output += "<input type='submit' class=\"usualBlackTd\" value='create'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); } else { output = "<span class='usualBlackTd'>Nothing selected, please select the point, where you want the table inserted</span>"; BX_popup_addHtml(output); } BX_removeEvents(); BX_popup_show();}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
output += "<td>Rows</td><td ><input value='2' size=\"3\" name=\"rows\"></td>\n";
output += "<td>Rows</td><td ><input value='2' size=\"3\" name=\"rows\" /></td>\n";
function BX_table_insert(e){ var output = ""; BX_popup_start("Create Table",100,90); if (BX_range) { output = "<form action='javascript:BX_table_newtable();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td >Columns</td><td ><input value='2' size=\"3\" name=\"cols\"></td>\n"; output += "</tr><tr>\n"; output += "<td>Rows</td><td ><input value='2' size=\"3\" name=\"rows\"></td>\n"; output += "</tr><tr>\n"; output += "<td colspan='2' align='right'>\n"; output += "<input type='submit' class=\"usualBlackTd\" value='create'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); } else { output = "<span class='usualBlackTd'>Nothing selected, please select the point, where you want the table inserted</span>"; BX_popup_addHtml(output); } BX_removeEvents(); BX_popup_show();}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
output += "<input type='submit' class=\"usualBlackTd\" value='create'> </td>";
output += "<input type='submit' class=\"usual\" value='create' /> </td>";
function BX_table_insert(e){ var output = ""; BX_popup_start("Create Table",100,90); if (BX_range) { output = "<form action='javascript:BX_table_newtable();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td >Columns</td><td ><input value='2' size=\"3\" name=\"cols\"></td>\n"; output += "</tr><tr>\n"; output += "<td>Rows</td><td ><input value='2' size=\"3\" name=\"rows\"></td>\n"; output += "</tr><tr>\n"; output += "<td colspan='2' align='right'>\n"; output += "<input type='submit' class=\"usualBlackTd\" value='create'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); } else { output = "<span class='usualBlackTd'>Nothing selected, please select the point, where you want the table inserted</span>"; BX_popup_addHtml(output); } BX_removeEvents(); BX_popup_show();}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
output = "<span class='usualBlackTd'>Nothing selected, please select the point, where you want the table inserted</span>";
output = "<span class='usual'>Nothing selected, please select the point, where you want the table inserted</span>";
function BX_table_insert(e){ var output = ""; BX_popup_start("Create Table",100,90); if (BX_range) { output = "<form action='javascript:BX_table_newtable();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td >Columns</td><td ><input value='2' size=\"3\" name=\"cols\"></td>\n"; output += "</tr><tr>\n"; output += "<td>Rows</td><td ><input value='2' size=\"3\" name=\"rows\"></td>\n"; output += "</tr><tr>\n"; output += "<td colspan='2' align='right'>\n"; output += "<input type='submit' class=\"usualBlackTd\" value='create'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); } else { output = "<span class='usualBlackTd'>Nothing selected, please select the point, where you want the table inserted</span>"; BX_popup_addHtml(output); } BX_removeEvents(); BX_popup_show();}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
var newCell = BX_xml.createElementNS("http:
var newCell = BX_xml.doc.createElementNS("http:
function BX_table_insert_col(){ if (!(BX_range)) { alert("Nothing selected, please select a table cell"); return; } var cell = BX_range.startContainer.parentNode; if (cell.nodeName.toLowerCase() != "entry") { alert("No table-cell selected, please choose one"); return ; } var row = cell.parentNode; var tbody = row.parentNode; var cellPos; // find on which position we are for (var i = 0; i < row.childNodes.length; i++) { if (row.childNodes[i] == cell) { cellPos = i; break; } } //for each row, add a entry for (var i = 0; i < tbody.childNodes.length; i++) { if (tbody.childNodes[i].nodeName.toLowerCase() == "row") { var newCell = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(newCell); var textNode = BX_xml.createTextNode("#"); newCell.appendChild(textNode); var oldCell = tbody.childNodes[i].childNodes[cellPos]; tbody.childNodes[i].replaceChild(newCell,oldCell); bla = tbody.childNodes[i].insertBefore(oldCell,newCell); } } BX_range.setEnd(newCell.childNodes[0],0); BX_range.setStart(newCell.childNodes[0],0);}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
var textNode = BX_xml.createTextNode("#");
var textNode = BX_xml.doc.createTextNode("#");
function BX_table_insert_col(){ if (!(BX_range)) { alert("Nothing selected, please select a table cell"); return; } var cell = BX_range.startContainer.parentNode; if (cell.nodeName.toLowerCase() != "entry") { alert("No table-cell selected, please choose one"); return ; } var row = cell.parentNode; var tbody = row.parentNode; var cellPos; // find on which position we are for (var i = 0; i < row.childNodes.length; i++) { if (row.childNodes[i] == cell) { cellPos = i; break; } } //for each row, add a entry for (var i = 0; i < tbody.childNodes.length; i++) { if (tbody.childNodes[i].nodeName.toLowerCase() == "row") { var newCell = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(newCell); var textNode = BX_xml.createTextNode("#"); newCell.appendChild(textNode); var oldCell = tbody.childNodes[i].childNodes[cellPos]; tbody.childNodes[i].replaceChild(newCell,oldCell); bla = tbody.childNodes[i].insertBefore(oldCell,newCell); } } BX_range.setEnd(newCell.childNodes[0],0); BX_range.setStart(newCell.childNodes[0],0);}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
var newRow = BX_xml.createElementNS("http:
var newRow = BX_xml.doc.createElementNS("http:
function BX_table_insert_row(){ var cell = BX_range.startContainer.parentNode; var row = cell.parentNode; var tbody = row.parentNode; var newRow = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(newRow); for (var i = 0; i < row.childNodes.length; i++) { var newCell = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(newCell); var textNode = BX_xml.createTextNode("#"); newCell.appendChild(textNode); newRow.appendChild(newCell); } tbody.replaceChild(newRow,row); bla = tbody.insertBefore(row,newRow); BX_range.setEnd(bla.nextSibling.childNodes[0].childNodes[0],0); BX_range.setStart(bla.nextSibling.childNodes[0].childNodes[0],0);}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
var newCell = BX_xml.createElementNS("http:
var newCell = BX_xml.doc.createElementNS("http:
function BX_table_insert_row(){ var cell = BX_range.startContainer.parentNode; var row = cell.parentNode; var tbody = row.parentNode; var newRow = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(newRow); for (var i = 0; i < row.childNodes.length; i++) { var newCell = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(newCell); var textNode = BX_xml.createTextNode("#"); newCell.appendChild(textNode); newRow.appendChild(newCell); } tbody.replaceChild(newRow,row); bla = tbody.insertBefore(row,newRow); BX_range.setEnd(bla.nextSibling.childNodes[0].childNodes[0],0); BX_range.setStart(bla.nextSibling.childNodes[0].childNodes[0],0);}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
var textNode = BX_xml.createTextNode("#");
var textNode = BX_xml.doc.createTextNode("#");
function BX_table_insert_row(){ var cell = BX_range.startContainer.parentNode; var row = cell.parentNode; var tbody = row.parentNode; var newRow = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(newRow); for (var i = 0; i < row.childNodes.length; i++) { var newCell = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(newCell); var textNode = BX_xml.createTextNode("#"); newCell.appendChild(textNode); newRow.appendChild(newCell); } tbody.replaceChild(newRow,row); bla = tbody.insertBefore(row,newRow); BX_range.setEnd(bla.nextSibling.childNodes[0].childNodes[0],0); BX_range.setStart(bla.nextSibling.childNodes[0].childNodes[0],0);}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
if (document.forms["tabelle"].ch[0].checked)
if (document.getElementById("bxe_tabelle").ch[0].checked)
function BX_table_insert_row_or_col(roworcol){ if(BX_popup.style.visibility== 'visible') { if (document.forms["tabelle"].ch[0].checked) { BX_table_insert_row(); } else { BX_table_insert_col(); } BX_popup.style.visibility= 'hidden'; BX_addEvents(); return; } if (!(BX_range)) { alert("Nothing selected, please select a table cell"); return; } if (BX_range.startContainer.parentNode.nodeName.toLowerCase() != "entry") { alert("No table-cell (but " + BX_range.startContainer.parentNode.nodeName +") selected, please choose one"); return ; } BX_popup_start("Add Row or Col",110,90); var output = ""; output += "<form action='javascript:BX_table_insert_row_or_col();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td ><input name='ch' type='radio' value='row' checked></td><td >add row</td>\n"; output += "</tr><tr><td ><input name='ch' type='radio' value='col'></td><td >add col</td>\n"; output += "</tr></tr><td colspan='2'><input type='submit' class=\"usualBlackTd\" value='add'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); BX_popup_show(); BX_popup.style.top=BX_popup.offsetTop - 1 + "px";}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
output += "<form action='javascript:BX_table_insert_row_or_col();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td ><input name='ch' type='radio' value='row' checked></td><td >add row</td>\n"; output += "</tr><tr><td ><input name='ch' type='radio' value='col'></td><td >add col</td>\n";
output += "<form action='javascript:BX_table_insert_row_or_col();' id='bxe_tabelle' name='tabelle'><table class=\"usual\"><tr>"; output += "<td ><input name='ch' type='radio' value='row' checked='checked' /></td><td >add row</td>\n"; output += "</tr><tr><td ><input name='ch' type='radio' value='col' /></td><td >add col</td>\n";
function BX_table_insert_row_or_col(roworcol){ if(BX_popup.style.visibility== 'visible') { if (document.forms["tabelle"].ch[0].checked) { BX_table_insert_row(); } else { BX_table_insert_col(); } BX_popup.style.visibility= 'hidden'; BX_addEvents(); return; } if (!(BX_range)) { alert("Nothing selected, please select a table cell"); return; } if (BX_range.startContainer.parentNode.nodeName.toLowerCase() != "entry") { alert("No table-cell (but " + BX_range.startContainer.parentNode.nodeName +") selected, please choose one"); return ; } BX_popup_start("Add Row or Col",110,90); var output = ""; output += "<form action='javascript:BX_table_insert_row_or_col();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td ><input name='ch' type='radio' value='row' checked></td><td >add row</td>\n"; output += "</tr><tr><td ><input name='ch' type='radio' value='col'></td><td >add col</td>\n"; output += "</tr></tr><td colspan='2'><input type='submit' class=\"usualBlackTd\" value='add'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); BX_popup_show(); BX_popup.style.top=BX_popup.offsetTop - 1 + "px";}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
output += "</tr></tr><td colspan='2'><input type='submit' class=\"usualBlackTd\" value='add'> </td>";
output += "</tr><tr><td colspan='2'><input type='submit' class=\"usual\" value='add' /> </td>";
function BX_table_insert_row_or_col(roworcol){ if(BX_popup.style.visibility== 'visible') { if (document.forms["tabelle"].ch[0].checked) { BX_table_insert_row(); } else { BX_table_insert_col(); } BX_popup.style.visibility= 'hidden'; BX_addEvents(); return; } if (!(BX_range)) { alert("Nothing selected, please select a table cell"); return; } if (BX_range.startContainer.parentNode.nodeName.toLowerCase() != "entry") { alert("No table-cell (but " + BX_range.startContainer.parentNode.nodeName +") selected, please choose one"); return ; } BX_popup_start("Add Row or Col",110,90); var output = ""; output += "<form action='javascript:BX_table_insert_row_or_col();' name='tabelle'><table class=\"usualBlackTd\"><tr>"; output += "<td ><input name='ch' type='radio' value='row' checked></td><td >add row</td>\n"; output += "</tr><tr><td ><input name='ch' type='radio' value='col'></td><td >add col</td>\n"; output += "</tr></tr><td colspan='2'><input type='submit' class=\"usualBlackTd\" value='add'> </td>"; output += "</tr></table></form>"; BX_popup_addHtml(output); BX_popup_show(); BX_popup.style.top=BX_popup.offsetTop - 1 + "px";}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value;
var TRows = document.getElementById("bxe_tabelle").rows.value; var TCols = document.getElementById("bxe_tabelle").cols.value;
function BX_table_newtable(){ if (BX_popup.style.visibility != 'visible') { return; } var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value; BX_popup_hide(); var table = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","informaltable"); BX_node_insertID(table); var tgroup = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tgroup"); BX_node_insertID(tgroup); var tbody = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tbody"); BX_node_insertID(tbody); tgroup.appendChild(tbody); table.appendChild(tgroup); for (var i = 0; i < TRows; i++) { var trElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(trElement); for (var j = 0; j < TCols; j++) { var tdElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(tdElement); var textNode = BX_xml.createTextNode("#"); tdElement.appendChild(textNode); trElement.appendChild(tdElement) } var tr = tbody.appendChild(trElement); } BX_range.extractContents(); BX_insertContent(table); BX_selection.collapse(table.firstChild.firstChild.firstChild.firstChild.firstChild,0); BX_update_buttons = true; BX_addEvents();}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
var table = BX_xml.createElementNS("http:
var table = BX_xml.doc.createElementNS("http:
function BX_table_newtable(){ if (BX_popup.style.visibility != 'visible') { return; } var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value; BX_popup_hide(); var table = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","informaltable"); BX_node_insertID(table); var tgroup = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tgroup"); BX_node_insertID(tgroup); var tbody = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tbody"); BX_node_insertID(tbody); tgroup.appendChild(tbody); table.appendChild(tgroup); for (var i = 0; i < TRows; i++) { var trElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(trElement); for (var j = 0; j < TCols; j++) { var tdElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(tdElement); var textNode = BX_xml.createTextNode("#"); tdElement.appendChild(textNode); trElement.appendChild(tdElement) } var tr = tbody.appendChild(trElement); } BX_range.extractContents(); BX_insertContent(table); BX_selection.collapse(table.firstChild.firstChild.firstChild.firstChild.firstChild,0); BX_update_buttons = true; BX_addEvents();}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
var tgroup = BX_xml.createElementNS("http:
var tgroup = BX_xml.doc.createElementNS("http:
function BX_table_newtable(){ if (BX_popup.style.visibility != 'visible') { return; } var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value; BX_popup_hide(); var table = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","informaltable"); BX_node_insertID(table); var tgroup = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tgroup"); BX_node_insertID(tgroup); var tbody = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tbody"); BX_node_insertID(tbody); tgroup.appendChild(tbody); table.appendChild(tgroup); for (var i = 0; i < TRows; i++) { var trElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(trElement); for (var j = 0; j < TCols; j++) { var tdElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(tdElement); var textNode = BX_xml.createTextNode("#"); tdElement.appendChild(textNode); trElement.appendChild(tdElement) } var tr = tbody.appendChild(trElement); } BX_range.extractContents(); BX_insertContent(table); BX_selection.collapse(table.firstChild.firstChild.firstChild.firstChild.firstChild,0); BX_update_buttons = true; BX_addEvents();}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
var tbody = BX_xml.createElementNS("http:
var tbody = BX_xml.doc.createElementNS("http:
function BX_table_newtable(){ if (BX_popup.style.visibility != 'visible') { return; } var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value; BX_popup_hide(); var table = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","informaltable"); BX_node_insertID(table); var tgroup = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tgroup"); BX_node_insertID(tgroup); var tbody = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tbody"); BX_node_insertID(tbody); tgroup.appendChild(tbody); table.appendChild(tgroup); for (var i = 0; i < TRows; i++) { var trElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(trElement); for (var j = 0; j < TCols; j++) { var tdElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(tdElement); var textNode = BX_xml.createTextNode("#"); tdElement.appendChild(textNode); trElement.appendChild(tdElement) } var tr = tbody.appendChild(trElement); } BX_range.extractContents(); BX_insertContent(table); BX_selection.collapse(table.firstChild.firstChild.firstChild.firstChild.firstChild,0); BX_update_buttons = true; BX_addEvents();}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
var trElement = BX_xml.createElementNS("http:
var trElement = BX_xml.doc.createElementNS("http:
function BX_table_newtable(){ if (BX_popup.style.visibility != 'visible') { return; } var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value; BX_popup_hide(); var table = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","informaltable"); BX_node_insertID(table); var tgroup = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tgroup"); BX_node_insertID(tgroup); var tbody = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tbody"); BX_node_insertID(tbody); tgroup.appendChild(tbody); table.appendChild(tgroup); for (var i = 0; i < TRows; i++) { var trElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(trElement); for (var j = 0; j < TCols; j++) { var tdElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(tdElement); var textNode = BX_xml.createTextNode("#"); tdElement.appendChild(textNode); trElement.appendChild(tdElement) } var tr = tbody.appendChild(trElement); } BX_range.extractContents(); BX_insertContent(table); BX_selection.collapse(table.firstChild.firstChild.firstChild.firstChild.firstChild,0); BX_update_buttons = true; BX_addEvents();}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
var tdElement = BX_xml.createElementNS("http:
var tdElement = BX_xml.doc.createElementNS("http:
function BX_table_newtable(){ if (BX_popup.style.visibility != 'visible') { return; } var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value; BX_popup_hide(); var table = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","informaltable"); BX_node_insertID(table); var tgroup = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tgroup"); BX_node_insertID(tgroup); var tbody = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tbody"); BX_node_insertID(tbody); tgroup.appendChild(tbody); table.appendChild(tgroup); for (var i = 0; i < TRows; i++) { var trElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(trElement); for (var j = 0; j < TCols; j++) { var tdElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(tdElement); var textNode = BX_xml.createTextNode("#"); tdElement.appendChild(textNode); trElement.appendChild(tdElement) } var tr = tbody.appendChild(trElement); } BX_range.extractContents(); BX_insertContent(table); BX_selection.collapse(table.firstChild.firstChild.firstChild.firstChild.firstChild,0); BX_update_buttons = true; BX_addEvents();}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
var textNode = BX_xml.createTextNode("#");
var textNode = BX_xml.doc.createTextNode("#");
function BX_table_newtable(){ if (BX_popup.style.visibility != 'visible') { return; } var TRows = document.forms["tabelle"].rows.value; var TCols = document.forms["tabelle"].cols.value; BX_popup_hide(); var table = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","informaltable"); BX_node_insertID(table); var tgroup = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tgroup"); BX_node_insertID(tgroup); var tbody = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","tbody"); BX_node_insertID(tbody); tgroup.appendChild(tbody); table.appendChild(tgroup); for (var i = 0; i < TRows; i++) { var trElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","row"); BX_node_insertID(trElement); for (var j = 0; j < TCols; j++) { var tdElement = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","entry"); BX_node_insertID(tdElement); var textNode = BX_xml.createTextNode("#"); tdElement.appendChild(textNode); trElement.appendChild(tdElement) } var tr = tbody.appendChild(trElement); } BX_range.extractContents(); BX_insertContent(table); BX_selection.collapse(table.firstChild.firstChild.firstChild.firstChild.firstChild,0); BX_update_buttons = true; BX_addEvents();}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_table.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_table.js
BX_node_clean_bg();
function BX_transform(selectNode) { BX_get_selection(); BX_range.collapse(true); var BX_cursor = document.createElementNS("http://www.w3.org/1999/xhtml","span"); // BX_cursor.appendChild(document.createTextNode("|")); BX_cursor.setAttribute("id","bx_cursor"); BX_insertContent(BX_cursor); if (BX_mixedCaseAttributes) { BX_xml.doc = BX_getResultXML(); var xmltransformedback = BX_xml.doc.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_xml.doc, BX_xmlTR.doc, xmltransformedback, null); BX_xml.doc = xmltransformedback; } else { BX_updateXML(); } BX_transformDoc(); BX_cursor = document.getElementById("bx_cursor"); if (BX_cursor && BX_cursor.nextSibling) { BX_selection.collapse(BX_cursor.nextSibling,0); } else { try { BX_selection.collapse(BX_cursor,0); } catch(e) { return; } } BX_cursor.parentNode.removeChild(BX_cursor); if (selectNode) { BX_range.selectNodeContents(BX_range.startContainer); BX_range.insertNode(BX_cursor); } BX_range_length = BX_range.toString().length; // BX_range.collapse(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
if (BX_mixedCaseAttributes) {
if (typeof BX_mixedCaseAttributes != "undefined" && BX_mixedCaseAttributes) {
function BX_transform(selectNode) { BX_get_selection(); BX_range.collapse(true); var BX_cursor = document.createElementNS("http://www.w3.org/1999/xhtml","span"); // BX_cursor.appendChild(document.createTextNode("|")); BX_cursor.setAttribute("id","bx_cursor"); BX_insertContent(BX_cursor); if (BX_mixedCaseAttributes) { BX_xml.doc = BX_getResultXML(); var xmltransformedback = BX_xml.doc.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_xml.doc, BX_xmlTR.doc, xmltransformedback, null); BX_xml.doc = xmltransformedback; } else { BX_updateXML(); } BX_transformDoc(); BX_cursor = document.getElementById("bx_cursor"); if (BX_cursor && BX_cursor.nextSibling) { BX_selection.collapse(BX_cursor.nextSibling,0); } else { try { BX_selection.collapse(BX_cursor,0); } catch(e) { return; } } BX_cursor.parentNode.removeChild(BX_cursor); if (selectNode) { BX_range.selectNodeContents(BX_range.startContainer); BX_range.insertNode(BX_cursor); } BX_range_length = BX_range.toString().length; // BX_range.collapse(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_length = BX_range.toString().length;
function BX_transform(selectNode) { BX_get_selection(); BX_range.collapse(true); var BX_cursor = document.createElementNS("http://www.w3.org/1999/xhtml","span"); // BX_cursor.appendChild(document.createTextNode("|")); BX_cursor.setAttribute("id","bx_cursor"); BX_insertContent(BX_cursor); if (BX_mixedCaseAttributes) { BX_xml.doc = BX_getResultXML(); var xmltransformedback = BX_xml.doc.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_xml.doc, BX_xmlTR.doc, xmltransformedback, null); BX_xml.doc = xmltransformedback; } else { BX_updateXML(); } BX_transformDoc(); BX_cursor = document.getElementById("bx_cursor"); if (BX_cursor && BX_cursor.nextSibling) { BX_selection.collapse(BX_cursor.nextSibling,0); } else { try { BX_selection.collapse(BX_cursor,0); } catch(e) { return; } } BX_cursor.parentNode.removeChild(BX_cursor); if (selectNode) { BX_range.selectNodeContents(BX_range.startContainer); BX_range.insertNode(BX_cursor); } BX_range_length = BX_range.toString().length; // BX_range.collapse(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_transform(selectNode) {
function BX_transform(selectNode) {
function BX_transform(selectNode){ BX_get_selection(); var BX_cursor = document.createElementNS("http://www.w3.org/1999/xhtml","span"); // BX_cursor.appendChild(document.createTextNode("|")); BX_cursor.setAttribute("id","bx_cursor"); BX_insertContent(BX_cursor); if (BX_mixedCaseAttributes) { var xmltransformedback = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_getResultXML(), BX_xmlTR, xmltransformedback, null); BX_xml = xmltransformedback; } else { BX_updateXML(); } BX_transformDoc(); BX_cursor = document.getElementById("bx_cursor"); if (BX_cursor && BX_cursor.nextSibling) { BX_selection.collapse(BX_cursor.nextSibling,0); } else { try{ BX_selection.collapse(BX_cursor,0);} catch(e) { return;} } BX_cursor.parentNode.removeChild(BX_cursor); if (selectNode) { BX_range.selectNodeContents(BX_range.startContainer); BX_range.insertNode(BX_cursor); } BX_range_length = BX_range.toString().length; // BX_range.collapse(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 (BX_mixedCaseAttributes) { var xmltransformedback = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_getResultXML(), BX_xmlTR, xmltransformedback, null); BX_xml = xmltransformedback; } else {
if (BX_mixedCaseAttributes) { BX_xml.doc = BX_getResultXML(); var xmltransformedback = BX_xml.doc.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_xml.doc, BX_xmlTR.doc, xmltransformedback, null); BX_xml.doc = xmltransformedback; } else {
function BX_transform(selectNode){ BX_get_selection(); var BX_cursor = document.createElementNS("http://www.w3.org/1999/xhtml","span"); // BX_cursor.appendChild(document.createTextNode("|")); BX_cursor.setAttribute("id","bx_cursor"); BX_insertContent(BX_cursor); if (BX_mixedCaseAttributes) { var xmltransformedback = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_getResultXML(), BX_xmlTR, xmltransformedback, null); BX_xml = xmltransformedback; } else { BX_updateXML(); } BX_transformDoc(); BX_cursor = document.getElementById("bx_cursor"); if (BX_cursor && BX_cursor.nextSibling) { BX_selection.collapse(BX_cursor.nextSibling,0); } else { try{ BX_selection.collapse(BX_cursor,0);} catch(e) { return;} } BX_cursor.parentNode.removeChild(BX_cursor); if (selectNode) { BX_range.selectNodeContents(BX_range.startContainer); BX_range.insertNode(BX_cursor); } BX_range_length = BX_range.toString().length; // BX_range.collapse(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 (BX_cursor && BX_cursor.nextSibling) {
if (BX_cursor && BX_cursor.nextSibling) {
function BX_transform(selectNode){ BX_get_selection(); var BX_cursor = document.createElementNS("http://www.w3.org/1999/xhtml","span"); // BX_cursor.appendChild(document.createTextNode("|")); BX_cursor.setAttribute("id","bx_cursor"); BX_insertContent(BX_cursor); if (BX_mixedCaseAttributes) { var xmltransformedback = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_getResultXML(), BX_xmlTR, xmltransformedback, null); BX_xml = xmltransformedback; } else { BX_updateXML(); } BX_transformDoc(); BX_cursor = document.getElementById("bx_cursor"); if (BX_cursor && BX_cursor.nextSibling) { BX_selection.collapse(BX_cursor.nextSibling,0); } else { try{ BX_selection.collapse(BX_cursor,0);} catch(e) { return;} } BX_cursor.parentNode.removeChild(BX_cursor); if (selectNode) { BX_range.selectNodeContents(BX_range.startContainer); BX_range.insertNode(BX_cursor); } BX_range_length = BX_range.toString().length; // BX_range.collapse(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
} else { try{ BX_selection.collapse(BX_cursor,0);} catch(e) { return;}
} else { try { BX_selection.collapse(BX_cursor,0); } catch(e) { return; }
function BX_transform(selectNode){ BX_get_selection(); var BX_cursor = document.createElementNS("http://www.w3.org/1999/xhtml","span"); // BX_cursor.appendChild(document.createTextNode("|")); BX_cursor.setAttribute("id","bx_cursor"); BX_insertContent(BX_cursor); if (BX_mixedCaseAttributes) { var xmltransformedback = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_getResultXML(), BX_xmlTR, xmltransformedback, null); BX_xml = xmltransformedback; } else { BX_updateXML(); } BX_transformDoc(); BX_cursor = document.getElementById("bx_cursor"); if (BX_cursor && BX_cursor.nextSibling) { BX_selection.collapse(BX_cursor.nextSibling,0); } else { try{ BX_selection.collapse(BX_cursor,0);} catch(e) { return;} } BX_cursor.parentNode.removeChild(BX_cursor); if (selectNode) { BX_range.selectNodeContents(BX_range.startContainer); BX_range.insertNode(BX_cursor); } BX_range_length = BX_range.toString().length; // BX_range.collapse(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 (selectNode) {
if (selectNode) {
function BX_transform(selectNode){ BX_get_selection(); var BX_cursor = document.createElementNS("http://www.w3.org/1999/xhtml","span"); // BX_cursor.appendChild(document.createTextNode("|")); BX_cursor.setAttribute("id","bx_cursor"); BX_insertContent(BX_cursor); if (BX_mixedCaseAttributes) { var xmltransformedback = BX_xml.implementation.createDocument("","",null); BX_xsltProcessor.transformDocument( BX_getResultXML(), BX_xmlTR, xmltransformedback, null); BX_xml = xmltransformedback; } else { BX_updateXML(); } BX_transformDoc(); BX_cursor = document.getElementById("bx_cursor"); if (BX_cursor && BX_cursor.nextSibling) { BX_selection.collapse(BX_cursor.nextSibling,0); } else { try{ BX_selection.collapse(BX_cursor,0);} catch(e) { return;} } BX_cursor.parentNode.removeChild(BX_cursor); if (selectNode) { BX_range.selectNodeContents(BX_range.startContainer); BX_range.insertNode(BX_cursor); } BX_range_length = BX_range.toString().length; // BX_range.collapse(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
document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_p.gif";
document.getElementById("but_redo").src=BX_root_dir+"/img/wt_redo_p.gif";
function BX_undo_updateButtons(){ if (BX_undo_counter == BX_undo_max) { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_p.gif"; } else { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_n.gif"; } if (! BX_undo_buffer[BX_undo_counter - 1]) { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_p.gif"; } else { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_n.gif"; }}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ddc240ced5875d7129300fbe7ba664b285e93a9a/undo.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/undo.js
document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_n.gif";
document.getElementById("but_redo").src=BX_root_dir+"/img/wt_redo_n.gif";
function BX_undo_updateButtons(){ if (BX_undo_counter == BX_undo_max) { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_p.gif"; } else { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_n.gif"; } if (! BX_undo_buffer[BX_undo_counter - 1]) { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_p.gif"; } else { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_n.gif"; }}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ddc240ced5875d7129300fbe7ba664b285e93a9a/undo.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/undo.js
document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_p.gif";
document.getElementById("but_undo").src=BX_root_dir+"/img/wt_undo_p.gif";
function BX_undo_updateButtons(){ if (BX_undo_counter == BX_undo_max) { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_p.gif"; } else { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_n.gif"; } if (! BX_undo_buffer[BX_undo_counter - 1]) { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_p.gif"; } else { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_n.gif"; }}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ddc240ced5875d7129300fbe7ba664b285e93a9a/undo.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/undo.js
document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_n.gif";
document.getElementById("but_undo").src=BX_root_dir+"/img/wt_undo_n.gif";
function BX_undo_updateButtons(){ if (BX_undo_counter == BX_undo_max) { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_p.gif"; } else { document.getElementById("but_redo").src="./"+BX_root_dir+"/img/wt_redo_n.gif"; } if (! BX_undo_buffer[BX_undo_counter - 1]) { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_p.gif"; } else { document.getElementById("but_undo").src="./"+BX_root_dir+"/img/wt_undo_n.gif"; }}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ddc240ced5875d7129300fbe7ba664b285e93a9a/undo.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/undo.js
function BX_up() {
function BX_up() {
function BX_up(){ BX_removeEvents(); BX_infotext.style.visibility = "hidden"; BX_infotext2.style.visibility = "visible"; BX_infobar.style.top = window.innerHeight - 200; BX_infobar.style.height = 200; BX_range= 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
BX_infobar.style.top = window.innerHeight - 200; BX_infobar.style.height = 200;
BX_infobar.style.top = window.innerHeight - 200 +"px"; BX_infobar.style.height = "200px" ;
function BX_up(){ BX_removeEvents(); BX_infotext.style.visibility = "hidden"; BX_infotext2.style.visibility = "visible"; BX_infobar.style.top = window.innerHeight - 200; BX_infobar.style.height = 200; BX_range= 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
if (BX_debugging) { BX_dump("BX_updateButtonsDelayed()"); }
function BX_updateButtonsDelayed() { if (BX_debugging) { BX_dump("BX_updateButtonsDelayed()"); } if (BX_update_buttons) { BX_get_selection(); BX_updateButtons(); BX_update_buttons = false; }}
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_updateButtonsDelayed() { if (BX_update_buttons) {
function BX_updateButtonsDelayed() { if (BX_debugging) { BX_dump("BX_updateButtonsDelayed()"); } if (BX_update_buttons) {
function BX_updateButtonsDelayed(){ if (BX_update_buttons) { BX_get_selection(); BX_updateButtons(); BX_update_buttons = false; }}
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_updateXML() { var allDivsXpath = document.evaluate("//*[@name = 'bitfluxspan']",document.documentElement,null,0,null); var allDivs = new Array(); var node; while (node = allDivsXpath.iterateNext()) { allDivs.push(node); } BX_clean_nodelist(BX_xml.doc); BX_clean_nodelist(document); BX_xml.doc.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.doc.createRange(); BX_tmp_r2 = document.createRange(); for (var i = 0; i < allDivs.length; i ++) { if (allDivs[i].getAttribute("id")) { var myNodeAttr = BX_xml.doc.getElementById(allDivs[i].getAttribute("id")); //get all children of this <span> tag and add them to a new element with <formfieldid> // later we replace that in the BX_xml. if (!(myNodeAttr)) { continue; } BX_tmp_r1.selectNodeContents(myNodeAttr); BX_tmp_r1.extractContents(); BX_tmp_r2.selectNodeContents(BX_getElementById(allDivs[i].getAttribute("id"),document)); if (BX_tmp_r2.toString().length > 0) { BX_tmp_r1.insertNode(BX_tmp_r2.cloneContents()); } /** //i'm not sure, for what this exactly was.... it works with the code above... for (j = 0; j < document.getElementById(allDivs[i].id).childNodes.length; j++) { temp = document.getElementById(allDivs[i].id).childNodes[j].cloneNode(true); // mmmh, works wirh NN6.2 and MOZ098. temp.BX_xml works only in MOZ098 formvalue += ser.serializeToString(document.getElementById(allDivs[i].id).childNodes[j]).replace(/a0:/gi,"").replace(/BX_xmlns:a0="http:\/\/www.w3.org\/1999\/xhtml"/g,""); newElement.appendChild(temp); } BX_xml.getElementById(allDivs[i].id).replaceChild(newElement,myNodeAttr); */ } } BX_tmp_r1.detach(); BX_tmp_r2.detach();}
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_updateXML() { var allDivsXpath = document.evaluate("//*[@name = 'bitfluxspan']",document.documentElement,null,0,null); var allDivs = new Array(); var node; while (node = allDivsXpath.iterateNext()) { allDivs.push(node); } BX_clean_nodelist(BX_xml.doc); BX_clean_nodelist(document); BX_xml.doc.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.doc.createRange(); BX_tmp_r2 = document.createRange(); for (var i = 0; i < allDivs.length; i ++) { if (allDivs[i].getAttribute("id")) { var myNodeAttr = BX_xml.doc.getElementById(allDivs[i].getAttribute("id")); //get all children of this <span> tag and add them to a new element with <formfieldid> // later we replace that in the BX_xml. if (!(myNodeAttr)) { continue; } BX_tmp_r1.selectNodeContents(myNodeAttr); BX_tmp_r1.extractContents(); BX_tmp_r2.selectNodeContents(BX_getElementById(allDivs[i].getAttribute("id"),document)); if (BX_tmp_r2.toString().length > 0) { BX_tmp_r1.insertNode(BX_tmp_r2.cloneContents()); } /** //i'm not sure, for what this exactly was.... it works with the code above... for (j = 0; j < document.getElementById(allDivs[i].id).childNodes.length; j++) { temp = document.getElementById(allDivs[i].id).childNodes[j].cloneNode(true); // mmmh, works wirh NN6.2 and MOZ098. temp.BX_xml works only in MOZ098 formvalue += ser.serializeToString(document.getElementById(allDivs[i].id).childNodes[j]).replace(/a0:/gi,"").replace(/BX_xmlns:a0="http:\/\/www.w3.org\/1999\/xhtml"/g,""); newElement.appendChild(temp); } BX_xml.getElementById(allDivs[i].id).replaceChild(newElement,myNodeAttr); */ } } BX_tmp_r1.detach(); BX_tmp_r2.detach();}
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_updateXML() {
function BX_updateXML() { var allDivsXpath = document.evaluate(" var allDivs = new Array(); var node; while (node = allDivsXpath.iterateNext()) { allDivs.push(node);
function BX_updateXML(){ var allDivs = document.getElementsByName("bitfluxspan"); BX_clean_nodelist(BX_xml); BX_xml.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.createRange(); BX_tmp_r2 = document.createRange(); for (var i = 0; i < allDivs.length; i ++) { if (allDivs[i].getAttribute("id")) { var myNodeAttr = BX_xml.getElementById(allDivs[i].getAttribute("id")); //get all children of this <span> tag and add them to a new element with <formfieldid> // later we replace that in the BX_xml. if (!(myNodeAttr)) { continue; } BX_tmp_r1.selectNodeContents(myNodeAttr); BX_tmp_r1.extractContents(); BX_tmp_r2.selectNodeContents(document.getElementById(allDivs[i].getAttribute("id"))); if (BX_tmp_r2.toString().length > 0) { BX_tmp_r1.insertNode(BX_tmp_r2.cloneContents()); } /** //i'm not sure, for what this exactly was.... it works with the code above... for (j = 0; j < document.getElementById(allDivs[i].id).childNodes.length; j++) { temp = document.getElementById(allDivs[i].id).childNodes[j].cloneNode(true); // mmmh, works wirh NN6.2 and MOZ098. temp.BX_xml works only in MOZ098 formvalue += ser.serializeToString(document.getElementById(allDivs[i].id).childNodes[j]).replace(/a0:/gi,"").replace(/BX_xmlns:a0="http:\/\/www.w3.org\/1999\/xhtml"/g,""); newElement.appendChild(temp); } BX_xml.getElementById(allDivs[i].id).replaceChild(newElement,myNodeAttr); */ } } BX_tmp_r1.detach(); BX_tmp_r2.detach();}
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 allDivs = document.getElementsByName("bitfluxspan"); BX_clean_nodelist(BX_xml); BX_xml.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.createRange();
} BX_clean_nodelist(BX_xml.doc); BX_clean_nodelist(document); BX_xml.doc.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.doc.createRange();
function BX_updateXML(){ var allDivs = document.getElementsByName("bitfluxspan"); BX_clean_nodelist(BX_xml); BX_xml.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.createRange(); BX_tmp_r2 = document.createRange(); for (var i = 0; i < allDivs.length; i ++) { if (allDivs[i].getAttribute("id")) { var myNodeAttr = BX_xml.getElementById(allDivs[i].getAttribute("id")); //get all children of this <span> tag and add them to a new element with <formfieldid> // later we replace that in the BX_xml. if (!(myNodeAttr)) { continue; } BX_tmp_r1.selectNodeContents(myNodeAttr); BX_tmp_r1.extractContents(); BX_tmp_r2.selectNodeContents(document.getElementById(allDivs[i].getAttribute("id"))); if (BX_tmp_r2.toString().length > 0) { BX_tmp_r1.insertNode(BX_tmp_r2.cloneContents()); } /** //i'm not sure, for what this exactly was.... it works with the code above... for (j = 0; j < document.getElementById(allDivs[i].id).childNodes.length; j++) { temp = document.getElementById(allDivs[i].id).childNodes[j].cloneNode(true); // mmmh, works wirh NN6.2 and MOZ098. temp.BX_xml works only in MOZ098 formvalue += ser.serializeToString(document.getElementById(allDivs[i].id).childNodes[j]).replace(/a0:/gi,"").replace(/BX_xmlns:a0="http:\/\/www.w3.org\/1999\/xhtml"/g,""); newElement.appendChild(temp); } BX_xml.getElementById(allDivs[i].id).replaceChild(newElement,myNodeAttr); */ } } BX_tmp_r1.detach(); BX_tmp_r2.detach();}
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
for (var i = 0; i < allDivs.length; i ++) { if (allDivs[i].getAttribute("id")) {
for (var i = 0; i < allDivs.length; i ++) { if (allDivs[i].getAttribute("id")) {
function BX_updateXML(){ var allDivs = document.getElementsByName("bitfluxspan"); BX_clean_nodelist(BX_xml); BX_xml.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.createRange(); BX_tmp_r2 = document.createRange(); for (var i = 0; i < allDivs.length; i ++) { if (allDivs[i].getAttribute("id")) { var myNodeAttr = BX_xml.getElementById(allDivs[i].getAttribute("id")); //get all children of this <span> tag and add them to a new element with <formfieldid> // later we replace that in the BX_xml. if (!(myNodeAttr)) { continue; } BX_tmp_r1.selectNodeContents(myNodeAttr); BX_tmp_r1.extractContents(); BX_tmp_r2.selectNodeContents(document.getElementById(allDivs[i].getAttribute("id"))); if (BX_tmp_r2.toString().length > 0) { BX_tmp_r1.insertNode(BX_tmp_r2.cloneContents()); } /** //i'm not sure, for what this exactly was.... it works with the code above... for (j = 0; j < document.getElementById(allDivs[i].id).childNodes.length; j++) { temp = document.getElementById(allDivs[i].id).childNodes[j].cloneNode(true); // mmmh, works wirh NN6.2 and MOZ098. temp.BX_xml works only in MOZ098 formvalue += ser.serializeToString(document.getElementById(allDivs[i].id).childNodes[j]).replace(/a0:/gi,"").replace(/BX_xmlns:a0="http:\/\/www.w3.org\/1999\/xhtml"/g,""); newElement.appendChild(temp); } BX_xml.getElementById(allDivs[i].id).replaceChild(newElement,myNodeAttr); */ } } BX_tmp_r1.detach(); BX_tmp_r2.detach();}
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 myNodeAttr = BX_xml.getElementById(allDivs[i].getAttribute("id"));
var myNodeAttr = BX_xml.doc.getElementById(allDivs[i].getAttribute("id"));
function BX_updateXML(){ var allDivs = document.getElementsByName("bitfluxspan"); BX_clean_nodelist(BX_xml); BX_xml.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.createRange(); BX_tmp_r2 = document.createRange(); for (var i = 0; i < allDivs.length; i ++) { if (allDivs[i].getAttribute("id")) { var myNodeAttr = BX_xml.getElementById(allDivs[i].getAttribute("id")); //get all children of this <span> tag and add them to a new element with <formfieldid> // later we replace that in the BX_xml. if (!(myNodeAttr)) { continue; } BX_tmp_r1.selectNodeContents(myNodeAttr); BX_tmp_r1.extractContents(); BX_tmp_r2.selectNodeContents(document.getElementById(allDivs[i].getAttribute("id"))); if (BX_tmp_r2.toString().length > 0) { BX_tmp_r1.insertNode(BX_tmp_r2.cloneContents()); } /** //i'm not sure, for what this exactly was.... it works with the code above... for (j = 0; j < document.getElementById(allDivs[i].id).childNodes.length; j++) { temp = document.getElementById(allDivs[i].id).childNodes[j].cloneNode(true); // mmmh, works wirh NN6.2 and MOZ098. temp.BX_xml works only in MOZ098 formvalue += ser.serializeToString(document.getElementById(allDivs[i].id).childNodes[j]).replace(/a0:/gi,"").replace(/BX_xmlns:a0="http:\/\/www.w3.org\/1999\/xhtml"/g,""); newElement.appendChild(temp); } BX_xml.getElementById(allDivs[i].id).replaceChild(newElement,myNodeAttr); */ } } BX_tmp_r1.detach(); BX_tmp_r2.detach();}
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 (!(myNodeAttr)) {
if (!(myNodeAttr)) {
function BX_updateXML(){ var allDivs = document.getElementsByName("bitfluxspan"); BX_clean_nodelist(BX_xml); BX_xml.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.createRange(); BX_tmp_r2 = document.createRange(); for (var i = 0; i < allDivs.length; i ++) { if (allDivs[i].getAttribute("id")) { var myNodeAttr = BX_xml.getElementById(allDivs[i].getAttribute("id")); //get all children of this <span> tag and add them to a new element with <formfieldid> // later we replace that in the BX_xml. if (!(myNodeAttr)) { continue; } BX_tmp_r1.selectNodeContents(myNodeAttr); BX_tmp_r1.extractContents(); BX_tmp_r2.selectNodeContents(document.getElementById(allDivs[i].getAttribute("id"))); if (BX_tmp_r2.toString().length > 0) { BX_tmp_r1.insertNode(BX_tmp_r2.cloneContents()); } /** //i'm not sure, for what this exactly was.... it works with the code above... for (j = 0; j < document.getElementById(allDivs[i].id).childNodes.length; j++) { temp = document.getElementById(allDivs[i].id).childNodes[j].cloneNode(true); // mmmh, works wirh NN6.2 and MOZ098. temp.BX_xml works only in MOZ098 formvalue += ser.serializeToString(document.getElementById(allDivs[i].id).childNodes[j]).replace(/a0:/gi,"").replace(/BX_xmlns:a0="http:\/\/www.w3.org\/1999\/xhtml"/g,""); newElement.appendChild(temp); } BX_xml.getElementById(allDivs[i].id).replaceChild(newElement,myNodeAttr); */ } } BX_tmp_r1.detach(); BX_tmp_r2.detach();}
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_tmp_r2.selectNodeContents(document.getElementById(allDivs[i].getAttribute("id"))); if (BX_tmp_r2.toString().length > 0) {
BX_tmp_r2.selectNodeContents(BX_getElementById(allDivs[i].getAttribute("id"),document)); if (BX_tmp_r2.toString().length > 0) {
function BX_updateXML(){ var allDivs = document.getElementsByName("bitfluxspan"); BX_clean_nodelist(BX_xml); BX_xml.getElementById = BX_getElementById; BX_tmp_r1 = BX_xml.createRange(); BX_tmp_r2 = document.createRange(); for (var i = 0; i < allDivs.length; i ++) { if (allDivs[i].getAttribute("id")) { var myNodeAttr = BX_xml.getElementById(allDivs[i].getAttribute("id")); //get all children of this <span> tag and add them to a new element with <formfieldid> // later we replace that in the BX_xml. if (!(myNodeAttr)) { continue; } BX_tmp_r1.selectNodeContents(myNodeAttr); BX_tmp_r1.extractContents(); BX_tmp_r2.selectNodeContents(document.getElementById(allDivs[i].getAttribute("id"))); if (BX_tmp_r2.toString().length > 0) { BX_tmp_r1.insertNode(BX_tmp_r2.cloneContents()); } /** //i'm not sure, for what this exactly was.... it works with the code above... for (j = 0; j < document.getElementById(allDivs[i].id).childNodes.length; j++) { temp = document.getElementById(allDivs[i].id).childNodes[j].cloneNode(true); // mmmh, works wirh NN6.2 and MOZ098. temp.BX_xml works only in MOZ098 formvalue += ser.serializeToString(document.getElementById(allDivs[i].id).childNodes[j]).replace(/a0:/gi,"").replace(/BX_xmlns:a0="http:\/\/www.w3.org\/1999\/xhtml"/g,""); newElement.appendChild(temp); } BX_xml.getElementById(allDivs[i].id).replaceChild(newElement,myNodeAttr); */ } } BX_tmp_r1.detach(); BX_tmp_r2.detach();}
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_dump("BX_walker_findNextEditableNode(" + startnode.nodeName +")");
if (startnode.nodeType == 1 && startnode.getAttribute("name") == "bitfluxspan" && startnode.childNodes.length == 0 ) { var newTextNode = startnode.appendChild(document.createTextNode("")); return newTextNode; }
function BX_walker_findNextEditableNode(startnode) { BX_dump("BX_walker_findNextEditableNode(" + startnode.nodeName +")"); var nodeIt = document.createTreeWalker(document, NodeFilter.SHOW_TEXT,{ acceptNode : function(node) { if (node.parentNode.getAttribute("name") == "bitfluxspan") { return NodeFilter.FILTER_ACCEPT; } else { return NodeFilter.FILTER_REJECT; } } }, false); nodeIt.currentNode = startnode; var node; node = nodeIt.nextNode( ); if (node == null) { node = nodeIt.previousNode(); } if (node != null && !(/[^\t\n\r\s]/.test(node.data))) { var nodeIt2 = document.createTreeWalker(startnode, NodeFilter.SHOW_TEXT,{ acceptNode : function(node) { if ((/[^\t\n\r\s]/.test(node.data))) { return NodeFilter.FILTER_ACCEPT; } else { return NodeFilter.FILTER_REJECT; } } }, false); node = nodeIt2.nextNode( ); } if (node) { return node; } else { return 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
BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID);
function BX_wyona_save(){/* document.forms.poster.action = BX_posturl; document.forms.poster.method = "POST"; document.forms.poster.content.value = calculateMarkup(BX_getResultXML(),true); document.forms.poster.submit();*/// wyona way p.onload = BX_responseXML; var WyonaRequest = BX_xml.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); p.open("POST",BX_posturl);// BX_show_xml(WyonaRequest); p.send(calculateMarkup(WyonaRequest,true));}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/9720c4384f395933fec0cc778f2d0d7272b2dec4/lenya.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/lenya.js
dataEle.setAttribute("id",BX_DocumentID);
function BX_wyona_save(){/* document.forms.poster.action = BX_posturl; document.forms.poster.method = "POST"; document.forms.poster.content.value = calculateMarkup(BX_getResultXML(),true); document.forms.poster.submit();*/// wyona way p.onload = BX_responseXML; var WyonaRequest = BX_xml.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); p.open("POST",BX_posturl);// BX_show_xml(WyonaRequest); p.send(calculateMarkup(WyonaRequest,true));}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/9720c4384f395933fec0cc778f2d0d7272b2dec4/lenya.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/lenya.js
function BX_wyona_save(){/* document.forms.poster.action = BX_posturl; document.forms.poster.method = "POST"; document.forms.poster.content.value = calculateMarkup(BX_getResultXML(),true); document.forms.poster.submit();*/// wyona way p.onload = BX_responseXML; var WyonaRequest = BX_xml.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); p.open("POST",BX_posturl);// BX_show_xml(WyonaRequest); p.send(calculateMarkup(WyonaRequest,true));}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/9720c4384f395933fec0cc778f2d0d7272b2dec4/lenya.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/lenya.js
function BX_xml_getChildNodesByTagName(name, node, nsResolver) { if(BX_mozilla_version >= 1.1) { var result = node.ownerDocument.evaluate(name, node, nsResolver, 0, null);
function BX_xml_getChildNodesByTagName(name, node, nsResolver) { if(BXE.browser.mozillaVersion >= 1.1) { var result = node.ownerDocument.evaluate(name, node, nsResolver, 0, null);
function BX_xml_getChildNodesByTagName(name, node, nsResolver){ if(BX_mozilla_version >= 1.1) { var result = node.ownerDocument.evaluate(name, node, nsResolver, 0, null); } else { var result = node.ownerDocument.evaluate("*[name() = '"+name+"']", node, null, 0, null); } return result;}
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 result = node.ownerDocument.evaluate("*[name() = '"+name+"']", node, null, 0, null); } return result;
} else { var result = node.ownerDocument.evaluate("*[name() = '"+name+"']", node, null, 0, null); } return result;
function BX_xml_getChildNodesByTagName(name, node, nsResolver){ if(BX_mozilla_version >= 1.1) { var result = node.ownerDocument.evaluate(name, node, nsResolver, 0, null); } else { var result = node.ownerDocument.evaluate("*[name() = '"+name+"']", node, null, 0, null); } return result;}
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_xml_getChildNodesByXpath(xpath11, xpath10 ,node, nsResolver) { if(BX_mozilla_version >= 1.1) { var result = node.ownerDocument.evaluate(xpath11, node, nsResolver, 0, null); } else { var result = node.ownerDocument.evaluate(xpath10, node, null, 0, null); }
function BX_xml_getChildNodesByXpath(xpath11, xpath10 ,node, nsResolver) { if(BXE.browser.mozillaVersion >= 1.1) { var result = node.ownerDocument.evaluate(xpath11, node, nsResolver, 0, null); } else { var result = node.ownerDocument.evaluate(xpath10, node, null, 0, null); }
function BX_xml_getChildNodesByXpath(xpath11, xpath10 ,node, nsResolver){ if(BX_mozilla_version >= 1.1) { var result = node.ownerDocument.evaluate(xpath11, node, nsResolver, 0, null); } else { var result = node.ownerDocument.evaluate(xpath10, node, null, 0, null); } return result;}
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
return result;
return result;
function BX_xml_getChildNodesByXpath(xpath11, xpath10 ,node, nsResolver){ if(BX_mozilla_version >= 1.1) { var result = node.ownerDocument.evaluate(xpath11, node, nsResolver, 0, null); } else { var result = node.ownerDocument.evaluate(xpath10, node, null, 0, null); } return result;}
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_xml_removeWhiteSpaceNodes(node) { var l = node.childNodes.length -1 ; for (var i = l; i >= 0; i--) {
function BX_xml_removeWhiteSpaceNodes(node) {
function BX_xml_removeWhiteSpaceNodes(node){ var l = node.childNodes.length -1 ; for (var i = l; i >= 0; i--) { switch(node.childNodes[i].nodeType) { case node.TEXT_NODE: if (node.childNodes[i].data.replace(/[\s\n\r]*/,"").length == 0) { node.childNodes[i].parentNode.removeChild(node.childNodes[i]); } break; case node.COMMENT_NODE: node.childNodes[i].parentNode.removeChild(node.childNodes[i]); break; case node.ATTRIBUTE_NODE: break; case node.CDATA_SECTION_NODE: case node.ELEMENT_NODE: case node.PROCESSING_INSTRUCTION_NODE: case node.DOCUMENT_TYPE_NODE: case node.ENTITY_NODE: case node.NOTATION_NODE: case node.ENTITY_REFERENCE_NODE: case node.DOCUMENT_NODE: BX_xml_removeWhiteSpaceNodes(node.childNodes[i]); } }}
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
switch(node.childNodes[i].nodeType) {
if (!node) { return false; } var l = node.childNodes.length -1 ; for (var i = l; i >= 0; i--) {
function BX_xml_removeWhiteSpaceNodes(node){ var l = node.childNodes.length -1 ; for (var i = l; i >= 0; i--) { switch(node.childNodes[i].nodeType) { case node.TEXT_NODE: if (node.childNodes[i].data.replace(/[\s\n\r]*/,"").length == 0) { node.childNodes[i].parentNode.removeChild(node.childNodes[i]); } break; case node.COMMENT_NODE: node.childNodes[i].parentNode.removeChild(node.childNodes[i]); break; case node.ATTRIBUTE_NODE: break; case node.CDATA_SECTION_NODE: case node.ELEMENT_NODE: case node.PROCESSING_INSTRUCTION_NODE: case node.DOCUMENT_TYPE_NODE: case node.ENTITY_NODE: case node.NOTATION_NODE: case node.ENTITY_REFERENCE_NODE: case node.DOCUMENT_NODE: BX_xml_removeWhiteSpaceNodes(node.childNodes[i]); } }}
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
case node.TEXT_NODE: if (node.childNodes[i].data.replace(/[\s\n\r]*/,"").length == 0) { node.childNodes[i].parentNode.removeChild(node.childNodes[i]); }
switch(node.childNodes[i].nodeType) {
function BX_xml_removeWhiteSpaceNodes(node){ var l = node.childNodes.length -1 ; for (var i = l; i >= 0; i--) { switch(node.childNodes[i].nodeType) { case node.TEXT_NODE: if (node.childNodes[i].data.replace(/[\s\n\r]*/,"").length == 0) { node.childNodes[i].parentNode.removeChild(node.childNodes[i]); } break; case node.COMMENT_NODE: node.childNodes[i].parentNode.removeChild(node.childNodes[i]); break; case node.ATTRIBUTE_NODE: break; case node.CDATA_SECTION_NODE: case node.ELEMENT_NODE: case node.PROCESSING_INSTRUCTION_NODE: case node.DOCUMENT_TYPE_NODE: case node.ENTITY_NODE: case node.NOTATION_NODE: case node.ENTITY_REFERENCE_NODE: case node.DOCUMENT_NODE: BX_xml_removeWhiteSpaceNodes(node.childNodes[i]); } }}
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
break; case node.COMMENT_NODE: node.childNodes[i].parentNode.removeChild(node.childNodes[i]); break; case node.ATTRIBUTE_NODE: break; case node.CDATA_SECTION_NODE: case node.ELEMENT_NODE: case node.PROCESSING_INSTRUCTION_NODE: case node.DOCUMENT_TYPE_NODE: case node.ENTITY_NODE: case node.NOTATION_NODE: case node.ENTITY_REFERENCE_NODE: case node.DOCUMENT_NODE: BX_xml_removeWhiteSpaceNodes(node.childNodes[i]); } }
case node.TEXT_NODE: if (node.childNodes[i].data.replace(/[\s\n\r]*/,"").length == 0) { node.childNodes[i].parentNode.removeChild(node.childNodes[i]); } break; case node.COMMENT_NODE: node.childNodes[i].parentNode.removeChild(node.childNodes[i]); break; case node.ATTRIBUTE_NODE: break; case node.CDATA_SECTION_NODE: case node.ELEMENT_NODE: case node.PROCESSING_INSTRUCTION_NODE: case node.DOCUMENT_TYPE_NODE: case node.ENTITY_NODE: case node.NOTATION_NODE: case node.ENTITY_REFERENCE_NODE: case node.DOCUMENT_NODE: BX_xml_removeWhiteSpaceNodes(node.childNodes[i]); } }
function BX_xml_removeWhiteSpaceNodes(node){ var l = node.childNodes.length -1 ; for (var i = l; i >= 0; i--) { switch(node.childNodes[i].nodeType) { case node.TEXT_NODE: if (node.childNodes[i].data.replace(/[\s\n\r]*/,"").length == 0) { node.childNodes[i].parentNode.removeChild(node.childNodes[i]); } break; case node.COMMENT_NODE: node.childNodes[i].parentNode.removeChild(node.childNodes[i]); break; case node.ATTRIBUTE_NODE: break; case node.CDATA_SECTION_NODE: case node.ELEMENT_NODE: case node.PROCESSING_INSTRUCTION_NODE: case node.DOCUMENT_TYPE_NODE: case node.ENTITY_NODE: case node.NOTATION_NODE: case node.ENTITY_REFERENCE_NODE: case node.DOCUMENT_NODE: BX_xml_removeWhiteSpaceNodes(node.childNodes[i]); } }}
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 { if (navigator.userAgent.indexOf("Opera") >= 0) { alert ("\nBitflux Editor does not work with Opera. You need Mozilla or Netscape 7 for this Editor."); return false; } if (navigator.appName != "Netscape" ) { BXEui.lm.set("\nYou need Mozilla or Netscape 7 for this Editor. Get it from <a href='http: return false; }
function BXE_browser() { this.isMozilla = false; this.isMSIE = false; this.isLinux = false; this.isMac = false; this.isWindows = false; this.mozillaVersion = 0; this.mozillaRvVersion = 0; try { if (navigator.userAgent.indexOf("Opera") >= 0) { alert ("\nBitflux Editor does not work with Opera. You need Mozilla or Netscape 7 for this Editor."); return false; } if (navigator.appName != "Netscape" ) { BXEui.lm.set("\nYou need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } try { this.mozillaRvVersion = navigator.userAgent.match(/rv:([[0-9\.]*)/)[1]; } catch (e) { this.mozillaRvVersion = 0; } if (navigator.productSub >= 20020910 && this.mozillaRvVersion > 1.1) { // Mozilla 1.2a this.mozillaVersion = 1.2; alert("\nMozilla 1.2a together with the new Type ahead feature, does not work correctly with the Editor.\n The issue is known (Bugzilla #167786) and should be solved in the next days.\n Use Mozilla 1.0 or 1.1 for the time being or turn off Type Ahead Find with:\nuser_pref (\"accessibility.typeaheadfind\", false);\n Nevertheless, you will be sent to the editor in an instant"); } if (navigator.productSub >= 20020826 && this.mozillaRvVersion >= 1.0) { this.mozillaVersion = 1.1; } else if (navigator.productSub >= 20020523) { this.mozillaVersion = 1.0; } else { BXEui.lm.set("\nYou'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; } } 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
this.mozillaRvVersion = navigator.userAgent.match(/rv:([[0-9\.]*)/)[1];
this.mozillaRvVersion = navigator.userAgent.match(/rv:([[0-9a-z\.]*)/)[1]; this.mozillaRvVersionInt = parseFloat(this.mozillaRvVersion);
function BXE_browser() { this.isMozilla = false; this.isMSIE = false; this.isLinux = false; this.isMac = false; this.isWindows = false; this.mozillaVersion = 0; this.mozillaRvVersion = 0; try { if (navigator.userAgent.indexOf("Opera") >= 0) { alert ("\nBitflux Editor does not work with Opera. You need Mozilla or Netscape 7 for this Editor."); return false; } if (navigator.appName != "Netscape" ) { BXEui.lm.set("\nYou need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } try { this.mozillaRvVersion = navigator.userAgent.match(/rv:([[0-9\.]*)/)[1]; } catch (e) { this.mozillaRvVersion = 0; } if (navigator.productSub >= 20020910 && this.mozillaRvVersion > 1.1) { // Mozilla 1.2a this.mozillaVersion = 1.2; alert("\nMozilla 1.2a together with the new Type ahead feature, does not work correctly with the Editor.\n The issue is known (Bugzilla #167786) and should be solved in the next days.\n Use Mozilla 1.0 or 1.1 for the time being or turn off Type Ahead Find with:\nuser_pref (\"accessibility.typeaheadfind\", false);\n Nevertheless, you will be sent to the editor in an instant"); } if (navigator.productSub >= 20020826 && this.mozillaRvVersion >= 1.0) { this.mozillaVersion = 1.1; } else if (navigator.productSub >= 20020523) { this.mozillaVersion = 1.0; } else { BXEui.lm.set("\nYou'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; } } 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
if (navigator.productSub >= 20020910 && this.mozillaRvVersion > 1.1) {
if (navigator.productSub >= 20020910 && this.mozillaRvVersion == "1.2a") {
function BXE_browser() { this.isMozilla = false; this.isMSIE = false; this.isLinux = false; this.isMac = false; this.isWindows = false; this.mozillaVersion = 0; this.mozillaRvVersion = 0; try { if (navigator.userAgent.indexOf("Opera") >= 0) { alert ("\nBitflux Editor does not work with Opera. You need Mozilla or Netscape 7 for this Editor."); return false; } if (navigator.appName != "Netscape" ) { BXEui.lm.set("\nYou need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } try { this.mozillaRvVersion = navigator.userAgent.match(/rv:([[0-9\.]*)/)[1]; } catch (e) { this.mozillaRvVersion = 0; } if (navigator.productSub >= 20020910 && this.mozillaRvVersion > 1.1) { // Mozilla 1.2a this.mozillaVersion = 1.2; alert("\nMozilla 1.2a together with the new Type ahead feature, does not work correctly with the Editor.\n The issue is known (Bugzilla #167786) and should be solved in the next days.\n Use Mozilla 1.0 or 1.1 for the time being or turn off Type Ahead Find with:\nuser_pref (\"accessibility.typeaheadfind\", false);\n Nevertheless, you will be sent to the editor in an instant"); } if (navigator.productSub >= 20020826 && this.mozillaRvVersion >= 1.0) { this.mozillaVersion = 1.1; } else if (navigator.productSub >= 20020523) { this.mozillaVersion = 1.0; } else { BXEui.lm.set("\nYou'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; } } 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
if (navigator.productSub >= 20020826 && this.mozillaRvVersion >= 1.0) {
else if (navigator.productSub >= 20020826 && this.mozillaRvVersionInt >= 1.0) {
function BXE_browser() { this.isMozilla = false; this.isMSIE = false; this.isLinux = false; this.isMac = false; this.isWindows = false; this.mozillaVersion = 0; this.mozillaRvVersion = 0; try { if (navigator.userAgent.indexOf("Opera") >= 0) { alert ("\nBitflux Editor does not work with Opera. You need Mozilla or Netscape 7 for this Editor."); return false; } if (navigator.appName != "Netscape" ) { BXEui.lm.set("\nYou need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } try { this.mozillaRvVersion = navigator.userAgent.match(/rv:([[0-9\.]*)/)[1]; } catch (e) { this.mozillaRvVersion = 0; } if (navigator.productSub >= 20020910 && this.mozillaRvVersion > 1.1) { // Mozilla 1.2a this.mozillaVersion = 1.2; alert("\nMozilla 1.2a together with the new Type ahead feature, does not work correctly with the Editor.\n The issue is known (Bugzilla #167786) and should be solved in the next days.\n Use Mozilla 1.0 or 1.1 for the time being or turn off Type Ahead Find with:\nuser_pref (\"accessibility.typeaheadfind\", false);\n Nevertheless, you will be sent to the editor in an instant"); } if (navigator.productSub >= 20020826 && this.mozillaRvVersion >= 1.0) { this.mozillaVersion = 1.1; } else if (navigator.productSub >= 20020523) { this.mozillaVersion = 1.0; } else { BXEui.lm.set("\nYou'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; } } 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
} catch(e) { BXEui.newObject("initAlert",e); }
function BXE_browser() { this.isMozilla = false; this.isMSIE = false; this.isLinux = false; this.isMac = false; this.isWindows = false; this.mozillaVersion = 0; this.mozillaRvVersion = 0; try { if (navigator.userAgent.indexOf("Opera") >= 0) { alert ("\nBitflux Editor does not work with Opera. You need Mozilla or Netscape 7 for this Editor."); return false; } if (navigator.appName != "Netscape" ) { BXEui.lm.set("\nYou need Mozilla or Netscape 7 for this Editor. Get it from <a href='http://mozilla.org'>http://mozilla.org</a>"); return false; } try { this.mozillaRvVersion = navigator.userAgent.match(/rv:([[0-9\.]*)/)[1]; } catch (e) { this.mozillaRvVersion = 0; } if (navigator.productSub >= 20020910 && this.mozillaRvVersion > 1.1) { // Mozilla 1.2a this.mozillaVersion = 1.2; alert("\nMozilla 1.2a together with the new Type ahead feature, does not work correctly with the Editor.\n The issue is known (Bugzilla #167786) and should be solved in the next days.\n Use Mozilla 1.0 or 1.1 for the time being or turn off Type Ahead Find with:\nuser_pref (\"accessibility.typeaheadfind\", false);\n Nevertheless, you will be sent to the editor in an instant"); } if (navigator.productSub >= 20020826 && this.mozillaRvVersion >= 1.0) { this.mozillaVersion = 1.1; } else if (navigator.productSub >= 20020523) { this.mozillaVersion = 1.0; } else { BXEui.lm.set("\nYou'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; } } 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
BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID);
function BXE_TransportDriver_wyona(parent){ /** * XMLHttpRequest Object * * We use the same XMLHttpRequest in the whole instance * @type Object */ this.p = new XMLHttpRequest(); /** * Parent Object * * This is normally the BXE_loader class * this has to be implemented with xbBrowser some day: * @type Object */ //check doku, if we can access parent otherwise this.parent = parent; /** * Save a file over the wyona protocol. * It wraps the original xml around some additional tags. * @tparam String filename the filename (can be http://... or just a relative path) * @tparam Mixed options * @treturn void Nothing */ function save(filename,options) { // wyona way this.p.onload = this._responseXML; this.p.options = options; var WyonaRequest = BX_xml.doc.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.doc.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); this.p.open("POST",filename); // BX_show_xml(WyonaRequest); this.p.send(calculateMarkup(WyonaRequest,true)); } BXE_TransportDriver_wyona.prototype.save = save; /** * Handles the response of the save method. * This method is called, when the POST request from save has finished * It displays a message, if it succeeded or failed * * @tparam Event e the event triggered after save * @treturn void Nothing */ function _responseXML (e) { var alerttext=""; var p = e.target; if (p.responseXML) { if (p.responseXML.firstChild.nodeName == 'parsererror') { alerttext="Something went wrong during parsing of the response:\n\n"; alerttext+=BX_show_xml(p.responseXML); } else if (p.responseXML.documentElement.getAttribute("status") == "ok") { alerttext = "Document successfully saved"; if (p.options == 1) { alert(alerttext); window.location = BX_backurl; return true; } } else { alerttext="Something went wrong during saving:\n\n"; alerttext += (calculateMarkup(p.responseXML.documentElement,true)); } alert(alerttext ); } else { alerttext="Something went wrong during saving:\n\n"; alert(alerttext + p.responseText) ; } } BXE_TransportDriver_wyona.prototype._responseXML = _responseXML;}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/9720c4384f395933fec0cc778f2d0d7272b2dec4/lenya.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/td/lenya.js
dataEle.setAttribute("id",BX_DocumentID);
function BXE_TransportDriver_wyona(parent){ /** * XMLHttpRequest Object * * We use the same XMLHttpRequest in the whole instance * @type Object */ this.p = new XMLHttpRequest(); /** * Parent Object * * This is normally the BXE_loader class * this has to be implemented with xbBrowser some day: * @type Object */ //check doku, if we can access parent otherwise this.parent = parent; /** * Save a file over the wyona protocol. * It wraps the original xml around some additional tags. * @tparam String filename the filename (can be http://... or just a relative path) * @tparam Mixed options * @treturn void Nothing */ function save(filename,options) { // wyona way this.p.onload = this._responseXML; this.p.options = options; var WyonaRequest = BX_xml.doc.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.doc.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); this.p.open("POST",filename); // BX_show_xml(WyonaRequest); this.p.send(calculateMarkup(WyonaRequest,true)); } BXE_TransportDriver_wyona.prototype.save = save; /** * Handles the response of the save method. * This method is called, when the POST request from save has finished * It displays a message, if it succeeded or failed * * @tparam Event e the event triggered after save * @treturn void Nothing */ function _responseXML (e) { var alerttext=""; var p = e.target; if (p.responseXML) { if (p.responseXML.firstChild.nodeName == 'parsererror') { alerttext="Something went wrong during parsing of the response:\n\n"; alerttext+=BX_show_xml(p.responseXML); } else if (p.responseXML.documentElement.getAttribute("status") == "ok") { alerttext = "Document successfully saved"; if (p.options == 1) { alert(alerttext); window.location = BX_backurl; return true; } } else { alerttext="Something went wrong during saving:\n\n"; alerttext += (calculateMarkup(p.responseXML.documentElement,true)); } alert(alerttext ); } else { alerttext="Something went wrong during saving:\n\n"; alert(alerttext + p.responseText) ; } } BXE_TransportDriver_wyona.prototype._responseXML = _responseXML;}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/9720c4384f395933fec0cc778f2d0d7272b2dec4/lenya.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/td/lenya.js
function BXE_TransportDriver_wyona(parent){ /** * XMLHttpRequest Object * * We use the same XMLHttpRequest in the whole instance * @type Object */ this.p = new XMLHttpRequest(); /** * Parent Object * * This is normally the BXE_loader class * this has to be implemented with xbBrowser some day: * @type Object */ //check doku, if we can access parent otherwise this.parent = parent; /** * Save a file over the wyona protocol. * It wraps the original xml around some additional tags. * @tparam String filename the filename (can be http://... or just a relative path) * @tparam Mixed options * @treturn void Nothing */ function save(filename,options) { // wyona way this.p.onload = this._responseXML; this.p.options = options; var WyonaRequest = BX_xml.doc.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.doc.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); this.p.open("POST",filename); // BX_show_xml(WyonaRequest); this.p.send(calculateMarkup(WyonaRequest,true)); } BXE_TransportDriver_wyona.prototype.save = save; /** * Handles the response of the save method. * This method is called, when the POST request from save has finished * It displays a message, if it succeeded or failed * * @tparam Event e the event triggered after save * @treturn void Nothing */ function _responseXML (e) { var alerttext=""; var p = e.target; if (p.responseXML) { if (p.responseXML.firstChild.nodeName == 'parsererror') { alerttext="Something went wrong during parsing of the response:\n\n"; alerttext+=BX_show_xml(p.responseXML); } else if (p.responseXML.documentElement.getAttribute("status") == "ok") { alerttext = "Document successfully saved"; if (p.options == 1) { alert(alerttext); window.location = BX_backurl; return true; } } else { alerttext="Something went wrong during saving:\n\n"; alerttext += (calculateMarkup(p.responseXML.documentElement,true)); } alert(alerttext ); } else { alerttext="Something went wrong during saving:\n\n"; alert(alerttext + p.responseText) ; } } BXE_TransportDriver_wyona.prototype._responseXML = _responseXML;}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/9720c4384f395933fec0cc778f2d0d7272b2dec4/lenya.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/td/lenya.js
function newObject (name,option) { return eval("new BXE_widget_"+name+"(option)"); } BXE_widget.prototype.newObject = newObject;
function BXE_widget() {}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/widgets.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/widgets.js
function set(e) { var mes = "ERROR in initialising Bitflux Editor:\n"+e.message +"\n"; try { mes += "In File: " + e.filename +"\n"; } catch (e) { mes += "In File: " + le.fileName +"\n"; } try { mes += "Linenumber: " + e.lineNumber + "\n"; } catch(e) {} mes += "Type: " + e.name + "\n"; mes += "Stack:" + e.stack + "\n"; BXEui.lm.set(mes.replace(/\n/g,"<br /><br />")); alert(mes); } BXE_widget_initAlert.prototype.set = set;
function BXE_widget_initAlert(object) { if (object) { this.set(object); }}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/widgets.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/widgets.js
function set(text) { try { 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>"); } catch (e) { alert(text); } } BXE_widget_loadMessage.prototype.set = set;
function BXE_widget_loadMessage() {}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/widgets.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/widgets.js
else { this.method = null; this.filename = null;
/** * Loads the xml file * * @tparam Function callback the function which is called after loading * @treturn void Nothing */ function load(callback) { this.doc = BXE_loader.load(this.filename,this.method,callback)
function BXE_XmlDocument(xpath){ if (xpath) { this.filename = BX_config_getContent(xpath) this.method = BX_config_getContent(xpath + "/@method"); } else { this.method = null; this.filename = null; } this.includes = null; this.parameters = null;}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/xmldoc.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/xmldoc.js
this.includes = null; this.parameters = null;
BXE_XmlDocument.prototype.load = load; /** * Shows the XML in a seperate Window in MSIE style * @treturn void Nothing */ function showXml() { BX_xml_source= this.doc; var BX_source_window = window.open(BX_root_dir+"showsource/index.html","_blank",""); } BXE_XmlDocument.prototype.showXml = showXml;
function BXE_XmlDocument(xpath){ if (xpath) { this.filename = BX_config_getContent(xpath) this.method = BX_config_getContent(xpath + "/@method"); } else { this.method = null; this.filename = null; } this.includes = null; this.parameters = null;}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/xmldoc.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/xmldoc.js
this.firstDayOfWeek = firstDayOfWeek;
this.firstDayOfWeek = typeof firstDayOfWeek == "number" ? firstDayOfWeek : Calendar._FD;
Calendar = function (firstDayOfWeek, dateStr, onSelected, onClose) { // member variables this.activeDiv = null; this.currentDateEl = null; this.getDateStatus = null; this.timeout = null; this.onSelected = onSelected || null; this.onClose = onClose || null; this.dragging = false; this.hidden = false; this.minYear = 1970; this.maxYear = 2050; this.dateFormat = Calendar._TT["DEF_DATE_FORMAT"]; this.ttDateFormat = Calendar._TT["TT_DATE_FORMAT"]; this.isPopup = true; this.weekNumbers = true; this.firstDayOfWeek = firstDayOfWeek; // 0 for Sunday, 1 for Monday, etc. this.showsOtherMonths = false; this.dateStr = dateStr; this.ar_days = null; this.showsTime = false; this.time24 = true; this.yearStep = 2; // HTML elements this.table = null; this.element = null; this.tbody = null; this.firstdayname = null; // Combo boxes this.monthsCombo = null; this.yearsCombo = null; this.hilitedMonth = null; this.activeMonth = null; this.hilitedYear = null; this.activeYear = null; // Information this.dateClicked = false; // one-time initializations if (typeof Calendar._SDN == "undefined") { // table of short day names if (typeof Calendar._SDN_len == "undefined") Calendar._SDN_len = 3; var ar = new Array(); for (var i = 8; i > 0;) { ar[--i] = Calendar._DN[i].substr(0, Calendar._SDN_len); } Calendar._SDN = ar; // table of short month names if (typeof Calendar._SMN_len == "undefined") Calendar._SMN_len = 3; ar = new Array(); for (var i = 12; i > 0;) { ar[--i] = Calendar._MN[i].substr(0, Calendar._SMN_len); } Calendar._SMN = ar; }};
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8aafb027d457b746fd546c4a097b431e06b00849/calendar.js/buggy/branches/BRANCH_0_8_6/cacti/include/jscalendar/calendar.js
this.hiliteToday = true; this.multiple = null;
Calendar = function (firstDayOfWeek, dateStr, onSelected, onClose) { // member variables this.activeDiv = null; this.currentDateEl = null; this.getDateStatus = null; this.timeout = null; this.onSelected = onSelected || null; this.onClose = onClose || null; this.dragging = false; this.hidden = false; this.minYear = 1970; this.maxYear = 2050; this.dateFormat = Calendar._TT["DEF_DATE_FORMAT"]; this.ttDateFormat = Calendar._TT["TT_DATE_FORMAT"]; this.isPopup = true; this.weekNumbers = true; this.firstDayOfWeek = firstDayOfWeek; // 0 for Sunday, 1 for Monday, etc. this.showsOtherMonths = false; this.dateStr = dateStr; this.ar_days = null; this.showsTime = false; this.time24 = true; this.yearStep = 2; // HTML elements this.table = null; this.element = null; this.tbody = null; this.firstdayname = null; // Combo boxes this.monthsCombo = null; this.yearsCombo = null; this.hilitedMonth = null; this.activeMonth = null; this.hilitedYear = null; this.activeYear = null; // Information this.dateClicked = false; // one-time initializations if (typeof Calendar._SDN == "undefined") { // table of short day names if (typeof Calendar._SDN_len == "undefined") Calendar._SDN_len = 3; var ar = new Array(); for (var i = 8; i > 0;) { ar[--i] = Calendar._DN[i].substr(0, Calendar._SDN_len); } Calendar._SDN = ar; // table of short month names if (typeof Calendar._SMN_len == "undefined") Calendar._SMN_len = 3; ar = new Array(); for (var i = 12; i > 0;) { ar[--i] = Calendar._MN[i].substr(0, Calendar._SMN_len); } Calendar._SMN = ar; }};
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8aafb027d457b746fd546c4a097b431e06b00849/calendar.js/buggy/branches/BRANCH_0_8_6/cacti/include/jscalendar/calendar.js
this.firstDayOfWeek = firstDayOfWeek;
this.firstDayOfWeek = typeof firstDayOfWeek == "number" ? firstDayOfWeek : Calendar._FD;
Calendar = function (firstDayOfWeek, dateStr, onSelected, onClose) { // member variables this.activeDiv = null; this.currentDateEl = null; this.getDateStatus = null; this.timeout = null; this.onSelected = onSelected || null; this.onClose = onClose || null; this.dragging = false; this.hidden = false; this.minYear = 1970; this.maxYear = 2050; this.dateFormat = Calendar._TT["DEF_DATE_FORMAT"]; this.ttDateFormat = Calendar._TT["TT_DATE_FORMAT"]; this.isPopup = true; this.weekNumbers = true; this.firstDayOfWeek = firstDayOfWeek; // 0 for Sunday, 1 for Monday, etc. this.showsOtherMonths = false; this.dateStr = dateStr; this.ar_days = null; this.showsTime = false; this.time24 = true; this.yearStep = 2; // HTML elements this.table = null; this.element = null; this.tbody = null; this.firstdayname = null; // Combo boxes this.monthsCombo = null; this.yearsCombo = null; this.hilitedMonth = null; this.activeMonth = null; this.hilitedYear = null; this.activeYear = null; // Information this.dateClicked = false; // one-time initializations if (typeof Calendar._SDN == "undefined") { // table of short day names if (typeof Calendar._SDN_len == "undefined") Calendar._SDN_len = 3; var ar = new Array(); for (var i = 8; i > 0;) { ar[--i] = Calendar._DN[i].substr(0, Calendar._SDN_len); } Calendar._SDN = ar; // table of short month names if (typeof Calendar._SMN_len == "undefined") Calendar._SMN_len = 3; ar = new Array(); for (var i = 12; i > 0;) { ar[--i] = Calendar._MN[i].substr(0, Calendar._SMN_len); } Calendar._SMN = ar; }};
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8aafb027d457b746fd546c4a097b431e06b00849/calendar.js/clean/trunk/cacti/include/js/jscalendar/calendar.js
this.hiliteToday = true; this.multiple = null;
Calendar = function (firstDayOfWeek, dateStr, onSelected, onClose) { // member variables this.activeDiv = null; this.currentDateEl = null; this.getDateStatus = null; this.timeout = null; this.onSelected = onSelected || null; this.onClose = onClose || null; this.dragging = false; this.hidden = false; this.minYear = 1970; this.maxYear = 2050; this.dateFormat = Calendar._TT["DEF_DATE_FORMAT"]; this.ttDateFormat = Calendar._TT["TT_DATE_FORMAT"]; this.isPopup = true; this.weekNumbers = true; this.firstDayOfWeek = firstDayOfWeek; // 0 for Sunday, 1 for Monday, etc. this.showsOtherMonths = false; this.dateStr = dateStr; this.ar_days = null; this.showsTime = false; this.time24 = true; this.yearStep = 2; // HTML elements this.table = null; this.element = null; this.tbody = null; this.firstdayname = null; // Combo boxes this.monthsCombo = null; this.yearsCombo = null; this.hilitedMonth = null; this.activeMonth = null; this.hilitedYear = null; this.activeYear = null; // Information this.dateClicked = false; // one-time initializations if (typeof Calendar._SDN == "undefined") { // table of short day names if (typeof Calendar._SDN_len == "undefined") Calendar._SDN_len = 3; var ar = new Array(); for (var i = 8; i > 0;) { ar[--i] = Calendar._DN[i].substr(0, Calendar._SDN_len); } Calendar._SDN = ar; // table of short month names if (typeof Calendar._SMN_len == "undefined") Calendar._SMN_len = 3; ar = new Array(); for (var i = 12; i > 0;) { ar[--i] = Calendar._MN[i].substr(0, Calendar._SMN_len); } Calendar._SMN = ar; }};
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8aafb027d457b746fd546c4a097b431e06b00849/calendar.js/clean/trunk/cacti/include/js/jscalendar/calendar.js
this.drawCurrent = function() { CalendarNamespace.draw(this.currentMonth, this.currentYear, this.div_id, this.callback); } this.drawDate = function(month, year) { this.currentMonth = month; this.currentYear = year; this.drawCurrent(); } this.drawPreviousMonth = function() { if (this.currentMonth == 1) { this.currentMonth = 12; this.currentYear--; } else { this.currentMonth--; } this.drawCurrent(); } this.drawNextMonth = function() { if (this.currentMonth == 12) { this.currentMonth = 1; this.currentYear++; } else { this.currentMonth++; } this.drawCurrent(); } this.drawPreviousYear = function() { this.currentYear--; this.drawCurrent(); } this.drawNextYear = function() { this.currentYear++; this.drawCurrent(); }
function Calendar(div_id, callback) { // div_id (string) is the ID of the element in which the calendar will // be displayed // callback (string) is the name of a JavaScript function that will be // called with the parameters (year, month, day) when a day in the // calendar is clicked this.div_id = div_id; this.callback = callback; this.today = new Date(); this.currentMonth = this.today.getMonth() + 1; this.currentYear = this.today.getFullYear(); this.drawCurrent = function() { CalendarNamespace.draw(this.currentMonth, this.currentYear, this.div_id, this.callback); } this.drawDate = function(month, year) { this.currentMonth = month; this.currentYear = year; this.drawCurrent(); } this.drawPreviousMonth = function() { if (this.currentMonth == 1) { this.currentMonth = 12; this.currentYear--; } else { this.currentMonth--; } this.drawCurrent(); } this.drawNextMonth = function() { if (this.currentMonth == 12) { this.currentMonth = 1; this.currentYear++; } else { this.currentMonth++; } this.drawCurrent(); } this.drawPreviousYear = function() { this.currentYear--; this.drawCurrent(); } this.drawNextYear = function() { this.currentYear++; this.drawCurrent(); }}
1086 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1086/3daf7bde2e150c623b80a3a0518196121bd4ea36/calendar.js/clean/django/contrib/admin/media/js/calendar.js
if (o[n] && (v = tinyMCE.evalFunc(o[n], 3, a)) == s && m > 0)
if (o[n] && (v = tinyMCE.evalFunc(n, 3, a, o)) == s && m > 0)
callFunc : function(ins, p, n, m, a) { var l, i, on, o, s, v; s = m == 2; l = tinyMCE.getParam(p, ''); if (l != '' && (v = tinyMCE.evalFunc(typeof(l) == "function" ? l : eval(l), 3, a)) == s && m > 0) return true; if (ins != null) { for (i=0, l = ins.plugins; i<l.length; i++) { o = tinyMCE.plugins[l[i]]; if (o[n] && (v = tinyMCE.evalFunc(o[n], 3, a)) == s && m > 0) return true; } } l = tinyMCE.themes; for (on in l) { o = l[on]; if (o[n] && (v = tinyMCE.evalFunc(o[n], 3, a)) == s && m > 0) return true; } return false; },
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js
if (o[n] && (v = tinyMCE.evalFunc(o[n], 3, a)) == s && m > 0)
if (o[n] && (v = tinyMCE.evalFunc(n, 3, a, o)) == s && m > 0)
callFunc : function(ins, p, n, m, a) { var l, i, on, o, s, v; s = m == 2; l = tinyMCE.getParam(p, ''); if (l != '' && (v = tinyMCE.evalFunc(typeof(l) == "function" ? l : eval(l), 3, a)) == s && m > 0) return true; if (ins != null) { for (i=0, l = ins.plugins; i<l.length; i++) { o = tinyMCE.plugins[l[i]]; if (o[n] && (v = tinyMCE.evalFunc(o[n], 3, a)) == s && m > 0) return true; } } l = tinyMCE.themes; for (on in l) { o = l[on]; if (o[n] && (v = tinyMCE.evalFunc(o[n], 3, a)) == s && m > 0) return true; } return false; },
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js
if(this.timeout) clearTimeout(this.timeout); if(this.interval) clearInterval(this.interval);
if(!this.options.sync) Effect.Queue.remove(this);
cancel: function() { if(this.timeout) clearTimeout(this.timeout); if(this.interval) clearInterval(this.interval); }
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/cd20286092d311391869aa6031bdd86b5e047d0f/effects.js/clean/src/effects.js
if(this.timeout) clearTimeout(this.timeout); }
if(!this.options.sync) Effect.Queue.remove(this); this.state = 'finished'; },
cancel: function() { if(this.timeout) clearTimeout(this.timeout); }
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/effects.js/buggy/public/javascripts/effects.js
if (e.stripPropagation) e.stopPropagation();
if (e.stopPropagation) e.stopPropagation();
cancelEventPropagation: function(e) { if (!e) var e = window.event; e.cancelBubble = true; if (e.stripPropagation) e.stopPropagation(); }
1086 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1086/2e83364965d2684f0361cbc37617e0cab0fcc104/DateTimeShortcuts.js/buggy/django/conf/admin_media/js/admin/DateTimeShortcuts.js
if (!e) var e = window.event;
if (!e) e = window.event;
cancelEventPropagation: function(e) { if (!e) var e = window.event; e.cancelBubble = true; if (e.stopPropagation) e.stopPropagation(); }
1086 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1086/83c6fff22acfe3a7994105b798403f6a16208cfc/DateTimeShortcuts.js/buggy/django/contrib/admin/media/js/admin/DateTimeShortcuts.js
gPanelContainer().removeEventListener("mouseup",onMouseUp,true); gPanelContainer().removeEventListener("mouseout", onMouseOut, true);
gPanelContainer().removeEventListener("mouseup",izOnMouseUp,true); gPanelContainer().removeEventListener("mouseout", izOnMouseOut, true);
function cancelScrollZoom() { if (linuxImage) linuxImage = null; if (currentImage) currentImage = null; gPanelContainer().removeEventListener("DOMMouseScroll",ScrollImage,true); gPanelContainer().removeEventListener("mouseup",onMouseUp,true); gPanelContainer().removeEventListener("mouseout", onMouseOut, true); mousedown = false;}
4558 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4558/60032bc73862fab348ac8712f7f7930416b117f4/overlay.js/buggy/source/chrome/content/overlay.js
this.map.setCenter(olCenter, yZoom - 1);
this.map.setCenter(olCenter, 16 - yZoom);
catchPanZoom: function(e) { var olCenter = this.getYMapCenter(); var yZoom = this.ymap.getZoomLevel(); this.map.setCenter(olCenter, yZoom - 1); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js
catchPanZoom: function(e) { var veCenter = this.vemap.GetCenter(); var veZoom = this.vemap.GetZoomLevel(); var olCenter = this.getOLLonLatFromVELatLong(veCenter); var olZoom = this.getOLZoomFromVEZoom(veZoom); this.map.setCenter(olCenter, olZoom); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/500cc017781808d05c5733d52c900eb0312e3da7/VirtualEarth.js/clean/lib/OpenLayers/Layer/VirtualEarth.js
var gCenter = this.gmap.getCenter(); var gZoom = this.gmap.getZoom(); var olCenter = this.getOLLonLatFromGLatLng(gCenter); var olZoom = this.getOLZoomFromGZoom(gZoom); this.map.setCenter(olCenter, olZoom);
var gCenter = this.gmap.getCenter(); var gZoom = this.gmap.getZoom(); var olCenter = this.getOLLonLatFromGLatLng(gCenter); var olZoom = this.getOLZoomFromGZoom(gZoom); this.map.setCenter(olCenter, olZoom, this.dragging); }
catchPanZoom: function(e) { var gCenter = this.gmap.getCenter(); var gZoom = this.gmap.getZoom(); var olCenter = this.getOLLonLatFromGLatLng(gCenter); var olZoom = this.getOLZoomFromGZoom(gZoom); this.map.setCenter(olCenter, olZoom); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/f3a072b151fd0fb48097965647921f2ea0396651/Google.js/buggy/lib/OpenLayers/Layer/Google.js
catchPanZoom: function(e) { var veCenter = this.vemap.GetCenter(); var veZoom = this.vemap.GetZoomLevel(); var olCenter = this.getOLLonLatFromVELatLong(veCenter); var olZoom = this.getOLZoomFromVEZoom(veZoom); this.map.setCenter(olCenter, olZoom); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/500cc017781808d05c5733d52c900eb0312e3da7/VirtualEarth.js/clean/lib/OpenLayers/Layer/VirtualEarth.js
var gCenter = this.gmap.getCenter(); var gZoom = this.gmap.getZoom(); var olCenter = this.getOLLonLatFromGLatLng(gCenter); var olZoom = this.getOLZoomFromGZoom(gZoom); this.map.setCenter(olCenter, olZoom);
var gCenter = this.gmap.getCenter(); var gZoom = this.gmap.getZoom(); var olCenter = this.getOLLonLatFromGLatLng(gCenter); var olZoom = this.getOLZoomFromGZoom(gZoom); this.map.setCenter(olCenter, olZoom, this.dragging); }
catchPanZoom: function(e) { var gCenter = this.gmap.getCenter(); var gZoom = this.gmap.getZoom(); var olCenter = this.getOLLonLatFromGLatLng(gCenter); var olZoom = this.getOLZoomFromGZoom(gZoom); this.map.setCenter(olCenter, olZoom); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f3a072b151fd0fb48097965647921f2ea0396651/Google.js/clean/lib/OpenLayers/Layer/Google.js
this.map.setCenter(olCenter, yZoom - 1);
this.map.setCenter(olCenter, 16 - yZoom);
catchPanZoom: function(e) { var olCenter = this.getYMapCenter(); var yZoom = this.ymap.getZoomLevel(); this.map.setCenter(olCenter, yZoom - 1); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js
if( http.responseText != null ) { win.el_body.innerHTML = http.responseText; hop_js_eval( http ); }
if( http.responseText != null ) { win.el_body.innerHTML = http.responseText; hop_js_eval( http ); }
var cb = function( http ) { if( http.responseText != null ) { win.el_body.innerHTML = http.responseText; hop_js_eval( http ); } };
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/737cbaf83d84c17cd17f1c4c7d6d6aaf1da87b7a/hop-iwindow.js/clean/share/hop-iwindow.js
Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.currentDateEl = el;
if (cal.currentDateEl) { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.currentDateEl = el; }
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.currentDateEl = el; } cal.date = new Date(el.caldate); date = cal.date; newdate = true; // a date was clicked if (!(cal.dateClicked = !el.otherMonth)) cal._init(cal.firstDayOfWeek, date); } else { if (el.navtype == 200) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); return; } date = (el.navtype == 0) ? new Date() : new Date(cal.date); // unless "today" was clicked, we assume no date was clicked so // the selected handler will know not to close the calenar when // in single-click mode. // cal.dateClicked = (el.navtype == 0); cal.dateClicked = false; var year = date.getFullYear(); var mon = date.getMonth(); function setMonth(m) { var day = date.getDate(); var max = date.getMonthDays(m); if (day > max) { date.setDate(max); } date.setMonth(m); }; switch (el.navtype) { case 400: Calendar.removeClass(el, "hilite"); var text = Calendar._TT["ABOUT"]; if (typeof text != "undefined") { text += cal.showsTime ? Calendar._TT["ABOUT_TIME"] : ""; } else { // FIXME: this should be removed as soon as lang files get updated! text = "Help and about box text is not translated into this language.\n" + "If you know this language and you feel generous please update\n" + "the corresponding file in \"lang\" subdir to match calendar-en.js\n" + "and send it back to <[email protected]> to get it into the distribution ;-)\n\n" + "Thank you!\n" + "http://dynarch.com/mishoo/calendar.epl\n"; } alert(text); return; case -2: if (year > cal.minYear) { date.setFullYear(year - 1); } break; case -1: if (mon > 0) { setMonth(mon - 1); } else if (year-- > cal.minYear) { date.setFullYear(year); setMonth(11); } break; case 1: if (mon < 11) { setMonth(mon + 1); } else if (year < cal.maxYear) { date.setFullYear(year + 1); setMonth(0); } break; case 2: if (year < cal.maxYear) { date.setFullYear(year + 1); } break; case 100: cal.setFirstDayOfWeek(el.fdow); return; case 50: var range = el._range; var current = el.firstChild.data; for (var i = range.length; --i >= 0;) if (range[i] == current) break; if (ev && ev.shiftKey) { if (--i < 0) i = range.length - 1; } else if ( ++i >= range.length ) i = 0; var newval = range[i]; el.firstChild.data = newval; cal.onUpdateTime(); return; case 0: // TODAY will bring us here if ((typeof cal.getDateStatus == "function") && cal.getDateStatus(date, date.getFullYear(), date.getMonth(), date.getDate())) { // remember, "date" was previously set to new // Date() if TODAY was clicked; thus, it // contains today date. return false; } break; } if (!date.equalsTo(cal.date)) { cal.setDate(date); newdate = true; } } if (newdate) { cal.callHandler(); } if (closing) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); }};
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8aafb027d457b746fd546c4a097b431e06b00849/calendar.js/buggy/branches/BRANCH_0_8_6/cacti/include/jscalendar/calendar.js
cal.date = new Date(el.caldate);
cal.date.setDateOnly(el.caldate);
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.currentDateEl = el; } cal.date = new Date(el.caldate); date = cal.date; newdate = true; // a date was clicked if (!(cal.dateClicked = !el.otherMonth)) cal._init(cal.firstDayOfWeek, date); } else { if (el.navtype == 200) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); return; } date = (el.navtype == 0) ? new Date() : new Date(cal.date); // unless "today" was clicked, we assume no date was clicked so // the selected handler will know not to close the calenar when // in single-click mode. // cal.dateClicked = (el.navtype == 0); cal.dateClicked = false; var year = date.getFullYear(); var mon = date.getMonth(); function setMonth(m) { var day = date.getDate(); var max = date.getMonthDays(m); if (day > max) { date.setDate(max); } date.setMonth(m); }; switch (el.navtype) { case 400: Calendar.removeClass(el, "hilite"); var text = Calendar._TT["ABOUT"]; if (typeof text != "undefined") { text += cal.showsTime ? Calendar._TT["ABOUT_TIME"] : ""; } else { // FIXME: this should be removed as soon as lang files get updated! text = "Help and about box text is not translated into this language.\n" + "If you know this language and you feel generous please update\n" + "the corresponding file in \"lang\" subdir to match calendar-en.js\n" + "and send it back to <[email protected]> to get it into the distribution ;-)\n\n" + "Thank you!\n" + "http://dynarch.com/mishoo/calendar.epl\n"; } alert(text); return; case -2: if (year > cal.minYear) { date.setFullYear(year - 1); } break; case -1: if (mon > 0) { setMonth(mon - 1); } else if (year-- > cal.minYear) { date.setFullYear(year); setMonth(11); } break; case 1: if (mon < 11) { setMonth(mon + 1); } else if (year < cal.maxYear) { date.setFullYear(year + 1); setMonth(0); } break; case 2: if (year < cal.maxYear) { date.setFullYear(year + 1); } break; case 100: cal.setFirstDayOfWeek(el.fdow); return; case 50: var range = el._range; var current = el.firstChild.data; for (var i = range.length; --i >= 0;) if (range[i] == current) break; if (ev && ev.shiftKey) { if (--i < 0) i = range.length - 1; } else if ( ++i >= range.length ) i = 0; var newval = range[i]; el.firstChild.data = newval; cal.onUpdateTime(); return; case 0: // TODAY will bring us here if ((typeof cal.getDateStatus == "function") && cal.getDateStatus(date, date.getFullYear(), date.getMonth(), date.getDate())) { // remember, "date" was previously set to new // Date() if TODAY was clicked; thus, it // contains today date. return false; } break; } if (!date.equalsTo(cal.date)) { cal.setDate(date); newdate = true; } } if (newdate) { cal.callHandler(); } if (closing) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); }};
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8aafb027d457b746fd546c4a097b431e06b00849/calendar.js/buggy/branches/BRANCH_0_8_6/cacti/include/jscalendar/calendar.js
newdate = true;
var other_month = !(cal.dateClicked = !el.otherMonth); if (!other_month && !cal.currentDateEl) cal._toggleMultipleDate(new Date(date)); else newdate = !el.disabled;
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.currentDateEl = el; } cal.date = new Date(el.caldate); date = cal.date; newdate = true; // a date was clicked if (!(cal.dateClicked = !el.otherMonth)) cal._init(cal.firstDayOfWeek, date); } else { if (el.navtype == 200) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); return; } date = (el.navtype == 0) ? new Date() : new Date(cal.date); // unless "today" was clicked, we assume no date was clicked so // the selected handler will know not to close the calenar when // in single-click mode. // cal.dateClicked = (el.navtype == 0); cal.dateClicked = false; var year = date.getFullYear(); var mon = date.getMonth(); function setMonth(m) { var day = date.getDate(); var max = date.getMonthDays(m); if (day > max) { date.setDate(max); } date.setMonth(m); }; switch (el.navtype) { case 400: Calendar.removeClass(el, "hilite"); var text = Calendar._TT["ABOUT"]; if (typeof text != "undefined") { text += cal.showsTime ? Calendar._TT["ABOUT_TIME"] : ""; } else { // FIXME: this should be removed as soon as lang files get updated! text = "Help and about box text is not translated into this language.\n" + "If you know this language and you feel generous please update\n" + "the corresponding file in \"lang\" subdir to match calendar-en.js\n" + "and send it back to <[email protected]> to get it into the distribution ;-)\n\n" + "Thank you!\n" + "http://dynarch.com/mishoo/calendar.epl\n"; } alert(text); return; case -2: if (year > cal.minYear) { date.setFullYear(year - 1); } break; case -1: if (mon > 0) { setMonth(mon - 1); } else if (year-- > cal.minYear) { date.setFullYear(year); setMonth(11); } break; case 1: if (mon < 11) { setMonth(mon + 1); } else if (year < cal.maxYear) { date.setFullYear(year + 1); setMonth(0); } break; case 2: if (year < cal.maxYear) { date.setFullYear(year + 1); } break; case 100: cal.setFirstDayOfWeek(el.fdow); return; case 50: var range = el._range; var current = el.firstChild.data; for (var i = range.length; --i >= 0;) if (range[i] == current) break; if (ev && ev.shiftKey) { if (--i < 0) i = range.length - 1; } else if ( ++i >= range.length ) i = 0; var newval = range[i]; el.firstChild.data = newval; cal.onUpdateTime(); return; case 0: // TODAY will bring us here if ((typeof cal.getDateStatus == "function") && cal.getDateStatus(date, date.getFullYear(), date.getMonth(), date.getDate())) { // remember, "date" was previously set to new // Date() if TODAY was clicked; thus, it // contains today date. return false; } break; } if (!date.equalsTo(cal.date)) { cal.setDate(date); newdate = true; } } if (newdate) { cal.callHandler(); } if (closing) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); }};
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8aafb027d457b746fd546c4a097b431e06b00849/calendar.js/buggy/branches/BRANCH_0_8_6/cacti/include/jscalendar/calendar.js
if (!(cal.dateClicked = !el.otherMonth))
if (other_month)
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.currentDateEl = el; } cal.date = new Date(el.caldate); date = cal.date; newdate = true; // a date was clicked if (!(cal.dateClicked = !el.otherMonth)) cal._init(cal.firstDayOfWeek, date); } else { if (el.navtype == 200) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); return; } date = (el.navtype == 0) ? new Date() : new Date(cal.date); // unless "today" was clicked, we assume no date was clicked so // the selected handler will know not to close the calenar when // in single-click mode. // cal.dateClicked = (el.navtype == 0); cal.dateClicked = false; var year = date.getFullYear(); var mon = date.getMonth(); function setMonth(m) { var day = date.getDate(); var max = date.getMonthDays(m); if (day > max) { date.setDate(max); } date.setMonth(m); }; switch (el.navtype) { case 400: Calendar.removeClass(el, "hilite"); var text = Calendar._TT["ABOUT"]; if (typeof text != "undefined") { text += cal.showsTime ? Calendar._TT["ABOUT_TIME"] : ""; } else { // FIXME: this should be removed as soon as lang files get updated! text = "Help and about box text is not translated into this language.\n" + "If you know this language and you feel generous please update\n" + "the corresponding file in \"lang\" subdir to match calendar-en.js\n" + "and send it back to <[email protected]> to get it into the distribution ;-)\n\n" + "Thank you!\n" + "http://dynarch.com/mishoo/calendar.epl\n"; } alert(text); return; case -2: if (year > cal.minYear) { date.setFullYear(year - 1); } break; case -1: if (mon > 0) { setMonth(mon - 1); } else if (year-- > cal.minYear) { date.setFullYear(year); setMonth(11); } break; case 1: if (mon < 11) { setMonth(mon + 1); } else if (year < cal.maxYear) { date.setFullYear(year + 1); setMonth(0); } break; case 2: if (year < cal.maxYear) { date.setFullYear(year + 1); } break; case 100: cal.setFirstDayOfWeek(el.fdow); return; case 50: var range = el._range; var current = el.firstChild.data; for (var i = range.length; --i >= 0;) if (range[i] == current) break; if (ev && ev.shiftKey) { if (--i < 0) i = range.length - 1; } else if ( ++i >= range.length ) i = 0; var newval = range[i]; el.firstChild.data = newval; cal.onUpdateTime(); return; case 0: // TODAY will bring us here if ((typeof cal.getDateStatus == "function") && cal.getDateStatus(date, date.getFullYear(), date.getMonth(), date.getDate())) { // remember, "date" was previously set to new // Date() if TODAY was clicked; thus, it // contains today date. return false; } break; } if (!date.equalsTo(cal.date)) { cal.setDate(date); newdate = true; } } if (newdate) { cal.callHandler(); } if (closing) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); }};
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8aafb027d457b746fd546c4a097b431e06b00849/calendar.js/buggy/branches/BRANCH_0_8_6/cacti/include/jscalendar/calendar.js
date = (el.navtype == 0) ? new Date() : new Date(cal.date);
date = new Date(cal.date); if (el.navtype == 0) date.setDateOnly(new Date());
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.currentDateEl = el; } cal.date = new Date(el.caldate); date = cal.date; newdate = true; // a date was clicked if (!(cal.dateClicked = !el.otherMonth)) cal._init(cal.firstDayOfWeek, date); } else { if (el.navtype == 200) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); return; } date = (el.navtype == 0) ? new Date() : new Date(cal.date); // unless "today" was clicked, we assume no date was clicked so // the selected handler will know not to close the calenar when // in single-click mode. // cal.dateClicked = (el.navtype == 0); cal.dateClicked = false; var year = date.getFullYear(); var mon = date.getMonth(); function setMonth(m) { var day = date.getDate(); var max = date.getMonthDays(m); if (day > max) { date.setDate(max); } date.setMonth(m); }; switch (el.navtype) { case 400: Calendar.removeClass(el, "hilite"); var text = Calendar._TT["ABOUT"]; if (typeof text != "undefined") { text += cal.showsTime ? Calendar._TT["ABOUT_TIME"] : ""; } else { // FIXME: this should be removed as soon as lang files get updated! text = "Help and about box text is not translated into this language.\n" + "If you know this language and you feel generous please update\n" + "the corresponding file in \"lang\" subdir to match calendar-en.js\n" + "and send it back to <[email protected]> to get it into the distribution ;-)\n\n" + "Thank you!\n" + "http://dynarch.com/mishoo/calendar.epl\n"; } alert(text); return; case -2: if (year > cal.minYear) { date.setFullYear(year - 1); } break; case -1: if (mon > 0) { setMonth(mon - 1); } else if (year-- > cal.minYear) { date.setFullYear(year); setMonth(11); } break; case 1: if (mon < 11) { setMonth(mon + 1); } else if (year < cal.maxYear) { date.setFullYear(year + 1); setMonth(0); } break; case 2: if (year < cal.maxYear) { date.setFullYear(year + 1); } break; case 100: cal.setFirstDayOfWeek(el.fdow); return; case 50: var range = el._range; var current = el.firstChild.data; for (var i = range.length; --i >= 0;) if (range[i] == current) break; if (ev && ev.shiftKey) { if (--i < 0) i = range.length - 1; } else if ( ++i >= range.length ) i = 0; var newval = range[i]; el.firstChild.data = newval; cal.onUpdateTime(); return; case 0: // TODAY will bring us here if ((typeof cal.getDateStatus == "function") && cal.getDateStatus(date, date.getFullYear(), date.getMonth(), date.getDate())) { // remember, "date" was previously set to new // Date() if TODAY was clicked; thus, it // contains today date. return false; } break; } if (!date.equalsTo(cal.date)) { cal.setDate(date); newdate = true; } } if (newdate) { cal.callHandler(); } if (closing) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); }};
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8aafb027d457b746fd546c4a097b431e06b00849/calendar.js/buggy/branches/BRANCH_0_8_6/cacti/include/jscalendar/calendar.js
"and send it back to <[email protected]> to get it into the distribution ;-)\n\n" +
"and send it back to <[email protected]> to get it into the distribution ;-)\n\n" +
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.currentDateEl = el; } cal.date = new Date(el.caldate); date = cal.date; newdate = true; // a date was clicked if (!(cal.dateClicked = !el.otherMonth)) cal._init(cal.firstDayOfWeek, date); } else { if (el.navtype == 200) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); return; } date = (el.navtype == 0) ? new Date() : new Date(cal.date); // unless "today" was clicked, we assume no date was clicked so // the selected handler will know not to close the calenar when // in single-click mode. // cal.dateClicked = (el.navtype == 0); cal.dateClicked = false; var year = date.getFullYear(); var mon = date.getMonth(); function setMonth(m) { var day = date.getDate(); var max = date.getMonthDays(m); if (day > max) { date.setDate(max); } date.setMonth(m); }; switch (el.navtype) { case 400: Calendar.removeClass(el, "hilite"); var text = Calendar._TT["ABOUT"]; if (typeof text != "undefined") { text += cal.showsTime ? Calendar._TT["ABOUT_TIME"] : ""; } else { // FIXME: this should be removed as soon as lang files get updated! text = "Help and about box text is not translated into this language.\n" + "If you know this language and you feel generous please update\n" + "the corresponding file in \"lang\" subdir to match calendar-en.js\n" + "and send it back to <[email protected]> to get it into the distribution ;-)\n\n" + "Thank you!\n" + "http://dynarch.com/mishoo/calendar.epl\n"; } alert(text); return; case -2: if (year > cal.minYear) { date.setFullYear(year - 1); } break; case -1: if (mon > 0) { setMonth(mon - 1); } else if (year-- > cal.minYear) { date.setFullYear(year); setMonth(11); } break; case 1: if (mon < 11) { setMonth(mon + 1); } else if (year < cal.maxYear) { date.setFullYear(year + 1); setMonth(0); } break; case 2: if (year < cal.maxYear) { date.setFullYear(year + 1); } break; case 100: cal.setFirstDayOfWeek(el.fdow); return; case 50: var range = el._range; var current = el.firstChild.data; for (var i = range.length; --i >= 0;) if (range[i] == current) break; if (ev && ev.shiftKey) { if (--i < 0) i = range.length - 1; } else if ( ++i >= range.length ) i = 0; var newval = range[i]; el.firstChild.data = newval; cal.onUpdateTime(); return; case 0: // TODAY will bring us here if ((typeof cal.getDateStatus == "function") && cal.getDateStatus(date, date.getFullYear(), date.getMonth(), date.getDate())) { // remember, "date" was previously set to new // Date() if TODAY was clicked; thus, it // contains today date. return false; } break; } if (!date.equalsTo(cal.date)) { cal.setDate(date); newdate = true; } } if (newdate) { cal.callHandler(); } if (closing) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); }};
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8aafb027d457b746fd546c4a097b431e06b00849/calendar.js/buggy/branches/BRANCH_0_8_6/cacti/include/jscalendar/calendar.js
var current = el.firstChild.data;
var current = el.innerHTML;
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.currentDateEl = el; } cal.date = new Date(el.caldate); date = cal.date; newdate = true; // a date was clicked if (!(cal.dateClicked = !el.otherMonth)) cal._init(cal.firstDayOfWeek, date); } else { if (el.navtype == 200) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); return; } date = (el.navtype == 0) ? new Date() : new Date(cal.date); // unless "today" was clicked, we assume no date was clicked so // the selected handler will know not to close the calenar when // in single-click mode. // cal.dateClicked = (el.navtype == 0); cal.dateClicked = false; var year = date.getFullYear(); var mon = date.getMonth(); function setMonth(m) { var day = date.getDate(); var max = date.getMonthDays(m); if (day > max) { date.setDate(max); } date.setMonth(m); }; switch (el.navtype) { case 400: Calendar.removeClass(el, "hilite"); var text = Calendar._TT["ABOUT"]; if (typeof text != "undefined") { text += cal.showsTime ? Calendar._TT["ABOUT_TIME"] : ""; } else { // FIXME: this should be removed as soon as lang files get updated! text = "Help and about box text is not translated into this language.\n" + "If you know this language and you feel generous please update\n" + "the corresponding file in \"lang\" subdir to match calendar-en.js\n" + "and send it back to <[email protected]> to get it into the distribution ;-)\n\n" + "Thank you!\n" + "http://dynarch.com/mishoo/calendar.epl\n"; } alert(text); return; case -2: if (year > cal.minYear) { date.setFullYear(year - 1); } break; case -1: if (mon > 0) { setMonth(mon - 1); } else if (year-- > cal.minYear) { date.setFullYear(year); setMonth(11); } break; case 1: if (mon < 11) { setMonth(mon + 1); } else if (year < cal.maxYear) { date.setFullYear(year + 1); setMonth(0); } break; case 2: if (year < cal.maxYear) { date.setFullYear(year + 1); } break; case 100: cal.setFirstDayOfWeek(el.fdow); return; case 50: var range = el._range; var current = el.firstChild.data; for (var i = range.length; --i >= 0;) if (range[i] == current) break; if (ev && ev.shiftKey) { if (--i < 0) i = range.length - 1; } else if ( ++i >= range.length ) i = 0; var newval = range[i]; el.firstChild.data = newval; cal.onUpdateTime(); return; case 0: // TODAY will bring us here if ((typeof cal.getDateStatus == "function") && cal.getDateStatus(date, date.getFullYear(), date.getMonth(), date.getDate())) { // remember, "date" was previously set to new // Date() if TODAY was clicked; thus, it // contains today date. return false; } break; } if (!date.equalsTo(cal.date)) { cal.setDate(date); newdate = true; } } if (newdate) { cal.callHandler(); } if (closing) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); }};
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8aafb027d457b746fd546c4a097b431e06b00849/calendar.js/buggy/branches/BRANCH_0_8_6/cacti/include/jscalendar/calendar.js
el.firstChild.data = newval;
el.innerHTML = newval;
Calendar.cellClick = function(el, ev) { var cal = el.calendar; var closing = false; var newdate = false; var date = null; if (typeof el.navtype == "undefined") { Calendar.removeClass(cal.currentDateEl, "selected"); Calendar.addClass(el, "selected"); closing = (cal.currentDateEl == el); if (!closing) { cal.currentDateEl = el; } cal.date = new Date(el.caldate); date = cal.date; newdate = true; // a date was clicked if (!(cal.dateClicked = !el.otherMonth)) cal._init(cal.firstDayOfWeek, date); } else { if (el.navtype == 200) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); return; } date = (el.navtype == 0) ? new Date() : new Date(cal.date); // unless "today" was clicked, we assume no date was clicked so // the selected handler will know not to close the calenar when // in single-click mode. // cal.dateClicked = (el.navtype == 0); cal.dateClicked = false; var year = date.getFullYear(); var mon = date.getMonth(); function setMonth(m) { var day = date.getDate(); var max = date.getMonthDays(m); if (day > max) { date.setDate(max); } date.setMonth(m); }; switch (el.navtype) { case 400: Calendar.removeClass(el, "hilite"); var text = Calendar._TT["ABOUT"]; if (typeof text != "undefined") { text += cal.showsTime ? Calendar._TT["ABOUT_TIME"] : ""; } else { // FIXME: this should be removed as soon as lang files get updated! text = "Help and about box text is not translated into this language.\n" + "If you know this language and you feel generous please update\n" + "the corresponding file in \"lang\" subdir to match calendar-en.js\n" + "and send it back to <[email protected]> to get it into the distribution ;-)\n\n" + "Thank you!\n" + "http://dynarch.com/mishoo/calendar.epl\n"; } alert(text); return; case -2: if (year > cal.minYear) { date.setFullYear(year - 1); } break; case -1: if (mon > 0) { setMonth(mon - 1); } else if (year-- > cal.minYear) { date.setFullYear(year); setMonth(11); } break; case 1: if (mon < 11) { setMonth(mon + 1); } else if (year < cal.maxYear) { date.setFullYear(year + 1); setMonth(0); } break; case 2: if (year < cal.maxYear) { date.setFullYear(year + 1); } break; case 100: cal.setFirstDayOfWeek(el.fdow); return; case 50: var range = el._range; var current = el.firstChild.data; for (var i = range.length; --i >= 0;) if (range[i] == current) break; if (ev && ev.shiftKey) { if (--i < 0) i = range.length - 1; } else if ( ++i >= range.length ) i = 0; var newval = range[i]; el.firstChild.data = newval; cal.onUpdateTime(); return; case 0: // TODAY will bring us here if ((typeof cal.getDateStatus == "function") && cal.getDateStatus(date, date.getFullYear(), date.getMonth(), date.getDate())) { // remember, "date" was previously set to new // Date() if TODAY was clicked; thus, it // contains today date. return false; } break; } if (!date.equalsTo(cal.date)) { cal.setDate(date); newdate = true; } } if (newdate) { cal.callHandler(); } if (closing) { Calendar.removeClass(el, "hilite"); cal.callCloseHandler(); }};
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8aafb027d457b746fd546c4a097b431e06b00849/calendar.js/buggy/branches/BRANCH_0_8_6/cacti/include/jscalendar/calendar.js