diff options
| author | Julie Lala <jules@okfoc.us> | 2014-07-17 14:50:44 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2014-07-17 14:50:44 -0400 |
| commit | b1e172be9e8268532610b3e7fe2a4e339eccd1a2 (patch) | |
| tree | 02f12e006aefbec5f492556586493db40af6b760 /public/assets/javascripts/ui/site/ProjectList.js | |
| parent | 93ad35155739e90bec31769733b3dcfe741b93d9 (diff) | |
spinning projects on home view
Diffstat (limited to 'public/assets/javascripts/ui/site/ProjectList.js')
| -rw-r--r-- | public/assets/javascripts/ui/site/ProjectList.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/public/assets/javascripts/ui/site/ProjectList.js b/public/assets/javascripts/ui/site/ProjectList.js new file mode 100644 index 0000000..b72c832 --- /dev/null +++ b/public/assets/javascripts/ui/site/ProjectList.js @@ -0,0 +1,28 @@ + +var ProjectList = View.extend({ + + el: "#projectList", + + events: { + "mouseenter td.border": 'spinOn', + "mouseleave td.border": 'spinOff', + }, + + initialize: function(){ +console.log("PISS") + }, + + spinOn: function(e){ + var iframe = $(e.currentTarget).find("iframe").get('0') + if (! iframe) return + iframe.contentWindow.postMessage("spin-on", window.location.origin) + }, + + spinOff: function(e){ + var iframe = $(e.currentTarget).find("iframe").get('0') + if (! iframe) return + iframe.contentWindow.postMessage("spin-off", window.location.origin) + } + +}) + |
