Commit 6b21343f by Wittaya-PIM

Aof : AddCards

parent 7666d4de
......@@ -64,6 +64,7 @@
$(document).ready(function () {
$("#organize_code").on('change', function () {
console.log('sss');
var organize_code = $("#organize_code").val();
$('#employee').attr("disabled", true);
$('#date').attr("disabled", true);
......@@ -78,7 +79,7 @@
data = jQuery.parseJSON(data);
if (data['chkuser'] == true) {
$("#noorg_th").text('');
$("#noorg_th").text("<?php echo __('Register with') ?> + data[0]['org_name_th'] + <?php echo __('already') ?>");
$("#noorg_th").text("<?php echo __('Register with') ?>" + data[0]['org_name_th'] + "<?php echo __('already') ?>");
$("#nameorg_th").text('');
$('#employee').attr("disabled", true);
organize_id.val('');
......@@ -129,7 +130,7 @@
}
} else {
$("#noepm_th").text('');
$("#noepm_th").text("<?php echo __('"Did not find the information you need", Please enter the correct information and press the check.') ?>");
$("#noepm_th").text('<?php echo __('"Did not find the information you need", Please enter the correct information and press the check.') ?>');
$("#nameemp_th").text('');
$('#date').attr("disabled", true);
date.val('');
......@@ -151,17 +152,17 @@
function check() {
if ($("#organize_code").val() == '') {
alert(<?php echo __('Please enter Company Code.') ?>);
alert("<?php echo __('Please enter Company Code') ?>");
organize_id.focus();
return false;
}
if (employee.val() == '') {
alert(<?php echo __('Please enter Ref1.') ?>);
alert("<?php echo __('Please enter Ref1') ?>");
employee.focus();
return false;
}
if (date.val() == '') {
alert(<?php echo __('Please enter Ref2.') ?>);
alert("<?php echo __('Please enter Ref2') ?>");
date.focus();
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment