Difference between revisions of "User:Attachment Reminder"
(→Find the Place Where Code should Go) |
(→Write Javascript Required to prompt to User) |
||
Line 31: | Line 31: | ||
=== Write Javascript Required to prompt to User === | === Write Javascript Required to prompt to User === | ||
+ | var check = {value: false}; | ||
+ | var flags = gPromptService.BUTTON_POS_0 * gPromptService.BUTTON_TITLE_IS_STRING + | ||
+ | gPromptService.BUTTON_POS_1 * gPromptService.BUTTON_TITLE_IS_STRING; | ||
+ | var button = gPromptService.confirmEx(null, | ||
+ | "Attachment Reminder", | ||
+ | "Did you forget to add an attachment?", | ||
+ | flags, | ||
+ | "Oh, I did", | ||
+ | "No, Send Now", | ||
+ | null, | ||
+ | null, | ||
+ | check); | ||
=== Add Functionality to add key Words By user === | === Add Functionality to add key Words By user === |
Revision as of 13:48, 18 November 2008
Contents
Project Name
Attachment Reminder
Project Description
Do you usually forget to attach the assignments in emails? If the answer is yes, you don't have to worry about that problem any more. Because I am working on the bug 244455. This bug reminds the user to attach the file when the user clicks the "send" button.
Project Leader(s)
- Chinmay Patel
- Magnus Melin
- Bryan W Clark
Project Contributor(s)
Scott Lunel
Zaid Ghansar
Sidhdharth (Sid)
David Humphrey
Project Tasks
Find the Place Where Code should Go
When you click "Send" button, it goes to [[1]]. And, depending on the task, it calls sendMessage() and sendMessageLater().
In this case, sendMessage Function is going to be called which can be found at [[2]]
Write Javascript Required to prompt to User
var check = {value: false};
var flags = gPromptService.BUTTON_POS_0 * gPromptService.BUTTON_TITLE_IS_STRING + gPromptService.BUTTON_POS_1 * gPromptService.BUTTON_TITLE_IS_STRING; var button = gPromptService.confirmEx(null, "Attachment Reminder", "Did you forget to add an attachment?", flags, "Oh, I did", "No, Send Now", null, null, check);
Add Functionality to add key Words By user
List OF Keywords
Attach*
PFA
Doc
Document
Slide
Presentation
File
Attached
zip
rar