Skip to content
This repository was archived by the owner on Apr 21, 2019. It is now read-only.
This repository was archived by the owner on Apr 21, 2019. It is now read-only.

Incompatible with newer jQuery Versions #5

Open
@arueckauer

Description

@arueckauer

Error message

With newer versions of jQuery and jQuery UI the following error occurs whenever destroyDialog() is triggered:

Uncaught Error: cannot call methods on dialog prior to initialization; attempted to call method 'close'

Test code

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>Timeout Dialog</title>
    <script src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
    <script type="text/javascript" src="js/timeout-dialog.js"></script>
    <link rel="stylesheet" href="css/index.css" type="text/css" media="screen, projection" />
    <link rel="stylesheet" href="css/timeout-dialog.css" type="text/css" media="screen, projection" />
</head>
<body>
  <div>
    <a href="#" id="timeout-example">Click Here to See Demo</a>
  </div>
<script type="text/javascript">
/*<![CDATA[*/
$(function () {
 $("#timeout-example").click(function(e) {
   e.preventDefault();
   $.timeoutDialog({timeout: 1, countdown: 60, logout_redirect_url: 'https://github.com/rigoneri/timeout-dialog.js', restart_on_yes: false});
 });
});
/*]]>*/
</script>
</body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions