File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed
assets/javascripts/respondent Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change
1
+ ### 0.5.3
2
+
3
+ ** Bug Fix**
4
+
5
+ * Fix loading spinner never closing, preventing users from accessing the questionnaire
6
+
1
7
### 0.5.2 (2020-11-25)
2
8
3
9
** Hotfix**
Original file line number Diff line number Diff line change @@ -50,10 +50,13 @@ function ajaxRequestsUnderway() {
50
50
$ ( this ) . dialog ( 'open' ) . prev ( '.ui-dialog-titlebar' ) . hide ( ) ;
51
51
}
52
52
} ) . livequery ( 'ajaxComplete' , function ( ) {
53
- console . log ( 'close' ) ;
54
- if ( $ ( 'div.no_dialog' ) . length === 0 ) {
55
- $ ( this ) . dialog ( 'close' ) ;
56
- }
53
+ livequeryThis = this ;
54
+ $ ( document ) . ready ( function ( ) {
55
+ console . log ( 'close' ) ;
56
+ if ( $ ( 'div.no_dialog' ) . length === 0 ) {
57
+ $ ( livequeryThis ) . dialog ( 'close' ) ;
58
+ }
59
+ } ) ;
57
60
} ) ;
58
61
}
59
62
Original file line number Diff line number Diff line change 149
149
<% if @authorization [ :translator_visible ] %>
150
150
< script type ="text/javascript " src ="http://www.google.com/jsapi "> </ script >
151
151
< script type ="text/javascript ">
152
- google . load ( "language" , "1" ) ;
153
152
var LANGUAGES = {
154
153
"<%= t ( 'languages.arabic' ) %> " : 'ar' ,
155
154
"<%= t ( 'languages.chinese' ) %> " : 'zh' ,
158
157
"<%= t ( 'languages.russian' ) %> " : 'ru' ,
159
158
"<%= t ( 'languages.spanish' ) %> " : 'es'
160
159
} ;
160
+ google . load ( "language" , "1" ) ;
161
161
</ script >
162
162
<% end %>
You can’t perform that action at this time.
0 commit comments