template cleanup
authorKurund Jalmi <kurund@civicrm.org>
Tue, 5 Mar 2013 09:58:04 +0000 (15:28 +0530)
committerKurund Jalmi <kurund@civicrm.org>
Tue, 5 Mar 2013 09:58:04 +0000 (15:28 +0530)
templates/CRM/common/activityView.tpl

index 2c61001143249795f4a204e4deb181bbdac64581..326829e83571c0325f0bbeafb2f3c8ef0cbb61ec 100644 (file)
 *}
 {literal}
 <script type="text/javascript">
-function {/literal}{$list}{literal}viewActivity( activityID, contactID, list ) {
-    if ( list ) {
-        list = "-" + list;
-    }
-
-    cj("#view-activity" + list ).show( );
+function {/literal}{$list}{literal}viewActivity(activityID, contactID, list) {
+  if (list) {
+    list = "-" + list;
+  }
 
-    cj("#view-activity" + list ).dialog({
-        title: {/literal}"{ts escape="js"}View Activity{/ts}"{literal},
-        modal: true,
-        width : "680px", // don't remove px
-        height: "560",
-        resizable: true,
-        bgiframe: true,
-        overlay: {
-            opacity: 0.5,
-            background: "black"
-        },
+  cj("#view-activity" + list ).show( );
 
-        beforeclose: function(event, ui) {
-            cj(this).dialog("destroy");
-        },
+  cj("#view-activity" + list ).dialog({
+    title: {/literal}"{ts escape="js"}View Activity{/ts}"{literal},
+    modal: true,
+    width : "680px", // don't remove px
+    height: "560",
+    resizable: true,
+    bgiframe: true,
+    overlay: {
+      opacity: 0.5,
+      background: "black"
+    },
 
-        open:function() {
-            cj("#activity-content" + list , this).html("");
-            var viewUrl = {/literal}"{crmURL p='civicrm/case/activity/view' h=0 q="snippet=4" }"{literal};
-            cj("#activity-content" + list , this).load( viewUrl + "&cid="+contactID + "&aid=" + activityID + "&type="+list);
+    beforeclose: function(event, ui) {
+      cj(this).dialog("destroy");
+    },
 
-        },
+    open:function() {
+      cj("#activity-content" + list , this).html("");
+      var viewUrl = {/literal}"{crmURL p='civicrm/case/activity/view' h=0 q="snippet=4" }"{literal};
+      cj("#activity-content" + list , this).load( viewUrl + "&cid="+contactID + "&aid=" + activityID + "&type="+list);
+    },
 
-        buttons: {
-            "{/literal}{ts escape="js"}Done{/ts}{literal}": function() {
-                cj(this).dialog("destroy");
-            }
-        }
-    });
+    buttons: {
+      "{/literal}{ts escape="js"}Done{/ts}{literal}": function() {
+        cj(this).dialog("destroy");
+      }
+    }
+  });
 }
 </script>
-{/literal}
+{/literal}
\ No newline at end of file