diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-11-20 10:27:03 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-11-20 10:32:20 +0300 |
commit | 171ece8f8b238cea385cbc19441a44160d4d3e18 (patch) | |
tree | 7d917c1ff985c705874d2bf15dbf95c5da722017 /app/assets/javascripts/activities.js | |
parent | 9aded5c8d43cf113b03e2d8fd04a32c4b24af24d (diff) |
rename activities.js to activities.js.es6
Diffstat (limited to 'app/assets/javascripts/activities.js')
-rw-r--r-- | app/assets/javascripts/activities.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/app/assets/javascripts/activities.js b/app/assets/javascripts/activities.js deleted file mode 100644 index 906a1a69d93..00000000000 --- a/app/assets/javascripts/activities.js +++ /dev/null @@ -1,37 +0,0 @@ -/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-undef, quotes, no-var, padded-blocks, max-len */ -(function() { - this.Activities = (function() { - function Activities() { - Pager.init(20, true, false, this.updateTooltips); - $(".event-filter-link").on("click", (function(_this) { - return function(event) { - event.preventDefault(); - _this.toggleFilter($(event.currentTarget)); - return _this.reloadActivities(); - }; - })(this)); - } - - Activities.prototype.updateTooltips = function() { - gl.utils.localTimeAgo($('.js-timeago', '.content_list')); - }; - - Activities.prototype.reloadActivities = function() { - $(".content_list").html(''); - Pager.init(20, true, false, this.updateTooltips); - }; - - Activities.prototype.toggleFilter = function(sender) { - var filter = sender.attr("id").split("_")[0]; - - $('.event-filter .active').removeClass("active"); - Cookies.set("event_filter", filter); - - sender.closest('li').toggleClass("active"); - }; - - return Activities; - - })(); - -}).call(this); |