Skip to content

Commit 7cf2a57

Browse files
committed
Fix #19
jQueryUI API changed
1 parent 1b36eb7 commit 7cf2a57

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

build/jquery.dialogextend.js

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/jquery.dialogextend.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<head>
44
<title>Sandbox - jQuery DialogExtend</title>
55
<meta charset=utf-8 />
6-
<link href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
6+
<link href="http://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
77
<script src="http://code.jquery.com/jquery-1.11.1.js"></script>
8-
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
8+
<script src="http://code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
99
<script type="text/javascript" src="build/jquery.dialogextend.js"></script>
1010
<style id="jsbin-css">
1111
body { color: #333333; width:200em; font-family: Times, Helvetica, Arial; font-size: 16px; }
@@ -34,8 +34,8 @@
3434
<h1>jQuery DialogExtend Test Tool</h1>
3535
<ul>
3636
<li><strong>DialogExtend</strong> {version 2.0.3}</li>
37-
<li><strong>jQuery</strong> {version 1.9.1}</li>
38-
<li><strong>jQueryUI</strong> {version 1.10.2}</li>
37+
<li><strong>jQuery</strong> {version 1.11.0}</li>
38+
<li><strong>jQueryUI</strong> {version 1.11.1}</li>
3939
</ul>
4040
</header>
4141
<section>

src/modules/jquery.dialogextend.maximize.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ $.extend true,$.ui.dialogExtend.prototype,
5050
"position" :
5151
my: "left top"
5252
at: "left top"
53+
of: window
5354
)
5455
# mark new state
5556
@_setState "maximized"
@@ -77,6 +78,7 @@ $.extend true,$.ui.dialogExtend.prototype,
7778
"position" :
7879
my: "left top"
7980
at: "left+"+original.position.left+" top+"+original.position.top
81+
of: window
8082
)
8183
# restore draggable-handle (for <titlebar=none> only)
8284
if $(@element[0]).dialog("option","draggable")

0 commit comments

Comments
 (0)