John Glover
9bfbce776b
[ #264 ] Fix for #264 from ckan-updates branch.
...
Uses _.defaults rather than performing an explicit
deep copy.
2012-12-10 16:57:44 +01:00
Rufus Pollock
5a322e2c7c
[#286,bugfix]: fix for case where fields array has nulls in it.
...
If passed fields = [ null, ..., ...] or [ ... , null, ...] we fail in Dataset._normalizeRecordsAndFields method because:
1. If null is first element we do not do field generation correctly because typeof(null) is object - ede211646a/src/model.js (L108)
2. We call toString on field names which fails for null ede211646a/src/model.js (L113)
2012-12-09 18:58:52 +00:00
Rufus Pollock
f093fcebfe
Merge pull request #263 from Integral/master
...
[backend/couchdb,#229]: Fixes for CouchDB sorting and filtering from @integral.
2012-12-01 06:40:01 -08: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
53a417abde
[bugfix,backend/memory][xs]: map 'number' type correctly for filter application.
2012-11-13 12:06:47 +00:00
Rufus Pollock
b89e6a8a65
Merge pull request #272 from demiurg/master
...
[view/graph][s]: Ability to extend graph options with general options - thx to @demiurg.
2012-11-10 00:44:05 -08:00
Rufus Pollock
ede211646a
[#264,bugfix,filtereditor][s]: track down and fix bug with addFilter (and hence filtereditor) - fixes #264 .
...
* Quite a subtle bug due to the fact that we were not doing a deep copy on the filter template in addFilter
2012-11-08 20:35:03 +00:00
User
c74c329c21
Added a line to document graphOptions, changed attribute access method
2012-11-08 13:02:49 -05:00
User
b501b7123c
Added ability to extend graph options with state parameter 'graphOptions'
2012-11-08 12:31:05 -05:00
Frederick Ros
24ee9fa019
Update the grid when a record is changed
...
Fixes #255
2012-11-02 22:26:45 +04:00
Frederick Ros
c7ff853acb
Fixed typo in comments
2012-11-02 22:26:45 +04:00
Rufus Pollock
98e346b270
Merge pull request #261 from sleeper/fix_typo
...
[view/slickgrid][xs]: Fixed typo in comments.
2012-10-29 02:18:09 -07:00
Daniel Beilinson
7a12003a35
undfinded _id for couchDB, 33 symbols ID generator
2012-10-29 01:43:52 +04:00
Daniel Beilinson
7e471407a3
_createDocument fixed, randomId function added
2012-10-24 23:13:28 +04:00
Frederick Ros
0aa85c9560
Update the grid when a record is changed
...
Fixes #255
2012-10-24 00:01:08 +02:00
Daniel Beilinson
b3e68c152d
couchDB broken sort and filter fixed
2012-10-23 23:06:52 +04:00
Rufus Pollock
df935091fd
[#244,view/map][m]: support for customizing rendering of map features in all ways supported by Leaflet - fixes #244 .
...
* This automatically provides support for things like custom markers via
pointToLayer etc
* Also a significant bugfix for a bug that surfaced when using different marker
(like the CircleMarker) - and which took ~30m to track down. Bug was that the
call to zoom (or, more specifically, call to getBounds) occurred before
features were added to the map and getBounds for some objects (such as
circles) requires map to exit (so you can do a projection!)
2012-10-23 00:19:59 +01:00
Rufus Pollock
80626485ce
[#223,map][xs]: small improvements to in file docs for Map view.
2012-10-22 21:39:18 +01:00
Frederick Ros
abb23cc5e3
Fixed typo in comments
2012-10-22 19:07:57 +02:00
Rufus Pollock
97dcf08780
[backend/gdocs][s]: minor improvement to support handling spreadsheet urls where #gid=xxx is missing.
2012-10-20 01:57:13 +01:00
Rufus Pollock
4aeabbe3a1
Merge branch '120-solr-backend'
2012-10-19 09:55:18 +01:00
Rufus Pollock
bc1c84944a
Merge branch 'master' of github.com:okfn/recline
2012-10-19 08:00:51 +01:00
Rufus Pollock
f6a3395b40
[#258,model][xs]: tiny bugfix for cases where fields in raw state contain a non-string - fixes #258 .
2012-10-19 07:57:47 +01:00
Rufus Pollock
dd8641ded2
[backend/csv,docs][s]: minor improvements to docs plus explicitly pass $/jQuery to module function (thanks to @acouch for the spot).
2012-10-19 07:41:11 +01:00
Rufus Pollock
59c90df391
Merge branch 'master' into 120-solr-backend
2012-10-16 21:14:09 +01:00
Frederick Ros
1cc8df020d
The slickgrid view can now be edited.
2012-10-14 20:56:25 +02:00
Rufus Pollock
75ef00182e
[#246,bugfix,slickgrid][s]: fix for issue where slickgrid view not presenting columns in order of Dataset Fields - fixes #246 .
...
Bug details: Issue was that sorting of columns was happening inside SlickGrid view even though not supposed to (no special column order had been provided). Specific issue is at following lines 4737d7ecc5/src/view.slickgrid.js (L88) :
// Order them if there is ordering info on the state
if (this.state.get('columnsOrder')) {
Problem is that state.columnsOrder is the empty array (by default) and in javascript `Boolean([])` is true.
2012-10-14 18:13:13 +01:00
Rufus Pollock
88dfa0b314
[#250,backend/ckan][s]: nicer way to do configuration of CKAN API endpoint including parsing of url - fixes #250 .
2012-10-14 17:52:29 +01:00
Rufus Pollock
046ee8c1a0
[#240,bugfix,backend/memory][s]: range filters now work as expected when one end of range is null - fixes #240 .
...
* see ticket and comments for more details
2012-10-12 22:29:55 +01:00
Rufus Pollock
7819b3b185
[#248,model][s]: normalize Field types where possible by mapping standard type aliases to default type name - fixes #248 .
...
* view.graph.js improve graph view by making sure datetime for an axis is judged by whether it is date, datetime or time not just date!
* backend.ckan.js some type conversions now done in core model so can be removed
2012-10-12 22:06:56 +01:00
Rufus Pollock
f8bcf28d14
[#242,bugfix][s]: remove filter in filtereditor now removes correct filter rather than first one - fixes #242 .
...
* Also tweak so that name of field comes before type of filter
2012-10-12 20:08:05 +01:00
Rufus Pollock
cc9389a689
[facetviewer][s]: change from dropdown and simplify styling plus make some minor fixes.
2012-10-04 07:26:19 +01:00
Rufus Pollock
1bcb163ebe
[filter,refactor][s]: remove fieldType attribute on filters as can (and should) get fieldType from model if needed.
...
* fieldType is needed now as we parse values to specific type before doing filters
* needed to correct some tests for this change
2012-10-04 07:01:41 +01:00
Rufus Pollock
9ea3b05524
[facetviewer][xs]: minor tweaks to facetviewer to remove things that aren't generic.
2012-10-03 18:47:40 +01:00
John Martin
a4e1b53c06
Fix to make clearfix work in Internet Explorer 7
2012-10-02 14:47:43 +01:00
John Martin
6ee9e98e5e
Fixes for Internet Explorer 7 and its strict JSON object modelling
2012-10-02 14:36:46 +01:00
John Martin
1e4a2760f9
Added fix js file for adding support for ECMA262-5 Array methods for browsers that don\'t support them
2012-10-02 14:20:32 +01:00
John Martin
1d931b9239
Renamed all methods called delete to remove
...
This is because Internet Explorer <= 8 has `delete` as a reserved keyword that you cannot name your methods
2012-10-02 14:10:25 +01:00
Rufus Pollock
a16dd6b2d4
[backend/ckan,bugfix][s]: map types better.
2012-10-01 16:13:34 +01:00
Rufus Pollock
1377672da2
Merge pull request #231 from domoritz/markercluster
...
[view/map][m]: Cluster markers to enable better handling of large dataset - thanks to @domoritz.
2012-09-25 07:28:22 -07:00
Rufus Pollock
98393498ab
Merge branch 'master' of github.com:okfn/recline
2012-09-25 14:29:20 +01:00
Dominik Moritz
16fc21ac03
fix popups (all popups were the same)
2012-09-25 11:49:43 +01:00
Dominik Moritz
2d26afb435
Merge branch 'master' into markercluster
...
Conflicts:
src/view.map.js
2012-09-25 11:49:16 +01:00
Rufus Pollock
d5f0b074c2
[model][xs]: tweak to _backendFromString to remove option to look up backends specified as full module pathes as this is a liable to bugs and it is not being used.
2012-09-18 22:57:44 +01:00
Michael Bauer
4954e442a3
added regex support for query
...
Added a the regex support for queries - this will also match substrings!
(change from previous behavior).
Also fixed the test vor Custom popups, since this was b0rken.
2012-09-13 16:32:36 +02:00
Michael Bauer
fbea51030b
fixes #222
...
It's quite simple obviously fields can not only be null but also
undefined....
2012-09-13 14:50:25 +02:00
Dominik Moritz
79c262e25b
update markercluster to latest version
2012-09-12 14:17:03 +01:00
Dominik Moritz
3ecd0b875b
write a test for automatic clustering and fix render issue
2012-09-12 14:10:50 +01:00
Michael Bauer
881fee5fe7
Fixes #230 - updated the feature popup code
...
The feature popup code was broken since commit
9b1bedc97c6febd236023e1ec40114ed288eecd4
2012-09-12 12:48:59 +02:00