|
41 | 41 | <![endif]-->
|
42 | 42 |
|
43 | 43 | <!--Global JS-->
|
44 |
| - |
| 44 | + |
45 | 45 | <script src="js/jquery_form/jquery.form.js"></script>
|
46 | 46 | <script src="plugins/bootstrap/js/bootstrap.min.js"></script>
|
47 | 47 |
|
|
115 | 115 | <a ng-click="accordionMenu(item.id)" href=""><i class="fa {{item.class}}"></i><span>{{item.name}}</span></a><!-- expanded = !expanded-->
|
116 | 116 | <ul class="slideDown lessonsAndStages {{item.displayClass}}" id="{{item.id}}" isOpen=0>
|
117 | 117 | <li ng-repeat="lesson in item.children" class="{{lesson.selectedClass}}">
|
118 |
| - <a ng-click="renderLesson(lesson.id,lesson.link,{showSource:lesson.showSource,showHints:lesson.showHints})" id="{{lesson.id}}" class="{{lesson.selectedClass}}" title="link to {{lesson.name}}" href="">{{lesson.name}}</a><span class="{{lesson.completeClass}}"></span> |
| 118 | + <a ng-click="renderLesson(lesson.id, lesson.link, {showSource: lesson.showSource, showHints: lesson.showHints})" id="{{lesson.id}}" class="{{lesson.selectedClass}}" title="link to {{lesson.name}}" href="">{{lesson.name}}</a><span class="{{lesson.completeClass}}"></span> |
119 | 119 | <span ng-repeat="stage in lesson.children">
|
120 |
| - <a ng-click="renderLesson(stage.id,stage.link,{showSource:stage.showSource,showHints:stage.showHints})" class="selectedClass" id="{{stage.id}}" title="link to {{stage.name}}" href="">{{stage.name}}</a><span class="{{stage.completeClass}}"></span> |
| 120 | + <a ng-click="renderLesson(stage.id, stage.link, {showSource: stage.showSource, showHints: stage.showHints})" class="selectedClass" id="{{stage.id}}" title="link to {{stage.name}}" href="">{{stage.name}}</a><span class="{{stage.completeClass}}"></span> |
121 | 121 | </span>
|
122 | 122 | </li>
|
123 | 123 | </ul>
|
|
177 | 177 | <div class="cookiesView">
|
178 | 178 | <h4>Cookies</h4>
|
179 | 179 | <div class="cookieContainer" ng-repeat="cookie in cookies">
|
180 |
| - <table class="cookieTable table-striped table-nonfluid" > |
181 |
| - <thead> |
182 |
| - <tr><th class="col-sm-1"></th><th class="col-sm-1"></th></tr> <!-- Field / Value --> |
183 |
| - </thead> |
184 |
| - <tbody> |
185 |
| - <tr ng-repeat="(key, value) in cookie"> |
186 |
| - <td>{{key}}</td> |
187 |
| - <td>{{value}}</td> |
188 |
| - </tr> |
189 |
| - </tbody> |
190 |
| - <!--<li ng-repeat="(key, value) in cookie">{{key}} :: {{ value}} </td>--> |
191 |
| - <!--</ul>--> |
192 |
| - </table> |
| 180 | + <table class="cookieTable table-striped table-nonfluid" > |
| 181 | + <thead> |
| 182 | + <tr><th class="col-sm-1"></th><th class="col-sm-1"></th></tr> <!-- Field / Value --> |
| 183 | + </thead> |
| 184 | + <tbody> |
| 185 | + <tr ng-repeat="(key, value) in cookie"> |
| 186 | + <td>{{key}}</td> |
| 187 | + <td>{{value}}</td> |
| 188 | + </tr> |
| 189 | + </tbody> |
| 190 | + <!--<li ng-repeat="(key, value) in cookie">{{key}} :: {{ value}} </td>--> |
| 191 | + <!--</ul>--> |
| 192 | + </table> |
193 | 193 | </div>
|
194 | 194 | </div>
|
195 | 195 | <div id="paramsView"> <!--class="paramsView"-->
|
|
296 | 296 |
|
297 | 297 | $(document).ready(function() {
|
298 | 298 | //TODO merge appliction.js code into other js files
|
299 |
| - app.init(); |
| 299 | + app.init(); |
300 | 300 | });
|
301 | 301 | // make all forms ajax forms
|
302 | 302 | var options = {
|
|
354 | 354 | // make any embedded forms ajaxy
|
355 | 355 | goat.utils.showLessonCookiesAndParams();
|
356 | 356 | goat.utils.makeFormsAjax();
|
357 |
| - goat.utils.ajaxifyAttackHref(); //TODO find some way to hook scope for current menu. Likely needs larger refactor which is already started/stashed |
| 357 | + // links are hooked with each lesson now (see Java class Screen.getContent()) |
| 358 | + //goat.utils.ajaxifyAttackHref(); //TODO find some way to hook scope for current menu. Likely needs larger refactor which is already started/stashed |
358 | 359 | //refresh menu
|
359 | 360 | angular.element($('#leftside-navigation')).scope().renderMenu();
|
360 | 361 | }
|
|
0 commit comments