mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
Retain hudsonRules/jenkinsRules for now, as many scripts in core & plugins directly modify this hash.
This commit is contained in:
1 parent
e3266eb8d5
commit
c9cf3b67bb
1 file changed
+8
-3
@@ -561,7 +561,9 @@ function sequencer(fs) {
|
||||
return next();
|
||||
}
|
||||
|
||||
/** @deprecated Use {@link Behaviour.specify} instead. */
|
||||
var jenkinsRules = {
|
||||
// XXX convert as many as possible to Behaviour.specify calls; some seem to have an implicit order dependency, but what?
|
||||
"BODY" : function() {
|
||||
tooltip = new YAHOO.widget.Tooltip("tt", {context:[], zindex:999});
|
||||
},
|
||||
@@ -1159,9 +1161,8 @@ var jenkinsRules = {
|
||||
adjustSticker();
|
||||
}
|
||||
};
|
||||
for (var selector in jenkinsRules) {
|
||||
Behaviour.specify(selector, 'hudson-behavior', 0, jenkinsRules[selector]);
|
||||
}
|
||||
/** @deprecated Use {@link Behaviour.specify} instead. */
|
||||
var hudsonRules = jenkinsRules; // legacy name
|
||||
|
||||
function applyTooltip(e,text) {
|
||||
// copied from YAHOO.widget.Tooltip.prototype.configContext to efficiently add a new element
|
||||
@@ -1214,6 +1215,10 @@ function refillOnChange(e,onChange) {
|
||||
h(); // initial fill
|
||||
}
|
||||
|
||||
Behaviour.register(hudsonRules);
|
||||
|
||||
|
||||
|
||||
function xor(a,b) {
|
||||
// convert both values to boolean by '!' and then do a!=b
|
||||
return !a != !b;
|
||||
|
||||
Reference in new issue
Block a user