CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Right-click action menu covered by Chrome's Menu
Pages: [1]

Author Topic: Right-click action menu covered by Chrome's Menu  (Read 556 times)

lee.gooding

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
    • Clear River Church
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.7
  • PHP version: 5.3
Right-click action menu covered by Chrome's Menu
May 09, 2012, 09:30:11 am
Hey everyone,

I was hoping someone might be able to help point me in the right direction for this. Currently if I right click on a contact row after a basic search both the action menu AND browser context menu will appear. Is there a way to turn off the browser's context menu so that it isn't interfering?

Thanks!

lee.gooding

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
    • Clear River Church
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.7
  • PHP version: 5.3
Re: Right-click action menu covered by Chrome's Menu
May 10, 2012, 01:33:34 pm
I figured out how to deal with this.

I created a javascript file, DisableContextMenu.js with the following code:

Code: [Select]
/*
  Disables the native context menu for the browser
*/
window.oncontextmenu = function () {
  return false;
}

Then under the template.php for my theme I added the following line at the bottom:

Code: [Select]
drupal_add_js('CustomTemplates/Scripts/DisableContextMenu.js');
Hopefully some will find this helpful.

Best,

Lee

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Right-click action menu covered by Chrome's Menu

This forum was archived on 2017-11-26.