Changes between Version 5 and Version 6 of TracTweakUiPlugin


Ignore:
Timestamp:
Oct 16, 2008, 1:51:42 AM (16 years ago)
Author:
Richard Liao
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracTweakUiPlugin

    v5 v6  
    5454
    5555== Example ==
    56  * Admin Trac Tweak UI with addon javascript plugins
    57   1. Enter trac's web admin, select "TracTweakUI Admin"
    58   1. Add url path(regular expression): /newticket
    59   1. Select "/newticket", then select filter "editcc"
    60   1. Click "Load Default", and edit filter javascript, then "Save"
    61   1. Now click "New Ticket" to test the "editcc" javascript plugin.
    62   1. Screenshot of Admin
     56=== Admin Trac Tweak UI with addon javascript plugins ===
     57 1. Enter trac's '''Web Admin''', select '''TracTweakUI Admin'''
     58 1. Add url path(regular expression): '''/newticket'''
     59 1. Select '''/newticket''', then select filter '''editcc'''
     60 1. Click '''Load Default''', and edit filter javascript, then '''Save'''
     61 1. Now click '''New Ticket''' to test the '''editcc''' javascript plugin.
     62  * Screenshot of Admin
    6363   * [[Image(trac_tweakui_demo_1.png)]]
    64   1. Screenshot of editcc
     64  * Screenshot of editcc
    6565   * [[Image(trac_editcc.png)]]
    6666
    67  * Admin Trac Tweak UI with any other javascript plugins, for example, [http://plugins.jquery.com/project/ac autocomplete]
     67=== Admin Trac Tweak UI with any other javascript plugins ===
     68 1. take [http://plugins.jquery.com/project/ac autocomplete] for instance
    6869
    69    1. Prepare autocomplete directory in trac environment
    70    {{{
     70 1. Prepare autocomplete directory in trac environment
     71  {{{
    7172mkdir /path/to/trac/environment/htdocs/tractweakui/autocomplete
    7273cp main.css /path/to/trac/environment/htdocs/tractweakui/autocomplete/
     
    7879}}}
    7980
    80   1. Edit __template__.js (optional)
    81   {{{
     81 1. Edit __template__.js (optional)
     82 {{{
    8283$(document).ready(function() {
    8384        var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
     
    8687}}}
    8788
    88   1. Now, you can admin and test autocomplete javascript plugins as described above.
     89 1. Now, you can admin and test autocomplete javascript plugins as described above.
    8990 
    9091