Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IPok_Web
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IPok
IPok_Web
Commits
727dc98e
Commit
727dc98e
authored
Aug 13, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loader
parent
fba071d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
custom.js
assets/js/custom.js
+7
-8
No files found.
assets/js/custom.js
View file @
727dc98e
...
@@ -2089,8 +2089,6 @@ $('#home_registernowbtn a').click(function()
...
@@ -2089,8 +2089,6 @@ $('#home_registernowbtn a').click(function()
$
(
"#login_submit_patient"
).
click
(
function
()
$
(
"#login_submit_patient"
).
click
(
function
()
{
{
$
(
"#loading"
).
show
();
//$('#loading').css('display','none');
$
(
'#err-login'
).
addClass
(
'hidden'
);
$
(
'#err-login'
).
addClass
(
'hidden'
);
if
(
$
(
'#login-form-patient'
).
parsley
().
validate
()
)
if
(
$
(
'#login-form-patient'
).
parsley
().
validate
()
)
{
{
...
@@ -2143,12 +2141,12 @@ $("#login_submit_patient").click(function()
...
@@ -2143,12 +2141,12 @@ $("#login_submit_patient").click(function()
}*/
}*/
var
LoginData
=
$
(
'#login-form-patient'
).
serialize
()
+
'&'
+
'latitude='
+
location
.
latitude
+
'&'
+
'longitude='
+
location
.
longitude
+
'&'
+
'address='
+
location
.
address
;
var
LoginData
=
$
(
'#login-form-patient'
).
serialize
()
+
'&'
+
'latitude='
+
location
.
latitude
+
'&'
+
'longitude='
+
location
.
longitude
+
'&'
+
'address='
+
location
.
address
;
$
(
"#loading"
).
show
();
var
result
=
post_ajax
(
base_url
+
'Home/login'
,
LoginData
);
var
result
=
post_ajax
(
base_url
+
'Home/login'
,
LoginData
);
var
items
=
JSON
.
parse
(
result
);
var
items
=
JSON
.
parse
(
result
);
//console.log(items);
//console.log(items);
if
(
items
.
status
==
"success"
||
items
.
status
==
"error"
){
if
(
items
.
status
==
"success"
||
items
.
status
==
"error"
){
$
(
"#loading2"
).
show
();
//
$("#loading2").show();
if
(
items
.
status
==
"success"
&&
items
.
data
.
type
==
"PATIENT"
)
if
(
items
.
status
==
"success"
&&
items
.
data
.
type
==
"PATIENT"
)
{
{
$
(
"#login"
).
modal
(
"hide"
);
$
(
"#login"
).
modal
(
"hide"
);
...
@@ -2181,7 +2179,7 @@ $("#login_submit_patient").click(function()
...
@@ -2181,7 +2179,7 @@ $("#login_submit_patient").click(function()
$
(
"#login_submit_doctor"
).
click
(
function
()
$
(
"#login_submit_doctor"
).
click
(
function
()
{
{
$
(
"#loading3"
).
show
();
//
$("#loading3").show();
$
(
'#err-login'
).
addClass
(
'hidden'
);
$
(
'#err-login'
).
addClass
(
'hidden'
);
if
(
$
(
'#login-form-doctor'
).
parsley
().
validate
()
)
if
(
$
(
'#login-form-doctor'
).
parsley
().
validate
()
)
{
{
...
@@ -2232,19 +2230,19 @@ $("#login_submit_doctor").click(function()
...
@@ -2232,19 +2230,19 @@ $("#login_submit_doctor").click(function()
/* for (var key of LoginData.entries()) {
/* for (var key of LoginData.entries()) {
console.log(key[0] + ', ' + key[1]);
console.log(key[0] + ', ' + key[1]);
}*/
}*/
var
LoginData
=
$
(
'#login-form-doctor'
).
serialize
()
+
'&'
+
'latitude='
+
location
.
latitude
+
'&'
+
'longitude='
+
location
.
longitude
+
'&'
+
'address='
+
location
.
address
;
$
(
"#loading3"
).
show
();
var
LoginData
=
$
(
'#login-form-doctor'
).
serialize
()
+
'&'
+
'latitude='
+
location
.
latitude
+
'&'
+
'longitude='
+
location
.
longitude
+
'&'
+
'address='
+
location
.
address
;
var
result
=
post_ajax
(
base_url
+
'Home/login'
,
LoginData
);
var
result
=
post_ajax
(
base_url
+
'Home/login'
,
LoginData
);
var
items
=
JSON
.
parse
(
result
);
var
items
=
JSON
.
parse
(
result
);
//console.log(items);
//console.log(items);
if
(
items
.
status
==
"success"
||
items
.
status
==
"error"
){
if
(
items
.
status
==
"success"
||
items
.
status
==
"error"
){
$
(
"#loading"
).
hide
();
$
(
"#loading2"
).
show
();
if
(
items
.
status
==
"success"
&&
items
.
data
.
type
==
"DOCTOR"
)
if
(
items
.
status
==
"success"
&&
items
.
data
.
type
==
"DOCTOR"
)
{
{
$
(
"#login_doctor"
).
modal
(
"hide"
);
$
(
"#login_doctor"
).
modal
(
"hide"
);
$
(
"#loading3"
).
hide
();
$
(
"#loading2"
).
show
();
$
(
"#loading2"
).
show
();
window
.
location
.
href
=
base_url
+
'Doctor'
;
window
.
location
.
href
=
base_url
+
'Doctor'
;
...
@@ -2253,6 +2251,7 @@ $("#login_submit_doctor").click(function()
...
@@ -2253,6 +2251,7 @@ $("#login_submit_doctor").click(function()
{
{
$
(
"#login_doctor"
).
modal
(
"hide"
);
$
(
"#login_doctor"
).
modal
(
"hide"
);
$
(
"#loading3"
).
hide
();
$
(
"#loading2"
).
show
();
$
(
"#loading2"
).
show
();
window
.
location
.
href
=
base_url
+
'Doctor/collaborator'
;
window
.
location
.
href
=
base_url
+
'Doctor/collaborator'
;
}
}
...
...
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