Commit 6b21343f by Wittaya-PIM

Aof : AddCards

parent 7666d4de
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
$(document).ready(function () { $(document).ready(function () {
$("#organize_code").on('change', function () { $("#organize_code").on('change', function () {
console.log('sss');
var organize_code = $("#organize_code").val(); var organize_code = $("#organize_code").val();
$('#employee').attr("disabled", true); $('#employee').attr("disabled", true);
$('#date').attr("disabled", true); $('#date').attr("disabled", true);
...@@ -78,7 +79,7 @@ ...@@ -78,7 +79,7 @@
data = jQuery.parseJSON(data); data = jQuery.parseJSON(data);
if (data['chkuser'] == true) { if (data['chkuser'] == true) {
$("#noorg_th").text(''); $("#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(''); $("#nameorg_th").text('');
$('#employee').attr("disabled", true); $('#employee').attr("disabled", true);
organize_id.val(''); organize_id.val('');
...@@ -129,7 +130,7 @@ ...@@ -129,7 +130,7 @@
} }
} else { } else {
$("#noepm_th").text(''); $("#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(''); $("#nameemp_th").text('');
$('#date').attr("disabled", true); $('#date').attr("disabled", true);
date.val(''); date.val('');
...@@ -151,17 +152,17 @@ ...@@ -151,17 +152,17 @@
function check() { function check() {
if ($("#organize_code").val() == '') { if ($("#organize_code").val() == '') {
alert(<?php echo __('Please enter Company Code.') ?>); alert("<?php echo __('Please enter Company Code') ?>");
organize_id.focus(); organize_id.focus();
return false; return false;
} }
if (employee.val() == '') { if (employee.val() == '') {
alert(<?php echo __('Please enter Ref1.') ?>); alert("<?php echo __('Please enter Ref1') ?>");
employee.focus(); employee.focus();
return false; return false;
} }
if (date.val() == '') { if (date.val() == '') {
alert(<?php echo __('Please enter Ref2.') ?>); alert("<?php echo __('Please enter Ref2') ?>");
date.focus(); date.focus();
return false; 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