Changes between Version 4 and Version 5 of TracTweakUiPlugin


Ignore:
Timestamp:
Oct 15, 2008, 5:58:45 AM (16 years ago)
Author:
Richard Liao
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracTweakUiPlugin

    v4 v5  
    5454
    5555== Example ==
    56  * Admin Trac Tweak UI
     56 * Admin Trac Tweak UI with addon javascript plugins
    5757  1. Enter trac's web admin, select "TracTweakUI Admin"
    5858  1. Add url path(regular expression): /newticket
     
    6060  1. Click "Load Default", and edit filter javascript, then "Save"
    6161  1. Now click "New Ticket" to test the "editcc" javascript plugin.
    62  * Screenshot
    63   * [[Image(trac_tweakui_demo_1.png)]]
     62  1. Screenshot of Admin
     63   * [[Image(trac_tweakui_demo_1.png)]]
     64  1. Screenshot of editcc
     65   * [[Image(trac_editcc.png)]]
     66
     67 * Admin Trac Tweak UI with any other javascript plugins, for example, [http://plugins.jquery.com/project/ac autocomplete]
     68
     69   1. Prepare autocomplete directory in trac environment
     70   {{{
     71mkdir /path/to/trac/environment/htdocs/tractweakui/autocomplete
     72cp main.css /path/to/trac/environment/htdocs/tractweakui/autocomplete/
     73cp jquery.autocomplete.css /path/to/trac/environment/htdocs/tractweakui/autocomplete/
     74cp jquery.autocomplete.js /path/to/trac/environment/htdocs/tractweakui/autocomplete/
     75cp jquery.bgiframe.min.js /path/to/trac/environment/htdocs/tractweakui/autocomplete/
     76cp indicator.gif /path/to/trac/environment/htdocs/tractweakui/autocomplete/
     77touch /path/to/trac/environment/htdocs/tractweakui/autocomplete/__template__.js
     78}}}
     79
     80  1. Edit __template__.js (optional)
     81  {{{
     82$(document).ready(function() {
     83        var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
     84        $("#field-cc").autocomplete(months);
     85});
     86}}}
     87
     88  1. Now, you can admin and test autocomplete javascript plugins as described above.
     89 
    6490
    6591== Recent Changes ==