Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.0, 2.1.2, 2.1.4, 2.1
-
Fix Version/s: 2.2.0
-
Component/s: CiviCRM Profile
-
Labels:None
Description
We use popUp function for showing images ( Custom data of type file ). We should move this function to Common.js
------ Original Post ---------------------------------
See here: http://drupal.demo.civicrm.org/user/2
Every profile added to a Drupal profile page has this extra piece of inline Javascript which as far as I can tell serves no purpose on this page:
<code>
<script type="text/javascript">
function popUp (path)
{
window.open(path,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,screenX=150,screenY=150,top=150,left=150')
}
</script>
</code>