
- The subscription panel is placed in the "mysettings" menu (not anymmore a popup) - A Unsubscribe button were added. It removes the email if found - The 2 options to receive a mail when someone is starting to edit and finished to edit can be chosen for each user (at least one of the two is compulsory) - First time you go on the email notification panel in the mysettings menu, a call is made to get the email and options already subscribed for this userId * If found, the form is pre-filled with the datas * If not, the form is set with defaults values It's just informative. Users can still subscribe another mail for this userId. - Removed the integration of this plugin in the "Share this pad" menu. First becaue, imo, it's not the place, and second, because it meant 2 forms with the same id.
20 lines
844 B
JSON
20 lines
844 B
JSON
{
|
|
"parts":[
|
|
{
|
|
"name": "ep_email_notifications",
|
|
"hooks": {
|
|
"padUpdate": "ep_email_notifications/update",
|
|
"handleMessage": "ep_email_notifications/handleMessage",
|
|
"eejsBlock_scripts": "ep_email_notifications/client",
|
|
"eejsBlock_mySettings": "ep_email_notifications/client:eejsBlock_mySettings",
|
|
"eejsBlock_styles": "ep_email_notifications/client:eejsBlock_styles"
|
|
},
|
|
"client_hooks": {
|
|
"postAceInit":"ep_email_notifications/static/js/ep_email:postAceInit",
|
|
"handleClientMessage_emailSubscriptionSuccess":"ep_email_notifications/static/js/ep_email",
|
|
"handleClientMessage_emailUnsubscriptionSuccess":"ep_email_notifications/static/js/ep_email",
|
|
"handleClientMessage_emailNotificationGetUserInfo":"ep_email_notifications/static/js/ep_email"
|
|
}
|
|
}
|
|
]
|
|
}
|