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
af9675dc
authored
Jun 04, 2018
by
Teeradone Darunnat
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'integration' into teeradone
parents
1029c169
6b21343f
Hide 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 @
af9675dc
...
...
@@ -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;
}
...
...
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