Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.enablePVR = function()
- {
- for (i = 0; i < $scope.new_epg.length; i++) {
- start_time = convert_time($scope.new_epg[i].start);
- $scope.new_epg[i].title = $scope.new_epg[i].title.replace(/<(?:.|\n)*?>/gm, '');
- $scope.new_epg[i].description = "";
- $scope.new_epg[i].time = start_time;
- }
- archiveEPG = [];
- for(var i=0; i<archiveEPG.length; i++) {
- var e = document.getElementById("dateSelect");
- if($scope.new_epg[i].start.split(" ")[0] == e[e.selectedIndex].value) {
- archiveEPG[archiveEPG.length+1] = $scope.new_epg[i];
- }
- }
- document.getElementById("dateSelect").remove(0);
- $scope.get_epg(null, true, archiveEPG);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement