border-right
doesn't work if used on posts with mentions, border-left
is ok
parent
ef326b4c8f
commit
9acda86301
1 changed files with 8 additions and 8 deletions
16
Plugins.md
16
Plugins.md
|
@ -41,14 +41,14 @@ You can use the embeded jQuery too, here for example a plugin which lets you mar
|
||||||
|
|
||||||
``` js
|
``` js
|
||||||
$("ol").delegate('a', 'click dblclick', function(e) {
|
$("ol").delegate('a', 'click dblclick', function(e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}).delegate('li', 'dblclick', function(e) {
|
}).delegate('li', 'dblclick', function(e) {
|
||||||
var li = $(this);
|
var li = $(this);
|
||||||
if(li.hasClass("selected")) {
|
if(li.hasClass("selected")) {
|
||||||
li.removeClass("selected");
|
li.removeClass("selected");
|
||||||
} else {
|
} else {
|
||||||
li.addClass("selected");
|
li.addClass("selected");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -56,6 +56,6 @@ And add this to your CSS plugin file.
|
||||||
|
|
||||||
``` css
|
``` css
|
||||||
.selected {
|
.selected {
|
||||||
border-right: 5px solid green;
|
border-left: 5px solid green;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Reference in a new issue