Ignore:
Timestamp:
12 Mar 2011, 15:42:01 (14 years ago)
Author:
uli
Message:

Try to fix IE problem with empty scripts.
See https://trac.waeup.org/ticket/26.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/widgets/table.py

    r4920 r5856  
    115115
    116116    def render(self):
     117        self.response.setHeader('Content-Type',
     118                                'text/javascript; charset=UTF-8')
    117119        try:
    118120            provider = ITableProvider(self.context)
    119121        except:
    120122            # No table provider for the context. Be gentle...
    121             return ''
    122         self.response.setHeader('Content-Type',
    123                                 'text/javascript; charset=UTF-8')
     123            return '/* No content */'
    124124        tables = provider.getTables()
    125125        results = [table.getJSTableCode() for table in tables]
Note: See TracChangeset for help on using the changeset viewer.