source: trunk/grails-app/conf/BaseFilters.groovy @ 172

Last change on this file since 172 was 172, checked in by duh, 14 years ago
  • added table-editor.js which makes tables multi editable (see the wizard subjects page and drag a selection over table rows and start editting)
  • updated css and templates
  • Property svn:keywords set to
    Date
    Author
    Rev
File size: 536 bytes
Line 
1/**
2 * Base Filters
3 * @Author Jeroen Wesbeek
4 * @Since 20091026
5 * @see main.gsp
6 * @see http://grails.org/Filters
7 * @Description
8 *
9 * These filters contain generic logic for -every- page request.
10 *
11 * Revision information:
12 * $Rev: 172 $
13 * $Author: duh $
14 * $Date: 2010-02-04 16:50:31 +0000 (do, 04 feb 2010) $
15 */
16class BaseFilters {
17        // define filters
18        def filters = {
19                defineStyle(controller: '*', action: '*') {
20                        // before every execution
21                        before = {
22                                // set the default style in the session
23                                if (!session.style) {
24                                        session.style = 'default_style'
25                                }
26                        }
27                }
28        }
29}
30
Note: See TracBrowser for help on using the repository browser.