Ticket #3199: include_admin_script_with_option.diff
File include_admin_script_with_option.diff, 395 bytes (added by , 18 years ago) |
---|
Line | |
---|---|
1 | 31,32c31,35 |
2 | < |
3 | < return '<script type="text/javascript" src="%s%s"></script>' % (settings.ADMIN_MEDIA_PREFIX, script_path) |
4 | --- |
5 | > include_tmpl = '<script type="text/javascript" src="%s%s"></script>' |
6 | > if script_path[0] == '/': |
7 | > return include_tmpl % (settings.MEDIA_URL, script_path[1:]) |
8 | > else: |
9 | > return include_tmpl % (settings.ADMIN_MEDIA_PREFIX, script_path) |