[ckan-changes] [okfn/ckan] 30c87e: [#498] Adds options to autocomplete module for map...
GitHub
noreply at github.com
Thu Feb 28 13:24:14 UTC 2013
Branch: refs/heads/498-attach-group-to-dataset-take-2
Home: https://github.com/okfn/ckan
Commit: 30c87e4314224377eec9deb6825d8384ccd5b00e
https://github.com/okfn/ckan/commit/30c87e4314224377eec9deb6825d8384ccd5b00e
Author: John Martin <me at johnmart.in>
Date: 2013-02-28 (Thu, 28 Feb 2013)
Changed paths:
M ckan/public/base/javascript/client.js
M ckan/public/base/javascript/modules/autocomplete.js
Log Message:
-----------
[#498] Adds options to autocomplete module for mapping key/value pairs
The autocomplete module now has `data-module-key` and `data-module-label`
options which map on the JSON response like this. Example JSON AJAX response:
[
{ "a": 1, "b": 2, "c": 3 },
{ "a": 4, "b": 5, "c": 6 }
]
So, let's say the input needs to have `a` as a value but wants to use `c` as
a label within the dropdown.
Therefore: `data-module-key="a" data-module-value="c"`
:boom:
Commit: 56fd969bf87fe7bad407622c6430e31ef926997e
https://github.com/okfn/ckan/commit/56fd969bf87fe7bad407622c6430e31ef926997e
Author: John Martin <me at johnmart.in>
Date: 2013-02-28 (Thu, 28 Feb 2013)
Changed paths:
M ckan/templates/package/snippets/package_metadata_fields.html
Log Message:
-----------
[#498] Fixes dataset edit template and adds options for key/value pairs in autocomplete
Compare: https://github.com/okfn/ckan/compare/30c87e431422^...56fd969bf87f
More information about the ckan-changes
mailing list