Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user.js « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b46390ad8f43008ab8d2be72560fa1047c299806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(function() {
  this.User = (function() {
    function User(opts) {
      this.opts = opts;
      $('.profile-groups-avatars').tooltip({
        "placement": "top"
      });
      this.initTabs();
      $('.hide-project-limit-message').on('click', function(e) {
        var path;
        path = '/';
        $.cookie('hide_project_limit_message', 'false', {
          path: path
        });
        $(this).parents('.project-limit-message').remove();
        return e.preventDefault();
      });
    }

    User.prototype.initTabs = function() {
      return new UserTabs({
        parentEl: '.user-profile',
        action: this.opts.action
      });
    };

    return User;

  })();

}).call(this);