跳至内容
菜单
此问题已终结

Whenever I click on the ticket (html-div block). It should call click event and return a popup form. In chrome "click" event is not calling its function. In Mozilla it's working fine. What I am missing here?

1. HTML

<div class='o_goto_task open_window'>
       <!-- code -->
</div>


2. JS

 events: {
           'click .o_goto_task': '_onGoToTask',
           'mousedown .o_goto_task': '_onStartDrag',
           'mousemove .open_window': '_onDrag',
           'mouseup .open_window': '_onEndDrag',
},

// on click event
_onGoToTask: function(event) {
               ev.preventDefault();
               // return form view
},

//on start drag event
_onStartDrag: function(ev) {
               ev.preventDefault();
              // code
},

// on drag event
_onDrag: function(ev) {
             ev.preventDefault();
             // code
},

//end drag event
_onEndDrag: function(ev) {
               // code ev.preventDefault();
},

形象
丢弃
相关帖文 回复 查看 活动
0
10月 18
7543
1
12月 19
10170
6
5月 24
50808
1
2月 23
697
0
2月 23
724