Ticket #4904: mythweb-ticket_4904-hover_timer_for_listings_details.patch

File mythweb-ticket_4904-hover_timer_for_listings_details.patch, 1.7 KB (added by sphery <mtdean@…>, 12 years ago)
  • mythweb/modules/tv/tmpl/default/list_cell_program.php

     
    1212    // Start printing the link to record this show
    1313        echo '<a id          = "program-'.$program->chanid.'-'.$program->starttime.'"
    1414                 class       = "program"
    15                  onmouseover = "currently_hovered_id = this.id; load_tool_tip(\'program-'.$program->chanid.'-'.$program->starttime.'\',\''.$program->chanid.'\',\''.$program->starttime.'\');"
    16                  onmouseout  = "currently_hovered_id = null;"
     15                 onmouseover = "currently_hovered_id = this.id; details_delay_timer_id = setTimeout(function () {load_tool_tip(\'program-'.$program->chanid.'-'.$program->starttime.'\',\''.$program->chanid.'\',\''.$program->starttime.'\');}, 250);"
     16                 onmouseout  = "currently_hovered_id = null; clearTimeout( details_delay_timer_id ); details_delay_timer_id = null;"
    1717                 href        = "'.root.'tv/detail/'.$program->chanid.'/'.$program->starttime.'">';
    1818    // Is this program 'Already in Progress'?
    1919        if ($program->starttime < $GLOBALS['list_starttime'])
  • mythweb/modules/tv/tmpl/default/list.php

     
    6868    }
    6969
    7070    var currently_hovered_id = null;
     71    var details_delay_timer_id = null;
    7172
    7273    function attempt_to_show_tip(element) {
    7374        if (element == currently_hovered_id)