Ignore:
Timestamp:
08/26/12 22:39:02 (13 years ago)
Author:
hendrikvanantwerpen
Message:

Created widgets for several input types.
Work on multiplechoice widget, see if we can make OrderedList? work with
form items? Maybe make the item the widget iso a data item.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/store.js

    r379 r402  
    1 define(['dojo/_base/declare','dojo/_base/lang','dojo/_base/array','dojo/_base/Deferred','dojo/_base/xhr','dojo/json','dojo/store/util/QueryResults'],
    2     function(declare,lang,array,Deferred,xhr,JSON,QueryResults){
     1define(['dojo/_base/declare','dojo/_base/json','dojo/_base/lang','dojo/_base/array','dojo/_base/Deferred','dojo/_base/xhr','dojo/store/util/QueryResults'],
     2    function(declare,json,lang,array,Deferred,xhr,QueryResults){
    33   
    44        var CouchStore = declare(null, {
     
    5858                        xhr(hasId ? "PUT" : "POST", {
    5959                                    url: hasId ? this.target + id : this.target,
    60                                     postData: JSON.stringify(object),
     60                                    postData: json.toJson(object),
    6161                                    handleAs: "json",
    6262                                    headers:{
     
    193193
    194194                for (var qp in queryOpts) {
    195                     queryOpts[qp] = JSON.stringify(queryOpts[qp]);
     195                    queryOpts[qp] = json.toJson(queryOpts[qp]);
    196196                }
    197197                            query += '?' + xhr.objectToQuery(queryOpts);
Note: See TracChangeset for help on using the changeset viewer.