Changeset 20373 for events/phpframework/codeigniter/trunk/system/application/views/user/main_friends.php
- Timestamp:
- 10/01/08 17:35:19 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/codeigniter/trunk/system/application/views/user/main_friends.php
r20237 r20373 1 <script >1 <script type="text/javascript"> 2 2 /* 削除 */ 3 3 function removeFollow(id){ 4 4 if (confirm('削除してもよいですか?取り消しできません!')){ 5 $.post('<?=site_url('friendships/destroy 2')?>', {id: id, ticket: $('#ticket').val()}, removeLine, 'html');5 $.post('<?=site_url('friendships/destroy')?>', {id: id, ticket: $('#ticket').val()}, removeLine, 'json'); 6 6 }; 7 7 } 8 function removeLine(id){ 9 $('tr').remove(id); 10 count = $('span#count').text() - 1; 11 $('#count').text(count); 12 $('#side_count_friend').text(count); 8 function removeLine(data){ 9 if (data.status == 'ok') { 10 $('tr').remove(data.id); 11 count = $('span#count').text() - 1; 12 $('#count').text(count); 13 $('#side_count_friend').text(count); 14 } 15 else { 16 alert(data.html); 17 } 13 18 } 14 19 </script>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)