app/soc/content/js/tips-081027.js
author Pawel Solyga <Pawel.Solyga@gmail.com>
Wed, 04 Mar 2009 19:31:21 +0000
changeset 1646 42b8e294792e
parent 1018 02ffb446da6e
child 2025 e44de18a2f5d
permissions -rw-r--r--
Add date postfix to the filename of each our JS or CSS files that still don't have it. Update filename changes in soc/base.html template. Patch by: Pawel Solyga Reviewed by: to-be-reviewed

$(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');
              });
});