mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
fix composer redirect on home page
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user