Permalink
Browse files

reset palette textbox on cancel edit

  • Loading branch information...
1 parent 88acd4e commit 2e95e2298d3b866b76e3c12a95398e84beb62c85 @lchanmann committed May 22, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 jquery.colorPicker.js
View
@@ -94,6 +94,7 @@
$.fn.colorPicker.changeColor(color ? color : element.val());
}
if (event.keyCode === 27) {
+ $(this).val(element.val());
$.fn.colorPicker.hidePalette(paletteId);
}
});

0 comments on commit 2e95e22

Please sign in to comment.