Skip to content
Fossil Changes To Cookbook
Login

Changes To Cookbook

Changes to "Cookbook" between 2010-09-24 14:35:00 and 2010-10-05 07:09:17

︙
18
19
20
21
22
23
24

25
26
27
28
29
30
31
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32







+







      <li><a href="#tinymce">TinyMCE</a></li>
      <li><a href="#markitup">markitup!</a></li>
    </ul>
  </li>
  <li><a href="#ticket-checkin-links">Link tickets to checkins</a></li>
  <li><a href="#th1-usage">Fossil and Th1</a></li>
  <li><a href="#versionCompressed">Versioning compressed files</a></li>
  <li><a href="#ColorPicker">Color selector in check-in properties</a></li>
</ul>

<h2><a name="CGI">Using <cite>Fossil</cite>'s Built-In CGI</a></h2>
<h3>Motivation</h3>
  *  You want to share a repository through your existing web infrastructure.
  *  You want to share more than one repository at the same time.

︙
916
917
918
919
920
921
922
















917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939







+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<font color="#808080">57 </font><br />
<font color="#808080">58 </font><font color="#8b4726"><b><u>:end</u></b></font><br />
<font color="#808080">59 </font><br />
<font color="#808080">60 </font><font color="#3a5fcd"><i>:: vim: fenc=cp437</i></font>
  </font>

</div>

<h2><a name="ColorPicker">Color selector in check-in properties</a></h2>
If you want a nice JS color selector in your check-in properties, put the following into your footer:

<verbatim>
<th1>
  if { "$current_page" eq "ci_edit" } {
    html "<script src=\"http://jscolor.com/jscolor/jscolor.js\" type=\"text/javascript\"></script>"
    html "<script type=\"text/javascript\">"
    html "var myPicker = new jscolor.color(document.getElementById('clrcust'), {hash:true})"
    html "</script>"
  }
</th1>
</verbatim>

This will only work with a version after 2010 Sep 29, 10:30