blob: b72c8329637afdf803464a0e5c1e720714f7ce72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)
}
})
|