fix cod events nastiness preventing ajax from working using patch found at https://www.drupal.org/node/2285803. wtf cod. refs #7663