The current implementation determines behavior by existence of "norefresh" attribute. Hence it is quite complex to dynamically define the behavior in parent jelly files
It would be great to interpret norefresh="false" as "allows page refresh"
- is blocking
-
JENKINS-21191 Add support of views without automatic refresh
-
- Resolved
-
Code changed in jenkins
User: Oleg Nenashev
Path:
core/src/main/java/hudson/model/View.java
core/src/main/resources/hudson/model/View/index.jelly
core/src/main/resources/lib/layout/breadcrumbBar.jelly
core/src/main/resources/lib/layout/layout.jelly
http://jenkins-ci.org/commit/jenkins/5de6a8d06dbc2fe7e34bf8fb531c6588bbc77db8
Log:
JENKINS-21190- lib/layout/layout.jelly: Interpret norefresh=="false" as "autorefresh is enabled"The fix allows to explicitly disable automatic page refreshes in the @View extensions.
Resolves https://issues.jenkins-ci.org/browse/JENKINS-21190
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>