1
0
Fork 0
forked from OpenNeo/impress

preserve outfits#edit location hash when switching locales

This commit is contained in:
Emi Matchu 2013-01-26 12:02:06 -06:00
parent 52fee4f0c9
commit 254a4fe89c

View file

@ -1296,6 +1296,13 @@ userbar_sessions_link.hover(function () {
userbar_message_el.stop().fadeOut('fast');
});
var localeForm = $('#locale-form');
localeForm.submit(function (e) {
var fullPath = document.location.pathname + document.location.search +
document.location.hash;
localeForm.find('input[name=return_to]').val(fullPath);
});
$.ajaxSetup({
error: function (xhr) {
$.jGrowl("There was an error loading that last resource. Oops. Please try again!");