Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 856888 - Support links was added in calendar's notes #33545

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ruvsmirnov
Copy link
Contributor

What was made:

  • Move modules that provides convertion telephone numbers, emails and links to links in messages to shared component from sms.
  • Add this functionality in calendar's notes.

@mozilla-autolander-deprecated
Copy link
Contributor

@@ -0,0 +1,32 @@
/*global ActivityPicker */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use amd like our other modules. ie

define(function(require, exports, module) {
'use strict';

module.exports = function lah_onClick(event) {
  // ...
};

});

**What was made: **
* Move modules that provides convertion telephone numbers, emails and links to links in messages to shared component from sms.
* Add this functionality in calendar's notes.
@ruvsmirnov ruvsmirnov force-pushed the bug-856888-calendar-notes-links-clickable-provided branch from 4701c2c to 3609ecc Compare December 11, 2015 10:51
@mozilla-autolander-deprecated
Copy link
Contributor

/* global ActivityPicker */

define(function(require, exports, module) {
'use strict';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Move code inside module 2 spaces left

@julienw
Copy link
Contributor

julienw commented Dec 16, 2015

I think I'd prefer that you recreate a simpler ActivityPicker inside the Calendar app. As you see, the full ActivityPicker you moved is used for other things than only the links handler (see in apps/sms/views/conversation/js/conversation.js for example). You could even recreate it directly in link_action_handler.js.

Nowadays we can also use MozActivity like a promise, so we don't need to use onsuccess/onerror like we do in activity_picker. We can merely return Promise.resolve(new MozActivity(..)).

@cknowles-admin cknowles-admin added the ARCHIVED CLOSED at time of archiving label Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ARCHIVED CLOSED at time of archiving
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants