Skip to content

Commit c541939

Browse files
committed
Merge remote-tracking branch 'origin/release-0.5.3'
2 parents 6510ba2 + 150a5b0 commit c541939

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### 0.5.3
2+
3+
**Bug Fix**
4+
5+
* Fix loading spinner never closing, preventing users from accessing the questionnaire
6+
17
### 0.5.2 (2020-11-25)
28

39
**Hotfix**

app/assets/javascripts/respondent/init.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,13 @@ function ajaxRequestsUnderway() {
5050
$(this).dialog('open').prev('.ui-dialog-titlebar').hide();
5151
}
5252
}).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+
});
5760
});
5861
}
5962

app/views/questionnaires/submission.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@
149149
<% if @authorization[:translator_visible] %>
150150
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
151151
<script type="text/javascript">
152-
google.load("language","1");
153152
var LANGUAGES = {
154153
"<%=t('languages.arabic')%>" : 'ar',
155154
"<%=t('languages.chinese')%>" : 'zh',
@@ -158,5 +157,6 @@
158157
"<%=t('languages.russian')%>" : 'ru',
159158
"<%=t('languages.spanish')%>" : 'es'
160159
};
160+
google.load("language","1");
161161
</script>
162162
<% end %>

0 commit comments

Comments
 (0)