Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JENKINS-23867 - updating javascript to work with new core div layout in 1.572 #9

Merged
merged 1 commit into from
Jul 23, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,16 @@ function timestampFound() {
return;
}
settingsInserted = true;

// for div layout in >= 1.572 we need to use 'side-panel-content'
var element = document.getElementById('side-panel-content');
if (null == element) {
// for < 1.572 we need to use 'navigation'
element = document.getElementById('navigation');
}

new Ajax.Updater(
document.getElementById('navigation'),
element,
rootURL + "/extensionList/hudson.console.ConsoleAnnotatorFactory/hudson.plugins.timestamper.annotator.TimestampAnnotatorFactory/usersettings",
{ insertion: Insertion.After, onComplete: init }
);
Expand All @@ -98,4 +106,4 @@ Behaviour.register({
}
});

}());
}());