blob: d772b20690b55d87a4c9dcf98b2b84e2f5e7f932 (
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
|
var ProjectList = View.extend({
el: "#projectList",
events: {
"mouseenter td.border": 'spinOn',
"mouseleave td.border": 'spinOff',
},
initialize: function(){
},
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)
}
})
|