ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

change_history_view.js
Go to the documentation of this file.
1
6 if( !ultimix )
7 {
8 ultimix = {};
9 }
10
16 if( !ultimix.change_history_view )
17 {
18 ultimix.change_history_view = {};
19 }
20
30 ultimix.change_history_view.set_default_options = function( ViewOptions )
31 {
32 if( !ViewOptions )
33 {
34 ViewOptions = {};
35 }
36
37 ViewOptions.meta = ViewOptions.meta ? ViewOptions.meta : 'meta_change_history_list';
38 var PackageName = 'database::change_history::change_history_view';
39 ViewOptions.package_name = ViewOptions.package_name ? ViewOptions.package_name : PackageName;
40 ViewOptions.paging_require_form = ViewOptions.paging_require_form ? ViewOptions.paging_require_form : '0';
41 ViewOptions.add_hidden_fields = ViewOptions.add_hidden_fields ? ViewOptions.add_hidden_fields : '0';
42
43 return( ViewOptions );
44 }
45
55 ultimix.change_history_view.get_list_form = function( ResultAcceptor , ViewOptions )
56 {
57 if( !ResultAcceptor )
58 {
59 ResultAcceptor = function(){};
60 }
61 if( !ViewOptions )
62 {
63 ViewOptions = {};
64 }
65 if( !ViewOptions.meta )
66 {
67 ViewOptions.meta = 'meta_change_history_list';
68 }
69 if( !ViewOptions.package_name )
70 {
71 ViewOptions.package_name = 'database::change_history_view::change_history_view';
72 }
73 ultimix.ajax_gate.direct_view( ViewOptions , ResultAcceptor );
74 }
75
91 ultimix.change_history_view.get_custom_list_form = function( Fuctions , Header , Item , Footer , ViewOptions )
92 {
93 ultimix.auto.get_custom_list_form( Fuctions , Header , Item , Footer , false , ViewOptions , 'ad_banner' );
94 }
95
105 ultimix.change_history_view.delete = function( Id , DataSelector )
106 {
107 ultimix.auto.delete(
108 Id , DataSelector ,
109 {
110 'package_name' : 'change_history_view::change_history_view_controller' ,
111 'change_history_view_context_action' : 'delete_record' ,
112 'change_history_view_action' : 'delete_record' , 'change_history_view_record_id' : Id ,
113 'meta' : 'meta_delete_change_history_view'
114 }
115 );
116 }
117
129 ultimix.change_history_view.record_view_form = function( Id , DataSelector )
130 {
131 ultimix.auto.record_view_form(
132 Id , DataSelector ,
133 {
134 'package_name' : 'database::change_history_view::change_history_view_view' ,
135 'change_history_view_context_action' : 'record_view_form' ,
136 'change_history_view_action' : 'record_view_form' , 'change_history_view_record_id' : Id ,
137 'meta' : 'meta_record_view_change_history_view_form'
138 }
139 );
140 }