console.log(row)
}
function onDrop(table, row) {
- console.log(table)
- console.log(row)
+ var row_ids = $.map(table.tBodies[0].rows, function(r) { return r.id} )
+ var row_id = row.id
+ var form = $(table).closest('form')[0]
+ JsHttpRequest.request(this, form);
+
}
var inserts = {
'#item_schedule table': function (e) {
- // We can't use e directly because we need a JQUery Object to call tableDnD
-
- $('#item_schedule table').tableDnD({onDragStart: onDragStart, onDrop: onDrop})
+ $(e).tableDnD({onDragStart: onDragStart, onDrop: onDrop})
}
}
Behaviour.register(inserts);