mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-11-02 09:58:50 -06:00
[PATCH] Upstream patch - 17122022
This commit is contained in:
1 parent
835f3622d4
commit
1421f78df5
12 files changed
+3866
-270
No files matched your search
@@ -7,6 +7,7 @@ var core = require('web.core');
|
||||
var datepicker = require('web.datepicker');
|
||||
|
||||
var _t = core._t;
|
||||
const urlRegExp = /http(s)?:\/\/(www\.)?[a-zA-Z0-9@:%_+~#=~#?&/=\-;!.]{3,2000}/g;
|
||||
|
||||
ActivityMenu.include({
|
||||
events: _.extend({}, ActivityMenu.prototype.events, {
|
||||
@@ -41,7 +42,7 @@ ActivityMenu.include({
|
||||
* @private
|
||||
*/
|
||||
_saveNote: function () {
|
||||
var note = this.$('.o_note_input').val().trim();
|
||||
var note = this.$('.o_note_input').val().replace(urlRegExp, '<a href="$&">$&</a>').trim();
|
||||
if (! note) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user