Changeset 72b372a for telemeta/templates/telemeta/resource_detail.html
- Timestamp:
- 02/13/12 16:37:39 (15 months ago)
- Branches:
- master, crem, crem2, dev, diadems, forma, generic, instru_search, lam, nlivemulti, production, release/1.4.4, security, social, storage, test
- Children:
- b85e1be
- Parents:
- 461ebfc
- git-author:
- yomguy <yomguy@…> (02/13/12 16:37:39)
- git-committer:
- yomguy <yomguy@…> (02/13/12 16:37:39)
- File:
-
- 1 edited
-
telemeta/templates/telemeta/resource_detail.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
telemeta/templates/telemeta/resource_detail.html
rd962322 r72b372a 6 6 7 7 {% block extra_javascript %} 8 <script src="{% url telemeta-js "popupdiv.js" %}" type="text/javascript"></script> 9 <script src="{% url telemeta-js "playlist.js" %}" type="text/javascript"></script> 10 <script> 11 {% if user.is_authenticated %} 12 jQuery(document).ready(function(){ 13 var p = playlistUtils; 14 15 {% for playlist in playlists %} 16 p.addPlaylist('{{ playlist.playlist.title }}','{{playlist.playlist.public_id}}'); 17 {% endfor %} 18 19 {% if resource %} 20 var anchor = jQuery('#_add_to_playlist'); 21 if(anchor.length){ 22 anchor.click(function(){ 23 p.showAddResourceToPlaylist(anchor,'{{type}}','{{resource.id}}',gettrans('resource added to the selected playlist'));return false; 24 }); 25 } 26 {% endif %} 27 }); 28 {% endif %} 29 </script> 8 30 {% endblock %} 9 31
Note: See TracChangeset
for help on using the changeset viewer.
