gitlab-org--gitlab-foss/app/assets/javascripts/user.js
2016-07-24 23:45:11 +03:00

31 lines
702 B
JavaScript

(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);