Skip to Content
Menu
You need to be registered to interact with the community.
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
okt. 18
7496
1
dec. 19
10113
6
maj 24
50678
1
feb. 23
697
0
feb. 23
724