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
ddce7b6a
authored
Sep 03, 2016
by
Fernando Martínez Santiago
Committed by
root
Sep 03, 2016
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
working on json issues on server side
parent
a78b4b1f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
sails/src/api/controllers/StudentController.js
sails/src/assets/scripts/modules/student/controllers/session.js
sails/src/assets/scripts/modules/student/views/session.html
sails/src/config/sockets.js
sails/src/api/controllers/StudentController.js
View file @
ddce7b6a
...
@@ -1082,7 +1082,7 @@ module.exports = {
...
@@ -1082,7 +1082,7 @@ module.exports = {
if
(
attributes
.
id_sup
)
sup
=
attributes
.
id_sup
;
if
(
attributes
.
id_sup
)
sup
=
attributes
.
id_sup
;
var
desc
=
null
;
var
desc
=
null
;
if
(
attributes
.
picto
)
desc
=
attributes
.
picto
;
// select, add and delete actions data
if
(
attributes
.
stu_picto
)
desc
=
attributes
.
stu_
picto
;
// select, add and delete actions data
if
(
attributes
.
pictos
)
desc
=
attributes
.
pictos
;
// show action data
if
(
attributes
.
pictos
)
desc
=
attributes
.
pictos
;
// show action data
Action
.
create
({
Action
.
create
({
...
...
sails/src/assets/scripts/modules/student/controllers/session.js
View file @
ddce7b6a
...
@@ -99,7 +99,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
...
@@ -99,7 +99,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
// Add to list
// Add to list
$scope
.
wsessions
=
data
;
$scope
.
wsessions
=
data
;
console
.
log
(
JSON
.
stringify
(
data
));
// Refresh navigation vars
// Refresh navigation vars
$scope
.
currentPage
=
1
;
$scope
.
currentPage
=
1
;
$scope
.
numPerPage
=
5
;
$scope
.
numPerPage
=
5
;
...
...
sails/src/assets/scripts/modules/student/views/session.html
View file @
ddce7b6a
...
@@ -47,10 +47,10 @@
...
@@ -47,10 +47,10 @@
</div>
</div>
<div
class=
"try"
>
<div
class=
"try"
>
<div
class=
"pull-left"
ng-repeat=
"a in actual_try.actions track by $index"
>
<div
class=
"pull-left"
ng-repeat=
"a in actual_try.actions track by $index"
>
<div
class=
"picto"
popover=
"{{ a.attributes.picto.expression.text | translate }}"
popover-trigger=
"mouseenter"
>
<div
class=
"picto"
popover=
"{{ a.attributes.
stu_
picto.expression.text | translate }}"
popover-trigger=
"mouseenter"
>
<img
ng-src=
"{{ a.attributes.picto.picto.uri }}"
/>
<img
ng-src=
"{{ a.attributes.
stu_
picto.picto.uri }}"
/>
<div
class=
"action-type"
>
<div
class=
"action-type"
>
<span
ng-if=
"a.action == '
a
dd'"
class=
"glyphicon glyphicon-plus color_green"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == '
A
dd'"
class=
"glyphicon glyphicon-plus color_green"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == 'Select'"
class=
"glyphicon glyphicon-hand-up color_blue"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == 'Select'"
class=
"glyphicon glyphicon-hand-up color_blue"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == 'Delete'"
class=
"glyphicon glyphicon-remove color_red"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == 'Delete'"
class=
"glyphicon glyphicon-remove color_red"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == 'Show'"
class=
"glyphicon glyphicon-eye-open color_blue"
aria-hidden=
"true"
></span>
<span
ng-if=
"a.action == 'Show'"
class=
"glyphicon glyphicon-eye-open color_blue"
aria-hidden=
"true"
></span>
...
...
sails/src/config/sockets.js
View file @
ddce7b6a
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
module
.
exports
.
sockets
=
{
module
.
exports
.
sockets
=
{
pingTimeout
:
60000
,
// set timeout to 6
0 secs
pingTimeout
:
10000
,
// set timeout to 1
0 secs
/***************************************************************************
/***************************************************************************
* *
* *
...
...
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