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