coolerator.vision 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/coolerator.vision.gemspec +1 -1
- data/public/javascripts/vendor/coolerator/coolerator.remote.js +6 -35
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.6
|
data/coolerator.vision.gemspec
CHANGED
@@ -52,8 +52,8 @@
|
|
52
52
|
});
|
53
53
|
}
|
54
54
|
|
55
|
-
Coolerator.Filter(
|
56
|
-
before
|
55
|
+
Coolerator.Filter()
|
56
|
+
.before(function(view) {
|
57
57
|
$.each(view, function(name, partial) {
|
58
58
|
var match = partial.match_for(selectors.form);
|
59
59
|
|
@@ -61,8 +61,7 @@
|
|
61
61
|
attach(match);
|
62
62
|
}
|
63
63
|
});
|
64
|
-
}
|
65
|
-
});
|
64
|
+
});
|
66
65
|
|
67
66
|
$(function() {
|
68
67
|
attach($(selectors.form));
|
@@ -189,11 +188,9 @@
|
|
189
188
|
|
190
189
|
responder : {
|
191
190
|
success : function success(source, response, status, options) {
|
192
|
-
|
193
|
-
// source : source form/link
|
191
|
+
var filters = Coolerator.Filters.prepare(response.templates, response.trigger);
|
194
192
|
|
195
|
-
|
196
|
-
this.filters.before (response);
|
193
|
+
filters.before();
|
197
194
|
|
198
195
|
var e = $.extend($.Event(response.trigger), {
|
199
196
|
presenter : response.presenter,
|
@@ -205,38 +202,12 @@
|
|
205
202
|
source.trigger(e);
|
206
203
|
options && options.success && options.success.apply(source, [response, status]);
|
207
204
|
|
208
|
-
|
205
|
+
filters.after();
|
209
206
|
},
|
210
207
|
|
211
208
|
complete : function complete(source, request, status) {
|
212
209
|
// TODO
|
213
210
|
}
|
214
|
-
},
|
215
|
-
|
216
|
-
filters : {
|
217
|
-
prepare : function prepare(response) {
|
218
|
-
response.filters = Coolerator.Filters.get(response.trigger);
|
219
|
-
|
220
|
-
$.each(response.templates, function prepare_views(name, content) {
|
221
|
-
response.templates[name] = $(content);
|
222
|
-
});
|
223
|
-
},
|
224
|
-
|
225
|
-
before : function before(response) {
|
226
|
-
if(response.filters) {
|
227
|
-
$.each(response.filters, function(i, filter) {
|
228
|
-
filter.before(response.templates);
|
229
|
-
});
|
230
|
-
}
|
231
|
-
},
|
232
|
-
|
233
|
-
after : function after(response) {
|
234
|
-
if(response.filters) {
|
235
|
-
$.each(response.filters, function(i, filter) {
|
236
|
-
filter.after(response.templates);
|
237
|
-
});
|
238
|
-
}
|
239
|
-
}
|
240
211
|
}
|
241
212
|
}
|
242
213
|
});
|