Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var $table = form.find('table');
- var appendSponsorItem = function(event) {
- var t = $(event.target);
- if (t.is('.empty-gap')) {
- $("#new_sponsor_table>tbody>tr").clone(true).insertBefore("#empty_table_item_gap");
- return false;
- }else if(t.is('.delete')) {
- t.parents('tr')
- .find('.should_destroy')
- .val(1)
- .end()
- .hide();
- return false;
- }
- return true;
- }
- $table.bind('click', appendSponsorItem);
Add Comment
Please, Sign In to add comment