跳至內容
選單
此問題已被標幟
4042 瀏覽次數

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
7474
1
12月 19
10086
6
5月 24
50644
1
2月 23
697
0
2月 23
724