});
      });
    }
    initBootstrapSwitch($('.list-view-pf-switch'));
    $('.list-view-pf').on('keydown', '.bootstrap-switch-wrapper', function (e) {
      if (e.which === 32) {
        e.preventDefault();
      }
    });
    $('.list-view-pf').on('keyup', '.bootstrap-switch-wrapper', function (e) {
      if (e.which === 13 || e.which === 32) {
        $(this).find('.list-view-pf-switch').bootstrapSwitch('toggleState');
      }
    });

    // toggle dropdown menu
    $('.list-view-pf').on('show.bs.dropd