Added little animation to new activity

This commit is contained in:
Fergal Moran
2013-06-25 21:55:26 +01:00
parent bfcafcd800
commit 8de192fbf5
3 changed files with 15017 additions and 8 deletions

View File

@@ -1,6 +1,9 @@
define ['marionette', 'text!/tpl/ActivityListItemView'],
define ['marionette', 'text!/tpl/ActivityListItemView', 'libs/jquery-ui'],
(Marionette, Template) ->
class ActivityItemView extends Marionette.ItemView
template: _.template(Template)
tagName: "li"
className: "media"
className: "media"
onDomRefresh: ->
@$el.effect("bounce", "slow")

View File

@@ -1,17 +1,16 @@
// Generated by CoffeeScript 1.6.2
// Generated by CoffeeScript 1.3.3
(function() {
var __hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
define(['marionette', 'text!/tpl/ActivityListItemView'], function(Marionette, Template) {
var ActivityItemView, _ref;
define(['marionette', 'text!/tpl/ActivityListItemView', 'libs/jquery-ui'], function(Marionette, Template) {
var ActivityItemView;
return ActivityItemView = (function(_super) {
__extends(ActivityItemView, _super);
function ActivityItemView() {
_ref = ActivityItemView.__super__.constructor.apply(this, arguments);
return _ref;
return ActivityItemView.__super__.constructor.apply(this, arguments);
}
ActivityItemView.prototype.template = _.template(Template);
@@ -20,6 +19,10 @@
ActivityItemView.prototype.className = "media";
ActivityItemView.prototype.onDomRefresh = function() {
return this.$el.effect("bounce", "slow");
};
return ActivityItemView;
})(Marionette.ItemView);

15003
static/js/libs/jquery-ui.js vendored Normal file

File diff suppressed because it is too large Load Diff