# HG changeset patch # User hamidouk # Date 1327422615 -3600 # Node ID 9341d858bf8ea55c1ba17d7b271d66665bdeb57a # Parent f1225d38c150695fe58e04fa944abe7232356aac removed useless printfs. diff -r f1225d38c150 -r 9341d858bf8e src/js/widgets/annotationsListWidget.js --- a/src/js/widgets/annotationsListWidget.js Tue Jan 24 17:30:01 2012 +0100 +++ b/src/js/widgets/annotationsListWidget.js Tue Jan 24 17:30:15 2012 +0100 @@ -123,8 +123,7 @@ for (i = 0; i < annotations.length; i++) { var annotation = annotations[i]; - console.log(annotation); - console.log(view_types, annotation.meta["id-ref"]); + /* filter the annotations whose type is not the one we want */ /* We want _all_ the annotations. if (typeof(annotation.meta) !== "undefined" && typeof(annotation.meta["id-ref"]) !== "undefined" @@ -143,7 +142,7 @@ obj["url"] = document.location.href.split("#")[0] + "/" + annotation.meta["project"]; l.push(obj); } - console.log(l); + this.do_redraw(l); }; IriSP.AnnotationsListWidget.prototype.draw = function() {