mirror of
https://github.com/fergalmoran/dss.git
synced 2026-04-04 20:05:03 +00:00
Added little animation to new activity
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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
15003
static/js/libs/jquery-ui.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user