Skip to Content
Menu
This question has been flagged

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();
},

Avatar
Discard
Related Posts Replies Views Activity
0
Oct 18
6589
1
Dec 19
8960
6
May 24
45684
1
Feb 23
697
0
Feb 23
724