Edgewall Software

Changes between Version 7 and Version 8 of TracDev/JavaScript


Ignore:
Timestamp:
Jan 27, 2013, 3:07:07 PM (11 years ago)
Author:
Christian Boos
Comment:

note about updating the TracIni settings after an upgrade (see r11576)

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/JavaScript

    v7 v8  
    3434}}}
    3535
     36==== Upgrade
     37
     38Minified versions of a given release `x.y.z` of jQuery can be found in URLs with the following pattern:
     39  `http://code.jquery.com/jquery-x.y.z.min.js`
     40
     41Don't forget to update the default value for the `jquery_location` setting. See for example r11576.
    3642
    3743=== jQuery UI
     
    3945Since Trac version 1.0, we also bundle [http://jqueryui.com jQuery UI], a set of standard UI elements.
    4046
    41 Specific releases can be downloaded from the following URLs: `http://code.jquery.com/ui/1.x.y/jquery-ui.min.js`
    42 This correspond to the minified version of the whole of jQuery UI (i.e. we don't use a subset of what is currently used by Trac on purpose, so that plugins can assume they have access to the all the jQuery UI components).
     47==== Upgrade
     48
     49A specific `x.y.z` version of the minified Javascript code can be downloaded from URLs using the following pattern:
     50
     51  `http://code.jquery.com/ui/x.y.z/jquery-ui.min.js`
     52
     53
     54This correspond to the minified version of the whole of jQuery UI i.e. we don't use a subset of what is currently used by Trac on purpose, so that plugins can assume they have access to the all the jQuery UI components.
    4355
    4456We use a custom theme for the CSS, built using the jQuery UI Theme Roller.
     
    4658
    4759
    48 ==== jQuery UI Timepicker Addon #Timepicker
     60===== jQuery UI Timepicker Addon #Timepicker
    4961
    5062We use the [http://trentrichardson.com/examples/timepicker/ Timepicker extension] for the standard jQuery UI datepicker.
    5163
    52 We get the releases from the following URLs: `https://github.com/trentrichardson/jQuery-Timepicker-Addon/tree/v1.1.1`. Get the release matching the jQuery UI version we use.
     64We get the releases from the following URLs:
     65  `https://github.com/trentrichardson/jQuery-Timepicker-Addon/tree/v1.1.1`
     66
     67Get the release matching the jQuery UI version we use.
    5368
    5469The `jquery-ui-timepicker-addon.js` file is usually compressed using the [https://developers.google.com/closure/compiler/ Google Closure Compiler], which gives good results. The minified file is saved in [source:trunk/trac/htdocs/js/jquery-ui-addons.js trac/htdocs/js/jquery-ui-addons.js].
    5570
    56 The `jquery-ui-timepicker-addon.css` file is merged with the [source:trunk/trac/htdocs/css/jquery-ui-addons.css trac/htdocs/css/jquery-ui-addons.css] file.
     71Finally, the `jquery-ui-timepicker-addon.css` file is merged with the [source:trunk/trac/htdocs/css/jquery-ui-addons.css trac/htdocs/css/jquery-ui-addons.css] file.
     72
     73===== TracIni settings
     74
     75After an upgrade, don't forget to update the default values for the `jquery_ui_location` and `jquery_ui_theme_location` settings. See for example r11576.