ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

package_manager_view.js
Go to the documentation of this file.
1
6 if( !ultimix )
7 {
8 ultimix = {};
9 }
10
16 if( !ultimix.package_manager )
17 {
18 ultimix.package_manager = {};
19 }
20
30 ultimix.package_manager.set_default_options = function( ViewOptions )
31 {
32 if( !ViewOptions )
33 {
34 ViewOptions = {};
35 }
36
37 ViewOptions.meta = ViewOptions.meta ? ViewOptions.meta : 'meta_package_manager_list';
38 ViewOptions.package_name =
39 ViewOptions.package_name ? ViewOptions.package_name : 'package_manager::package_manager_view';
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.package_manager.get_list_form = function( Fuctions , ViewOptions )
56 {
57 if( !Fuctions )
58 {
59 Fuctions = {};
60 }
61
62 ViewOptions = ultimix.package_manager.set_default_options( ViewOptions );
63
64 ultimix.ajax_gate.direct_view( ViewOptions , Fuctions );
65 }
66
82 ultimix.package_manager.get_custom_list_form = function( Fuctions , Header , Item , Footer , ViewOptions )
83 {
84 if( !Fuctions )
85 {
86 Fuctions = {};
87 }
88
89 ViewOptions = ultimix.package_manager.set_default_options( ViewOptions );
90
91 ViewOptions.header = Header ? Header : 'package_manager_header.tpl';
92 ViewOptions.item = Item ? Item : 'package_manager_item.tpl';
93 ViewOptions.footer = Footer ? Footer : 'package_manager_footer.tpl';
94
95 ultimix.ajax_gate.direct_view( ViewOptions , Fuctions );
96 }