Files
EasySoft-ZenTaoPMS/module/common/view/tablesorter.html.php
shiyangyangwork@yahoo.cn d37e9d4a7a * finish the task #509.
2011-09-08 08:14:18 +00:00

37 lines
1.0 KiB
PHP

<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<?php
js::import($jsRoot . 'jquery/tablesorter/min.js');
js::import($jsRoot . 'jquery/tablesorter/metadata.js');
?>
<script language='javascript'>
$(function() {
$('.tablesorter').tablesorter(
{
widgets: ['zebra'],
widgetZebra: {css: ['odd', 'even'] }
}
);
$('.tablesorter tbody tr').hover(
function(){$(this).addClass('hoover')},
function(){$(this).removeClass('hoover')}
);
/* IE6下面click事件和colorbox冲突。暂时去除该功能。*/
if($.browser.msie && Math.floor(parseInt($.browser.version)) == 6) return;
$('.tablesorter tbody tr').click(
function()
{
if($(this).attr('class').indexOf('clicked') > 0)
{
$(this).removeClass('clicked');
}
else
{
$(this).addClass('clicked');
}
}
);
});
</script>