{"size": 599, "ext": "js", "max_stars_repo_path": "packages/import/client/views/items.js", "max_stars_repo_name": "weidi/Kepler", "max_stars_repo_stars_event_min_datetime": "2017-05-20T19:36:56.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-27T00:26:23.000Z", "max_issues_repo_path": "packages/import/client/views/items.js", "max_issues_repo_name": "KonstantinKlepikov/Kepler", "max_issues_repo_issues_event_min_datetime": "2015-01-12T13:22:42.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-29T19:40:11.000Z", "max_forks_repo_path": "packages/import/client/views/items.js", "max_forks_repo_name": "KonstantinKlepikov/Kepler", "max_forks_repo_forks_event_min_datetime": "2017-08-11T23:04:34.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-30T09:31:27.000Z"}
{"max_stars_count": 154, "max_issues_count": 92, "max_forks_count": 50, "avg_line_length": 23.96, "max_line_length": 74, "alphanum_fraction": 0.6544240401}

Template.itemPlaceImport.onRendered(function() {
	
	var self = this;

	self.$('.btn-del').btsConfirmButton(function(e) {
		$(e.target).addClass('disabled');
		Meteor.call('removePlace', self.data.id, function(err,res) {
			K.Map.removeItem(K.placeById(self.data.id));
		});			
	});
});

Template.itemImport.onRendered(function() {
	
	var self = this;

	self.$('.btn-del').btsConfirmButton(function(e) {
		$(e.target).addClass('disabled');
		Meteor.call('removeImport', self.data.name, function(err,res) {
			K.Alert.info('Removed '+res+' places by import name: '+self.data.name);
		});			
	});
});
