Skip to content

Instantly share code, notes, and snippets.

.lq-autocomplete {
position: relative;
&--with-arrow {
.lq-autocomplete__input {
&:after {
position: absolute;
top: 50%;
right: 0.8rem;
width: 0;
height: 0;
import React from 'react'
import capitalize from 'lodash/capitalize'
import classNames from 'classnames'
import Input from 'react-toolbox/lib/input'
import Modifier from 'components/Form/Modifier'
import Card from 'react-toolbox/lib/card'
import { List, ListItem, ListSubHeader, ListDivider } from 'react-toolbox/lib/list'
import './styles.scss'
<?php
function calculate_row_id($log_id) {
if ($this->get_autoinc_type() == self::AUTOINC_ODD_EVEN) {
$row_id = ceil($log_id / 2) % $this->get_max_rows();
}
elseif ($this->get_autoinc_type() == self::AUTOINC_NORMAL) {
$row_id = ($log_id - 1) % $this->get_max_rows() + 1;
}
return $row_id;