#459 cleaning
This commit is contained in:
@@ -12,12 +12,3 @@ this.recline.View.translations['en'] = {
|
|||||||
map_mapping_lat_lon: 'Latitude / Longitude fields',
|
map_mapping_lat_lon: 'Latitude / Longitude fields',
|
||||||
map_mapping_geojson: 'GeoJSON field'
|
map_mapping_geojson: 'GeoJSON field'
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
//(function(v) {
|
|
||||||
// "use strict";
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//})(recline.t);
|
|
||||||
//
|
|
||||||
|
|||||||
@@ -64,12 +64,3 @@ this.recline.View.translations['pl'] = {
|
|||||||
|
|
||||||
num_records: '<span class="doc-count">{recordCount}</span> rekordów'
|
num_records: '<span class="doc-count">{recordCount}</span> rekordów'
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
//(function(v) {
|
|
||||||
// "use strict";
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//})(recline.t);
|
|
||||||
//
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
/*jshint multistr:true */
|
/*jshint multistr:true */
|
||||||
|
|
||||||
// todo probably some kind of mixin would be better
|
// TODO probably some kind of mixin would be better, like: my.View - Backbone.View.extend({}); _.extend(my.View, Backbone.I18nView);
|
||||||
//usage: (zamienic na extension)
|
|
||||||
// my.View - Backbone.View.extend({});
|
|
||||||
//_.extend(my.View, Backbone.I18nView);
|
|
||||||
|
|
||||||
Backbone.I18nView = Backbone.View.extend({
|
Backbone.I18nView = Backbone.View.extend({
|
||||||
defaultLocale: 'en',
|
defaultLocale: 'en',
|
||||||
|
|||||||
@@ -124,7 +124,8 @@ my.Grid = Backbone.I18nView.extend({
|
|||||||
var newView = new my.GridRow({
|
var newView = new my.GridRow({
|
||||||
model: doc,
|
model: doc,
|
||||||
el: tr,
|
el: tr,
|
||||||
fields: self.fields
|
fields: self.fields,
|
||||||
|
locale: self.locale
|
||||||
});
|
});
|
||||||
newView.render();
|
newView.render();
|
||||||
});
|
});
|
||||||
@@ -166,11 +167,12 @@ my.Grid = Backbone.I18nView.extend({
|
|||||||
// fields: mydatasets.fields // a FieldList object
|
// fields: mydatasets.fields // a FieldList object
|
||||||
// });
|
// });
|
||||||
// </pre>
|
// </pre>
|
||||||
my.GridRow = Backbone.View.extend({
|
my.GridRow = Backbone.I18nView.extend({
|
||||||
initialize: function(initData) {
|
initialize: function(initData) {
|
||||||
_.bindAll(this, 'render');
|
_.bindAll(this, 'render');
|
||||||
this._fields = initData.fields;
|
this._fields = initData.fields;
|
||||||
this.listenTo(this.model, 'change', this.render);
|
this.listenTo(this.model, 'change', this.render);
|
||||||
|
this.initializeI18n(initData.locale);
|
||||||
},
|
},
|
||||||
|
|
||||||
template: ' \
|
template: ' \
|
||||||
|
|||||||
Reference in New Issue
Block a user