Advertisement
Guest User

delete from array doesn't work

a guest
Nov 28th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. $scope.enablePVR = function()
  2. {
  3. for (i = 0; i < $scope.new_epg.length; i++) {
  4. start_time = convert_time($scope.new_epg[i].start);
  5. $scope.new_epg[i].title = $scope.new_epg[i].title.replace(/<(?:.|\n)*?>/gm, '');
  6. $scope.new_epg[i].description = "";
  7. $scope.new_epg[i].time = start_time;
  8. }
  9. archiveEPG = [];
  10. for(var i=0; i<archiveEPG.length; i++) {
  11. var e = document.getElementById("dateSelect");
  12. if($scope.new_epg[i].start.split(" ")[0] == e[e.selectedIndex].value) {
  13. archiveEPG[archiveEPG.length+1] = $scope.new_epg[i];
  14. }
  15. }
  16. document.getElementById("dateSelect").remove(0);
  17. $scope.get_epg(null, true, archiveEPG);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement