CRM-13100 Suggested syntax and spelling fixes.
[civicrm-core.git] / templates / CRM / common / activityView.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.3 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 *}
26 {literal}
27 <script type="text/javascript">
28 function {/literal}{$list}{literal}viewActivity(activityID, contactID, list) {
29 if (list) {
30 list = "-" + list;
31 }
32
33 cj("#view-activity" + list ).show( );
34
35 cj("#view-activity" + list ).dialog({
36 title: {/literal}"{ts escape="js"}View Activity{/ts}"{literal},
37 modal: true,
38 width : "680px", // don't remove px
39 height: "560",
40 resizable: true,
41 bgiframe: true,
42 overlay: {
43 opacity: 0.5,
44 background: "black"
45 },
46
47 beforeclose: function(event, ui) {
48 cj(this).dialog("destroy");
49 },
50
51 open:function() {
52 cj("#activity-content" + list , this).html("");
53 var viewUrl = {/literal}"{crmURL p='civicrm/case/activity/view' h=0 q="snippet=4" }"{literal};
54 cj("#activity-content" + list , this).load( viewUrl + "&cid="+contactID + "&aid=" + activityID + "&type="+list);
55 },
56
57 buttons: {
58 "{/literal}{ts escape="js"}Done{/ts}{literal}": function() {
59 cj(this).dialog("destroy");
60 }
61 }
62 });
63 }
64 </script>
65 {/literal}