fixed broken desaturate button

This commit is contained in:
Bala Clark 2011-09-01 00:43:36 +02:00
parent bd719688de
commit 3c14fa09fc

View file

@ -249,7 +249,7 @@ function ComicBook(id, srcs, opts) {
ComicBook.prototype.enhance.sharpen({ amount: ui.value }); ComicBook.prototype.enhance.sharpen({ amount: ui.value });
} }
})) }))
.append("<input type='checkbox' id='cb-desaturate' /> <label for='desaturate'>Desaturate</label>") .append("<input type='checkbox' id='cb-desaturate' /> <label for='cb-desaturate'>Desaturate</label>")
.append("<button id='reset' style='display:block'>reset</button>") .append("<button id='reset' style='display:block'>reset</button>")
.css({ .css({
position: "absolute", position: "absolute",
@ -288,7 +288,7 @@ function ComicBook(id, srcs, opts) {
.after(this.getControl("navigation").right) .after(this.getControl("navigation").right)
.after(this.getControl("color").hide()); .after(this.getControl("color").hide());
$("#desaturate").click(function(){ $("#cb-desaturate").click(function(){
if ($(this).is(":checked")) { if ($(this).is(":checked")) {
ComicBook.prototype.enhance.desaturate(); ComicBook.prototype.enhance.desaturate();
} else { } else {