diff options
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) + } + +}) + |
