equal
deleted
inserted
replaced
888 "X-CSRFToken": options.csrf_token |
888 "X-CSRFToken": options.csrf_token |
889 }, |
889 }, |
890 success: function(data, status, request){ |
890 success: function(data, status, request){ |
891 var location = request.getResponseHeader("Location"), |
891 var location = request.getResponseHeader("Location"), |
892 projid = location.match(/([^/]+)\/?$/)[1], |
892 projid = location.match(/([^/]+)\/?$/)[1], |
893 destination = IriSP.endpoints.hashcut_page + projid; |
893 destination = IriSP.endpoints.hashcut_page.replace('__PROJECT_ID__', projid); |
894 $(window).off("beforeunload", onLeave); |
894 $(window).off("beforeunload", onLeave); |
895 document.location.href = destination; |
895 document.location.href = destination; |
896 }, |
896 }, |
897 error: function(jqXHR, textStatus, errorThrown){ |
897 error: function(jqXHR, textStatus, errorThrown){ |
898 alert(gettext("Server error\nYour hashcut couldn't be published")); |
898 alert(gettext("Server error\nYour hashcut couldn't be published")); |