#459 cleaning
This commit is contained in:
parent
4da2430334
commit
a4c3cae47e
@ -11,13 +11,4 @@ this.recline.View.translations['en'] = {
|
||||
map_mapping: 'Coordinates source',
|
||||
map_mapping_lat_lon: 'Latitude / Longitude fields',
|
||||
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'
|
||||
}
|
||||
|
||||
//
|
||||
//(function(v) {
|
||||
// "use strict";
|
||||
//
|
||||
//
|
||||
//
|
||||
//})(recline.t);
|
||||
//
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
/*jshint multistr:true */
|
||||
|
||||
// todo probably some kind of mixin would be better
|
||||
//usage: (zamienic na extension)
|
||||
// my.View - Backbone.View.extend({});
|
||||
//_.extend(my.View, Backbone.I18nView);
|
||||
// TODO probably some kind of mixin would be better, like: my.View - Backbone.View.extend({}); _.extend(my.View, Backbone.I18nView);
|
||||
|
||||
Backbone.I18nView = Backbone.View.extend({
|
||||
defaultLocale: 'en',
|
||||
|
||||
@ -124,7 +124,8 @@ my.Grid = Backbone.I18nView.extend({
|
||||
var newView = new my.GridRow({
|
||||
model: doc,
|
||||
el: tr,
|
||||
fields: self.fields
|
||||
fields: self.fields,
|
||||
locale: self.locale
|
||||
});
|
||||
newView.render();
|
||||
});
|
||||
@ -166,11 +167,12 @@ my.Grid = Backbone.I18nView.extend({
|
||||
// fields: mydatasets.fields // a FieldList object
|
||||
// });
|
||||
// </pre>
|
||||
my.GridRow = Backbone.View.extend({
|
||||
my.GridRow = Backbone.I18nView.extend({
|
||||
initialize: function(initData) {
|
||||
_.bindAll(this, 'render');
|
||||
this._fields = initData.fields;
|
||||
this.listenTo(this.model, 'change', this.render);
|
||||
this.initializeI18n(initData.locale);
|
||||
},
|
||||
|
||||
template: ' \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user