Details
Description
PrototypeProvider.getAjaxOptions() in JavascriptTagLib.groovy should be modified to allow params as a map, rather than requiring a string (but still provide support for the string).
the line:
ajaxOptions << "parameters:$
"
should be replaced with:
def params = options.remove('params')
if (params instanceof Map) {
ajaxOptions << "parameters:'" +
options.remove('params').collect { k, v -> "$
=$
{v}" }.join('&') +
"'"
} else {
ajaxOptions << "parameters:'$
'"
}
To do the same functionality in DojoProvider, it seems that you would replace the following in doRemote():
attrs.params?.each
with:
if (attrs.params instanceof Map) {
attrs.params?.each
} else {
out << ",$
:''"
}
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits