Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
FeedReader
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Open Source Software
FeedReader
Commits
63b63b22
Commit
63b63b22
authored
Nov 19, 2013
by
Timo Tegtmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved feed constructor
parent
7f613784
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
27 deletions
+24
-27
feed.js
src/source/models/feed.js
+24
-27
No files found.
src/source/models/feed.js
View file @
63b63b22
...
...
@@ -62,33 +62,30 @@ function Feed(proto) {
if
(
proto
.
id
||
proto
.
id
===
0
)
{
this
.
id
=
proto
.
id
;
}
if
(
this
.
feedType
<
feedTypes
.
ftUnknown
)
{
this
.
preventDelete
=
true
;
}
if
(
proto
.
username
&&
proto
.
password
)
{
this
.
username
=
proto
.
username
;
this
.
password
=
proto
.
password
;
}
this
.
username
=
proto
.
username
||
this
.
username
;
this
.
password
=
proto
.
password
||
this
.
password
;
}
}
Feed
.
prototype
.
title
=
""
;
Feed
.
prototype
.
url
=
""
;
Feed
.
prototype
.
feedType
=
feedTypes
.
ftRSS
;
Feed
.
prototype
.
feedOrder
=
0
;
Feed
.
prototype
.
enabled
=
1
;
Feed
.
prototype
.
showPicture
=
1
;
Feed
.
prototype
.
showMedia
=
1
;
Feed
.
prototype
.
showListSummary
=
1
;
Feed
.
prototype
.
showDetailSummary
=
1
;
Feed
.
prototype
.
showListCaption
=
1
;
Feed
.
prototype
.
showDetailCaption
=
1
;
Feed
.
prototype
.
sortMode
=
0
;
Feed
.
prototype
.
allowHTML
=
1
;
Feed
.
prototype
.
numNew
=
0
;
Feed
.
prototype
.
numUnRead
=
0
;
Feed
.
prototype
.
preventDelete
=
false
;
Feed
.
prototype
.
username
=
""
;
Feed
.
prototype
.
password
=
""
;
Feed
.
prototype
.
category
=
0
;
Feed
.
prototype
.
categoryName
=
"
Uncategorized
"
;
Feed
.
prototype
=
{
title
:
""
,
url
:
""
,
feedType
:
feedTypes
.
ftRSS
,
feedOrder
:
0
,
enabled
:
1
,
showPicture
:
1
,
showMedia
:
1
,
showListSummary
:
1
,
showDetailSummary
:
1
,
showListCaption
:
1
,
showDetailCaption
:
1
,
sortMode
:
0
,
allowHTML
:
1
,
numNew
:
0
,
numUnRead
:
0
,
username
:
""
,
password
:
""
,
category
:
0
,
categoryName
:
"
Uncategorized
"
};
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