Changeset 760 for trunk/app/views

Show
Ignore:
Timestamp:
09/07/08 20:17:27 (2 months ago)
Author:
aarkerio
Message:

Update models

Location:
trunk/app/views/vclassrooms
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/vclassrooms/chat.ctp

    r755 r760  
    2929<script type="text/javascript"> 
    3030//<![CDATA[ 
     31 
     32setTimeout("getChatText('".<?php echo $user_id; ?>."', '".<?php echo $vclassroom_id; ?>."');",2000); 
     33 
     34// Get student total points  
     35function getChatText(user_id, vclassroom_id)  
     36{ 
     37 var url    = '/chats/messages/'+user_id +'/'+vclassroom_id; 
     38  
     39 var params = ''; 
     40 var ajax = new Ajax.Updater( 
     41                             {success: 'totalpoints'}, 
     42                              url, 
     43                             {method: 'get', parameters: params, onFailure: reportError}); 
     44 
     45} 
     46 
    3147function clean() 
    3248{ 
  • trunk/app/views/vclassrooms/show.ctp

    r753 r760  
    115115<script type="text/javascript"> 
    116116//<![CDATA[ 
     117 
    117118function chkPart() 
    118119{