Skip to content

Commit d8a4a4c

Browse files
author
Olivier Giulieri
committed
Added content.
1 parent 87a716d commit d8a4a4c

File tree

4 files changed

+34
-4
lines changed

4 files changed

+34
-4
lines changed

dist/evolutility.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,11 +1003,19 @@ Evol.ViewMany = Backbone.View.extend({
10031003
return this;
10041004
},
10051005

1006+
getCollection: function(){
1007+
return this.collection;
1008+
},
1009+
10061010
setFilter: function(filter){
10071011
this._filter=filter;
10081012
return this;
10091013
},
10101014

1015+
getFilter: function(filter){
1016+
return this._filter;
1017+
},
1018+
10111019
//updateModel: function () {
10121020
// alert('updateModel');
10131021
//},
@@ -1513,13 +1521,20 @@ Evol.ViewOne = Backbone.View.extend({
15131521
.setData(model);
15141522
},
15151523

1524+
getModel:function(model) {
1525+
return this.model;
1526+
},
1527+
15161528
setUIModel: function(uimodel) {
15171529
this.options.uiModel = uimodel;
15181530
var d=this.getData();
15191531
return this
15201532
.render()
15211533
.setData(d);
15221534
},
1535+
getUIModel: function(uimodel) {
1536+
return this.options.uiModel;
1537+
},
15231538

15241539
modelUpdate: function (model) {
15251540
var that=this;
@@ -1953,7 +1968,7 @@ Evol.ViewOne = Backbone.View.extend({
19531968
var fs = this.getFields();
19541969
this.clearMessages();
19551970
if (_.isArray(fs)) {
1956-
this.$el.trigger('view.validate');
1971+
this.$el.trigger('validate'); // TODO decide if use 'view.validate'
19571972
return Evol.UI.Validation.checkFields(this.$el, fs, this.prefix);
19581973
}
19591974
return false;

dist/evolutility.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/many.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,19 @@ Evol.ViewMany = Backbone.View.extend({
131131
return this;
132132
},
133133

134+
getCollection: function(){
135+
return this.collection;
136+
},
137+
134138
setFilter: function(filter){
135139
this._filter=filter;
136140
return this;
137141
},
138142

143+
getFilter: function(filter){
144+
return this._filter;
145+
},
146+
139147
//updateModel: function () {
140148
// alert('updateModel');
141149
//},

js/one.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,20 @@ Evol.ViewOne = Backbone.View.extend({
7878
.setData(model);
7979
},
8080

81+
getModel:function(model) {
82+
return this.model;
83+
},
84+
8185
setUIModel: function(uimodel) {
8286
this.options.uiModel = uimodel;
8387
var d=this.getData();
8488
return this
8589
.render()
8690
.setData(d);
8791
},
92+
getUIModel: function(uimodel) {
93+
return this.options.uiModel;
94+
},
8895

8996
modelUpdate: function (model) {
9097
var that=this;
@@ -518,7 +525,7 @@ Evol.ViewOne = Backbone.View.extend({
518525
var fs = this.getFields();
519526
this.clearMessages();
520527
if (_.isArray(fs)) {
521-
this.$el.trigger('view.validate');
528+
this.$el.trigger('validate'); // TODO decide if use 'view.validate'
522529
return Evol.UI.Validation.checkFields(this.$el, fs, this.prefix);
523530
}
524531
return false;

0 commit comments

Comments
 (0)