Commit de63be910d1117446b8bee53a5c8d68739278e1a

Authored by Sean Wills
1 parent 3ef35c23
Exists in master and in 1 other branch template

No settings

Showing 2 changed files with 17 additions and 18 deletions   Show diff stats
index.html
... ... @@ -37,7 +37,7 @@
37 37 <img src="./includes/images/checked.png" ng-show='setting.enabled == false' ng-click="changeSetting('enable', $index)">
38 38 <img src="./includes/images/unchecked.png" ng-show='setting.enabled == true' ng-click="changeSetting('disable', $index)">
39 39 <span>{{setting.description}}</span>
40   - </div>
  40 + </div>
41 41 </div> -->
42 42 </div>
43 43 <div class="map">
... ...
src/js/app.js
... ... @@ -61,7 +61,7 @@ app.controller(&#39;myCtrl&#39;, function($scope, $http, $rootScope, $sce) {
61 61 valid: false,
62 62 id: 1
63 63  
64   - },
  64 + },
65 65 {
66 66 Description: "Start typing to search...",
67 67 lbl: "Drop",
... ... @@ -104,20 +104,20 @@ app.controller(&#39;myCtrl&#39;, function($scope, $http, $rootScope, $sce) {
104 104 calcRoute($scope.stops[0], $scope.stops[$scope.stops.length - 1], waypoints);
105 105 }
106 106 });
107   - function refreshSettings(completed){
108   - newSettings = [];
109   - $scope.settings.forEach(function(s, i){
110   - if(completed && !s.showOnPageLoad){
111   - s.showOnRouteLoad = true;
112   - } else {
113   - s.showOnRouteLoad = false;
114   - }
115   - newSettings.push(s);
116   - if (i == $scope.settings.length - 1){
117   - $scope.settings = newSettings;
118   - }
119   - })
120   - }
  107 + // function refreshSettings(completed){
  108 + // newSettings = [];
  109 + // $scope.settings.forEach(function(s, i){
  110 + // if(completed && !s.showOnPageLoad){
  111 + // s.showOnRouteLoad = true;
  112 + // } else {
  113 + // s.showOnRouteLoad = false;
  114 + // }
  115 + // newSettings.push(s);
  116 + // if (i == $scope.settings.length - 1){
  117 + // $scope.settings = newSettings;
  118 + // }
  119 + // })
  120 + // }
121 121 function slider() {
122 122 $("#slider").slider({
123 123 animate: "fast",
... ... @@ -328,7 +328,7 @@ app.controller(&#39;myCtrl&#39;, function($scope, $http, $rootScope, $sce) {
328 328 });
329 329 slider();
330 330 getTime();
331   - refreshSettings();
  331 + // refreshSettings();
332 332 follow(response.routes[0].overview_path);
333 333 } else {
334 334 $scope.warning = 'Destination Too Far Away!';
... ... @@ -527,4 +527,3 @@ app.controller(&#39;myCtrl&#39;, function($scope, $http, $rootScope, $sce) {
527 527  
528 528  
529 529 });
530   -
... ...