Changeset 3274
- Timestamp:
- 02/26/08 13:11:22 (9 months ago)
- Files:
-
- revtreeplugin/0.11/revtree/htdocs/js/svgtip.js (modified) (8 diffs)
- revtreeplugin/0.11/revtree/templates/revtree.html (modified) (1 diff)
- revtreeplugin/0.11/setup.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
revtreeplugin/0.11/revtree/htdocs/js/svgtip.js
r2815 r3274 10 10 11 11 var jttimer = null; 12 function JT_init(){ 12 13 (function($){ 14 15 window.JT_init = function(){ 13 16 $('a[@id^=rev]').hover(function(){JT_show(this)}, 14 17 function(){jttimer=setTimeout("JT_remove();", 250);}); 15 18 } 16 19 17 function JT_cancel() {20 window.JT_cancel = function() { 18 21 if (jttimer) { 19 22 clearTimeout(jttimer); … … 22 25 } 23 26 24 function JT_remove() {27 window.JT_remove = function() { 25 28 var jt = $('#JT'); 26 if ( jt ) { jt.remove(); }29 if ( jt ) { jt.remove(); } 27 30 var jt_connect = $('#JT_connect'); 28 31 if ( jt_connect ) { jt_connect.remove(); } 29 32 } 30 33 31 function JT_hide() {34 window.JT_hide = function() { 32 35 JT_cancel(); 33 36 JT_remove(); 34 37 } 35 38 36 function JT_show(object) {39 window.JT_show = function(object) { 37 40 if ( $('#JT') ) { 38 41 JT_hide(); … … 117 120 } 118 121 119 function updateJT(data) {122 window.updateJT = function(data) { 120 123 // cannot use innerHTML with jQuery ($('#JT_copy').innerHTML) 121 124 var copy = document.getElementById('JT_copy'); … … 124 127 } 125 128 126 function getSvgPosition(objectId) {129 window.getSvgPosition = function(objectId) { 127 130 // The following loop could be simplified to use JQuery 128 131 // JQuery has some trouble with XML documents for now … … 176 179 } 177 180 178 function findPos(obj) {181 window.findPos = function(obj) { 179 182 var curleft = curtop = 0; 180 183 if (obj.offsetParent) { … … 189 192 } 190 193 191 function posLeft() {194 window.posLeft = function() { 192 195 return typeof window.pageXOffset != 'undefined' ? 193 196 window.pageXOffset : … … 198 201 } 199 202 200 function posTop() {203 window.posTop = function() { 201 204 return typeof window.pageYOffset != 'undefined' ? 202 205 window.pageYOffset : … … 206 209 document.body.scrollTop ? document.body.scrollTop : 0; 207 210 } 211 212 })(jQuery); 213 revtreeplugin/0.11/revtree/templates/revtree.html
r2158 r3274 15 15 <title>${rt.title}</title> 16 16 <script type="text/javascript"> 17 function updateLimits() { 18 $('#period').enable($('#limperiod').checked()); 19 $('#revmin').enable($('#limrev').checked()); 20 $('#revmax').enable($('#limrev').checked()); 21 } 22 $(document).ready(function() { 17 18 (function($){ 19 window.updateLimits = function() { 20 $('#period').enable($('#limperiod').checked()); 21 $('#revmin').enable($('#limrev').checked()); 22 $('#revmax').enable($('#limrev').checked()); 23 } 24 })(jQuery); 25 jQuery(document).ready(function($) { 23 26 $("#limits input[@name='limits']").click(function() { 24 27 updateLimits(); 25 });26 JT_init();27 updateLimits();28 // the following function is required for Safari to operate properly29 $(window).unload(function(){JT_hide()});28 }); 29 JT_init(); 30 updateLimits(); 31 // the following function is required for Safari to operate properly 32 $(window).unload(function(){JT_hide()}); 30 33 }); 31 34 </script> revtreeplugin/0.11/setup.py
r2920 r3274 16 16 17 17 PACKAGE = 'TracRevtreePlugin' 18 VERSION = '0.5.1 3'18 VERSION = '0.5.14' 19 19 20 20 setup ( … … 27 27 url='http://trac-hacks.org/wiki/RevtreePlugin', 28 28 keywords = "trac revision svg graphical tree browser visual", 29 install_requires = [ 'Trac>=0.11dev-r6 363', 'Trac<0.12'],29 install_requires = [ 'Trac>=0.11dev-r6572', 'Trac<0.12'], 30 30 packages = find_packages(exclude=['ez_setup', '*.tests*', '*.enhancers.*']), 31 31 package_data={
