OKyJIucT
2/23/2016 - 10:37 AM

клик ctrl+mouse1

клик ctrl+mouse1

$(document).on('click', '.history_item', function (e) {

    var order_id = $(this).data('order_id') || 0;
    
    if (order_id == 0) {
        return;
    }

    if (e.ctrlKey == true || e.shiftKey == true || e.which == 2 || e.metaKey) {
        window.open('/order/index?order_id=' + order_id + '&from=table');
    } else {
        location.href = '/order/index?order_id=' + order_id + '&from=table';
    }

});