Commit e5cfd653267278208f13948ad00fe8f2d6c88060

  • avatar
  • arvind
  • Sun Aug 31 13:48:29 IST 2014
Fixing UX of linked-data page.
  • Diff rendering mode:
  • inline
  • side by side

swtr/static/js/main.js

727 }});727 }});
728 },728 },
729 destroy: function() {729 destroy: function() {
730 this.cleanUp();
730 this.remove();731 this.remove();
731732
733 },
734 cleanUp: function() {
735 if(!$("#tag-cloud").is(':visible')) {
736 $("#gallery").hide();
737 $("#tag-cloud").show();
738 }
732 }739 }
733 });740 });
734741
867 this.render();867 this.render();
868 },868 },
869 render: function() {869 render: function() {
870 $(this.el).html('');
870 this.setUp();
871 _.each(this.collection, function(model) {871 _.each(this.collection, function(model) {
872 $(this.el).append(this.template(model.toJSON()));872 $(this.el).append(this.template(model.toJSON()));
873 }, this);873 }, this);
874 },
875 setUp: function() {
876 if(!$(this.el).is(':visible')) {
877 $(this.el).show();
878 }
879 $(this.el).html('');
880
874 }881 }
875 });882 });
876883