summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_list_actions/ui/archive_many_trigger.js
diff options
context:
space:
mode:
authorZara Gebru <zgebru@thoughtworks.com>2016-12-02 15:25:23 +0100
committerZara Gebru <zgebru@thoughtworks.com>2016-12-02 15:25:23 +0100
commitb14833fbb56bcd5bff0750c16fd9214009b955be (patch)
treea1ec621dd5f76d756ac59b72a763a34a2c189387 /web-ui/app/js/mail_list_actions/ui/archive_many_trigger.js
parent688a8b42e8ab7c6d4529b6dda66f40eead07ad02 (diff)
[refactor] move app dir into public dir
Diffstat (limited to 'web-ui/app/js/mail_list_actions/ui/archive_many_trigger.js')
-rw-r--r--web-ui/app/js/mail_list_actions/ui/archive_many_trigger.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/web-ui/app/js/mail_list_actions/ui/archive_many_trigger.js b/web-ui/app/js/mail_list_actions/ui/archive_many_trigger.js
deleted file mode 100644
index b148cdce..00000000
--- a/web-ui/app/js/mail_list_actions/ui/archive_many_trigger.js
+++ /dev/null
@@ -1,29 +0,0 @@
-define(
- [
- 'flight/lib/component',
- 'views/templates',
- 'mixins/with_enable_disable_on_event',
- 'page/events'
- ],
-
- function(definecomponent, templates, withEnableDisableOnEvent, events) {
- 'use strict';
-
- return definecomponent(archiveManyTrigger, withEnableDisableOnEvent(events.ui.mails.hasMailsChecked));
- function archiveManyTrigger() {
-
- this.getMailsToArchive = function() {
- this.trigger(document, events.ui.mail.wantChecked, this.$node);
- };
-
- this.archiveManyEmails = function(event, data) {
- this.trigger(document, events.mail.archiveMany, data);
- };
-
- this.after('initialize', function () {
- this.on('click', this.getMailsToArchive);
- this.on(events.ui.mail.hereChecked, this.archiveManyEmails);
- });
- }
- }
-);