Load changesets and time entries tabs async (#3058).

Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@18275 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2019-06-20 07:12:30 +00:00
parent 0714ced815
commit 94c2356f38
11 changed files with 63 additions and 37 deletions

View File

@@ -385,6 +385,24 @@ function showIssueHistory(journal, url) {
return false;
}
function getRemoteTab(name, remote_url, url) {
$('#tab-content-' + name).parent().find('.tab-content').hide();
$('#tab-content-' + name).parent().find('div.tabs a').removeClass('selected');
$('#tab-' + name).addClass('selected')
replaceInHistory(url)
$.ajax({
url: remote_url,
type: 'get',
success: function(data){
$('#tab-content-' + name).html(data).show();
}
});
return false;
}
//replaces current URL with the "href" attribute of the current link
//(only triggered if supported by browser)
function replaceInHistory(url) {