CRM-11137 fixed contact image to use jquery dialog
authorCiviCRM <info@civicrm.org>
Tue, 23 Jul 2013 09:19:21 +0000 (14:49 +0530)
committerCiviCRM <info@civicrm.org>
Tue, 23 Jul 2013 09:19:21 +0000 (14:49 +0530)
----------------------------------------
* CRM-11137:
  http://issues.civicrm.org/jira/browse/CRM-11137

templates/CRM/Contact/Page/ContactImage.tpl

index 1358ed7fa1cfe2152525eae34036fa38700133a4..4ffa9f91014b0b0d2d676d9646c196ab623e7962 100644 (file)
  +--------------------------------------------------------------------+
 *}
 {* This form is for displaying contact Image *}
-    <div class="crm-contact_image crm-contact_image-block">
-        <a href="#" onClick="contactImagePopUp('{$imageURL}',{$imageWidth},{$imageHeight});">
-            <img src="{$imageURL}" height = {$imageThumbHeight} width={$imageThumbWidth}>
-        </a>
-    </div>
-    {if $action eq 0 or $action eq 2}
-    <div class="crm-contact_image-block  class="crm-contact_image crm-contact_image-delete"">
-        {$deleteURL}
-    </div>
-    {/if}
-    {literal}
-    <script>
-  function contactImagePopUp(url, width, height) {
-           newwindow = window.open(url,'name', 'width='+width+', height='+height );
-        }
-    </script>
-    {/literal}
\ No newline at end of file
+<div class="crm-contact_image crm-contact_image-block">
+  <a href="{$imageURL}" class='crm-image-popup'>
+    <img src="{$imageURL}" height={$imageThumbHeight} width={$imageThumbWidth}>
+  </a>
+</div>
+{if $action eq 0 or $action eq 2}
+  <div class='crm-contact_image-block crm-contact_image crm-contact_image-delete'>{$deleteURL}</div>
+{/if}