Lines Matching refs:data
185 data: {node: id},
186 success: function(data, textStatus, request) {
191 .data('source', data.source);
193 if (data.comments.length === 0) {
195 ul.data('empty', true);
198 var comments = sortComments(data.comments);
199 speed = data.comments.length * 100;
201 ul.data('empty', false);
235 data: {
241 success: function(data, textStatus, error) {
251 if (ul.data('empty')) {
253 ul.data('empty', false);
255 insertComment(data.comment);
280 // To avoid stagnating data, don't store the comments children in data.
282 div.data('comment', this);
293 // To avoid stagnating data, don't store the comments children in data.
295 div.data('comment', comment);
324 data: {id: id},
325 success: function(data, textStatus, request) {
339 data: {id: id},
340 success: function(data, textStatus, request) {
342 if (data == 'delete') {
358 var comment = div.data('comment');
361 div.data('comment', comment);
385 textarea.val(textarea.data('source'));
443 // The data to be sent to the server.
456 var data = div.data('comment');
460 if ((d.value !== 0) && (data.vote === d.value * -1)) {
465 // Update the comments rating in the local data.
466 data.rating += (data.vote === 0) ? d.value : (d.value - data.vote);
467 data.vote = d.value;
468 div.data('comment', data);
472 .text(data.rating + ' point' + (data.rating == 1 ? '' : 's'));
478 data: d,
546 var comment = $(this).data('comment');