History Of Ticket f5e414efde
Not logged in
Ticket change [126fa62d57] (rid 3999) by drh on 2008-11-26 02:40:03:
  1. Appended to comment:

    drh added on 2008-11-26 02:40:03:
    Preview button similar to what is described above was added to the default ticket configuration by check-in 6bcff72d23. Existing repositories will want to import these changes. The easiest way to do this after upgrading the fossil executable to version 6bcff72d23 or later is to go to

    Setup -> Tickets -> Edit_Ticket_Page

    And there select "Revert To Default"

  2. Change resolution to "Fixed"
  3. Change status to "Fixed"
Ticket change [fef62d649e] (rid 3988) by kkinnell on 2008-11-25 20:27:46:
  1. Change comment to "The preview is especially needed on the Comments section where the user is allowed to enter wiki - which might not be rendered as expected. There already is a Preview on the "New Ticket" page. It should not be that much trouble to add the same to the "Edit Ticket" page. <hr><i>kkinnell added on 2008-11-25 20:22:28:</i><br> Here is a "cut & paste" patch for version dec2c22d9d. Setup->Tickets->Edit Ticket Page Copy the default html, and paste it into a file. Copy the patch text below, and paste it into a different file. Run "<code>patch -c <i>default file</i> <u>patch file</u></code>" Then clear out the html in the text area on the Edit Ticket Page and cut&amp;paste the patched text. The changes just adding buttons and connecting them to display areas, but it's easier to explain it in <i>diff -c</i> than it is in English. :) <nowiki><pre> *** distedit.th1 2008-11-25 14:06:08.000000000 -0600 --- prvwedit.th1 2008-11-25 14:03:41.000000000 -0600 *************** *** 60,65 **** --- 60,66 ---- wrap="virtual" class="wikiedit">$&lt;comment>&lt;/textarea>&lt;br> &lt;input type="hidden" name="eall" value="1"> &lt;input type="submit" name="aonlybtn" value="Append Remark"> + &lt;input type="submit" name="prevw1btn" value="Preview"> &lt;th1>enable_output [expr {!$eall}]&lt;/th1> Append Remark from &lt;input type="text" name="username" value="$&lt;username>" size="30">:&lt;br> *************** *** 67,73 **** --- 68,92 ---- wrap="virtual" class="wikiedit">$&lt;cmappnd>&lt;/textarea>&lt;br> &lt;th1>enable_output [expr {[hascap w] && !$eall}]&lt;/th1> &lt;input type="submit" name="eallbtn" value="Edit All"> + &lt;input type="submit" name="prevw2btn" value="Preview"> &lt;th1>enable_output 1&lt;/th1> + + &lt;th1>enable_output [info exists prevw1btn]&lt;/th1> + &lt;tr>&lt;td colspan="2"> + Description Preview:&lt;br>&lt;hr> + &lt;th1>wiki $comment&lt;/th1> + &lt;hr> + &lt;/td>&lt;/tr> + &lt;th1>enable_output 1&lt;/th1> + + &lt;th1>enable_output [info exists prevw2btn]&lt;/th1> + &lt;tr>&lt;td colspan="2"> + Description Preview:&lt;br>&lt;hr> + &lt;th1>wiki $cmappnd&lt;/th1> + &lt;hr> + &lt;/td>&lt;/tr> + &lt;th1>enable_output 1&lt;/th1> + &lt;/td>&lt;/tr> &lt;tr>&lt;td align="right">&lt;/td>&lt;td> &lt;input type="submit" name="submit" value="Submit Changes"> </pre></nowiki> Hrm. I wish I'd had the preview before I submitted this; I would've realized I need to change all of those '&lt;' chars into '&amp;lt;' sequences."
Ticket change [76ec5831b8] (rid 3987) by kkinnell on 2008-11-25 20:22:28:
  1. Appended to comment:

    kkinnell added on 2008-11-25 20:22:28:
    Here is a "cut & paste" patch for version dec2c22d9d.

    Setup->Tickets->Edit Ticket Page

    Copy the default html, and paste it into a file.

    Copy the patch text below, and paste it into a different file.

    Run "patch -c default file patch file"

    Then clear out the html in the text area on the Edit Ticket Page and cut&paste the patched text.

    The changes just adding buttons and connecting them to display areas, but it's easier to explain it in diff -c than it is in English. :)

    *** distedit.th1        2008-11-25 14:06:08.000000000 -0600
    --- prvwedit.th1        2008-11-25 14:03:41.000000000 -0600
    ***************
    *** 60,65 ****
    --- 60,66 ----
         wrap="virtual" class="wikiedit">$<comment></textarea>
    <input type="hidden" name="eall" value="1"> <input type="submit" name="aonlybtn" value="Append Remark"> + <input type="submit" name="prevw1btn" value="Preview"> <th1>enable_output [expr {!$eall}]</th1> Append Remark from <input type="text" name="username" value="$<username>" size="30">:
    *************** *** 67,73 **** --- 68,92 ---- wrap="virtual" class="wikiedit">$<cmappnd></textarea>
    <th1>enable_output [expr {[hascap w] && !$eall}]</th1> <input type="submit" name="eallbtn" value="Edit All"> + <input type="submit" name="prevw2btn" value="Preview"> <th1>enable_output 1</th1> + + <th1>enable_output [info exists prevw1btn]</th1> + + Description Preview:

    + <th1>wiki $comment</th1> +
    + + <th1>enable_output 1</th1> + + <th1>enable_output [info exists prevw2btn]</th1> + + Description Preview:

    + <th1>wiki $cmappnd</th1> +
    + + <th1>enable_output 1</th1> + <input type="submit" name="submit" value="Submit Changes">
    HTH
  2. Change resolution to "Drive_By_Patch"
  3. Change severity to "Minor"
Ticket change [14656a3cb8] (rid 3830) by drh on 2008-11-16 13:47:33:
  1. Change comment to "The preview is especially needed on the Comments section where the user is allowed to enter wiki - which might not be rendered as expected. There already is a Preview on the "New Ticket" page. It should not be that much trouble to add the same to the "Edit Ticket" page."
  2. Change status to "Open"
  3. Change title to "Need a "Preview" button when editing a ticket"
  4. Change type to "Feature_Request"