1. Jun Omae
  2. traclightning-plugins

Commits

Takashi Okamoto  committed f6c999e Draft

update tracsubtickets.

  • Participants
  • Parent commits 4f44519
  • Branches default

Comments (0)

Files changed (8)

File tracsubticketsplugin/setup.cfg

File contents unchanged.

File tracsubticketsplugin/setup.py

View file
     package_data = {
         'tracsubtickets': [
             'htdocs/css/*.css',
+            'htdocs/css/image/*',
+            'htdocs/js/*.js',
             'locale/*.*',
             'locale/*/LC_MESSAGES/*.*',
         ],

File tracsubticketsplugin/tracsubtickets/__init__.py

File contents unchanged.

File tracsubticketsplugin/tracsubtickets/checker.py

File contents unchanged.

File tracsubticketsplugin/tracsubtickets/db_default.py

File contents unchanged.

File tracsubticketsplugin/tracsubtickets/htdocs/css/subtickets.css

File contents unchanged.

File tracsubticketsplugin/tracsubtickets/locale/de_DE/LC_MESSAGES/tracsubtickets.po

File contents unchanged.

File tracsubticketsplugin/tracsubtickets/web_ui.py

View file
 from trac.core import *
 from trac.config import Configuration
 from trac.web.api import IRequestFilter, ITemplateStreamFilter
-from trac.web.chrome import ITemplateProvider, add_stylesheet
+from trac.web.chrome import ITemplateProvider, add_stylesheet, add_script, add_link
 from trac.ticket.api import ITicketManipulator
 from trac.ticket.model import Ticket
 from genshi.builder import tag
             if div:
                 add_stylesheet(req, 'subtickets/css/subtickets.css')
                 stream |= Transformer('.//div[@id="ticket"]').append(div)
+        if not req.get_header('User-Agent').startswith("Mozilla/4.0 (compatible; MSIE"):
+            # IE is not work;
+            # add_script(req, 'subtickets/js/json2.min.js')
 
+            add_stylesheet(req, 'subticketsn/css/jquery.ui.all.css')
+            add_script(req, 'subtickets/js/jquery-ui-1.8.7.custom.min.js')
+            add_script(req, 'subtickets/js/popupticketsdialog.js')
+            add_link(req, 'tracsubticket.base', req.href() or '/')
         return stream