18 18 <li><a href="#tinymce">TinyMCE</a></li>
19 19 <li><a href="#markitup">markitup!</a></li>
20 20 </ul>
21 21 </li>
22 22 <li><a href="#ticket-checkin-links">Link tickets to checkins</a></li>
23 23 <li><a href="#th1-usage">Fossil and Th1</a></li>
24 24 <li><a href="#versionCompressed">Versioning compressed files</a></li>
25 + <li><a href="#ColorPicker">Color selector in check-in properties</a></li>
25 26 </ul>
26 27
27 28 <h2><a name="CGI">Using <cite>Fossil</cite>'s Built-In CGI</a></h2>
28 29 <h3>Motivation</h3>
29 30 * You want to share a repository through your existing web infrastructure.
30 31 * You want to share more than one repository at the same time.
31 32
................................................................................
916 917 <font color="#808080">57 </font><br />
917 918 <font color="#808080">58 </font><font color="#8b4726"><b><u>:end</u></b></font><br />
918 919 <font color="#808080">59 </font><br />
919 920 <font color="#808080">60 </font><font color="#3a5fcd"><i>:: vim: fenc=cp437</i></font>
920 921 </font>
921 922
922 923 </div>
924 +
925 +<h2><a name="ColorPicker">Color selector in check-in properties</a></h2>
926 +If you want a nice JS color selector in your check-in properties, put the following into your footer:
927 +
928 +<verbatim>
929 +<th1>
930 + if { "$current_page" eq "ci_edit" } {
931 + html "<script src=\"http://jscolor.com/jscolor/jscolor.js\" type=\"text/javascript\"></script>"
932 + html "<script type=\"text/javascript\">"
933 + html "var myPicker = new jscolor.color(document.getElementById('clrcust'), {hash:true})"
934 + html "</script>"
935 + }
936 +</th1>
937 +</verbatim>
938 +
939 +This will only work with a version after 2010 Sep 29, 10:30