2014-10-29 44 views
0

我已经使用了jQuery UI移动库并具有绑定到一个元素为“taphold”下面的方法:“taphold”事件禁用上的文本框

  // Apply class to annotations details to initiate animation 
     $('.detailsDiv').on('taphold', function() 
     { 
      var openingID = $(this).parent().attr("annoID"); 
      var showControls = true; 
      if ($(".annoEditableTextArea.annoName").length > 0) 

       $('body').append(pThis._getBlackoutOverlay(id)); 
      } 
      else 
      { 
       $(this).off('mousedown'); 
       pThis.base.annotations._setAnnotationDetailsActive(openingID, showControls); 
      } 
     }); 

此挂钩事件就好了。但是,如果我在'taphold'事件未触发后点击此处的文本框,则在iOS Safari中。我试图重新贴上一个文本框没有聚焦的事件,但仍然没有运气。

有没有人有类似这种行为的经历?

非常感谢

回答