Files
EasySoft-ZenTaoPMS/module/product/js/browse.js
T
2016-12-01 11:22:35 +08:00

27 lines
1016 B
JavaScript

$(function()
{
if(browseType == 'bysearch') ajaxGetSearchForm();
$('.dropdown-menu.with-search .menu-search').click(function(e)
{
e.stopPropagation();
return false;
}).on('keyup change paste', 'input', function()
{
var $input = $(this);
var val = $input.val().toLowerCase();
var $options = $input.closest('.dropdown-menu.with-search').find('.option');
if(val == '') return $options.removeClass('hide');
$options.each(function()
{
var $option = $(this);
$option.toggleClass('hide', $option.text().toString().toLowerCase().indexOf(val) < 0 && $option.data('key').toString().toLowerCase().indexOf(val) < 0);
});
});
$('.popoverStage').mouseover(function(){$(this).popover('show')});
$('.popoverStage').mouseout(function(){$(this).popover('hide')});
setTimeout(function(){fixedTfootAction('#productStoryForm')}, 100);
setTimeout(function(){fixedTheadOfList('#storyList')}, 100);
})