big @mentions update
1. switched from autocomplete.js to jquery-textcomplete 2. style update 3. Allow mentioning by ign OR display name 4. display names can be two words and separated by a space 5. display names can be all characters, except a few special ones (punctuation etc) 6. Wildcard characters are escaped in SQL 7. Suggestions are html escaped 8. Suggestions have a timeout of 300ms, so the query is made after you stopped typing
This commit is contained in:
@@ -3,4 +3,5 @@
|
||||
*= require style.css
|
||||
*= require mobi.css
|
||||
*= require highlight/default.css
|
||||
*= require jquery-textcomplete
|
||||
*/
|
||||
@@ -485,20 +485,24 @@ blockquote p {
|
||||
display: none;
|
||||
padding: 4em 1em 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.suggestions {
|
||||
background: #ddd;
|
||||
padding: 0.5em;
|
||||
ul.dropdown-menu {
|
||||
background-color: #fff;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
|
||||
.name {
|
||||
display: inline-block;
|
||||
font-style: italic;
|
||||
padding: 1px 2px;
|
||||
margin-right: 1em;
|
||||
border: 1px solid #6cf;
|
||||
border-radius: 4px;
|
||||
font-weight: bold;
|
||||
}
|
||||
li.textcomplete-item {
|
||||
padding: 0.5em 1em;
|
||||
border: none;
|
||||
|
||||
&.active, &:hover {
|
||||
background-color: #6cf;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user