Skip to content

Commit

Permalink
Merge pull request #9 from gcummings/JENKINS-23867
Browse files Browse the repository at this point in the history
[FIXED JENKINS-23867] Update javascript to work with new core div layout in Jenkins 1.572
  • Loading branch information
StevenGBrown committed Jul 23, 2014
2 parents ff832f2 + f1f5ced commit eaaeef1
Showing 1 changed file with 10 additions and 2 deletions.
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({
}
});

}());
}());

0 comments on commit eaaeef1

Please sign in to comment.