From 0a96436a8ca441d0e3df542b4237756af1b928f1 Mon Sep 17 00:00:00 2001 From: Ned Kahvo Date: Fri, 24 Jan 2014 20:43:40 -0500 Subject: [PATCH] Refactor clear button title to a 'clearText' option for i18n --- spectrum.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spectrum.js b/spectrum.js index b0a7d72f..2b0efd75 100644 --- a/spectrum.js +++ b/spectrum.js @@ -29,6 +29,7 @@ maxSelectionSize: 7, cancelText: "cancel", chooseText: "choose", + clearText: "Clear Color Selection", preferredFormat: false, className: "", showAlpha: false, @@ -86,7 +87,7 @@ "", "", "", - "
", + "
", "
", "
", "
", @@ -315,6 +316,7 @@ hide("cancel"); }); + clearButton.attr("title", opts.clearText); clearButton.bind("click.spectrum", function (e) { e.stopPropagation(); e.preventDefault();