app/assets/javascripts/has_accounts_engine/cyt.js
// Linkify containers having attribute data-href-container
Linkify containers having attribute data-href-container
Linkify containers having attribute data - href - container
function addLinkifyContainersBehaviour() {
  var elements = $('*[data-href-container]');
  elements.each(function() {
    var element = $(this);
    var container = element.closest(element.data('href-container'));
    container.css('cursor', "pointer");
    container.addClass('linkified_container')
    var href = element.attr('href');
    element.addClass('linkified_element')
    container.delegate('*', 'click', {href: href}, function(event) {
      if (event.target.nodeName != 'A' && $(event.target).parents('a').length == 0) {
        document.location.href = href;
      };
    });
  });
}
function addLinkifyContainersBehaviour ( ) { var elements = $ ( '*[data-href-container]' ) ; elements . each ( function ( ) { var element = $ ( this ) ; var container = element . closest ( element . data ( 'href-container' ) ) ; container . css ( 'cursor' , "pointer" ) ; container . addClass ( 'linkified_container' ) var href = element . attr ( 'href' ) ; element . addClass ( 'linkified_element' ) container . delegate ( '*' , 'click' , { href : href } , function ( event ) { if ( event . target . nodeName != 'A' && $ ( event . target ) . parents ( 'a' ) . length == 0 ) { document . location . href = href ; } ; } ) ; } ) ; }
Linkify containers having attribute data-href-container
Linkify containers having attribute data - href - container
// Don't override original link behaviour