app/soc/content/js/tips-081027.js
author Lennard de Rijk <ljvderijk@gmail.com>
Sun, 19 Apr 2009 22:14:35 +0000
changeset 2253 ab216123bee7
parent 2025 e44de18a2f5d
permissions -rw-r--r--
Added org_home_gmap function to the map JS for displaying the mentor-student map. Patch by: Madhusudan.C.S and Merio Ferraro Reviewed by: Lennard de Rijk

$(function() {
  // Change 'title' to something else first
  $('tr[title]').each(function() {
    $(this).attr('xtitle', $(this).attr('title')).removeAttr('title');
  })
    .children().children(':input')
      // Set up event handlers
      .bt({trigger: ['helperon', 'helperoff'],
             titleSelector: "parent().parent().attr('xtitle')",
             killTitle: false,
             fill: 'rgba(135, 206, 250, .9)',
             positions: ['bottom', 'top', 'right']
          })
      .bind('focus', function() {
                $(this).trigger('helperon');
              })
      .bind('blur', function() {
                $(this).trigger('helperoff');
              })
    .parent()
      .bind('mouseover', function() {
                $(this).children(':input').trigger('helperon');
              })
      .bind('mouseleave', function() {
                $(this).children(':input').trigger('helperoff');
              });
});