Skip to:
Content

BuddyPress.org

Ticket #6640: 6640.01.diff

File 6640.01.diff, 678 bytes (added by dcavins, 9 months ago)

Remove duplicate IDs from atwho elements.

  • src/bp-core/js/vendor/jquery.atwho.js

    diff --git src/bp-core/js/vendor/jquery.atwho.js src/bp-core/js/vendor/jquery.atwho.js
    index 795b6c67d..1767b1730 100755
    View = (function() { 
    931931
    932932  View.prototype.init = function() {
    933933    var header_tpl, id;
    934     id = this.context.getOpt("alias") || this.context.at.charCodeAt(0);
    935934    header_tpl = this.context.getOpt("headerTpl");
    936935    if (header_tpl && this.$el.children().length === 1) {
    937936      this.$el.prepend(header_tpl);
    938937    }
    939     return this.$el.attr({
    940       'id': "at-view-" + id
    941     });
     938    return this.$el;
    942939  };
    943940
    944941  View.prototype.destroy = function() {