ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

pmsg.js
Go to the documentation of this file.
1
6 if( !ultimix )
7 {
8 ultimix = {};
9 }
10
16 if( !ultimix.pmsg )
17 {
18 ultimix.pmsg = {};
19 }
20
30 ultimix.pmsg.SetRead = function( Id )
31 {
32 Success = function( Response )
33 {
34 jQuery( '#record_view_opener_' + Id + '_in' ).children().removeClass( 'not_read' );
35 jQuery( '#record_view_opener_' + Id + '_in' ).children().addClass( 'read' );
36 }
37
38 if( jQuery( '#record_view_opener_' + Id + '_in' ).children().hasClass( 'not_read' ) )
39 {
40 Data = { 'package_name' : 'pmsg::pmsg_controller' , 'action' : 'set_read' , 'pmsg_read' : 1 , 'id' : Id };
41 ultimix.DirectController( Data , Success , { 'async' : true } );
42 }
43 }