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
73b7189a
authored
Jun 06, 2018
by
Wittaya-PIM
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'integration' into wittaya
parents
0f8e2c87
1fe14090
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
1 deletions
+7
-1
www/src/Controller/ProfilesController.php
+0
-0
www/src/Template/Layout/blank.ctp
+1
-1
www/src/Template/Profiles/index.ctp
+0
-0
www/src/Template/Users/signup.ctp
+0
-0
www/webroot/js/validate/jQuery.validate.addValidate.js
+6
-0
No files found.
www/src/Controller/ProfilesController.php
View file @
73b7189a
www/src/Template/Layout/blank.ctp
View file @
73b7189a
...
@@ -95,8 +95,8 @@
...
@@ -95,8 +95,8 @@
<?php echo $this->Html->script('/js/magnific-popup/jquery.magnific-popup.min'); ?>
<?php echo $this->Html->script('/js/magnific-popup/jquery.magnific-popup.min'); ?>
<?php echo $this->Html->script('/js/vide/vide.min'); ?>
<?php echo $this->Html->script('/js/vide/vide.min'); ?>
<?php echo $this->Html->script('/js/validate/jQuery.start.min'); ?>
<?php echo $this->Html->script('/js/validate/jQuery.start.min'); ?>
<?php echo $this->Html->script('/js/validate/jQuery.validate.addValidate'); ?>
<?php echo $this->Html->script('/js/validate/jQuery.validate.min'); ?>
<?php echo $this->Html->script('/js/validate/jQuery.validate.min'); ?>
<?php echo $this->Html->script('/js/validate/jQuery.validate.addValidate'); ?>
<!-- Theme Base, Components and Settings -->
<!-- Theme Base, Components and Settings -->
<?php echo $this->Html->script('theme'); ?>
<?php echo $this->Html->script('theme'); ?>
<!-- Theme Custom -->
<!-- Theme Custom -->
...
...
www/src/Template/Profiles/index.ctp
View file @
73b7189a
This diff is collapsed.
Click to expand it.
www/src/Template/Users/signup.ctp
View file @
73b7189a
This diff is collapsed.
Click to expand it.
www/webroot/js/validate/jQuery.validate.addValidate.js
View file @
73b7189a
...
@@ -26,6 +26,12 @@
...
@@ -26,6 +26,12 @@
| 19. ckquarter-min ,Example 'ckquarter-min' = '2'
| 19. ckquarter-min ,Example 'ckquarter-min' = '2'
| ------------------------------------------------------------------------------------------------------------------
| ------------------------------------------------------------------------------------------------------------------
*/
*/
jQuery
.
validator
.
addMethod
(
"emailtext"
,
function
(
value
,
element
)
{
return
this
.
optional
(
element
)
||
/^
([
a-zA-Z0-9@_.
])
+$/
.
test
(
value
);
},
"โปรดระบุที่อยู่อีเมล์ที่ถูกต้อง."
);
jQuery
.
validator
.
addMethod
(
"letterthai"
,
function
(
value
,
element
)
{
return
this
.
optional
(
element
)
||
/^
([
a-zA-Zก-๙
])
+$/
.
test
(
value
);
},
"เฉพาะตัวอักษรเท่านั้น."
);
jQuery
.
validator
.
addMethod
(
"letters"
,
function
(
value
,
element
)
{
jQuery
.
validator
.
addMethod
(
"letters"
,
function
(
value
,
element
)
{
return
this
.
optional
(
element
)
||
/^
[
a-zA-Z
]
+$/i
.
test
(
value
);
return
this
.
optional
(
element
)
||
/^
[
a-zA-Z
]
+$/i
.
test
(
value
);
},
"เฉพาะตัวอักษรเท่านั้น."
);
},
"เฉพาะตัวอักษรเท่านั้น."
);
...
...
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