src/widgets/Annotation.js
branchnew-model
changeset 916 ec6849bbbdcc
parent 906 4b6e154ae8de
child 922 096c06aea8b5
equal deleted inserted replaced
915:ba7aab923d08 916:ec6849bbbdcc
    75 
    75 
    76 IriSP.Widgets.Annotation.prototype.drawAnnotation = function(_annotation) {
    76 IriSP.Widgets.Annotation.prototype.drawAnnotation = function(_annotation) {
    77     this.lastAnnotation = _annotation.id;
    77     this.lastAnnotation = _annotation.id;
    78     var _url = (typeof _annotation.url !== "undefined" 
    78     var _url = (typeof _annotation.url !== "undefined" 
    79             ? _annotation.url
    79             ? _annotation.url
    80             : (document.location.href.replace(/#.*$/,'') + '#id='  + _annotation.namespacedId.name));
    80             : (document.location.href.replace(/#.*$/,'') + '#id='  + _annotation.id));
    81     var _text = this.l10n.watching + _annotation.title + (this.site_name ? this.l10n.on_site + this.site_name : '');
    81     var _text = this.l10n.watching + _annotation.title + (this.site_name ? this.l10n.on_site + this.site_name : '');
    82     var _tags = _annotation.getTagTexts();
    82     var _tags = _annotation.getTagTexts();
    83     if (_tags.length) {
    83     if (_tags.length) {
    84         var _html = IriSP._(_tags).map(function(_tag) {
    84         var _html = IriSP._(_tags).map(function(_tag) {
    85             return '<li class="Ldt-Annotation-TagLabel"><span>' + _tag + '</span></li>';
    85             return '<li class="Ldt-Annotation-TagLabel"><span>' + _tag + '</span></li>';