/* 未能缩小。正在返回未缩小的内容。
(1,1): run-time error CSS1019: Unexpected token, found '$'
(1,2): run-time error CSS1019: Unexpected token, found '('
(1,12): run-time error CSS1031: Expected selector, found '('
(1,12): run-time error CSS1025: Expected comma or open brace, found '('
(22,2): run-time error CSS1019: Unexpected token, found ')'
 */
$(function () {
    var hammer = new Hammer($('.more-list-row')[0]);
    hammer.on('swipeleft swiperight', function (e) {
        console.log(e);
        var $button;
        if (e.type === 'swipeleft') {
            $button = $('.PagedList-skipToNext:not(.disabled)');
            if (!$button.length) {
                alert('没有下一页了！');
            }
        }
        else if (e.type === 'swiperight') {
            $button = $('.PagedList-skipToPrevious:not(.disabled)');
            if (!$button.length) {
                alert('没有上一页了！');
            }
        }
        if ($button) {
            $button.find('a')[0].click();
        }
    });
});

