You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by mf...@apache.org on 2013/08/15 14:28:37 UTC
svn commit: r1514245 -
/rave/trunk/rave-portal-resources/src/main/webapp/static/script/core/rave_api.js
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) {