// JavaScript Document

var config = {
	tooltip :{
		gravity: 'nw',
		fade: false,
		opacity: 1,
		offset: 0
	}
};

if($.fn.wl_Alert) $.fn.wl_Alert.defaults = {
	speed: 500,
	sticky: false,
	onBeforeClose: function (element) {},
	onClose: function (element) {}
};


if($.confirm) $.confirm.defaults = {
	text:{
		header: 'Por favor Confirma',
		ok: 'Si',
		cancel: 'No'
	}
};
if($.prompt) $.prompt.defaults = {
	text:{
		header: 'Mensaje',
		ok: 'OK',
		cancel: 'Cancelar'
	}
};
if($.alert) $.alert.defaults = {
	nativ: false,
	resizable: false,
	modal: true,
	text:{
		header: 'Notificación',
		ok: 'OK'
	}
};

if($.fn.wl_Form) $.fn.wl_Form.defaults = {
	submitButton: 'button:last',
	method: 'post',
	action: null,
	vars: '',
	ajax: true,
	serialize: false,
	parseQuery: true,
	dataType: 'text',
	status: true,
	sent: false,
	confirmSend: true,
	text: {
		required: 'Este campo es obligatorio',
		valid: 'El campo no es válido',
		password: 'La contraseña es muy corta',
		passwordmatch: 'Las contraseñas no coinciden',
		fileinqueue: 'There is at least one file in the queue',
		incomplete: 'Acompleta los datos obligatorios',
		send: 'procesando la información...',
		sendagain: 'Seguro que quieres mandarla de nuevo?',
		success: 'Se ha enviado la forma!',
		error: 'Error en el envío de la forma',
		parseerror: 'Can\'t unserialize query string:\n %e'
	},
	tooltip: {
		gravity: 'nw'
	},
	onRequireError: function (element) {},
	onValidError: function (element) {},
	onPasswordError: function (element) {},
	onFileError: function (element) {},
	onBeforeSubmit: function (data) {},
	onComplete: function (textStatus, jqXHR) {},
	onError: function (textStatus, error, jqXHR) {},
	onSuccess: function (data, textStatus, jqXHR) {}
};


