Author: mfranklin
Date: Thu Aug 15 12:28:37 2013
New Revision: 1514245
URL: http://svn.apache.org/r1514245
Log:
Fixed error with set pref (RAVE-1039)
Modified:
rave/trunk/rave-portal-resources/src/main/webapp/static/script/core/rave_api.js
Modified:
rave/trunk/rave-portal-resources/src/main/webapp/static/script/core/rave_api.js
URL:
http://svn.apache.org/viewvc/rave/trunk/rave-portal-resources/src/main/webapp/static/script/core/rave_api.js?rev=1514245&r1=1514244&r2=1514245&view=diff
==============================================================================
---
rave/trunk/rave-portal-resources/src/main/webapp/static/script/core/rave_api.js
(original)
+++
rave/trunk/rave-portal-resources/src/main/webapp/static/script/core/rave_api.js
Thu Aug 15 12:28:37 2013
@@ -65,8 +65,8 @@ define(['underscore', 'core/rave_ajax',
function saveWidgetPreference(args) {
ajax({
type: 'PUT',
- url: context + path + "regionWidgets/" +
args.regionWidgetId + "/preferences/" + args.userPref.prefName,
- data: JSON.stringify({"name": args.userPref.prefName,
"value": args.userPref.prefValue}),
+ url: context + path + "regionWidgets/" +
args.regionWidgetId + "/preferences/" + args.prefName,
+ data: JSON.stringify({"name": args.prefName, "value":
args.prefValue}),
contentType: 'application/json',
dataType: 'json',
success: function (result) {