Ignore:
Timestamp:
02/24/14 10:30:00 (10 years ago)
Author:
olof
Message:

added helper-function for checking existing aid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service/annotations.wired.marker.js

    r4547 r4548  
    1414                           annotationProxy.log('got Annotation ');
    1515                           annotationProxy.log(result);
    16                            bitsObjectMng.Database.addObject(result, 'dasish.remote', undefined);     
     16                           if(bitsObjectMng.Database._dasish_aid_exists('_uncategorized', result.dasish_aid, true)){
     17                               annotationProxy.log('AID already in database : ' + result.dasish_aid);
     18                           }else{
     19                                bitsObjectMng.Database.addObject(result, 'dasish.remote', undefined); 
     20                           }
    1721                       });
    1822                    });
Note: See TracChangeset for help on using the changeset viewer.