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
2d632ebb
authored
May 03, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixed issue
#186
parent
9514118c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
sails/src/assets/scripts/modules/student/controllers/instructions.js
sails/src/assets/scripts/modules/supervisor/controllers/instructions.js
sails/src/assets/scripts/modules/student/controllers/instructions.js
View file @
2d632ebb
...
...
@@ -170,9 +170,7 @@ dashboardControllers.controller('StudentInstructionsCtrl', function StudentInstr
//console.log('Saved method as template:' + JSON.stringify(data));
// Add to select method
$scope
.
$apply
(
function
(){
$scope
.
methods_available
.
push
({
id
:
method
.
id
,
name
:
method
.
name
});
});
$scope
.
methods_available
.
push
({
id
:
method
.
id
,
name
:
method
.
name
,
lang
:
$scope
.
user
.
lang
});
ngToast
.
success
({
content
:
$translate
.
instant
(
'method_saved'
,
{
method_name
:
method
.
name
}),
...
...
sails/src/assets/scripts/modules/supervisor/controllers/instructions.js
View file @
2d632ebb
...
...
@@ -100,7 +100,8 @@ dashboardControllers.controller('InstructionsCtrl', function InstructionsCtrl($s
var
new_instruction
=
{
method
:
method
.
id
,
name
:
$translate
.
instant
(
"new_instruction"
),
objective
:
$translate
.
instant
(
"new_objective"
)
objective
:
$translate
.
instant
(
"new_objective"
),
lang
:
$scope
.
user
.
lang
};
$http
...
...
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