Skip to content

Commit a7b95c0

Browse files
committed
Fixed a bug when saving model
1 parent a77414e commit a7b95c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/bootstrap-example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
<form class="navbar-form navbar-left" role="search">
9898
<div class="form-group">
9999

100-
<button class="btn btn-primary" ng-click="save();">Save configuration</button>
100+
<button class="btn btn-primary" ng-click="save();">Save to gist</button>
101101

102102
<div class="input-group" ng-show="navbarMode === 'default' && !error"></div>
103103
<div class="input-group" ng-show="navbarMode === 'loaded' && !error">
@@ -250,7 +250,7 @@ <h3>Schema</h3>
250250
$scope.loading = false;
251251
$scope.schemaJson = res.files['schema.json'].content;
252252
$scope.formJson = res.files['form.json'].content;
253-
$scope.modelData = res.files['model.json'].content;
253+
$scope.modelData = JSON.parse(res.files['model.json'].content);
254254
}).error(function() {
255255
$scope.loadedData = 'dummy';
256256
$scope.error = 'Failed to load gist.';

0 commit comments

Comments
 (0)