Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fe41e670
authored
Sep 15, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
solved issue with continuous updating
parent
44983ff1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
sails/src/assets/scripts/modules/student/controllers/setup.js
sails/src/assets/scripts/modules/student/controllers/setup.js
View file @
fe41e670
...
...
@@ -263,12 +263,13 @@ dashboardControllers.controller('StudentSetupCtrl', function StudentSetupCtrl(
// ---------------------------------------------------------------------------
// If we get with this parameter, we're back from a TPV transaction!
console
.
log
(
JSON
.
stringify
(
$stateParams
));
if
(
$stateParams
.
serial
&&
$stateParams
.
serial
==
0
)
ngToast
.
danger
(
$translate
.
instant
(
'tpv_error'
));
else
{
$scope
.
formUser
.
license_number
=
$stateParams
.
serial
;
$scope
.
updateStudent
();
if
(
$stateParams
.
serial
)
{
if
(
$stateParams
.
serial
==
0
)
ngToast
.
danger
(
$translate
.
instant
(
'tpv_error'
));
else
{
$scope
.
formUser
.
license_number
=
$stateParams
.
serial
;
$scope
.
updateStudent
();
}
}
/**
...
...
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