client/js/ldtjson-bin.js
changeset 61 cf48c6d69717
parent 58 87569ad0ff53
child 64 3a5a9421687b
equal deleted inserted replaced
60:6a3084c7eb98 61:cf48c6d69717
    11     '<li class="Rk-Bin-Item" data-image="<%=image%>" data-uri="<%=ldt_platform%>ldtplatform/ldt/front/player/<%=mediaid%>/#id=<%=annotationid%>" data-title="<%-title%>" data-description="<%-description%>">'
    11     '<li class="Rk-Bin-Item" data-image="<%=image%>" data-uri="<%=ldt_platform%>ldtplatform/ldt/front/player/<%=mediaid%>/#id=<%=annotationid%>" data-title="<%-title%>" data-description="<%-description%>">'
    12     + '<img class="Rk-Ldt-Annotation-Icon" src="<%=image%>"/><h4><%=htitle%></h4><p><%=hdescription%></p><p>Start: <%=start%>, End: <%=end%>, Duration: <%=duration%></p><div class="Rk-Clear"></div></li>'
    12     + '<img class="Rk-Ldt-Annotation-Icon" src="<%=image%>"/><h4><%=htitle%></h4><p><%=hdescription%></p><p>Start: <%=start%>, End: <%=end%>, Duration: <%=duration%></p><div class="Rk-Clear"></div></li>'
    13 );
    13 );
    14 
    14 
    15 Rkns.Ldt.ProjectBin.prototype._init = function(_renkan, _opts) {
    15 Rkns.Ldt.ProjectBin.prototype._init = function(_renkan, _opts) {
       
    16     this.renkan = _renkan;
    16     this.proj_id = _opts.project_id;
    17     this.proj_id = _opts.project_id;
    17     this.ldt_platform = _opts.ldt_platform || "http://ldt.iri.centrepompidou.fr/";
    18     this.ldt_platform = _opts.ldt_platform || "http://ldt.iri.centrepompidou.fr/";
    18     this.title_$.html(_opts.title);
    19     this.title_$.html(_opts.title);
    19     this.refresh();
    20     this.refresh();
    20 }
    21 }
   106     if (searchstr && !count) {
   107     if (searchstr && !count) {
   107         this.$.hide();
   108         this.$.hide();
   108     } else {
   109     } else {
   109         this.$.show();
   110         this.$.show();
   110     }
   111     }
   111     _renkan.resizeBins();
   112     this.renkan.resizeBins();
   112 }
   113 }
   113 
   114 
   114 Rkns.Ldt.ProjectBin.prototype.refresh = function() {
   115 Rkns.Ldt.ProjectBin.prototype.refresh = function() {
   115     var _this = this;
   116     var _this = this;
   116     Rkns.$.ajax({
   117     Rkns.$.ajax({