CompResourcesList Class
_views\ResourceListView.js:1
ResourceListView is responsible for managing the UI of selecting, adding and deleting resources (i.e.: video, images and swfs) as well as property management of resources, such as renaming a resource.
Constructor
CompResourcesList
()
Object
Returns:
instantiated CompResourcesList
Item Index
Methods
_init
()
Init the ChannelList component and enable sortable channels UI via drag and drop operations.
Returns:
none
_listenAutoPopup
()
init HTML5 video.js component
_listenInputChange
()
When user changes text update msdb, we use xSavePlayerData as a json boilerplate that we append values to and save it in msdb as player_data
Returns:
none
_listenRemoveResource
()
Listen to remove resource event
Returns:
none
_listenResourceSelected
()
Listen to resource selection, populate the properties panel and open it if needed.
_onFileSelected
()
Number
On selecting new resources through multi-upload from local machine.
Returns:
-1 on fail or 1 on pass
_populateResourcePreviewCDN
-
i_recResource
Populate the resource preview with loaded resource file (CDN)
Parameters:
-
i_recResource
Object
_populateResourcePreviewLegacy
-
i_recResource
Populate the resource preview with loaded resource file (none CDN)
Parameters:
-
i_recResource
Object
render
()
Populate the UI with all resources for the account (i.e.: videos, images, swfs).
Returns:
none
unrender
()
Unrender, future support