Answers.Body: <p>Turned out to be the fault of an extension called SlickNav. Once that was disabled it worked. I'll post a bug against the extension.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-16T16:53:44.750Z
Answers.Text: That might not be a bug in SlickNav. It appears to be setting the mime type correctly here: https://github.com/aghstrategies/com.aghstrategies.slicknav/blob/master/CRM/Slicknav/Page/ResponsiveAdminMenu.php#L9
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-17T14:46:12.297Z
Answers.Text: I'll leave it then - sounds like you are on the case Coleman
Answers.UserDisplayName: naomi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-16T15:59:55.550Z
Answers.LastActivityDate: 2017-01-16T15:59:55.550Z
Answers.UserDisplayName: naomi
Body: <p>When trying to edit fields on contact summary using AJAX hover method, the fields don't open up properly for editing (scroll bars are sometimes missing, and not enough space is revealed). On clicking save, I get a fatal error: "Invalid classname".</p>
  
  <p>I'm on Drupal but not using JS or CSS aggregation.</p>
  
  <p>[Edited:]</p>
  
  <p>I had thought this was due to upgrading to 4.7.15. But my dev site (same version) does not have this problem.</p>
  
  <p>[Edited to add more info]:</p>
  
  <p>In the browser console, when loading the contact record I get this error:</p>
  
  <pre><code>Refused to execute script from 'https://my.site.com/index.php?q=civicrm/ajax/responsiveadminmenu/7242/en_US/1/2ChmFGPv&amp;amp;1' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
  </code></pre>
  
  <p>Then when clicking on a field such as email or phone I get:</p>
  
  <pre><code>jquery.js:339 Uncaught SyntaxError: Unexpected token &lt;
  </code></pre>
  
  <p>These errors do not come up on the dev site so I suspect they are related.</p>
  
Tags: <drupal><upgrade><ajax>
Title: UI glitches and "Invalid Classname" error when editing summary fields via AJAX
ThreadText: # UI glitches and "Invalid Classname" error when editing summary fields via AJAX
  
  (Asked by: username_0 on 2017-01-16)
  
  When trying to edit fields on contact summary using AJAX hover method, the fields don't open up properly for editing (scroll bars are sometimes missing, and not enough space is revealed). On clicking save, I get a fatal error: "Invalid classname".
  
  I'm on Drupal but not using JS or CSS aggregation.
  
  [Edited:]
  
  I had thought this was due to upgrading to 4.7.15. But my dev site (same version) does not have this problem.
  
  [Edited to add more info]:
  
  In the browser console, when loading the contact record I get this error:
  
  ```
  Refused to execute script from 'https://my.site.com/index.php?q=civicrm/ajax/responsiveadminmenu/7242/en_US/1/2ChmFGPv&amp;1' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
  
  ```
  
  Then when clicking on a field such as email or phone I get:
  
  ```
  jquery.js:339 Uncaught SyntaxError: Unexpected token <
  
  ```
  
  These errors do not come up on the dev site so I suspect they are related.
  
  **Tags:** drupal, upgrade, ajax
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-01-16. Score: 1 | Accepted answer
  
  Turned out to be the fault of an extension called SlickNav. Once that was disabled it worked. I'll post a bug against the extension.
  
  > **Comments:**
  > **username_1**: That might not be a bug in SlickNav. It appears to be setting the mime type correctly here: https://github.com/aghstrategies/com.aghstrategies.slicknav/blob/master/CRM/Slicknav/Page/ResponsiveAdminMenu.php#L9  
  > **username_0**: I'll leave it then - sounds like you are on the case username_1  
  
  ---
  
  