diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-06-12 13:59:39 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-06-12 17:48:15 +0200 |
commit | c8945679872a0708eb67a477a99a65d508c84cb0 (patch) | |
tree | 5cf9f2cc842f891451f7bc247b5f0833c1ab39e7 /client/components/boards | |
parent | 216887490e3be0ba141484afc11d37475e91562d (diff) | |
download | wekan-c8945679872a0708eb67a477a99a65d508c84cb0.tar.gz wekan-c8945679872a0708eb67a477a99a65d508c84cb0.tar.bz2 wekan-c8945679872a0708eb67a477a99a65d508c84cb0.zip |
Work on the card activities and comments
This commit also introduces a new CSSEvents object that is used to
abstract vendor specifics events related to CSS transitions and
animations.
Fixes #183.
Fixes #179.
Diffstat (limited to 'client/components/boards')
-rw-r--r-- | client/components/boards/boardBody.js | 11 | ||||
-rw-r--r-- | client/components/boards/boardHeader.jade | 2 |
2 files changed, 3 insertions, 10 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index e1b39ce8..1fd64cbc 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -1,12 +1,3 @@ -// XXX This event list must be abstracted somewhere else. -var endTransitionEvents = [ - 'webkitTransitionEnd', - 'otransitionend', - 'oTransitionEnd', - 'msTransitionEnd', - 'transitionend' -].join(' '); - BlazeComponent.extendComponent({ template: function() { return 'boardComponent'; @@ -69,7 +60,7 @@ BlazeComponent.extendComponent({ flexBasis: 0, padding: 0 }); - $(lists).one(endTransitionEvents, removeNode); + $(lists).one(CSSEvents.transitionend, removeNode); } else { removeNode(); } diff --git a/client/components/boards/boardHeader.jade b/client/components/boards/boardHeader.jade index b0f0eebe..e78de3b2 100644 --- a/client/components/boards/boardHeader.jade +++ b/client/components/boards/boardHeader.jade @@ -106,9 +106,11 @@ template(name="createBoardPopup") p.quiet if $eq visibility.get 'public' span.fa.fa-globe.colorful + = " " | {{{_ 'board-public-info'}}} else span.fa.fa-lock.colorful + = " " | {{{_ 'board-private-info'}}} a.js-change-visibility Change. input.primary.wide(type="submit" value="{{_ 'create'}}") |