Public feed
#889245
41 function otherstuff(e) 42 { 43 var ele = Event.element(e); 44 var id= ele.id.match(/^tournament_approve_(.*)$/)[1]; 45 var effect1 = new Effect.Highlight(ele.up('td'), {queue: {scope: SCOPE}}); 46 new Ajax.Request('<?php echo url_for('admin_tournament/approveone') ?>', { 47 method: 'post', 48 parameters: { tpe_id: id, value: ele.checked }, 49 onFailure: function () { 50 effect1.Stop(); 51 console.log('error?'); 52 new Effect.Highlight(ele.up('td'), { startcolor: '#ff0000', queue: {scope: SCOPE, position: 'end'} }); 53 } 54 }); 55 }