File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 108
108
'Illuminate\View\ViewServiceProvider ' ,
109
109
'Illuminate\Workbench\WorkbenchServiceProvider ' ,
110
110
'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider ' ,
111
- 'Way\Generators\GeneratorsServiceProvider ' ,
111
+ // 'Way\Generators\GeneratorsServiceProvider',
112
112
),
113
113
114
114
/*
Original file line number Diff line number Diff line change 50
50
$scope . planning = false ;
51
51
$scope . loading = true ;
52
52
53
- var url = 'http://api.irail.be/connections/ ?to=' + $scope . destination . name
54
- + '&from=' + $scope . departure . name
53
+ window . history . pushState ( "departure" , "iRail.be" , " ?to=" + $scope . destination . id
54
+ + '&from=' + $scope . departure . id
55
55
+ '&date=' + ( $filter ( 'date' ) ( $scope . mydate , 'ddMMyy' ) )
56
56
+ '&time=' + ( $filter ( 'date' ) ( $scope . mytime , 'HHmm' ) )
57
57
+ '&timeSel=' + $scope . timeoption
58
- + '&lang=NL&format=json' ;
58
+ + '&auto=true'
59
+ ) ;
59
60
60
- $http . get ( url )
61
+ $urlInWindow = document . URL ;
62
+
63
+ $http . get ( $urlInWindow )
61
64
. success ( function ( data ) {
62
65
$scope . parseResults ( data ) ;
63
- window . history . pushState ( "departure" , "iRail.be" , "?to=" + $scope . destination . id
64
- + '&from=' + $scope . departure . id
65
- + '&date=' + ( $filter ( 'date' ) ( $scope . mydate , 'ddMMyy' ) )
66
- + '&time=' + ( $filter ( 'date' ) ( $scope . mytime , 'HHmm' ) )
67
- + '&timeSel=' + $scope . timeoption
68
- + '&auto=true'
69
- ) ;
66
+
70
67
$scope . loading = false ;
71
68
$scope . results = true ;
72
69
} )
You can’t perform that action at this time.
0 commit comments