added a check to the signin dialog

This commit is contained in:
hyung-hwan 2016-01-10 19:07:17 +00:00
parent 6f2fb6c747
commit 634f8054bd

View File

@ -122,11 +122,16 @@ $(function () {
if (!!window.FormData) if (!!window.FormData)
{ {
// FormData is supported // FormData is supported
var user_name = $('#taskbar_user_name').val();
var user_pass = $('#taskbar_user_pass').val();
if (user_name == '' || user_pass == '') return;
taskbar_signin_in_progress = true; taskbar_signin_in_progress = true;
var form_data = new FormData(); var form_data = new FormData();
form_data.append ('user_name', $('#taskbar_user_name').val()); form_data.append ('user_name', user_name);
form_data.append ('user_pass', $('#taskbar_user_pass').val()); form_data.append ('user_pass', user_pass);
$('#taskbar_signin_container').dialog('disable'); $('#taskbar_signin_container').dialog('disable');
$.ajax({ $.ajax({