web/data/cubicweb.reledit.js
branchstable
changeset 6215 759cf097f5aa
parent 5869 8a129b3a5aff
child 6264 0dcd19d89767
equal deleted inserted replaced
6214:e03808843325 6215:759cf097f5aa
    63      * @param default_value : value if the field is empty
    63      * @param default_value : value if the field is empty
    64      */
    64      */
    65     loadInlineEditionForm: function(formid, eid, rtype, role, divid, reload, vid, default_value) {
    65     loadInlineEditionForm: function(formid, eid, rtype, role, divid, reload, vid, default_value) {
    66         var args = {fname: 'reledit_form', rtype: rtype, role: role,
    66         var args = {fname: 'reledit_form', rtype: rtype, role: role,
    67                     pageid: pageid,
    67                     pageid: pageid,
    68     	            eid: eid, divid: divid, formid: formid,
    68                     eid: eid, divid: divid, formid: formid,
    69     		    reload: reload, vid: vid, default_value: default_value,
    69                     reload: reload, vid: vid, default_value: default_value,
    70     		    callback: function () {cw.reledit.showInlineEditionForm(divid);}};
    70                     callback: function () {cw.reledit.showInlineEditionForm(divid);}};
    71        jQuery('#'+divid+'-reledit').parent().loadxhtml(JSON_BASE_URL, args, 'post');
    71        jQuery('#'+divid+'-reledit').parent().loadxhtml(JSON_BASE_URL, args, 'post');
    72     }
    72     }
    73 });
    73 });