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
25d37737
authored
Apr 11, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
solved Office.toJSON method
parent
e197815f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
sails/src/api/models/Office.js
sails/src/api/models/Office.js
View file @
25d37737
...
@@ -89,8 +89,10 @@ module.exports = {
...
@@ -89,8 +89,10 @@ module.exports = {
via
:
'office'
via
:
'office'
},
},
toJSON
:
function
()
{
toJSON
:
function
()
{
if
(
!
attrs
.
logoUrl
)
var
office
=
this
.
toObject
();
attrs
.
logoUrl
=
'/app/img/logo_pictogram.png'
;
if
(
!
office
.
logoUrl
)
office
.
logoUrl
=
'/app/img/logo_pictogram.png'
;
return
office
;
}
}
},
},
...
...
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