Commit 2c8e95b0 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

database.js expand callLinkable

adds the target-param value to the url to specify that name of the
parameter that should be used in the url
parent 5eae6b51
...@@ -273,10 +273,12 @@ Database.prototype = { ...@@ -273,10 +273,12 @@ Database.prototype = {
callLinkable: function (linkable) { callLinkable: function (linkable) {
var href = linkable.attr('href'); var href = linkable.attr('href');
var type = linkable.data('linkable-type'); var type = linkable.data('linkable-type');
var param = linkable.data('linkable-target-param');
var name = linkable.data('linkable-name'); var name = linkable.data('linkable-name');
var sample_type = linkable.data('sample-type'); var sample_type = linkable.data('sample-type');
var args = {}; var args = {};
args[type] = name; args[type] = name;
args[param] = name;
args['type'] = sample_type; args['type'] = sample_type;
this.call(href, args); this.call(href, args);
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment