Subversion Repositories SmartDukaan

Rev

Rev 35971 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35971 Rev 37498
Line 262... Line 262...
262
        $('.dataTables_wrapper .service-mark-active').attr('data-tip', 'Mark Applicable');
262
        $('.dataTables_wrapper .service-mark-active').attr('data-tip', 'Mark Applicable');
263
        $('.dataTables_wrapper .service-mark-not-active').attr('data-tip', 'Not Applicable');
263
        $('.dataTables_wrapper .service-mark-not-active').attr('data-tip', 'Not Applicable');
264
    }
264
    }
265
 
265
 
266
    // Show tooltip on hover using event delegation (works for all rows including clones)
266
    // Show tooltip on hover using event delegation (works for all rows including clones)
-
 
267
    // Fragment is re-injected with .html(), which re-runs this script; clear the
-
 
268
    // namespace first so handlers replace rather than stack.
-
 
269
    $(document).off('.financeservices');
267
    $(document).on('mouseenter', '[data-tip]', function () {
270
    $(document).on('mouseenter.financeservices', '[data-tip]', function () {
268
        var tipText = $(this).attr('data-tip');
271
        var tipText = $(this).attr('data-tip');
269
        if (!tipText) return;
272
        if (!tipText) return;
270
 
273
 
271
        fsTooltip.text(tipText).removeClass('arrow-down arrow-up');
274
        fsTooltip.text(tipText).removeClass('arrow-down arrow-up');
272
        var rect = this.getBoundingClientRect();
275
        var rect = this.getBoundingClientRect();
Line 293... Line 296...
293
            fsTooltip.css({left: left, top: topPos});
296
            fsTooltip.css({left: left, top: topPos});
294
            fsTooltip.addClass('visible arrow-down');
297
            fsTooltip.addClass('visible arrow-down');
295
        }
298
        }
296
    });
299
    });
297
 
300
 
298
    $(document).on('mouseleave', '[data-tip]', function () {
301
    $(document).on('mouseleave.financeservices', '[data-tip]', function () {
299
        fsTooltip.removeClass('visible arrow-down arrow-up');
302
        fsTooltip.removeClass('visible arrow-down arrow-up');
300
    });
303
    });
301
 
304
 
302
    var dtable = $('#financePartnerServices').DataTable(
305
    var dtable = $('#financePartnerServices').DataTable(
303
            {
306
            {