| Index: appengine/findit/templates/crash/crash_config.html
|
| diff --git a/appengine/findit/templates/crash/crash_config.html b/appengine/findit/templates/crash/crash_config.html
|
| index 6b6dad9e0aaa9d450a56aec60ba2c4a1e3b5487c..2a6963b8533957965d86e4ce81457f01ad194e89 100644
|
| --- a/appengine/findit/templates/crash/crash_config.html
|
| +++ b/appengine/findit/templates/crash/crash_config.html
|
| @@ -7,6 +7,8 @@
|
| <script>
|
| var crash = {};
|
| crash.fracas = {{ fracas | tojson | safe }};
|
| + crash.component_classifier = {{ component_classifier | tojson | safe }};
|
| + crash.project_classifier = {{ project_classifier | tojson | safe }};
|
|
|
| function getJsonOfTextarea(textId) {
|
| return JSON.parse($('#' + textId).val());
|
| @@ -19,6 +21,8 @@
|
| function save(e) {
|
| var newConfig = {
|
| 'fracas': getJsonOfTextarea('fracas'),
|
| + 'component_classifier': getJsonOfTextarea('component-classifier'),
|
| + 'project_classifier': getJsonOfTextarea('project-classifier'),
|
| };
|
| $.post('/crash/config', { data: JSON.stringify(newConfig) }).done(function() {
|
| window.location.reload(); // Reload after successful saving.
|
| @@ -32,6 +36,8 @@
|
| $(document).ready(function() {
|
| $('#save-button').click(save);
|
| $('#fracas').val(getStringFromJson(crash.fracas));
|
| + $('#component-classifier').val(getStringFromJson(crash.component_classifier));
|
| + $('#project-classifier').val(getStringFromJson(crash.project_classifier));
|
| });
|
| </script>
|
| </head>
|
| @@ -41,5 +47,13 @@
|
| Settings for Fracas:<br>
|
| <textarea id="fracas" rows="20" cols="80"></textarea>
|
| </div>
|
| + <div>
|
| + Settings for component classifier:<br>
|
| + <textarea id="component-classifier" rows="20" cols="80"></textarea>
|
| + </div>
|
| + <div>
|
| + Settings for project classifier:<br>
|
| + <textarea id="project-classifier" rows="20" cols="80"></textarea>
|
| + </div>
|
| <button type="submit" id="save-button">Save</button>
|
| </body>
|
|
|