Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Usha Matisson
Core
Commits
e69d1a1e
Commit
e69d1a1e
authored
11 years ago
by
colemanw
Browse files
Options
Downloads
Patches
Plain Diff
CRM-13863 - Cleanup note comment ajax
parent
a10432db
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Contact/Page/View/Note.php
+0
-2
0 additions, 2 deletions
CRM/Contact/Page/View/Note.php
templates/CRM/Contact/Page/View/Note.tpl
+1
-0
1 addition, 0 deletions
templates/CRM/Contact/Page/View/Note.tpl
with
1 addition
and
2 deletions
CRM/Contact/Page/View/Note.php
+
0
−
2
View file @
e69d1a1e
...
...
@@ -301,7 +301,6 @@ class CRM_Contact_Page_View_Note extends CRM_Core_Page {
*/
static
function
&
commentLinks
()
{
if
(
!
(
self
::
$_commentLinks
))
{
$deleteExtra
=
ts
(
'Are you sure you want to delete this comment?'
);
self
::
$_commentLinks
=
array
(
CRM_Core_Action
::
VIEW
=>
array
(
'name'
=>
ts
(
'View'
),
...
...
@@ -319,7 +318,6 @@ class CRM_Contact_Page_View_Note extends CRM_Core_Page {
'name'
=>
ts
(
'Delete'
),
'url'
=>
'civicrm/contact/view/note'
,
'qs'
=>
'action=delete&reset=1&cid=%%cid%%&id={id}&selectedChild=note'
,
'extra'
=>
'onclick = "if (confirm(\''
.
$deleteExtra
.
'\') ) this.href+=\'&confirmed=1\'; else return false;"'
,
'title'
=>
ts
(
'Delete Comment'
),
),
);
...
...
This diff is collapsed.
Click to expand it.
templates/CRM/Contact/Page/View/Note.tpl
+
1
−
0
View file @
e69d1a1e
...
...
@@ -178,6 +178,7 @@
+
response
[
'
values
'
][
i
].
modified_date
+
'
</td><td>
'
+
'
<a href="
'
+
urlTemplate
+
response
[
'
values
'
][
i
].
createdById
+
'
">
'
+
response
[
'
values
'
][
i
].
createdBy
+
'
</a>
'
+
'
</td><td>
'
// FIXME: attachments
+
'
</td><td>
'
+
commentAction
.
replace
(
/
{
cid
}
/g
,
response
[
'
values
'
][
i
].
createdById
).
replace
(
/
{
id
}
/g
,
response
[
'
values
'
][
i
].
id
)
+
'
</td></tr>
'
commentRows
[
'
cnote_
'
+
noteId
][
response
[
'
values
'
][
i
].
id
]
=
str
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment