issue #0001636 : Remove debug

This commit is contained in:
Michael RICOIS 2013-06-25 10:03:15 +00:00
parent 45f2922bee
commit 67ca83bb1d

View File

@ -2,7 +2,6 @@ function validate() {
var allvals = true;
$('div#dlg input[required]').each(function() {
if(!$(this).val()) {
alert($(this).attr('name'));
allvals = false;
$(this).addClass('brsr');
}
@ -37,8 +36,7 @@ $('#dlg').dialog({ buttons: [
{ text: "Valider", click: function() {
var values = $(this).find('form').serialize();
if (validate() && isEmail($('div#dlg input[name=email]'))) {
alert('OK');
if ($('.loading').css('display')=='none') {
if ($('.loading').css('display')=='none') {
$('.loading').css('display', 'block');
$('.ui-dialog-content').css('overflow','hidden');
$(".ui-dialog-buttonpane button:contains('Valider')").button("disable");