summaryrefslogtreecommitdiffstats
path: root/public/javascripts
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-06-20 07:12:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-06-20 07:12:30 +0000
commit94c2356f383000cea42072a94b351f79ff4567d4 (patch)
treea1162b7ee00ddd498d1cb52d3d6299fd9bde9b08 /public/javascripts
parent0714ced81572a1501d37bc866855a7f339c3bf03 (diff)
downloadredmine-94c2356f383000cea42072a94b351f79ff4567d4.tar.gz
redmine-94c2356f383000cea42072a94b351f79ff4567d4.zip
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
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/application.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index eac6df7d3..edb419be1 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -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) {