Commit 7497dff9 authored by Akikonata's avatar Akikonata

fixed icon bug

parent 6d8c0fcd
...@@ -60,11 +60,7 @@ ...@@ -60,11 +60,7 @@
$w.on("click", "li", function () { $w.on("click", "li", function () {
var $this = $(this); var $this = $(this);
$this.siblings().removeClass("active"); $this.siblings().removeClass("active");
$this.toggleClass("active");
var val = $this.val(); var val = $this.val();
if (!$this.hasClass("active")) {
val = null;
}
var type = $this.attr("type"); var type = $this.attr("type");
km.execCommand(type, val); km.execCommand(type, val);
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment