mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-12 03:26:59 +00:00
fixed a part of #193.
<l:layout> tag now takes norefresh="true", indicating that this page should not be auto-refreshed. The user setting will be still retained, so as soon as the user moves to other pages, it will take effect again. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1329 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
1320d9c6cf
commit
9dbcc518a7
9 files changed
+34
-20
No files matched your search
@@ -209,7 +209,17 @@ public class Functions {
|
||||
|
||||
private static final SimpleFormatter formatter = new SimpleFormatter();
|
||||
|
||||
public static void configureAutoRefresh(HttpServletRequest request, HttpServletResponse response) {
|
||||
/**
|
||||
* Used by <tt>layout.jelly</tt> to control the auto refresh behavior.
|
||||
*
|
||||
* @param noAutoRefresh
|
||||
* On certain pages, like a page with forms, will have annoying interference
|
||||
* with auto refresh. On those pages, disable auto-refresh.
|
||||
*/
|
||||
public static void configureAutoRefresh(HttpServletRequest request, HttpServletResponse response, boolean noAutoRefresh) {
|
||||
if(noAutoRefresh)
|
||||
return;
|
||||
|
||||
String param = request.getParameter("auto_refresh");
|
||||
boolean refresh = isAutoRefresh(request);
|
||||
if (param != null) {
|
||||
|
||||
Reference in new issue
Block a user