app/soc/content/js/tips-081027.js
changeset 1018 02ffb446da6e
parent 426 114fe0f840c8
child 2025 e44de18a2f5d
equal deleted inserted replaced
1017:6ad4fdb48840 1018:02ffb446da6e
     1 $(function() {
     1 $(function() {
     2   $('tr[title]').bt();
     2   // Change 'title' to something else first
       
     3   $('tr[title]').each(function() {
       
     4     $(this).attr('xtitle', $(this).attr('title')).removeAttr('title');
       
     5   })
       
     6     .children().children(':input')
       
     7       // Set up event handlers
       
     8       .bt({trigger: ['helperon', 'helperoff'],
       
     9              titleSelector: "parent().parent().attr('xtitle')",
       
    10              killTitle: false,
       
    11              fill: 'rgba(135, 206, 250, .9)',
       
    12              positions: ['bottom', 'top', 'right'],
       
    13           })
       
    14       .bind('focus', function() {
       
    15                 $(this).trigger('helperon');
       
    16               })
       
    17       .bind('blur', function() {
       
    18                 $(this).trigger('helperoff');
       
    19               })
       
    20     .parent()
       
    21       .bind('mouseover', function() {
       
    22                 $(this).children(':input').trigger('helperon');
       
    23               })
       
    24       .bind('mouseleave', function() {
       
    25                 $(this).children(':input').trigger('helperoff');
       
    26               });
     3 });
    27 });
       
    28