Skip to content
This repository
  • 4 commits
  • 2 files changed
  • 0 comments
  • 2 contributors
4  media/js/wiki.js
@@ -1053,7 +1053,7 @@
1053 1053
                 // Preserve editor content, because saving to the iframe can
1054 1054
                 // yield things like 403 / login-required errors that bust out
1055 1055
                 // of the frame
1056  
-                localStorage.setItem(STORAGE_NAME, savedTa);
  1056
+                localStorage.setItem(DRAFT_NAME, savedTa);
1057 1057
             }
1058 1058
             // Redirect the editor form to the iframe.
1059 1059
             $(formSelector)
@@ -1075,7 +1075,7 @@
1075 1075
 
1076 1076
                         // Dig into the iframe on load and look for "OK". If found,
1077 1077
                         // then it should be safe to throw away the preserved content.
1078  
-                        localStorage.removeItem(STORAGE_NAME);
  1078
+                        localStorage.removeItem(DRAFT_NAME);
1079 1079
 
1080 1080
                         // We also need to update the form's current_rev to
1081 1081
                         // avoid triggering a conflict, since we just saved in
2  templates/base.html
@@ -187,7 +187,7 @@
187 187
 {% endblock %}
188 188
 {% block js %}{% endblock %}
189 189
 
190  
-<script src="/{{ request.locale }}/waffles.js" type="text/javascript"></script>
  190
+<script src="/{{ request.locale }}/waffles.js" type="text/javascript" async></script>
191 191
 {# end js #}
192 192
 </body>
193 193
 </html>

No commit comments for this range

Something went wrong with that request. Please try again.