Commit 6cdc9859c38e55748bc20ac9fab7f4d2a3c14d9c

  • avatar
  • arvind
  • Wed Sep 03 18:11:37 IST 2014
Fixing duplicate 'loading animation' getting added on  linked-data page.
  
678678 id: 'linked-data-container',
679679 initialize: function() {
680680 var self = this;
681 this.loader_template = _.template($("#loader-template").html());
682 $("#linked-data-page").prepend(this.loader_template());
683 swtr.LDs = new LDSwts();
684 swtr.LDs.getAll({
685 what: 'img-anno',
686 success: function(data) {
687 swtr.LDs.add(data);
688 if(!swtr.tagCloudView) {
689 $("#spinner").remove();
690 swtr.tagCloudView = new TagCloudView({collection: swtr.LDs});
681 if(!swtr.LDs) {
682 swtr.LDs = new LDSwts();
683 }
684 if(!swtr.LDs.length) {
685 console.log(swtr.LDs);
686 this.loader_template = _.template($("#loader-template").html());
687 $("#linked-data-page").prepend(this.loader_template());
688 swtr.LDs.getAll({
689 what: 'img-anno',
690 success: function(data) {
691 swtr.LDs.add(data);
692 if(!swtr.tagCloudView) {
693 $("#spinner").remove();
694 swtr.tagCloudView = new TagCloudView({collection: swtr.LDs});
695 }
691696 }
692 }
693 });
697 });
698 }
694699 },
695700 destroy: function() {
696701 this.cleanUp();