From d75c8c57d798db89a7844032c340cefc1a81b0a6 Mon Sep 17 00:00:00 2001 From: Zach Wise Date: Tue, 15 May 2012 17:38:22 -0500 Subject: [PATCH] Style tweaks in progress --- source/js/VMM.Timeline.TimeNav.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/js/VMM.Timeline.TimeNav.js b/source/js/VMM.Timeline.TimeNav.js index a5a0c47..6ea3865 100644 --- a/source/js/VMM.Timeline.TimeNav.js +++ b/source/js/VMM.Timeline.TimeNav.js @@ -22,7 +22,7 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.TimeNav == 'undefin /* ELEMENTS ================================================== */ var $timenav, $content, $time, $timeintervalminor, $timeinterval, $timeintervalmajor, $timebackground, - $timeintervalbackground, $timenavline, $timeintervalminor_minor, $toolbar, $zoomin, $zoomout; + $timeintervalbackground, $timenavline, $timenavindicator, $timeintervalminor_minor, $toolbar, $zoomin, $zoomout; /* ADD to Config ================================================== */ @@ -746,7 +746,6 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.TimeNav == 'undefin var _largest_pos = 0; VMM.attachElement(_element_parent, ""); - _interval.date = new Date(data[0].startdate.getFullYear(), 0, 1, 0,0,0); for(var i = 0; i < Math.ceil(_interval.number) + 1; i++) { @@ -870,7 +869,6 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.TimeNav == 'undefin }; _array.push(_obj); - } VMM.Lib.width($timeintervalminor_minor, _largest_pos); @@ -895,6 +893,7 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.TimeNav == 'undefin $timeinterval = VMM.appendAndGetElement($time, "
", "time-interval"); $timebackground = VMM.appendAndGetElement(layout, "
", "timenav-background"); $timenavline = VMM.appendAndGetElement($timebackground, "
", "timenav-line"); + $timenavindicator = VMM.appendAndGetElement($timebackground, "
", "timenav-indicator"); $timeintervalbackground = VMM.appendAndGetElement($timebackground, "
", "timenav-interval-background", "
"); $toolbar = VMM.appendAndGetElement(layout, "
", "toolbar"); @@ -949,7 +948,7 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.TimeNav == 'undefin timespan = getDateFractions((data[data.length - 1].enddate) - (data[0].startdate), true); trace(timespan); calculateInterval(); - + /* DETERMINE DEFAULT INTERVAL TYPE millenium, ages, epoch, era and eon are not working yet ================================================== */