Toggle navigation
Toggle navigation
This project
Loading...
Sign in
digsig
/
digsig-player-service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Stefan Huber
2017-02-09 13:02:10 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
25c9fe3a2e55c9a53f47fd0c7fc9a41b42a7e48a
25c9fe3a
1 parent
fd68ad68
added infoboxes to factory
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
build/bundle.js
build/bundle.js.map
src/program-item/program-item-factory.ts
build/bundle.js
View file @
25c9fe3
...
...
@@ -179,6 +179,7 @@ var ProgramManager = (function () {
ProgramManager
.
prototype
.
findCurrentProgramItem
=
function
(
schedule
,
dateInMinutes
)
{
var
timeList
=
[];
var
tmpSchedule
=
{};
dateInMinutes
--
;
// make it not so strict, which will start one minute earlier
for
(
var
startTime
in
schedule
)
{
if
(
schedule
.
hasOwnProperty
(
startTime
))
{
var
minutes
=
Util
.
convertToMinutes
(
startTime
);
...
...
@@ -300,6 +301,9 @@ var ProgramItemFactory = (function () {
ProgramItemFactory
.
prototype
.
prepareProgramItem
=
function
(
type
,
data
)
{
var
programItem
=
new
ProgramItem
();
programItem
.
type
=
type
;
if
(
data
.
infoboxes
)
{
programItem
.
data
.
infoboxes
=
data
.
infoboxes
;
}
if
(
type
===
PROGRAM_ITEM_TYPE_VIDEO
)
{
return
this
.
prepareVideoItem
(
programItem
,
data
);
}
...
...
build/bundle.js.map
View file @
25c9fe3
This diff is collapsed. Click to expand it.
src/program-item/program-item-factory.ts
View file @
25c9fe3
...
...
@@ -34,6 +34,10 @@ export class ProgramItemFactory {
let
programItem
=
new
ProgramItem
();
programItem
.
type
=
type
;
if
(
data
.
infoboxes
)
{
programItem
.
data
.
infoboxes
=
data
.
infoboxes
;
}
if
(
type
===
PROGRAM_ITEM_TYPE_VIDEO
)
{
return
this
.
prepareVideoItem
(
programItem
,
data
);
}
else
if
(
type
===
PROGRAM_ITEM_TYPE_SLIDESHOW
)
{
...
...
Please
register
or
login
to post a comment