fix composer redirect on home page

v1.18.x
barisusakli 10 years ago
parent f974af2247
commit 1d72a8f0ee

@ -30,7 +30,7 @@ $(document).ready(function() {
ajaxify.currentPage = null;
ajaxify.go = function (url, callback, quiet) {
ajaxify.go = function (url, callback, quiet, search) {
if (ajaxify.handleRedirects(url)) {
return true;
}
@ -43,7 +43,7 @@ $(document).ready(function() {
apiXHR.abort();
}
url = ajaxify.start(url, quiet);
url = ajaxify.start(url, quiet, search);
$('#footer, #content').removeClass('hide').addClass('ajaxifying');

@ -313,9 +313,9 @@ define('composer', [
if (data.mobile) {
var qs = '?p=' + window.location.pathname;
ajaxify.go('compose' + qs, function() {
ajaxify.go('compose', function() {
renderComposer();
});
}, false, qs);
} else {
renderComposer();
}

Loading…
Cancel
Save