rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
|| ex.type.indexOf("org.directwebremoting.auth.") != 0
|| ex.type.indexOf(DWRAuthentication._exceptionPackage) != 0
DWRAuthentication.authWarningHandler = function(batch, ex) { if( batch == null || typeof ex != "object" || ex.type == null || ex.type.indexOf("org.directwebremoting.auth.") != 0 ) { DWRAuthentication._dwrHandleBatchExeption(batch, ex); return; } DWRAuthentication._batch = DWRAuthentication._cloneBatch(batch); ...
DWRAuthentication._batch = DWRAuthentication._cloneBatch(batch); var errorType = ex.type.substring(27);
var errorType = ex.type.substring(DWRAuthentication._exceptionPackage.length);
DWRAuthentication.authWarningHandler = function(batch, ex) { if( batch == null || typeof ex != "object" || ex.type == null || ex.type.indexOf("org.directwebremoting.auth.") != 0 ) { DWRAuthentication._dwrHandleBatchExeption(batch, ex); return; } DWRAuthentication._batch = DWRAuthentication._cloneBatch(batch); ...
case "InvalidSessionException": if( DWRAuthentication._invalidSessionHandler(batch,ex) ) { DWRAuthentication._replayBatch(); } break; case "AuthenticationRequiredException":
case "LoginRequiredException": DWRAuthentication._batch = DWRAuthentication._cloneBatch(batch);
DWRAuthentication.authWarningHandler = function(batch, ex) { if( batch == null || typeof ex != "object" || ex.type == null || ex.type.indexOf("org.directwebremoting.auth.") != 0 ) { DWRAuthentication._dwrHandleBatchExeption(batch, ex); return; } DWRAuthentication._batch = DWRAuthentication._cloneBatch(batch); ...
alert("Received unknown error code: '"+errorCode+"';"+errorCode.length);
DWRAuthentication._dwrHandleBatchExeption(batch, ex);
DWRAuthentication.authWarningHandler = function(batch, ex) { if( batch == null || typeof ex != "object" || ex.type == null || ex.type.indexOf("org.directwebremoting.auth.") != 0 ) { DWRAuthentication._dwrHandleBatchExeption(batch, ex); return; } DWRAuthentication._batch = DWRAuthentication._cloneBatch(batch); ...
var ac = Components.classes['component:
var ac = Components.classes['@mozilla.org/messenger/autocomplete;1?type=addrbook'];
function AutoCompleteAddress(inputElement){ ///////////// (select_doc_id, doc_id) dump("inputElement = " + inputElement + "\n"); //Do we really have to autocomplete? if (inputElement.lastValue && inputElement.lastValue == inputElement.value) return; var row = awGetRowByInputElement(inputElement); var select = awGe...
ac.autoComplete(inputElement, inputElement.value, AddressAutoCompleteListener);
if (!identityElement) identityElement = document.getElementById("msgIdentity"); var identity=null; if (identityElement) { idKey = identityElement.value; identity = accountManager.getIdentity(idKey); } ac.autoComplete(identity, inputElement, inputElement.value, AddressAutoCompleteListener);
function AutoCompleteAddress(inputElement){ ///////////// (select_doc_id, doc_id) dump("inputElement = " + inputElement + "\n"); var row = awGetRowByInputElement(inputElement); var select = awGetPopupElement(row); dump("select = " + select + "\n"); dump("select.value = " + select.value + "\n"); if (select.value =...
if (inputElement.lastValue && inputElement.lastValue == inputElement.value) return;
function AutoCompleteAddress(inputElement){ ///////////// (select_doc_id, doc_id) dump("inputElement = " + inputElement + "\n"); var row = awGetRowByInputElement(inputElement); var select = awGetPopupElement(row); dump("select = " + select + "\n"); dump("select.value = " + select.value + "\n"); if (select.value =...
li.onclick = function() { location.href = dest; }
li.onclick = function() { me.useSuggestion(); }
function AutoSuggest(form,elem,uri,autosubmit) { //The 'me' variable allow you to access the AutoSuggest object //from the elem's event handlers defined below. var me = this; //A reference to the element we're binding the list to. this.elem = elem; this.form = form; this.uri = uri; this.autosubmit = autosubmit; //Arrow...
function AutoSuggest(form,elem,uri) {
function AutoSuggest(form,elem,uri,autosubmit) {
function AutoSuggest(form,elem,uri) { //The 'me' variable allow you to access the AutoSuggest object //from the elem's event handlers defined below. var me = this; //A reference to the element we're binding the list to. this.elem = elem; this.form = form; this.uri = uri; //Arrow to store a subset of eligible suggestion...
if (xmlhttp.readyState == 4) {
if ((xmlhttp)&&(xmlhttp.readyState == 4)) {
function AutoSuggest(form,elem,uri) { //The 'me' variable allow you to access the AutoSuggest object //from the elem's event handlers defined below. var me = this; //A reference to the element we're binding the list to. this.elem = elem; this.form = form; this.uri = uri; //Arrow to store a subset of eligible suggestion...
location.href = gotothisuri;
if (this.autosubmit == 1) location.href = gotothisuri;
function AutoSuggest(form,elem,uri) { //The 'me' variable allow you to access the AutoSuggest object //from the elem's event handlers defined below. var me = this; //A reference to the element we're binding the list to. this.elem = elem; this.form = form; this.uri = uri; //Arrow to store a subset of eligible suggestion...
var desc = this.descriptions[i]; var dest = this.actions[i];
var desc = (this.descriptions[i])?this.descriptions[i]:''; var dest = (this.actions[i])?this.actions[i]:'';
function AutoSuggest(form,elem,uri) { //The 'me' variable allow you to access the AutoSuggest object //from the elem's event handlers defined below. var me = this; //A reference to the element we're binding the list to. this.elem = elem; this.form = form; this.uri = uri; //Arrow to store a subset of eligible suggestion...
a.href = dest; a.innerHTML = word;
if (dest) { a.href = dest; a.innerHTML = word; li.onclick = function() { location.href = dest; } li.appendChild(a); } else { li.innerHTML = word; }
function AutoSuggest(form,elem,uri) { //The 'me' variable allow you to access the AutoSuggest object //from the elem's event handlers defined below. var me = this; //A reference to the element we're binding the list to. this.elem = elem; this.form = form; this.uri = uri; //Arrow to store a subset of eligible suggestion...
li.appendChild(a); a.appendChild(ds);
li.appendChild(ds);
function AutoSuggest(form,elem,uri) { //The 'me' variable allow you to access the AutoSuggest object //from the elem's event handlers defined below. var me = this; //A reference to the element we're binding the list to. this.elem = elem; this.form = form; this.uri = uri; //Arrow to store a subset of eligible suggestion...
me.createDiv(); me.positionDiv(); me.showDiv();
if (me.eligible.length>0) { me.createDiv(); me.positionDiv(); me.showDiv(); } else { me.hideDiv(); }
function AutoSuggest(form,elem,uri) { //The 'me' variable allow you to access the AutoSuggest object //from the elem's event handlers defined below. var me = this; //A reference to the element we're binding the list to. this.elem = elem; this.form = form; this.uri = uri; //Arrow to store a subset of eligible suggestion...
if (awGetInputElement(row).value == "")
if (awGetInputElement(row).input.value == "")
function awAddRecipients(msgCompFields, recipientType, recipientsList){ if (!msgCompFields) return; var recipientArray = msgCompFields.SplitRecipients(recipientsList, false); if (! recipientArray) return; for ( var index = 0; index < recipientArray.count; index++ ) { for (var row = 1; row <= top.MAX_REC...
input[0].syncSessions(document.getElementById('msgRecipient#1'));
function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("value"); var nextDummy = awGetNextDummyRow(); if (nextDummy) {...
function awAppendNewRow()
function awAppendNewRow(setFocus)
function awAppendNewRow(){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { awCopyNode(treeitem1, body, 0); top.MAX_RECIPIENTS++; // focus on new input widget var newInput = awGetInputElement(top.MAX_RECIPIENTS); if ( newInput ) awSetFocus(top...
var newInput = awGetInputElement(top.MAX_RECIPIENTS); if ( newInput ) awSetFocus(top.MAX_RECIPIENTS, newInput);
if (setFocus) { var newInput = awGetInputElement(top.MAX_RECIPIENTS); if ( newInput ) awSetFocus(top.MAX_RECIPIENTS, newInput); }
function awAppendNewRow(){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { awCopyNode(treeitem1, body, 0); top.MAX_RECIPIENTS++; // focus on new input widget var newInput = awGetInputElement(top.MAX_RECIPIENTS); if ( newInput ) awSetFocus(top...
input[0].showCommentColumn = document.getElementById("msgRecipient#1").showCommentColumn;
function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("value"); var nextDummy = awGetNextDummyRow(); if (nextDummy) {...
var body = document.getElementById('addressList');
var body = document.getElementById('addressWidgetBody');
function awAppendNewRow(setFocus){ var body = document.getElementById('addressList'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var newNode = awCopyNode(treeitem1, body, 0); top.MAX_RECIPIENTS++; var input = newNode.getElementsByTagName(awInputElementName()); if ( input && inp...
{ var newNode = awCopyNode(treeitem1, body, 0);
{ var nextDummy = awGetNextDummyRow(); if (nextDummy) { body.removeChild(nextDummy); nextDummy = awGetNextDummyRow(); } var newNode = awCopyNode(treeitem1, body, nextDummy);
function awAppendNewRow(setFocus){ var body = document.getElementById('addressList'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var newNode = awCopyNode(treeitem1, body, 0); top.MAX_RECIPIENTS++; var input = newNode.getElementsByTagName(awInputElementName()); if ( input && inp...
var input = newNode.getElementsByTagName(awInputElementName()); if ( input && input.length == 1 ) { input[0].setAttribute("value", ""); input[0].setAttribute("id", "address#" + top.MAX_RECIPIENTS); }
var input = newNode.getElementsByTagName(awInputElementName()); if ( input && input.length == 1 ) { input[0].setAttribute("value", ""); input[0].setAttribute("id", "addressCol1#" + top.MAX_RECIPIENTS); if (input[0].getAttribute('focused') != '') input[0].removeAttribute('focused'); }
function awAppendNewRow(setFocus){ var body = document.getElementById('addressList'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var newNode = awCopyNode(treeitem1, body, 0); top.MAX_RECIPIENTS++; var input = newNode.getElementsByTagName(awInputElementName()); if ( input && inp...
var input = newNode.getElementsByTagName('INPUT');
var input = newNode.getElementsByTagName(awInputElementName());
function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).value; newNode = awCopyNode(treeitem1, body, 0); top.MAX_RECIPIENTS++; var input = newNode....
var select = newNode.getElementsByTagName('SELECT');
var select = newNode.getElementsByTagName(awSelectElementName());
function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).value; newNode = awCopyNode(treeitem1, body, 0); top.MAX_RECIPIENTS++; var input = newNode....
input[0].setAttribute("id", "msgRecipient#" + top.MAX_RECIPIENTS);
input[0].setAttribute("id", "addressCol2#" + top.MAX_RECIPIENTS);
function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("value"); var nextDummy = awGetNextDummyRow(); if (nextDummy) {...
input[0].syncSessions(document.getElementById('msgRecipient#1'));
input[0].syncSessions(document.getElementById('addressCol2#1'));
function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("value"); var nextDummy = awGetNextDummyRow(); if (nextDummy) {...
document.getElementById("msgRecipient#1").showCommentColumn;
document.getElementById("addressCol2#1").showCommentColumn;
function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("value"); var nextDummy = awGetNextDummyRow(); if (nextDummy) {...
select[0].setAttribute("id", "msgRecipientType#" + top.MAX_RECIPIENTS);
select[0].setAttribute("id", "addressCol1#" + top.MAX_RECIPIENTS);
function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("value"); var nextDummy = awGetNextDummyRow(); if (nextDummy) {...
if (inputElem.value == "" && row < maxRecipients)
if (inputElem.input.value == "" && row < maxRecipients)
function awCleanupRows(){ var maxRecipients = top.MAX_RECIPIENTS; var rowID = 1; for (var row = 1; row <= maxRecipients; row ++) { var inputElem = awGetInputElement(row); if (inputElem.value == "" && row < maxRecipients) awRemoveRow(row); else { inputElem.setAttribute("id", "msgRecipient#" + r...
awRemoveRow(row);
awRemoveRow(row, 1);
function awCleanupRows(){ var maxRecipients = top.MAX_RECIPIENTS; var rowID = 1; for (var row = 1; row <= maxRecipients; row ++) { var inputElem = awGetInputElement(row); if (inputElem.value == "" && row < maxRecipients) awRemoveRow(row); else { inputElem.setAttribute("id", "msgRecipient#" + r...
inputElem.setAttribute("id", "msgRecipient#" + rowID); awGetPopupElement(row).setAttribute("id", "msgRecipientType#" + rowID);
inputElem.setAttribute("id", "addressCol2#" + rowID); awGetPopupElement(row).setAttribute("id", "addressCol1#" + rowID);
function awCleanupRows(){ var maxRecipients = top.MAX_RECIPIENTS; var rowID = 1; for (var row = 1; row <= maxRecipients; row ++) { var inputElem = awGetInputElement(row); if (inputElem.value == "" && row < maxRecipients) awRemoveRow(row); else { inputElem.setAttribute("id", "msgRecipient#" + r...
function awClickEmptySpace()
function awClickEmptySpace(setFocus)
function awClickEmptySpace(){ // FIX ME - not currently using this because of a bug in the tree var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(); else awSetFocus(top.MAX_RECIPIENTS, lastInput);}
awAppendNewRow();
awAppendNewRow(setFocus);
function awClickEmptySpace(){ // FIX ME - not currently using this because of a bug in the tree var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(); else awSetFocus(top.MAX_RECIPIENTS, lastInput);}
awSetFocus(top.MAX_RECIPIENTS, lastInput);
if (setFocus) awSetFocus(top.MAX_RECIPIENTS, lastInput);
function awClickEmptySpace(){ // FIX ME - not currently using this because of a bug in the tree var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(); else awSetFocus(top.MAX_RECIPIENTS, lastInput);}
dump("awClickEmptySpace\n");
function awClickEmptySpace(setFocus){ var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(setFocus); else if (setFocus) awSetFocus(top.MAX_RECIPIENTS, lastInput);}
if ( lastInput && lastInput.value )
if ( lastInput && lastInput.input.value )
function awClickEmptySpace(targ, setFocus){ if (targ.localName != 'treechildren') return; dump("awClickEmptySpace\n"); var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(setFocus); else if (setFocus) awSetFocus(top.MAX_RECIPIENTS, lastInput);}
return false;
if (! top.notAnEmptyArea) awClickEmptySpace(true); top.notAnEmptyArea=false; return;
function awClickRow(){ dump("awClickRow\n"); return false;}
function awCreateDummyItem(aParent)
function awCreateDummyItem(aParent, cols)
function awCreateDummyItem(aParent){ var titem = document.createElement("treeitem"); titem.setAttribute("_isDummyRow", "true"); var trow = document.createElement("treerow"); trow.setAttribute("class", "dummy-row"); trow.setAttribute("onclick", "awDummyRow_onclick()"); titem.appendChild(trow); awCreateDummyCell(t...
awCreateDummyCell(trow); awCreateDummyCell(trow);
for (var i = 0; i < cols; i++) { awCreateDummyCell(trow); }
function awCreateDummyItem(aParent){ var titem = document.createElement("treeitem"); titem.setAttribute("_isDummyRow", "true"); var trow = document.createElement("treerow"); trow.setAttribute("class", "dummy-row"); trow.setAttribute("onclick", "awDummyRow_onclick()"); titem.appendChild(trow); awCreateDummyCell(t...
function awCreateDummyItem(aParent, cols)
function awCreateDummyItem(aParent)
function awCreateDummyItem(aParent, cols){ var titem = document.createElement("listitem"); titem.setAttribute("_isDummyRow", "true"); titem.setAttribute("class", "dummy-row"); awCreateDummyCell(titem); awCreateDummyCell(titem); if (aParent) aParent.appendChild(titem); return titem;}
awCreateDummyCell(titem); awCreateDummyCell(titem);
for (var i = awGetNumberOfCols(); i > 0; i--) awCreateDummyCell(titem);
function awCreateDummyItem(aParent, cols){ var titem = document.createElement("listitem"); titem.setAttribute("_isDummyRow", "true"); titem.setAttribute("class", "dummy-row"); awCreateDummyCell(titem); awCreateDummyCell(titem); if (aParent) aParent.appendChild(titem); return titem;}
function awCreateOrRemoveDummyRows()
function awCreateOrRemoveDummyRows(cols)
function awCreateOrRemoveDummyRows(){ var body = document.getElementById("addressWidgetBody"); var bodyHeight = body.boxObject.height; // remove rows to remove scrollbar var kids = body.childNodes; for (var i = kids.length-1; gAWContentHeight > bodyHeight && i >= 0; --i) { if (kids[i].hasAttribute("_isDummyRow"...
awCreateDummyItem(body);
awCreateDummyItem(body, cols);
function awCreateOrRemoveDummyRows(){ var body = document.getElementById("addressWidgetBody"); var bodyHeight = body.boxObject.height; // remove rows to remove scrollbar var kids = body.childNodes; for (var i = kids.length-1; gAWContentHeight > bodyHeight && i >= 0; --i) { if (kids[i].hasAttribute("_isDummyRow"...
function awCreateOrRemoveDummyRows(cols)
function awCreateOrRemoveDummyRows()
function awCreateOrRemoveDummyRows(cols){ var listbox = document.getElementById("addressingWidget"); var listboxHeight = listbox.boxObject.height; // remove rows to remove scrollbar var kids = listbox.childNodes; for (var i = kids.length-1; gAWContentHeight > listboxHeight && i >= 0; --i) { if (kids[i].hasAttri...
awCreateDummyItem(listbox, cols);
awCreateDummyItem(listbox);
function awCreateOrRemoveDummyRows(cols){ var listbox = document.getElementById("addressingWidget"); var listboxHeight = listbox.boxObject.height; // remove rows to remove scrollbar var kids = listbox.childNodes; for (var i = kids.length-1; gAWContentHeight > listboxHeight && i >= 0; --i) { if (kids[i].hasAttri...
inputElement.value = "";
inputElement.input.value = "";
function awDeleteHit(inputElement){ var row = awGetRowByInputElement(inputElement); /* 1. don't delete the row if it's the last one remaining, just reset it! */ if (top.MAX_RECIPIENTS <= 1) { inputElement.value = ""; return; } /* 2. Set the focus to the previous field if possible */ if (row > 1) awSet...
function awDeleteHit(inputElement)
function awDeleteHit(inputElement, cols)
function awDeleteHit(inputElement){ var row = awGetRowByInputElement(inputElement); /* 1. don't delete the row if it's the last one remaining, just reset it! */ if (top.MAX_RECIPIENTS <= 1) { inputElement.value = ""; return; } /* 2. Set the focus to the previous field if possible */ if (row > 1) awSetFo...
awDeleteRow(row);
awDeleteRow(row, cols);
function awDeleteHit(inputElement){ var row = awGetRowByInputElement(inputElement); /* 1. don't delete the row if it's the last one remaining, just reset it! */ if (top.MAX_RECIPIENTS <= 1) { inputElement.value = ""; return; } /* 2. Set the focus to the previous field if possible */ if (row > 1) awSetFo...
function awDeleteHit(inputElement, cols)
function awDeleteHit(inputElement)
function awDeleteHit(inputElement, cols){ var row = awGetRowByInputElement(inputElement); /* 1. don't delete the row if it's the last one remaining, just reset it! */ if (top.MAX_RECIPIENTS <= 1) { inputElement.value = ""; return; } /* 2. Set the focus to the previous field if possible */ if (row > 1) a...
awDeleteRow(row, cols);
awDeleteRow(row);
function awDeleteHit(inputElement, cols){ var row = awGetRowByInputElement(inputElement); /* 1. don't delete the row if it's the last one remaining, just reset it! */ if (top.MAX_RECIPIENTS <= 1) { inputElement.value = ""; return; } /* 2. Set the focus to the previous field if possible */ if (row > 1) a...
function awDeleteRow(rowToDelete)
function awDeleteRow(rowToDelete, cols)
function awDeleteRow(rowToDelete){ /* When we delete a row, we must reset the id of others row in order to not break the sequence */ var maxRecipients = top.MAX_RECIPIENTS; var rowID = rowToDelete; awRemoveRow(rowToDelete); for (var row = rowToDelete + 1; row <= maxRecipients; row ++) { awGetInputElement(row)....
var rowID = rowToDelete;
function awDeleteRow(rowToDelete){ /* When we delete a row, we must reset the id of others row in order to not break the sequence */ var maxRecipients = top.MAX_RECIPIENTS; var rowID = rowToDelete; awRemoveRow(rowToDelete); for (var row = rowToDelete + 1; row <= maxRecipients; row ++) { awGetInputElement(row)....
awRemoveRow(rowToDelete);
awRemoveRow(rowToDelete, cols);
function awDeleteRow(rowToDelete){ /* When we delete a row, we must reset the id of others row in order to not break the sequence */ var maxRecipients = top.MAX_RECIPIENTS; var rowID = rowToDelete; awRemoveRow(rowToDelete); for (var row = rowToDelete + 1; row <= maxRecipients; row ++) { awGetInputElement(row)....
awGetInputElement(row).setAttribute("id", "msgRecipient#" + rowID); awGetPopupElement(row).setAttribute("id", "msgRecipientType#" + rowID); rowID ++;
for (var col = 0; col < cols; col++) { awGetElementByCol(row, col+1).setAttribute("id", "addressCol" + (col+1) + "#" + (row-1)); }
function awDeleteRow(rowToDelete){ /* When we delete a row, we must reset the id of others row in order to not break the sequence */ var maxRecipients = top.MAX_RECIPIENTS; var rowID = rowToDelete; awRemoveRow(rowToDelete); for (var row = rowToDelete + 1; row <= maxRecipients; row ++) { awGetInputElement(row)....
function awDeleteRow(rowToDelete, cols)
function awDeleteRow(rowToDelete)
function awDeleteRow(rowToDelete, cols){ /* When we delete a row, we must reset the id of others row in order to not break the sequence */ var maxRecipients = top.MAX_RECIPIENTS; awRemoveRow(rowToDelete, cols); for (var row = rowToDelete + 1; row <= maxRecipients; row ++) { for (var col = 0; col < cols; col++) ...
awRemoveRow(rowToDelete, cols);
var numberOfCols = awGetNumberOfCols();
function awDeleteRow(rowToDelete, cols){ /* When we delete a row, we must reset the id of others row in order to not break the sequence */ var maxRecipients = top.MAX_RECIPIENTS; awRemoveRow(rowToDelete, cols); for (var row = rowToDelete + 1; row <= maxRecipients; row ++) { for (var col = 0; col < cols; col++) ...
{ for (var col = 0; col < cols; col++) { awGetElementByCol(row, col+1).setAttribute("id", "addressCol" + (col+1) + "#" + (row-1)); } }
for (var col = 1; col <= numberOfCols; col++) awGetElementByCol(row, col).setAttribute("id", "addressCol" + (col) + "#" + (row-1));
function awDeleteRow(rowToDelete, cols){ /* When we delete a row, we must reset the id of others row in order to not break the sequence */ var maxRecipients = top.MAX_RECIPIENTS; awRemoveRow(rowToDelete, cols); for (var row = rowToDelete + 1; row <= maxRecipients; row ++) { for (var col = 0; col < cols; col++) ...
function awFitDummyRows()
function awFitDummyRows(cols)
function awFitDummyRows(){ awCalcContentHeight(); awCreateOrRemoveDummyRows();}
awCreateOrRemoveDummyRows();
awCreateOrRemoveDummyRows(cols);
function awFitDummyRows(){ awCalcContentHeight(); awCreateOrRemoveDummyRows();}
function awFitDummyRows(cols)
function awFitDummyRows()
function awFitDummyRows(cols){ awCalcContentHeight(); awCreateOrRemoveDummyRows(cols);}
awCreateOrRemoveDummyRows(cols);
awCreateOrRemoveDummyRows();
function awFitDummyRows(cols){ awCalcContentHeight(); awCreateOrRemoveDummyRows(cols);}
return document.getElementById("address#" + row);
return document.getElementById("addressCol1#" + row);
function awGetInputElement(row){ return document.getElementById("address#" + row);}
return document.getElementById("msgRecipient#" + row);
return document.getElementById("addressCol2#" + row);
function awGetInputElement(row){ return document.getElementById("msgRecipient#" + row);}
return document.getElementById("msgRecipientType#" + row);
return document.getElementById("addressCol1#" + row);
function awGetPopupElement(row){ return document.getElementById("msgRecipientType#" + row);}
var selectElem = document.getElementById("msgRecipientType#1");
var selectElem = document.getElementById("addressCol1#1");
function awGetSelectItemIndex(itemData){ if (selectElementIndexTable == null) { selectElementIndexTable = new Object(); var selectElem = document.getElementById("msgRecipientType#1"); for (var i = 0; i < selectElem.childNodes[0].childNodes.length; i ++) { var aData = selectElem.chil...
awClickEmptySpace(false);
var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value && !top.doNotCreateANewRow) awAppendNewRow(false); top.doNotCreateANewRow = false;
function awInputChanged(inputElement){ dump("awInputChanged\n"); AutoCompleteAddress(inputElement); //call awClickEmptySpace to add a new row if needed awClickEmptySpace(false);}
if ( lastInput && lastInput.value && !top.doNotCreateANewRow)
if ( lastInput && lastInput.input.value && !top.doNotCreateANewRow)
function awInputChanged(inputElement){ dump("awInputChanged\n");// AutoCompleteAddress(inputElement); //Do we need to add a new row? var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value && !top.doNotCreateANewRow) awAppendNewRow(false); top.doNotCreateANewRow = false;}
AutoCompleteAddress(inputElement);
function awInputChanged(inputElement){ dump("awInputChanged\n"); AutoCompleteAddress(inputElement); //Do we need to add a new row? var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value && !top.doNotCreateANewRow) awAppendNewRow(false); top.doNotCreateANewRow = false;}
inputElementType = document.getElementById("address#1").localName;
inputElementType = document.getElementById("addressCol1#1").localName;
function awInputElementName(){ if (inputElementType == "") inputElementType = document.getElementById("address#1").localName; return inputElementType;}
inputElementType = document.getElementById("msgRecipient#1").localName;
inputElementType = document.getElementById("addressCol2#1").localName;
function awInputElementName(){ if (inputElementType == "") inputElementType = document.getElementById("msgRecipient#1").localName; return inputElementType;}
awDeleteHit(inputs[0]);
awDeleteHit(inputs[0], 2);
function awKeyDown(event, treeElement){ switch(event.keyCode) { case 46: case 8: /* Warning, the treeElement.selectedItems will change everytime we delete a row */ var selItems = treeElement.selectedItems; var length = treeElement.selectedItems.length; for (var i = 1; i <= length; i++) { var inputs ...
awDeleteHit(inputs[0], 2);
awDeleteHit(inputs[0]);
function awKeyDown(event, listboxElement){ switch(event.keyCode) { case 46: case 8: /* Warning, the listboxElement.selectedItems will change everytime we delete a row */ var selItems = listboxElement.selectedItems; var length = listboxElement.selectedItems.length; for (var i = 1; i <= length; i++) { ...
function awNotAnEmptyArea()
function awNotAnEmptyArea(event)
function awNotAnEmptyArea(){ dump("awNotAnEmptyArea\n"); top.notAnEmptyArea=true; return;}
top.notAnEmptyArea=true; return;
var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(false); event.preventBubble();
function awNotAnEmptyArea(){ dump("awNotAnEmptyArea\n"); top.notAnEmptyArea=true; return;}
if (!element.value)
if (!element.input.value)
function awRecipientKeyDown(event, element){ switch(event.keyCode) { case 46: case 8: if (!element.value) awDeleteHit(element); event.preventBubble(); //We need to stop the event else the tree will receive it and the function //awKeyDown will be executed! break; }}
function awRecipientKeyDown(event, element)
function awRecipientKeyDown(event, element, cols)
function awRecipientKeyDown(event, element){ switch(event.keyCode) { case 46: case 8: /* do not query directly the value of the text field else the autocomplete widget could potentially alter it value while doing some internal cleanup, instead, query the value through the first child */ if (!element.v...
awDeleteHit(element);
awDeleteHit(element, cols);
function awRecipientKeyDown(event, element){ switch(event.keyCode) { case 46: case 8: /* do not query directly the value of the text field else the autocomplete widget could potentially alter it value while doing some internal cleanup, instead, query the value through the first child */ if (!element.v...
function awRecipientKeyDown(event, element, cols)
function awRecipientKeyDown(event, element)
function awRecipientKeyDown(event, element, cols){ switch(event.keyCode) { case 46: case 8: /* do not query directly the value of the text field else the autocomplete widget could potentially alter it value while doing some internal cleanup, instead, query the value through the first child */ if (!ele...
awDeleteHit(element, cols);
awDeleteHit(element);
function awRecipientKeyDown(event, element, cols){ switch(event.keyCode) { case 46: case 8: /* do not query directly the value of the text field else the autocomplete widget could potentially alter it value while doing some internal cleanup, instead, query the value through the first child */ if (!ele...
if (input.value == recipientArray.StringAt(index))
if (input.input.value == recipientArray.StringAt(index))
function awRemoveRecipients(msgCompFields, recipientType, recipientsList){ if (!msgCompFields) return; var recipientArray = msgCompFields.SplitRecipients(recipientsList, false); if (! recipientArray) return; for ( var index = 0; index < recipientArray.count; index++ ) for (var row = 1; row <= top.MAX_REC...
function awRemoveRow(row)
function awRemoveRow(row, cols)
function awRemoveRow(row){ var body = document.getElementById('addressWidgetBody'); awRemoveNodeAndChildren(body, awGetTreeItem(row)); awFitDummyRows(); top.MAX_RECIPIENTS --;}
awFitDummyRows();
awFitDummyRows(cols);
function awRemoveRow(row){ var body = document.getElementById('addressWidgetBody'); awRemoveNodeAndChildren(body, awGetTreeItem(row)); awFitDummyRows(); top.MAX_RECIPIENTS --;}
function awRemoveRow(row, cols)
function awRemoveRow(row)
function awRemoveRow(row, cols){ var listbox = document.getElementById('addressingWidget'); awRemoveNodeAndChildren(listbox, awGetListItem(row)); awFitDummyRows(cols); top.MAX_RECIPIENTS --;}
awFitDummyRows(cols);
awFitDummyRows();
function awRemoveRow(row, cols){ var listbox = document.getElementById('addressingWidget'); awRemoveNodeAndChildren(listbox, awGetListItem(row)); awFitDummyRows(cols); top.MAX_RECIPIENTS --;}
awAppendNewRow();
awAppendNewRow(true);
function awReturnHit(inputElement){ var row = awGetRowByInputElement(inputElement); if ( inputElement.value ) { var nextInput = awGetInputElement(row+1); if ( !nextInput ) awAppendNewRow(); else awSetFocus(row+1, nextInput); } else { // FIX ME - should tab to next field after addressing widget...probably subje...
else { }
function awReturnHit(inputElement){ var row = awGetRowByInputElement(inputElement); if ( inputElement.value ) { var nextInput = awGetInputElement(row+1); if ( !nextInput ) awAppendNewRow(); else awSetFocus(row+1, nextInput); } else { // FIX ME - should tab to next field after addressing widget...probably subje...
if ( inputElement.value )
if ( inputElement.input.value )
function awReturnHit(inputElement){ var row = awGetRowByInputElement(inputElement); var nextInput = awGetInputElement(row+1); if ( !nextInput ) { if ( inputElement.value ) awAppendNewRow(true); else // No adress entered, switch to Subject field { var subjectField = document.getElementById( 'msgSubject' )...
selectElementType = document.getElementById("msgRecipientType#1").localName;
selectElementType = document.getElementById("addressCol1#1").localName;
function awSelectElementName(){ if (selectElementType == "") selectElementType = document.getElementById("msgRecipientType#1").localName; return selectElementType;}
inputElem.setAttribute("id", "msgRecipient#" + rowNumber); popupElem.setAttribute("id", "msgRecipientType#" + rowNumber);
inputElem.setAttribute("id", "addressCol2#" + rowNumber); popupElem.setAttribute("id", "addressCol1#" + rowNumber);
function awSetInputAndPopupValue(inputElem, inputValue, popupElem, popupValue, rowNumber){ // remove leading spaces while (inputValue && inputValue[0] == " " ) inputValue = inputValue.substring(1, inputValue.length); inputElem.setAttribute("value", inputValue); inputElem.value = inputValue; popupElem.selectedIt...
awCreateOrRemoveDummyRows();
awCreateOrRemoveDummyRows(2);
function awSizerMouseMove(){ awCreateOrRemoveDummyRows();}
var row = awGetRowByInputElement(element); if (!event.shiftKey && row < top.MAX_RECIPIENTS) { var listBoxRow = row - 1; var listBox = document.getElementById("addressingWidget"); listBox.listBoxObject.ensureIndexIsVisible(listBoxRow + 1); }
function awTabFromRecipient(element, event){ //If we are le last element in the listbox, we don't want to create a new row. if (element == awGetInputElement(top.MAX_RECIPIENTS)) top.doNotCreateANewRow = true;}
var body = document.getElementById('addressWidgetBody'); var treeitems = body.getElementsByTagName('treeitem'); if (treeitems.length == top.MAX_RECIPIENTS )
var listbox = document.getElementById('addressingWidget'); var listitems = listbox.getElementsByTagName('listitem'); if (listitems.length >= top.MAX_RECIPIENTS )
function awTestRowSequence(){ /* This function is for debug and testing purpose only, normal user should not run it! Everytime we insert or delete a row, we must be sure we didn't break the ID sequence of the addressing widget rows. This function will run a quick test to see if the sequence still ok You ne...
for (var i = 1; i <= treeitems.length; i ++)
for (var i = 1; i <= listitems.length; i ++)
function awTestRowSequence(){ /* This function is for debug and testing purpose only, normal user should not run it! Everytime we insert or delete a row, we must be sure we didn't break the ID sequence of the addressing widget rows. This function will run a quick test to see if the sequence still ok You ne...
var item = treeitems[i - 1];
var item = listitems [i - 1];
function awTestRowSequence(){ /* This function is for debug and testing purpose only, normal user should not run it! Everytime we insert or delete a row, we must be sure we didn't break the ID sequence of the addressing widget rows. This function will run a quick test to see if the sequence still ok You ne...
break;
return false;
function awTestRowSequence(){ /* This function is for debug and testing purpose only, normal user should not run it! Everytime we insert or delete a row, we must be sure we didn't break the ID sequence of the addressing widget rows. This function will run a quick test to see if the sequence still ok You ne...
dump("---SEQUENCE OK---\n"); return true;
function awTestRowSequence(){ /* This function is for debug and testing purpose only, normal user should not run it! Everytime we insert or delete a row, we must be sure we didn't break the ID sequence of the addressing widget rows. This function will run a quick test to see if the sequence still ok You ne...
dump("#ERROR: treeitems.length(" + treeitems.length + ") != top.MAX_RECIPIENTS(" + top.MAX_RECIPIENTS + ")\n");
dump("#ERROR: listitems.length(" + listitems.length + ") < top.MAX_RECIPIENTS(" + top.MAX_RECIPIENTS + ")\n");
function awTestRowSequence(){ /* This function is for debug and testing purpose only, normal user should not run it! Everytime we insert or delete a row, we must be sure we didn't break the ID sequence of the addressing widget rows. This function will run a quick test to see if the sequence still ok You ne...
fp.appendFilter("PKCS12 Files", "*.p12");
fp.appendFilter(bundle.GetStringFromName("file_browse_PKCS12_spec"), "*.p12");
function backupCerts(){ getSelectedCerts(); var numcerts = selected_certs.length; if (!numcerts) return; var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties"); var fp = Components.classes[nsFilePicker].createInstance(nsIFilePicker); fp.init(window, bundle.GetStringFromName("chooseP12...
dump("Exception caught in 'backupData': " + ex + "\n");
backupData: function (categoryNameFix) { var currentColor; try { currentColor = categoryPrefBranch.getCharPref(categoryNameFix); } catch (ex) { currentColor = "##NEW"; } for (var i=0; i < parent.backupPrefList.length; i++) { if (categoryNameFix == ...