mirror of
https://github.com/git/git.git
synced 2024-11-07 17:53:12 +01:00
2ae8da2552
This will modify HTML, add CSS rules and add DOM event handlers so that clicking on any date (the common part, not the localtime part) will display a drop down menu to choose the timezone to change to. Currently menu displays only the following timezones: utc local -1200 -1100 ... +1100 +1200 +1300 +1400 In timezone selection menu each timezone is +1hr to the previous. The code is capable of handling fractional timezones, but those have not been added to the menu. All changes are saved to a cookie, so page changes and closing / reopening browser retains the last known timezone setting used. [jn: Changed from innerHTML to DOM, moved to event delegation for onclick to trigger menu, added close button and cookie refreshing] Helped-by: Kevin Cernekee <cernekee@gmail.com> Signed-off-by: John 'Warthog9' Hawley <warthog9@eaglescrag.net> Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> |
||
---|---|---|
.. | ||
lib | ||
adjust-timezone.js | ||
blame_incremental.js | ||
javascript-detection.js | ||
README |
GIT web interface (gitweb) - JavaScript ======================================= This directory holds JavaScript code used by gitweb (GIT web interface). Scripts from there would be concatenated together in the order specified by gitweb/Makefile into gitweb/static/gitweb.js, during building of gitweb/gitweb.cgi (during gitweb building). The resulting file (or its minification) would then be installed / deployed together with gitweb. Scripts in 'lib/' subdirectory compose generic JavaScript library, providing features required by gitweb but in no way limited to gitweb only. In the future those scripts could be replaced by some JavaScript library / framework, like e.g. jQuery, YUI, Prototype, MooTools, Dojo, ExtJS, Script.aculo.us or SproutCore. All scripts that manipulate gitweb output should be put outside 'lib/', directly in this directory ('gitweb/static/js/'). Those scripts would have to be rewritten if gitweb moves to using some JavaScript library. See also comments in gitweb/Makefile.