*/
var _row_id = $(this).parent().parent().attr('title');
- var x = $(this).parent().attr('cellIndex');
- var y = $(this).parent().parent().attr('rowIndex');
+ var x = $(this).parent().index();
+ var y = $(this).parent().parent().index();
+
+ if ( x == null || y == null ) {
+ console.error('no x ', x, ' or y ', y, ' defined');
+ return;
+ }
var new_content = $(this).val();
// $(this).replaceWith( new_content );
if ( ! data ) {
data = new_content; // fallback to submited data for 304
} else {
- if ( $('a.save_actions').length == 0 )
- $('a.actions').before('<a class=save_actions href="/data/save">save</a>')
+ $('span.save_actions').show();
}
var vals = data.split('¶');
data = vals.join('<span class=d>¶</span>');