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
a765b77c
authored
Oct 14, 2016
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
minor syntax errors fixed
parent
88f6058f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
sails/src/assets/scripts/modules/supervisor/controllers/instructions.js
sails/src/assets/scripts/modules/supervisor/controllers/instructions.js
View file @
a765b77c
...
...
@@ -40,7 +40,7 @@ dashboardControllers.controller('InstructionsCtrl', function InstructionsCtrl($s
$scope
.
add_method
=
function
(){
var
data
=
{
name
:
$translate
.
instant
(
"new_method"
)
;
name
:
$translate
.
instant
(
"new_method"
)
};
$scope
.
method
.
unshift
(
data
);
...
...
@@ -52,7 +52,7 @@ dashboardControllers.controller('InstructionsCtrl', function InstructionsCtrl($s
ngToast
.
success
(
$translate
.
instant
(
'method_saved'
,
{
method_name
:
method
.
name
}));
}
,
function
(
data
,
status
,
headers
,
config
)
{
//error
ngToast
.
success
(
$translate
.
instant
(
'method_name_duplicated'
,
{
method_name
:
method
.
name
}))
,
ngToast
.
success
(
$translate
.
instant
(
'method_name_duplicated'
,
{
method_name
:
method
.
name
}))
;
}
);
};
...
...
@@ -79,7 +79,7 @@ dashboardControllers.controller('InstructionsCtrl', function InstructionsCtrl($s
.
error
(
function
(
data
,
status
,
headers
,
config
)
{
console
.
log
(
"Error from API: "
+
data
.
error
);
});
}
}
);
};
// Update method template
...
...
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