forked from OpenNeo/impress
preserve outfits#edit location hash when switching locales
This commit is contained in:
parent
52fee4f0c9
commit
254a4fe89c
1 changed files with 7 additions and 0 deletions
|
@ -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!");
|
||||
|
|
Loading…
Reference in a new issue