Commit e1daa502 by Torkel Ödegaard

small fixes to full edit mode

parent 4b58a0bf
...@@ -26,6 +26,9 @@ function (angular, _, config, graphiteFuncs, Parser) { ...@@ -26,6 +26,9 @@ function (angular, _, config, graphiteFuncs, Parser) {
var parser = new Parser($scope.target.target); var parser = new Parser($scope.target.target);
var astNode = parser.getAst(); var astNode = parser.getAst();
if (astNode === null) {
checkOtherSegments(0);
}
if (astNode.type === 'error') { if (astNode.type === 'error') {
$scope.parserError = astNode.message + " at position: " + astNode.pos; $scope.parserError = astNode.message + " at position: " + astNode.pos;
......
...@@ -119,8 +119,9 @@ ...@@ -119,8 +119,9 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="row-fluid" style="margin-top: 20px"> <div class="editor-row" style="margin-top: 20px" ng-show="editor.index == 1">
<a class="pull-right" ng-click="add_target(panel.target)" ng-show="editor.index == 1">Add target</a> <button class="btn pull-right" ng-click="toggleFullscreen()">Close</button>
</div> <button class="btn btn-success pull-right" ng-click="add_target(panel.target)">Add target</button>
</div> </div>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -120,6 +120,11 @@ ...@@ -120,6 +120,11 @@
.panel-full-edit-tabs { .panel-full-edit-tabs {
margin-top: 10px; margin-top: 10px;
padding: 10px;
min-height: 250px;
margin-left: -10px;
margin-right: -10px;
background: @grayDark;
.nav-tabs > li > a { .nav-tabs > li > a {
line-height: 15px; line-height: 15px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment