Changeset 2516
- Timestamp:
- 01/29/10 12:34:42 (7 weeks ago)
- Location:
- branches/0.9/pylucid_project
- Files:
-
- 6 modified
-
apps/pylucid/context_processors.py (modified) (1 diff)
-
apps/pylucid/templates/admin/base_site.html (modified) (3 diffs)
-
apps/pylucid_admin/templates/pylucid_admin/menu.html (modified) (1 diff)
-
media/PyLucid/pylucid_js_tools.js (modified) (1 diff)
-
media/PyLucid/superfish/pylucid_superfish.js (modified) (2 diffs)
-
pylucid_plugins/admin_menu/templates/admin_menu/includes/superfish_extrahead.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/pylucid_project/apps/pylucid/context_processors.py
r2377 r2516 56 56 57 57 "PyLucid_media_url": settings.MEDIA_URL + settings.PYLUCID.PYLUCID_MEDIA_DIR + "/", 58 "Django_media_prefix": settings.ADMIN_MEDIA_PREFIX, 58 59 59 60 "debug": settings.DEBUG, -
branches/0.9/pylucid_project/apps/pylucid/templates/admin/base_site.html
r2449 r2516 2 2 {% load i18n %} 3 3 4 4 5 {% block title %}PyLucid - {{ title }}{% endblock %} 5 6 6 {% block extrahead %}{{ block.super }} 7 <!-- app_extrahead block start --> 8 {# stylesheets for all PyLucid views #} 7 8 {% block extrastyle %}{{ block.super }} 9 {% if debug %}<!-- ./apps/pylucid/templates/admin/base_site.html extrastyle block START -->{% endif %} 10 <!-- 11 We should use extrahead instead of extrastyle if http://code.djangoproject.com/ticket/12726 fixed. 12 We doesn't need to add your own jquery, because django include it since http://code.djangoproject.com/changeset/12297 13 --> 14 <script type="text/javascript" src="{{ Django_media_prefix }}js/jquery.min.js" onerror="JavaScript:alert('Error loading file [{{ Django_media_prefix }}js/jquery.min.js] !');" ></script> 15 16 {# stylesheets for all Django admin views #} 9 17 <link rel="stylesheet" type="text/css" href="{{ PyLucid_media_url }}pylucid_admin.css" onerror="JavaScript:alert('Error loading file [{{ PyLucid_media_url }}pylucid_admin.css] !');"/> 10 <script type="text/javascript" src="{{ PyLucid_media_url }}jquery.js" onerror="JavaScript:alert('Error loading file [{{ PyLucid_media_url }}jquery.js] !');" ></script>11 18 <script type="text/javascript" src="{{ PyLucid_media_url }}pylucid_js_tools.js"></script> 12 19 {% if debug %} … … 17 24 18 25 {% include "admin_menu/includes/superfish_extrahead.html" %} 19 <!-- app_extrahead block end --> 26 {% if debug %}<!-- ./apps/pylucid/templates/admin/base_site.html extrastyle block END -->{% endif %} 20 27 {% endblock %} 28 21 29 22 30 {% block branding %}<h1>PyLucid</h1> 23 31 <!-- page_messages --> 24 32 {% endblock %} 33 25 34 26 35 {% block pretitle %} … … 32 41 {% endblock %} 33 42 43 34 44 {% block footer %} 35 45 <!-- app footer block start --> -
branches/0.9/pylucid_project/apps/pylucid_admin/templates/pylucid_admin/menu.html
r2454 r2516 2 2 {% load i18n %} 3 3 4 {% block extra head%}{{ block.super }}4 {% block extrastyle %}{{ block.super }} 5 5 <!-- pylucid admin menu extrahead block start --> 6 6 <link rel="stylesheet" type="text/css" media="screen" href="{{ PyLucid_media_url }}superfish/superfish-vertical.css" /> -
branches/0.9/pylucid_project/media/PyLucid/pylucid_js_tools.js
r2493 r2516 210 210 MAX_LENGTH = 100; 211 211 RESIZE_FACTOR = 1.3; 212 $(document).ready(function(){212 jQuery(document).ready(function($) { 213 213 /************************************************************************* 214 214 * textarea resize buttons -
branches/0.9/pylucid_project/media/PyLucid/superfish/pylucid_superfish.js
r2371 r2516 1 $(document).ready(function(){1 jQuery(document).ready(function($) { 2 2 // 3 // initialise Superfish menu3 // Initialize Superfish menu 4 4 // 5 5 $('ul.sf-menu').superfish({ … … 8 8 speed: 100 // faster animation speed 9 9 }); 10 log("superfish initialized."); 10 11 }); -
branches/0.9/pylucid_project/pylucid_plugins/admin_menu/templates/admin_menu/includes/superfish_extrahead.html
r2136 r2516 1 <!-- admin_menu/includes/superfish_extrahead.html START --> 1 {% if debug %}<!-- pylucid plugin ./admin_menu/includes/superfish_extrahead.html START -->{% endif %} 2 2 <link rel="stylesheet" type="text/css" media="screen" href="{{ PyLucid_media_url }}superfish/superfish.css" onerror="JavaScript:alert('{{ PyLucid_media_url }}superfish/superfish.css');" /> 3 3 <script type="text/javascript" src="{{ PyLucid_media_url }}superfish/superfish.js" onerror="JavaScript:alert('{{ PyLucid_media_url }}superfish/superfish.js');" ></script> … … 18 18 --> 19 19 </style> 20 <!-- admin_menu/includes/superfish_extrahead.html END --> 20 {% if debug %}<!-- pylucid plugin ./admin_menu/includes/superfish_extrahead.html END -->{% endif %}