ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

gallery_controller.js
Go to the documentation of this file.
1
6 if( !ultimix )
7 {
8 ultimix = {};
9 }
10
16 if( !ultimix.gallery )
17 {
18 ultimix.gallery = {};
19 }
20
32 ultimix.gallery.Create = function( Data , Success , Options )
33 {
34 jQuery.extend( { 'async' : true } , Options ? Options : {}; );
35 jQuery.extend( { 'meta' : 'meta_create_gallery' } , Data );
36
37 if( Success )
38 {
39 OnAfterRequestHandler = function( Result )
40 {
41 var ResultJSON;
42 eval( "ResultJSON=" + Result );
43 Success( ResultJSON );
44 }
45 ultimix.DirectController( Data , OnAfterRequestHandler , Options );
46 }
47 else
48 {
49 ultimix.DirectController( Data , false , Options );
50 }
51 }
52
64 ultimix.gallery.Update = function( Data , Success , Options )
65 {
66 jQuery.extend( { 'async' : true } , Options ? Options : {}; );
67 jQuery.extend( { 'meta' : 'meta_update_gallery' } , Data );
68
69 if( Success )
70 {
71 OnAfterRequestHandler = function( Result )
72 {
73 var ResultJSON;
74 eval( "ResultJSON=" + Result );
75 Success( ResultJSON );
76 }
77 ultimix.DirectController( Data , OnAfterRequestHandler , Options );
78 }
79 else
80 {
81 ultimix.DirectController( Data , false , Options );
82 }
83 }
84
96 ultimix.gallery.Delete = function( Data , Success , Options )
97 {
98 jQuery.extend( { 'async' : true } , Options ? Options : {}; );
99 jQuery.extend( { 'meta' : 'meta_delete_gallery' } , Data );
100
101 if( Success )
102 {
103 OnAfterRequestHandler = function( Result )
104 {
105 var ResultJSON;
106 eval( "ResultJSON=" + Result );
107 Success( ResultJSON );
108 }
109 ultimix.DirectController( Data , OnAfterRequestHandler , Options );
110 }
111 else
112 {
113 ultimix.DirectController( Data , false , Options );
114 }
115 }