Monotone-Parent: ba5973b414572fb5f085f8980182645843a42958
Monotone-Revision: 778ca12e99d197e109e23159f48ce1b32026519c Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-11-05T14:37:26 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
5ede94bbaa
commit
c6b33b514f
|
@ -14,7 +14,7 @@ function validateEditorInput(sender) {
|
|||
if (field.value == "")
|
||||
errortext = errortext + labels.error_missingsubject + "\n";
|
||||
|
||||
if (!UIxRecipientSelectorHasRecipients())
|
||||
if (!hasRecipients())
|
||||
errortext = errortext + labels.error_missingrecipients + "\n";
|
||||
|
||||
if (errortext.length > 0) {
|
||||
|
|
|
@ -405,7 +405,7 @@ function openMailbox(mailbox, reload, idx) {
|
|||
var url = ApplicationBaseURL + encodeURI(mailbox) + "/view?noframe=1";
|
||||
var messageContent = $("messageContent");
|
||||
messageContent.update();
|
||||
lastClickedRow = null; // from generic.js
|
||||
lastClickedRow = -1; // from generic.js
|
||||
|
||||
var currentMessage;
|
||||
if (!idx) {
|
||||
|
|
|
@ -317,7 +317,7 @@ function eventsListCallback(http) {
|
|||
var params = parseQueryParameters(http.callbackData);
|
||||
sortKey = params["sort"];
|
||||
sortOrder = params["desc"];
|
||||
lastClickedRow = null; // from generic.js
|
||||
lastClickedRow = -1; // from generic.js
|
||||
|
||||
if (http.responseText.length > 0) {
|
||||
var data = http.responseText.evalJSON(true);
|
||||
|
|
|
@ -129,7 +129,7 @@ function validateEditorInput(sender) {
|
|||
if (field.value == "")
|
||||
errortext = errortext + labels["error_missingsubject"] + "\n";
|
||||
|
||||
if (!UIxRecipientSelectorHasRecipients())
|
||||
if (!hasRecipients())
|
||||
errortext = errortext + labels["error_missingrecipients"] + "\n";
|
||||
|
||||
if (errortext.length > 0) {
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
* It's required that "currentIndex" is defined in a top level context.
|
||||
*
|
||||
* Exports:
|
||||
* defines UIxRecipientSelectorHasRecipients() returning a bool for the
|
||||
* defines hasRecipients() returning a bool for the
|
||||
* surrounding context to check.
|
||||
*/
|
||||
|
||||
|
@ -179,16 +179,16 @@ function getAddressIDs() {
|
|||
|
||||
addressIDs = new Array();
|
||||
|
||||
addressList = $("addressList");
|
||||
addressList = $("addressList").tBodies[0];
|
||||
rows = addressList.childNodes;
|
||||
count = rows.length;
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
var row, rowId;
|
||||
|
||||
row = addressList.childNodes[i];
|
||||
row = rows[i];
|
||||
rowId = row.id;
|
||||
if (rowId && rowId != 'row_last') {
|
||||
if (rowId && rowId != 'lastRow') {
|
||||
var idx;
|
||||
|
||||
idx = this.getIndexFromIdentifier(rowId);
|
||||
|
@ -215,7 +215,7 @@ function getAddressCount() {
|
|||
return addressCount;
|
||||
}
|
||||
|
||||
function UIxRecipientSelectorHasRecipients() {
|
||||
function hasRecipients() {
|
||||
var count;
|
||||
|
||||
count = this.getAddressCount();
|
||||
|
|
|
@ -31,7 +31,7 @@ var menus = new Array();
|
|||
var search = {};
|
||||
var sorting = {};
|
||||
|
||||
var lastClickedRow = null;
|
||||
var lastClickedRow = -1;
|
||||
|
||||
var weekStartIsMonday = true;
|
||||
|
||||
|
@ -495,7 +495,7 @@ function onRowClick(event) {
|
|||
|
||||
var initialSelection = $(node.parentNode).getSelectedNodes();
|
||||
if ((event.shiftKey == 1 || event.ctrlKey == 1)
|
||||
&& lastClickedRow
|
||||
&& (lastClickedRow >= 0)
|
||||
&& (acceptMultiSelect(node.parentNode)
|
||||
|| acceptMultiSelect(node.parentNode.parentNode))) {
|
||||
if (event.shiftKey)
|
||||
|
|
Loading…
Reference in a new issue