jQuery UI 1.7.3 datepicker conflict with date.js causing “too much recursion”?

前端 未结 2 903
花落未央
花落未央 2021-01-18 05:50

I\'m trying to use jQuery UI 1.7.3 datepicker widget in a jQuery UI dialog. The contents of the dialog are from a page template which includes all the various imports of ja

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-18 06:05

    I'm running jQuery UI 1.7.3 and date.js as well for a modal window and was having the same problem. I was sending all of the scripts needed for the standalone page and for the dialog all in one go, but this meant that some of the same scripts were actually duplicated from the main application window to the dialog. Removing references to the duplicated scripts (for the dialog) fixed the problem.

    In essence, Date.js was being loaded twice, and fixing that fixed the problem.

提交回复
热议问题