('.list-view-pf-value').text(stateVal ? 'Enabled' : 'Disabled');
    }

    function setValues($row, titleVal, typeVal, stateVal) {
      $row.find('.list-view-pf-title').val(titleVal);
      $row.find('select.list-view-pf-type').selectpicker('val', typeVal);
      $row.find('.list-view-pf-state').bootstrapSwitch('state', stateVal, true);
    }

    $('.list-view-pf').on('click', '.list-view-pf-save', function (e) {
      var $row = $(this).closest('.list-view-pf-editable');
      var $title = $row.find('.l