Subversion Repositories oidplus

Rev

Rev 1302 | Rev 1410 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1302 Rev 1400
Line 254... Line 254...
254
                                });
254
                                });
255
                        }
255
                        }
256
                });
256
                });
257
        },
257
        },
258
 
258
 
259
        updateDesc: function() {
259
        updateDesc: function(id) {
260
                $.ajax({
260
                $.ajax({
261
                        url:"ajax.php",
261
                        url:"ajax.php",
262
                        method:"POST",
262
                        method:"POST",
263
                        beforeSend: function(jqXHR, settings) {
263
                        beforeSend: function(jqXHR, settings) {
264
                                $.xhrPool.abortAll();
264
                                $.xhrPool.abortAll();
Line 269... Line 269...
269
                        },
269
                        },
270
                        data: {
270
                        data: {
271
                                csrf_token:csrf_token,
271
                                csrf_token:csrf_token,
272
                                plugin:OIDplusPagePublicObjects.oid,
272
                                plugin:OIDplusPagePublicObjects.oid,
273
                                action:"Update",
273
                                action:"Update",
274
                                id:current_node,
274
                                id:id,
275
                                title:($("#titleedit")[0] ? $("#titleedit")[0].value : null),
275
                                title:($("#titleedit")[0] ? $("#titleedit")[0].value : null),
276
                                //description:($("#description")[0] ? $("#description")[0].value : null)
276
                                //description:($("#description")[0] ? $("#description")[0].value : null)
277
                                description:tinyMCE.get('description').getContent()
277
                                description:tinyMCE.get('description').getContent()
278
                        },
278
                        },
279
                        error: oidplus_ajax_error,
279
                        error: oidplus_ajax_error,