mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-30 17:04:20 +08:00
Add ask popup (messages permanent deletion)
This commit is contained in:
parent
1e687f9a76
commit
a112b0400e
18 changed files with 94 additions and 32 deletions
|
@ -111,6 +111,10 @@ function MailBoxMessageListViewModel()
|
||||||
return RL.data().spamFolder() === this.messageListEndFolder();
|
return RL.data().spamFolder() === this.messageListEndFolder();
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
this.isSpamDisabled = ko.computed(function () {
|
||||||
|
return Consts.Values.UnuseOptionValue === RL.data().spamFolder();
|
||||||
|
}, this);
|
||||||
|
|
||||||
this.isTrashFolder = ko.computed(function () {
|
this.isTrashFolder = ko.computed(function () {
|
||||||
return RL.data().trashFolder() === this.messageListEndFolder();
|
return RL.data().trashFolder() === this.messageListEndFolder();
|
||||||
}, this);
|
}, this);
|
||||||
|
@ -187,6 +191,8 @@ function MailBoxMessageListViewModel()
|
||||||
}, this)
|
}, this)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
this.moveOrDeleteResponse = _.bind(this.moveOrDeleteResponse, this);
|
||||||
|
|
||||||
Knoin.constructorEnd(this);
|
Knoin.constructorEnd(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -352,7 +358,7 @@ MailBoxMessageListViewModel.prototype.moveMessagesToFolder = function (sFromFold
|
||||||
bCopy = Utils.isUnd(bCopy) ? false : !!bCopy;
|
bCopy = Utils.isUnd(bCopy) ? false : !!bCopy;
|
||||||
|
|
||||||
RL.remote()[bCopy ? 'messagesCopy' : 'messagesMove'](
|
RL.remote()[bCopy ? 'messagesCopy' : 'messagesMove'](
|
||||||
_.bind(this.moveOrDeleteResponse, this),
|
this.moveOrDeleteResponse,
|
||||||
oFromFolder.fullNameRaw,
|
oFromFolder.fullNameRaw,
|
||||||
oToFolder.fullNameRaw,
|
oToFolder.fullNameRaw,
|
||||||
aUidForRemove
|
aUidForRemove
|
||||||
|
@ -392,30 +398,48 @@ MailBoxMessageListViewModel.prototype.deleteSelectedMessageFromCurrentFolder = f
|
||||||
if (this.canBeMoved())
|
if (this.canBeMoved())
|
||||||
{
|
{
|
||||||
bUseFolder = Utils.isUnd(bUseFolder) ? true : !!bUseFolder;
|
bUseFolder = Utils.isUnd(bUseFolder) ? true : !!bUseFolder;
|
||||||
var oTrashOrSpamFolder = RL.cache().getFolderFromCacheList(
|
if (bUseFolder)
|
||||||
Enums.FolderType.Spam === iType ? RL.data().spamFolder() : RL.data().trashFolder());
|
{
|
||||||
|
if ((Enums.FolderType.Spam === iType && Consts.Values.UnuseOptionValue === RL.data().spamFolder()) ||
|
||||||
|
(Enums.FolderType.Trash === iType && Consts.Values.UnuseOptionValue === RL.data().trashFolder()))
|
||||||
|
{
|
||||||
|
bUseFolder = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var
|
||||||
|
self = this,
|
||||||
|
aUIds = null,
|
||||||
|
sCurrentFolderFullNameRaw = RL.data().currentFolderFullNameRaw(),
|
||||||
|
oTrashOrSpamFolder = RL.cache().getFolderFromCacheList(
|
||||||
|
Enums.FolderType.Spam === iType ? RL.data().spamFolder() : RL.data().trashFolder())
|
||||||
|
;
|
||||||
|
|
||||||
if (!oTrashOrSpamFolder && bUseFolder)
|
if (!oTrashOrSpamFolder && bUseFolder)
|
||||||
{
|
{
|
||||||
kn.showScreenPopup(PopupsFolderSystemViewModel, [
|
kn.showScreenPopup(PopupsFolderSystemViewModel, [
|
||||||
Enums.FolderType.Spam === iType ? Enums.SetSystemFoldersNotification.Spam : Enums.SetSystemFoldersNotification.Trash]);
|
Enums.FolderType.Spam === iType ? Enums.SetSystemFoldersNotification.Spam : Enums.SetSystemFoldersNotification.Trash]);
|
||||||
}
|
}
|
||||||
else if (!bUseFolder || (oTrashOrSpamFolder && (Consts.Values.UnuseOptionValue === oTrashOrSpamFolder.fullNameRaw ||
|
else if (!bUseFolder || (oTrashOrSpamFolder && RL.data().currentFolderFullNameRaw() === oTrashOrSpamFolder.fullNameRaw))
|
||||||
RL.data().currentFolderFullNameRaw() === oTrashOrSpamFolder.fullNameRaw)))
|
|
||||||
{
|
{
|
||||||
RL.remote().messagesDelete(
|
aUIds = RL.data().messageListCheckedOrSelectedUidsWithSubMails();
|
||||||
_.bind(this.moveOrDeleteResponse, this),
|
|
||||||
RL.data().currentFolderFullNameRaw(),
|
kn.showScreenPopup(PopupsAskViewModel, [Utils.i18n('POPUPS_ASK/DESC_WANT_DELETE_MESSAGES'), function () {
|
||||||
RL.data().messageListCheckedOrSelectedUidsWithSubMails()
|
|
||||||
);
|
|
||||||
|
|
||||||
this.removeCheckedOrSelectedMessagesFromList();
|
RL.remote().messagesDelete(
|
||||||
|
self.moveOrDeleteResponse,
|
||||||
|
sCurrentFolderFullNameRaw,
|
||||||
|
aUIds
|
||||||
|
);
|
||||||
|
|
||||||
|
self.removeCheckedOrSelectedMessagesFromList();
|
||||||
|
}]);
|
||||||
}
|
}
|
||||||
else if (oTrashOrSpamFolder)
|
else if (oTrashOrSpamFolder)
|
||||||
{
|
{
|
||||||
RL.remote().messagesMove(
|
RL.remote().messagesMove(
|
||||||
_.bind(this.moveOrDeleteResponse, this),
|
this.moveOrDeleteResponse,
|
||||||
RL.data().currentFolderFullNameRaw(),
|
sCurrentFolderFullNameRaw,
|
||||||
oTrashOrSpamFolder.fullNameRaw,
|
oTrashOrSpamFolder.fullNameRaw,
|
||||||
RL.data().messageListCheckedOrSelectedUidsWithSubMails()
|
RL.data().messageListCheckedOrSelectedUidsWithSubMails()
|
||||||
);
|
);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "RainLoop",
|
"name": "RainLoop",
|
||||||
"title": "RainLoop Webmail",
|
"title": "RainLoop Webmail",
|
||||||
"version": "1.5.1",
|
"version": "1.5.1",
|
||||||
"release": "550",
|
"release": "553",
|
||||||
"description": "Simple, modern & fast web-based email client",
|
"description": "Simple, modern & fast web-based email client",
|
||||||
"homepage": "http://rainloop.net",
|
"homepage": "http://rainloop.net",
|
||||||
"main": "Gruntfile.js",
|
"main": "Gruntfile.js",
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
<i class="icon-trash icon-white"></i>
|
<i class="icon-trash icon-white"></i>
|
||||||
<span data-bind="text: 1 < messageListCheckedOrSelectedUidsWithSubMails().length ? ' (' + messageListCheckedOrSelectedUidsWithSubMails().length + ')' : ''"></span>
|
<span data-bind="text: 1 < messageListCheckedOrSelectedUidsWithSubMails().length ? ' (' + messageListCheckedOrSelectedUidsWithSubMails().length + ')' : ''"></span>
|
||||||
</a>
|
</a>
|
||||||
<span style="font-size:10px;"> </span>
|
<span style="font-size:10px;" data-bind="visible: !isSpamFolder() && !isSpamDisabled()"> </span>
|
||||||
<a class="btn buttonSpam" data-placement="bottom" data-bind="visible: !isSpamFolder(), command: spamCommand, tooltip: 'MESSAGE_LIST/BUTTON_SPAM'">
|
<a class="btn buttonSpam" data-placement="bottom" data-bind="visible: !isSpamFolder() && !isSpamDisabled(), command: spamCommand, tooltip: 'MESSAGE_LIST/BUTTON_SPAM'">
|
||||||
<i class="icon-bug"></i>
|
<i class="icon-bug"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -177,6 +177,7 @@ EMPTY_TO_ERROR_DESC = "Geben Sie bitte mindestens einen Empfänger an"
|
||||||
BUTTON_YES = "Yes"
|
BUTTON_YES = "Yes"
|
||||||
BUTTON_NO = "No"
|
BUTTON_NO = "No"
|
||||||
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
||||||
|
DESC_WANT_DELETE_MESSAGES = "Are you sure you want to delete this message(s)?"
|
||||||
|
|
||||||
[POPUPS_LANGUAGES]
|
[POPUPS_LANGUAGES]
|
||||||
TITLE_LANGUAGES = "Choose language"
|
TITLE_LANGUAGES = "Choose language"
|
||||||
|
|
|
@ -177,6 +177,7 @@ EMPTY_TO_ERROR_DESC = "Please specify at least one recipient"
|
||||||
BUTTON_YES = "Yes"
|
BUTTON_YES = "Yes"
|
||||||
BUTTON_NO = "No"
|
BUTTON_NO = "No"
|
||||||
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
||||||
|
DESC_WANT_DELETE_MESSAGES = "Are you sure you want to delete this message(s)?"
|
||||||
|
|
||||||
[POPUPS_LANGUAGES]
|
[POPUPS_LANGUAGES]
|
||||||
TITLE_LANGUAGES = "Choose language"
|
TITLE_LANGUAGES = "Choose language"
|
||||||
|
|
|
@ -177,6 +177,7 @@ EMPTY_TO_ERROR_DESC = "Por favor especifique al menos un destinatario"
|
||||||
BUTTON_YES = "Yes"
|
BUTTON_YES = "Yes"
|
||||||
BUTTON_NO = "No"
|
BUTTON_NO = "No"
|
||||||
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
||||||
|
DESC_WANT_DELETE_MESSAGES = "Are you sure you want to delete this message(s)?"
|
||||||
|
|
||||||
[POPUPS_LANGUAGES]
|
[POPUPS_LANGUAGES]
|
||||||
TITLE_LANGUAGES = "Choose language"
|
TITLE_LANGUAGES = "Choose language"
|
||||||
|
|
|
@ -177,6 +177,7 @@ EMPTY_TO_ERROR_DESC = "S'il vous plaît spécifier au moins un destinataire"
|
||||||
BUTTON_YES = "Yes"
|
BUTTON_YES = "Yes"
|
||||||
BUTTON_NO = "No"
|
BUTTON_NO = "No"
|
||||||
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
||||||
|
DESC_WANT_DELETE_MESSAGES = "Are you sure you want to delete this message(s)?"
|
||||||
|
|
||||||
[POPUPS_LANGUAGES]
|
[POPUPS_LANGUAGES]
|
||||||
TITLE_LANGUAGES = "Choisir la langue"
|
TITLE_LANGUAGES = "Choisir la langue"
|
||||||
|
|
|
@ -177,6 +177,7 @@ EMPTY_TO_ERROR_DESC = "Vinsamlegast taktu fram að minnsta kosti einn viðtakand
|
||||||
BUTTON_YES = "Yes"
|
BUTTON_YES = "Yes"
|
||||||
BUTTON_NO = "No"
|
BUTTON_NO = "No"
|
||||||
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
||||||
|
DESC_WANT_DELETE_MESSAGES = "Are you sure you want to delete this message(s)?"
|
||||||
|
|
||||||
[POPUPS_LANGUAGES]
|
[POPUPS_LANGUAGES]
|
||||||
TITLE_LANGUAGES = "Choose language"
|
TITLE_LANGUAGES = "Choose language"
|
||||||
|
|
|
@ -177,6 +177,7 @@ EMPTY_TO_ERROR_DESC = "수신인을 한 명 이상 선택하세요"
|
||||||
BUTTON_YES = "Yes"
|
BUTTON_YES = "Yes"
|
||||||
BUTTON_NO = "No"
|
BUTTON_NO = "No"
|
||||||
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
||||||
|
DESC_WANT_DELETE_MESSAGES = "Are you sure you want to delete this message(s)?"
|
||||||
|
|
||||||
[POPUPS_LANGUAGES]
|
[POPUPS_LANGUAGES]
|
||||||
TITLE_LANGUAGES = "사용할 언어를 선택하세요"
|
TITLE_LANGUAGES = "사용할 언어를 선택하세요"
|
||||||
|
|
|
@ -177,6 +177,7 @@ EMPTY_TO_ERROR_DESC = "Pievienojat vismaz vienu saņēmēju"
|
||||||
BUTTON_YES = "Yes"
|
BUTTON_YES = "Yes"
|
||||||
BUTTON_NO = "No"
|
BUTTON_NO = "No"
|
||||||
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
||||||
|
DESC_WANT_DELETE_MESSAGES = "Are you sure you want to delete this message(s)?"
|
||||||
|
|
||||||
[POPUPS_LANGUAGES]
|
[POPUPS_LANGUAGES]
|
||||||
TITLE_LANGUAGES = "Choose language"
|
TITLE_LANGUAGES = "Choose language"
|
||||||
|
|
|
@ -177,6 +177,7 @@ EMPTY_TO_ERROR_DESC = "Gelieve minstens 1 ontvanger aan te duiden"
|
||||||
BUTTON_YES = "Yes"
|
BUTTON_YES = "Yes"
|
||||||
BUTTON_NO = "No"
|
BUTTON_NO = "No"
|
||||||
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
||||||
|
DESC_WANT_DELETE_MESSAGES = "Are you sure you want to delete this message(s)?"
|
||||||
|
|
||||||
[POPUPS_LANGUAGES]
|
[POPUPS_LANGUAGES]
|
||||||
TITLE_LANGUAGES = "Kies uw taal"
|
TITLE_LANGUAGES = "Kies uw taal"
|
||||||
|
|
|
@ -177,6 +177,7 @@ EMPTY_TO_ERROR_DESC = "Wprowadź co najmniej jednego odbiorcę"
|
||||||
BUTTON_YES = "Yes"
|
BUTTON_YES = "Yes"
|
||||||
BUTTON_NO = "No"
|
BUTTON_NO = "No"
|
||||||
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
||||||
|
DESC_WANT_DELETE_MESSAGES = "Are you sure you want to delete this message(s)?"
|
||||||
|
|
||||||
[POPUPS_LANGUAGES]
|
[POPUPS_LANGUAGES]
|
||||||
TITLE_LANGUAGES = "Choose language"
|
TITLE_LANGUAGES = "Choose language"
|
||||||
|
|
|
@ -177,6 +177,7 @@ EMPTY_TO_ERROR_DESC = "Por favor, especifique pelo menos um destinatário"
|
||||||
BUTTON_YES = "Yes"
|
BUTTON_YES = "Yes"
|
||||||
BUTTON_NO = "No"
|
BUTTON_NO = "No"
|
||||||
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
||||||
|
DESC_WANT_DELETE_MESSAGES = "Are you sure you want to delete this message(s)?"
|
||||||
|
|
||||||
[POPUPS_LANGUAGES]
|
[POPUPS_LANGUAGES]
|
||||||
TITLE_LANGUAGES = "Choose language"
|
TITLE_LANGUAGES = "Choose language"
|
||||||
|
|
|
@ -177,6 +177,7 @@ EMPTY_TO_ERROR_DESC = "Por favor, especifique pelo menos um destinatário"
|
||||||
BUTTON_YES = "Yes"
|
BUTTON_YES = "Yes"
|
||||||
BUTTON_NO = "No"
|
BUTTON_NO = "No"
|
||||||
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
||||||
|
DESC_WANT_DELETE_MESSAGES = "Are you sure you want to delete this message(s)?"
|
||||||
|
|
||||||
[POPUPS_LANGUAGES]
|
[POPUPS_LANGUAGES]
|
||||||
TITLE_LANGUAGES = "Choose language"
|
TITLE_LANGUAGES = "Choose language"
|
||||||
|
|
|
@ -177,6 +177,7 @@ EMPTY_TO_ERROR_DESC = "Укажите как минимум одного пол
|
||||||
BUTTON_YES = "Да"
|
BUTTON_YES = "Да"
|
||||||
BUTTON_NO = "Нет"
|
BUTTON_NO = "Нет"
|
||||||
DESC_WANT_CLOSE_THIS_WINDOW = "Вы уверены, что хотите закрыть это окно?"
|
DESC_WANT_CLOSE_THIS_WINDOW = "Вы уверены, что хотите закрыть это окно?"
|
||||||
|
DESC_WANT_DELETE_MESSAGES = "Вы уверены, что хотите удалить сообщение(я)?"
|
||||||
|
|
||||||
[POPUPS_LANGUAGES]
|
[POPUPS_LANGUAGES]
|
||||||
TITLE_LANGUAGES = "Выберите язык"
|
TITLE_LANGUAGES = "Выберите язык"
|
||||||
|
|
|
@ -177,6 +177,7 @@ EMPTY_TO_ERROR_DESC = "请至少选择一位接收人"
|
||||||
BUTTON_YES = "Yes"
|
BUTTON_YES = "Yes"
|
||||||
BUTTON_NO = "No"
|
BUTTON_NO = "No"
|
||||||
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
DESC_WANT_CLOSE_THIS_WINDOW = "Are you sure you want to close this window?"
|
||||||
|
DESC_WANT_DELETE_MESSAGES = "Are you sure you want to delete this message(s)?"
|
||||||
|
|
||||||
[POPUPS_LANGUAGES]
|
[POPUPS_LANGUAGES]
|
||||||
TITLE_LANGUAGES = "选择语言"
|
TITLE_LANGUAGES = "选择语言"
|
||||||
|
|
|
@ -10966,6 +10966,10 @@ function MailBoxMessageListViewModel()
|
||||||
return RL.data().spamFolder() === this.messageListEndFolder();
|
return RL.data().spamFolder() === this.messageListEndFolder();
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
this.isSpamDisabled = ko.computed(function () {
|
||||||
|
return Consts.Values.UnuseOptionValue === RL.data().spamFolder();
|
||||||
|
}, this);
|
||||||
|
|
||||||
this.isTrashFolder = ko.computed(function () {
|
this.isTrashFolder = ko.computed(function () {
|
||||||
return RL.data().trashFolder() === this.messageListEndFolder();
|
return RL.data().trashFolder() === this.messageListEndFolder();
|
||||||
}, this);
|
}, this);
|
||||||
|
@ -11042,6 +11046,8 @@ function MailBoxMessageListViewModel()
|
||||||
}, this)
|
}, this)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
this.moveOrDeleteResponse = _.bind(this.moveOrDeleteResponse, this);
|
||||||
|
|
||||||
Knoin.constructorEnd(this);
|
Knoin.constructorEnd(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11207,7 +11213,7 @@ MailBoxMessageListViewModel.prototype.moveMessagesToFolder = function (sFromFold
|
||||||
bCopy = Utils.isUnd(bCopy) ? false : !!bCopy;
|
bCopy = Utils.isUnd(bCopy) ? false : !!bCopy;
|
||||||
|
|
||||||
RL.remote()[bCopy ? 'messagesCopy' : 'messagesMove'](
|
RL.remote()[bCopy ? 'messagesCopy' : 'messagesMove'](
|
||||||
_.bind(this.moveOrDeleteResponse, this),
|
this.moveOrDeleteResponse,
|
||||||
oFromFolder.fullNameRaw,
|
oFromFolder.fullNameRaw,
|
||||||
oToFolder.fullNameRaw,
|
oToFolder.fullNameRaw,
|
||||||
aUidForRemove
|
aUidForRemove
|
||||||
|
@ -11247,30 +11253,48 @@ MailBoxMessageListViewModel.prototype.deleteSelectedMessageFromCurrentFolder = f
|
||||||
if (this.canBeMoved())
|
if (this.canBeMoved())
|
||||||
{
|
{
|
||||||
bUseFolder = Utils.isUnd(bUseFolder) ? true : !!bUseFolder;
|
bUseFolder = Utils.isUnd(bUseFolder) ? true : !!bUseFolder;
|
||||||
var oTrashOrSpamFolder = RL.cache().getFolderFromCacheList(
|
if (bUseFolder)
|
||||||
Enums.FolderType.Spam === iType ? RL.data().spamFolder() : RL.data().trashFolder());
|
{
|
||||||
|
if ((Enums.FolderType.Spam === iType && Consts.Values.UnuseOptionValue === RL.data().spamFolder()) ||
|
||||||
|
(Enums.FolderType.Trash === iType && Consts.Values.UnuseOptionValue === RL.data().trashFolder()))
|
||||||
|
{
|
||||||
|
bUseFolder = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var
|
||||||
|
self = this,
|
||||||
|
aUIds = null,
|
||||||
|
sCurrentFolderFullNameRaw = RL.data().currentFolderFullNameRaw(),
|
||||||
|
oTrashOrSpamFolder = RL.cache().getFolderFromCacheList(
|
||||||
|
Enums.FolderType.Spam === iType ? RL.data().spamFolder() : RL.data().trashFolder())
|
||||||
|
;
|
||||||
|
|
||||||
if (!oTrashOrSpamFolder && bUseFolder)
|
if (!oTrashOrSpamFolder && bUseFolder)
|
||||||
{
|
{
|
||||||
kn.showScreenPopup(PopupsFolderSystemViewModel, [
|
kn.showScreenPopup(PopupsFolderSystemViewModel, [
|
||||||
Enums.FolderType.Spam === iType ? Enums.SetSystemFoldersNotification.Spam : Enums.SetSystemFoldersNotification.Trash]);
|
Enums.FolderType.Spam === iType ? Enums.SetSystemFoldersNotification.Spam : Enums.SetSystemFoldersNotification.Trash]);
|
||||||
}
|
}
|
||||||
else if (!bUseFolder || (oTrashOrSpamFolder && (Consts.Values.UnuseOptionValue === oTrashOrSpamFolder.fullNameRaw ||
|
else if (!bUseFolder || (oTrashOrSpamFolder && RL.data().currentFolderFullNameRaw() === oTrashOrSpamFolder.fullNameRaw))
|
||||||
RL.data().currentFolderFullNameRaw() === oTrashOrSpamFolder.fullNameRaw)))
|
|
||||||
{
|
{
|
||||||
RL.remote().messagesDelete(
|
aUIds = RL.data().messageListCheckedOrSelectedUidsWithSubMails();
|
||||||
_.bind(this.moveOrDeleteResponse, this),
|
|
||||||
RL.data().currentFolderFullNameRaw(),
|
kn.showScreenPopup(PopupsAskViewModel, [Utils.i18n('POPUPS_ASK/DESC_WANT_DELETE_MESSAGES'), function () {
|
||||||
RL.data().messageListCheckedOrSelectedUidsWithSubMails()
|
|
||||||
);
|
|
||||||
|
|
||||||
this.removeCheckedOrSelectedMessagesFromList();
|
RL.remote().messagesDelete(
|
||||||
|
self.moveOrDeleteResponse,
|
||||||
|
sCurrentFolderFullNameRaw,
|
||||||
|
aUIds
|
||||||
|
);
|
||||||
|
|
||||||
|
self.removeCheckedOrSelectedMessagesFromList();
|
||||||
|
}]);
|
||||||
}
|
}
|
||||||
else if (oTrashOrSpamFolder)
|
else if (oTrashOrSpamFolder)
|
||||||
{
|
{
|
||||||
RL.remote().messagesMove(
|
RL.remote().messagesMove(
|
||||||
_.bind(this.moveOrDeleteResponse, this),
|
this.moveOrDeleteResponse,
|
||||||
RL.data().currentFolderFullNameRaw(),
|
sCurrentFolderFullNameRaw,
|
||||||
oTrashOrSpamFolder.fullNameRaw,
|
oTrashOrSpamFolder.fullNameRaw,
|
||||||
RL.data().messageListCheckedOrSelectedUidsWithSubMails()
|
RL.data().messageListCheckedOrSelectedUidsWithSubMails()
|
||||||
);
|
);
|
||||||
|
|
7
rainloop/v/0.0.0/static/js/app.min.js
vendored
7
rainloop/v/0.0.0/static/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue