+// $(this).replaceWith( content );
+
+ var name = $('table tr th:nth('+x+') > a').text();
+ console.info( x, y, _row_id, name, content );
+
+ var update = $(this);
+
+ $.post( '/data/edit', {
+ path: document.title, _row_id: _row_id,
+ name: name, content: content
+ } , function(data, textStatus) {
+ if ( data.length == 0 ) data = content; // 304 doesn't return content
+ console.debug( 'data:', data, 'status:', textStatus );
+ var vals = data.split('¶');
+ data = vals.join('<span class=d>¶</span>');
+ update.replaceWith( data );
+ });