<commit_before>
define([
	'marionette',
	'app',
	'text!module/account/template/modifyAccount.html'
], function(Marionette, App, ModifyAccountTemplate)
{
	var ModifyAccountView = Marionette.ItemView.extend(
	{
		template: ModifyAccountTemplate,

		events: {
			'blur #account-firstname': 'actionSave',
			'blur #account-lastname': 'actionSave',
		},

		ui: {
			firstname: '#account-firstname',
			lastname: '#account-lastname'
		},

		actionSave: function (event)
		{
			App.vent.trigger('account:save', this.model);
		}
	});

	return ModifyAccountView;
});<commit_msg>Save data when clicking to save button<commit_after>
define([
	'marionette',
	'marionette.formview',
	'text!module/account/template/modifyAccount.html'
], function(Marionette, MarionetteFormView, ModifyAccountTemplate)
{
	var ModifyAccountView = Marionette.FormView.extend(
	{
		template: ModifyAccountTemplate,

		/**
		 * Save model when submit me
		 */
		onSubmit: function (evt)
		{
			evt.preventDefault();

			this.model.set(this.serializeFormData()).savedata();
		},
	});

	return ModifyAccountView;
});
{'fraction_non_alphanumeric': 0.14457831325301204, 'fraction_numerical': 0.0, 'mean_word_length': 4.806451612903226, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2364732', 'n_tokens_mistral': 401, 'n_tokens_neox': 360, 'n_words': 63}