small fixes to full edit mode

This commit is contained in:
Torkel Ödegaard 2013-12-30 14:49:02 +01:00
parent 4b58a0bf21
commit e1daa502c8
4 changed files with 13 additions and 4 deletions

View File

@ -26,6 +26,9 @@ function (angular, _, config, graphiteFuncs, Parser) {
var parser = new Parser($scope.target.target);
var astNode = parser.getAst();
if (astNode === null) {
checkOtherSegments(0);
}
if (astNode.type === 'error') {
$scope.parserError = astNode.message + " at position: " + astNode.pos;

View File

@ -119,8 +119,9 @@
</div>
</div>
</div>
<div class="row-fluid" style="margin-top: 20px">
<a class="pull-right" ng-click="add_target(panel.target)" ng-show="editor.index == 1">Add target</a>
</div>
</div>
<div class="editor-row" style="margin-top: 20px" ng-show="editor.index == 1">
<button class="btn pull-right" ng-click="toggleFullscreen()">Close</button>
<button class="btn btn-success pull-right" ng-click="add_target(panel.target)">Add target</button>
</div>

File diff suppressed because one or more lines are too long

View File

@ -120,6 +120,11 @@
.panel-full-edit-tabs {
margin-top: 10px;
padding: 10px;
min-height: 250px;
margin-left: -10px;
margin-right: -10px;
background: @grayDark;
.nav-tabs > li > a {
line-height: 15px;