23 Commits

Author SHA1 Message Date
Rufus Pollock
ccf60d00f0 [#316,timeline][m]: timeline now handles BC dates and has a switch to support non US dates dd/dd/dddd - fixes #316.
* upgrade timeine view to latest TimelineJS (note vendor code went in in last commit as needed to patch in this one)
  * Minor fix to TimelineJS timeline.js code (actual bug I think)
* BC (-ve years) support is provided by latest TimelineJS (raw vendor code in last commit)
* Strip out use of momentjs and just use timelinejs date parsing (various changes and tests around this)
* state option nonUSDates: true to parse dd/mm/yyyy properly
2013-08-14 22:23:46 +01:00
Dan Wilson
155ce78828 Merge pull request #354 from okfn/issue-351
Event handling cleanup
2013-05-15 02:25:43 -07:00
Dan Wilson
5122672333 Fixed date-parsing logic so that it works on oldIE. Issue #323. 2013-05-14 18:18:22 +01:00
Dan Wilson
5ef821c92a Use listenTo() rather than bind() in the views so that the events get unbound upon removal. 2013-05-14 12:43:22 +01:00
Dan Wilson
8ea1a81c0a Updated code and tests to stop recline clobbering view.el. Issue #350. 2013-05-13 18:52:37 +01:00
Dan Wilson
b72dd0fb62 Enabled strict mode, and fixed issues raised. 2013-05-13 16:53:55 +01:00
Rufus Pollock
1fc5610874 [#342,bugfix,timeline][s]: remove explicitly setting of width in JS as not the right way - fixes #342. 2013-04-16 18:24:32 +01:00
Dan Wilson
d746e87b2a Expose Timeline JS initialization options 2013-04-15 11:24:32 +01:00
Stefan Wehrmeyer
2c79d00f09 Remove weird date parsing hack to fix tests 2013-01-07 10:33:29 +01:00
Rufus Pollock
b2cd87cec4 Revert "Merge pull request #275 from citizen-cyberscience-centre/master".
This reverts commit b900581605e7612bd896e4f1bec7837784a1ebbc, reversing
changes made to 3226d8b11b1d41bdafcdab6f9ea424d3f553cbe3.
2012-11-19 12:24:06 +00:00
Daniel Lombraña González
7af166ed85 Create a Date using the Date type.
This commit fixes an error in Safari that was not working. Moment.JS was not
converting correctly a string, while with thix fix works. More info here:
http://stackoverflow.com/questions/2587345/javascript-date-parse
2012-11-13 16:00:15 +01:00
Rufus Pollock
bc414e9f8c [#212,views][s]: refactor views and tutorial so that no render call in initialize and view element can be passed in externally (fixes #212). 2012-08-15 12:33:59 +01:00
Rufus Pollock
6f78b7b1be [#211,view][s]: switch show/hide from events to explicit methods - fixes #211. 2012-08-15 10:57:58 +01:00
Rufus Pollock
d599f75e85 [model,refator][s]: reintroduce summary on Record object deprecating recordSummary on Dataset.
* Reverses change in 1dadc1106bd2dbcad4580d3889e15ac44c865f80
* Record now has fields attribute passed down from Dataset. This is needed in order to support summary method and also makes sense -- as pointed out by @zephod
* Update examples
2012-07-09 01:29:46 +01:00
Rufus Pollock
a58f5e5bb0 [#174,refactor][s]: rename currentRecords to records on Dataset. 2012-07-05 15:37:17 +01:00
Rufus Pollock
202ca2dce0 [model,bugfix][s]: correction for change introduced in last commit to move summary method from Record to Dataset.recordSummary. 2012-07-03 15:35:40 +01:00
Rufus Pollock
a58dea652f [bugfix,timeline][xs]: but VMM.debug = false inside guard for VMM being defined.
* was setting VMM.debug = false at module level but we may be including this module via recline.js but not intending to use timeline and hence not including VMM library.
2012-06-16 17:17:22 +01:00
Rufus Pollock
7b07a9558b [timeline][s]: make it easy to customize timeline info in client apps by providing convertRecord method. 2012-06-11 12:46:10 +01:00
Rufus Pollock
399172b8f4 [timeline,tweaks][xs]: tweak setting of timeline width to be more robust in different circumstances. 2012-06-10 21:08:29 +01:00
Rufus Pollock
80d3576a6c [view/timeline][s]: workarounds so that timeline can be init-ed automatically if created with a dom element.
* This means you don't have to do view.trigger('view:show') after creating if the view element already in the dom.
* Verite Timeline is a bit problematic in that it cannot be passed a dom element but insists on being passed an id it looks up.
2012-06-10 15:15:57 +01:00
Rufus Pollock
d2ce46cc42 [#152,timeline][xs]: handle null or undefined dates properly. 2012-06-10 14:23:03 +01:00
Rufus Pollock
75a6bbd80a [#152,view/timeline][s]: more robust data parsing with tests - fixes #152.
* Also discover and fix "bug" re momentjs timezone calculation and toDate.
2012-06-10 12:35:39 +01:00
Rufus Pollock
e73be69499 [refactor][s]: standardize naming of files to use '.' rather than '-' as separator. 2012-06-06 10:40:22 +01:00