﻿/// <reference path="~/jquery-1.2.6-vsdoc.js"/>

$(document).ready(function() {
  $("#tblList tbody tr").quicksearch({
    labelText: 'Refine options: ',
    inputText: 'Enter your search text',
    attached: '#tblList',
    position: 'before',
    delay: 100,
    loaderText: '',
    onAfter: function() {
      if ($('#tblList tbody tr:visible').length == 0) {
         //No Items. Something fancy here.'
      }
    }
  });
});


$(document).ready(function() {
    $("#tblList2 tbody tr").quicksearch({
        labelText: 'Refine options: ',
        inputText: 'Enter your search text',
        attached: '#tblList2',
        position: 'before',
        delay: 100,
        loaderText: ''
    });
});


$(document).ready(function() {
    $("#ctl00_ContentMain_TabContainer_tabNotes_AdminContactNotes1_gvContactNotesPerson tbody tr").quicksearch({
        labelText: 'Refine options: ',
        inputText: 'Enter your text',
        attached: '#ctl00_ContentMain_TabContainer_tabNotes_AdminContactNotes1_gvContactNotesPerson',
        position: 'before',
        delay: 100,
        loaderText: ''
    });
});



$(document).ready(function() {
$("#tableOne tbody tr").quicksearch({
        labelText: 'Refine options: ',
        inputText: 'Enter your search text',
        attached: '#tableOne',
        position: 'before',
        delay: 100,
        loaderText: '',
        onAfter: function() {
            if ($("#tableOne tbody tr:visible").length != 0) {
                $("#tableOne").trigger("update");
                $("#tableOne").trigger("appendCache");
                $("#tableOne tfoot tr").hide();
            }
            else {
                $("#tableOne tfoot tr").show();
            }
        }
    });
});
