File tree 5 files changed +30
-2
lines changed
templates/CRM/PivotReport/Page
5 files changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,12 @@ div.pivot-report-output-config div.pivot-report-export-button {
154
154
transition : none;
155
155
}
156
156
157
+ # pivot-report-preloader .progress .progress-value {
158
+ position : absolute;
159
+ width : 100% ;
160
+ text-align : center;
161
+ }
162
+
157
163
div .right-align {
158
164
float : right;
159
165
}
Original file line number Diff line number Diff line change
1
+ /* Pivot Report cache rebuilding */
2
+
3
+ div .rebuild-pivot-report-cache div .in-progress {
4
+ display : inline;
5
+ }
6
+
7
+ div .rebuild-pivot-report-cache div .in-progress i .fa-spin {
8
+ font-size : 1.5em ;
9
+ vertical-align : middle;
10
+ }
11
+
1
12
/* Pivot Table progress bar */
2
13
3
14
# pivot-report-preloader {
12
23
transition : none;
13
24
}
14
25
26
+ # pivot-report-preloader .progress .progress-value {
27
+ position : absolute;
28
+ width : 100% ;
29
+ text-align : center;
30
+ }
31
+
15
32
# pivot-report-admin .build-date-time {
16
33
margin-top : 1em ;
17
34
}
Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ CRM.PivotReport.Admin = (function($) {
80
80
that . Preloader . hide ( ) ;
81
81
that . updateBuildDateTime ( ) ;
82
82
83
+ $ ( 'input.build-cache-button' , that . container ) . prop ( 'disabled' , false ) ;
84
+
83
85
CRM . alert ( 'All Pivot Reports have been refreshed.' , null , 'success' ) ;
84
86
}
85
87
@@ -130,6 +132,8 @@ CRM.PivotReport.Admin = (function($) {
130
132
$ ( 'input[type="button"].build-cache-button' ) . click ( function ( e ) {
131
133
CRM . confirm ( { message : 'This operation may take some time to build the cache. Do you really want to build the cache for all supported entities?' } )
132
134
. on ( 'crmConfirm:yes' , function ( ) {
135
+ $ ( 'input.build-cache-button' , that . container ) . prop ( 'disabled' , true ) ;
136
+
133
137
that . buildCache ( ) ;
134
138
} ) ;
135
139
} ) ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ CRM.PivotReport.Preloader = (function($) {
9
9
this . container = CRM . $ ( '#pivot-report-preloader' ) ;
10
10
this . title = CRM . $ ( '.pivot-report-loading-title' , this . container ) ;
11
11
this . progressBar = CRM . $ ( '.progress > .progress-bar' , this . container ) ;
12
+ this . progressValue = CRM . $ ( '.progress > .progress-value' , this . container ) ;
12
13
}
13
14
14
15
/**
@@ -49,9 +50,8 @@ CRM.PivotReport.Preloader = (function($) {
49
50
Preloader . prototype . setValue = function ( value ) {
50
51
var progressValue = value + '%' ;
51
52
52
- this . progressBar . attr ( 'aria-valuenow' , progressValue ) ;
53
53
this . progressBar . css ( 'width' , progressValue ) ;
54
- this . progressBar . text ( progressValue ) ;
54
+ this . progressValue . text ( progressValue ) ;
55
55
}
56
56
57
57
return Preloader ;
Original file line number Diff line number Diff line change 2
2
<div class =" pivot-report-loading-title" ></div >
3
3
<div class =" progress" >
4
4
<div class =" progress-bar" role =" progressbar" aria-valuenow =" 0" aria-valuemin =" 0" aria-valuemax =" 100" ></div >
5
+ <div class =" progress-value" ></div >
5
6
</div >
6
7
</div >
You can’t perform that action at this time.
0 commit comments