Index: trunk/extensions/SemanticMediaWiki/skins/SMW_timeline.js |
— | — | @@ -4,9 +4,9 @@ |
5 | 5 | */ |
6 | 6 | |
7 | 7 | addEvent(window, "load", smw_timeline_init); |
8 | | -addEvent(window, "resize", onResize); |
| 8 | +//addEvent(window, "resize", onResize); |
9 | 9 | |
10 | | -var tl; |
| 10 | +var smwtl; |
11 | 11 | |
12 | 12 | //addOnLoadHook(smw_timeline_init); |
13 | 13 | |
— | — | @@ -119,7 +119,7 @@ |
120 | 120 | }) |
121 | 121 | } |
122 | 122 | |
123 | | - tl = Timeline.create(div, bandInfos); |
| 123 | + smwtl = Timeline.create(div, bandInfos); |
124 | 124 | } |
125 | 125 | |
126 | 126 | function smw_get_bandwidth(number,count) { |
— | — | @@ -254,12 +254,13 @@ |
255 | 255 | evs._events.add(evt); |
256 | 256 | } |
257 | 257 | |
| 258 | +//FIXME: Not used at the moment. Is this needed? |
258 | 259 | var resizeTimerID = null; |
259 | 260 | function onResize() { |
260 | 261 | if (resizeTimerID == null) { |
261 | 262 | resizeTimerID = window.setTimeout(function() { |
262 | 263 | resizeTimerID = null; |
263 | | - tl.layout(); |
| 264 | + smwtl.layout(); |
264 | 265 | }, 500); |
265 | 266 | } |
266 | 267 | } |