Browse Source

Fixed javascript

Rafał Pitoń 10 years ago
parent
commit
9d85441583
1 changed files with 3 additions and 3 deletions
  1. 3 3
      misago/static/misago/js/misago-posting.js

+ 3 - 3
misago/static/misago/js/misago-posting.js

@@ -271,13 +271,13 @@ $(function() {
               }
               }
 
 
               if (on_post) {
               if (on_post) {
-                _this.$ajax_complete.addClass('in')
+                _this.$ajax_complete.addClass('in');
 
 
-                var past_location = window.location.href;
+                var past_location = String(window.location.href);
                 window.location.href = data.post_url;
                 window.location.href = data.post_url;
 
 
                 if (past_location.indexOf(window.location.href)) {
                 if (past_location.indexOf(window.location.href)) {
-                  window.reload();
+                  window.location.reload();
                 }
                 }
               }
               }
             } else if (data.errors !== undefined) {
             } else if (data.errors !== undefined) {