Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
smart_core_connect
/
core-connect
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6b21343f
authored
Jun 04, 2018
by
Wittaya-PIM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Aof : AddCards
parent
7666d4de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
www/src/Template/Element/card_from/from_add_card.ctp
+6
-5
No files found.
www/src/Template/Element/card_from/from_add_card.ctp
View file @
6b21343f
...
@@ -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;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment