Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4169

CiviCRM adds surplus javascript to Drupal user profile pages

    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>

        Attachments

          Activity

            People

            • Assignee:
              shailesh Shailesh Lende
              Reporter:
              joachim Joachim Noreiko
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified