ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

category_view.js
Go to the documentation of this file.
1
6 if( !ultimix )
7 {
8 ultimix = {};
9 }
10
16 if( !ultimix.category )
17 {
18 ultimix.category = {};
19 }
20
30 ultimix.category.set_default_options = function( ViewOptions )
31 {
32 if( !ViewOptions )
33 {
34 ViewOptions = {};
35 }
36
37 ViewOptions.meta = ViewOptions.meta ? ViewOptions.meta : 'meta_category_list';
38 ViewOptions.package_name = ViewOptions.package_name ? ViewOptions.package_name : 'category::category_view';
39 ViewOptions.paging_require_form = ViewOptions.paging_require_form ? ViewOptions.paging_require_form : '0';
40 ViewOptions.add_hidden_fields = ViewOptions.add_hidden_fields ? ViewOptions.add_hidden_fields : '0';
41
42 return( ViewOptions );
43 }
44
54 ultimix.category.get_list_form = function( Fuctions , ViewOptions )
55 {
56 if( !Fuctions )
57 {
58 Fuctions = {};
59 }
60
61 ViewOptions = ultimix.category.set_default_options( ViewOptions );
62
63 ultimix.ajax_gate.direct_view( ViewOptions , Fuctions );
64 }
65
81 ultimix.category.get_custom_list_form = function( Fuctions , Header , Item , Footer , ViewOptions )
82 {
83 ultimix.auto.get_custom_list_form( Fuctions , Header , Item , Footer , false , ViewOptions , 'category' );
84 }
85
95 ultimix.category.delete = function( Id , DataSelector )
96 {
97 ultimix.auto.delete(
98 Id , DataSelector ,
99 {
100 'package_name' : 'category::category_controller' ,
101 'category_context_action' : 'delete_record' , 'category_action' : 'delete_record' ,
102 'category_record_id' : Id , 'meta' : 'meta_delete_category'
103 }
104 );
105 }
106
118 ultimix.category.record_view_form = function( Id , DataSelector )
119 {
120 ultimix.auto.record_view_form(
121 Id , DataSelector ,
122 {
123 'package_name' : 'category::category_view' , 'category_context_action' : 'record_view_form' ,
124 'category_action' : 'record_view_form' , 'category_record_id' : Id ,
125 'meta' : 'meta_record_view_category_form'
126 }
127 );
128 }