File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ export const ViewComponent: VeComponentOptions = {
385
385
<div id="{{$ctrl.mmsElementId}}" ng-class="{landscape: $ctrl.view._printLandscape}">
386
386
<div ng-if="!$ctrl.noTitle">
387
387
<div ng-if="!$ctrl.mmsLink" >
388
- <h1 class="view-title h {{$ctrl.level}}">
388
+ <h1 class="view-title bm-level- {{$ctrl.level}}">
389
389
<span class="ve-view-number" ng-show="$ctrl.showNumbering">{{$ctrl.view._veNumber}}</span>
390
390
<transclude-name mms-element-id="{{$ctrl.view.id}}" mms-project-id="{{$ctrl.view._projectId}}" mms-ref-id="{{$ctrl.view._refId}}" mms-watch-id="true"></transclude-name>
391
391
</h1>
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export class TranscludeSectionController extends DeletableTransclusion implement
46
46
showNumbering : boolean ;
47
47
noCompile : boolean = true ;
48
48
//Locals
49
-
49
+ level : number = 0 ;
50
50
static $inject = [ ...DeletableTransclusion . $inject , 'PresentationService' , 'RootScopeService' ] ;
51
51
52
52
constructor (
@@ -129,6 +129,9 @@ export class TranscludeSectionController extends DeletableTransclusion implement
129
129
this . growl . warning ( 'There are duplicates in this section, duplicates ignored!' ) ;
130
130
}
131
131
}
132
+ if ( this . element . _veNumber ) {
133
+ this . level = this . element . _veNumber . split ( '.' ) . length ;
134
+ }
132
135
const deferred = this . $q . defer < string > ( ) ;
133
136
deferred . reject ( { status : 200 } ) ; //don't recompile
134
137
return deferred . promise ;
@@ -140,7 +143,7 @@ export const TranscludeSectionComponent: VeComponentOptions = {
140
143
template : `
141
144
<div ng-if="$ctrl.element.specification">
142
145
<div ng-show="!$ctrl.isEditing">
143
- <h1 class="section-title h {{$ctrl.level}}">
146
+ <h1 class="section-title bm-level- {{$ctrl.level}}">
144
147
<span class="ve-view-number" ng-show="$ctrl.showNumbering">{{$ctrl.element._veNumber}}</span> {{$ctrl.element.name}}
145
148
</h1>
146
149
</div>
Original file line number Diff line number Diff line change @@ -529,11 +529,9 @@ p, div {widows: 2; orphans: 2;}
529
529
------------------------------------------------------------------*/
530
530
@page:first {@top {content: ''} @bottom {content: ''} @top-left {content: ''} @top-right {content: ''} @bottom-left {content: ''} @bottom-right {content: ''}}
531
531
532
- /*------------------------------------------------------------------
533
- 8. Signature Box
534
532
` ;
535
533
for ( let i = 1 ; i < 10 ; i ++ ) {
536
- ret += `.h ${ i } {-prince- bookmark-level: ${ i } ;}
534
+ ret += `.bm-level- ${ i } {bookmark-level: ${ i } ;}
537
535
` ;
538
536
}
539
537
if ( htmlFlag ) {
You can’t perform that action at this time.
0 commit comments