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

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

Loading…
Cancel
Save