Project

General

Profile

Actions

Bug #5732

closed

Javascript failure in WPopupMenu when using custome jquery (1.12.4)

Added by Anonymous almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
05/22/2017
Due date:
% Done:

0%

Estimated time:

Description

When using jQuery 1.12.4 with Wt 3.3.7 i get an javascript error: "this.on is not a function" while calling

WPopupMenu::popup.

i am not familiar with javascript but changing the lines:

   function bindDocumentClick() { doEvent($(document).bind); }
   function unbindDocumentClick() { doEvent($(document).unbind); }

to:

   function bindDocumentClick() { doEvent(function() {
$(document).bind.apply($(document), arguments); }) }
   function unbindDocumentClick() { doEvent(function() {
$(document).unbind.apply($(document), arguments); }) }

inside WPopupMenu.C seems to solve this problem.

Actions #1

Updated by Roel Standaert almost 7 years ago

  • Status changed from New to Resolved

That's indeed one of the known issues with Wt 3.3.7. It's already been fixed in the master.

Actions #2

Updated by Roel Standaert over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF