Ignore:
Timestamp:
Feb 13, 2012 4:37:39 PM (3 years ago)
Author:
yomguy <yomguy@…>
Branches:
master, crem, crem2, dev, dev2, diadems, feature/breadcrumbs, feature/ts-0.5, feature/ts-0.5.4, feature/writecache, forma, generic, instru_search, lam, lam2, mapsv3, merge, nlivemulti, production, release/1.4.4, sabiod, security, server, social, storage, telecaster, test
Children:
b85e1be
Parents:
461ebfc
git-author:
yomguy <yomguy@…> (13/02/2012 16:37:39)
git-committer:
yomguy <yomguy@…> (13/02/2012 16:37:39)
Message:

fix add to list for corpus and fonds
fix locales

File:
1 edited

Legend:

Unmodified
Added
Removed
  • telemeta/templates/telemeta/resource_detail.html

    rd962322 r72b372a  
    66 
    77{% 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 %} 
     12jQuery(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> 
    830{% endblock %} 
    931 
Note: See TracChangeset for help on using the changeset viewer.