Skip to content

Commit 5efa983

Browse files
committed
Dialog: Move dialog into widgets folder
Ref #13885
1 parent f1ce6e5 commit 5efa983

10 files changed

Lines changed: 23 additions & 23 deletions

File tree

demos/bootstrap.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ var widgets = [
2828
"accordion",
2929
"autocomplete",
3030
"button",
31-
"datepicker"
31+
"datepicker",
32+
"dialog"
3233
];
3334

3435
function getPath( module ) {

tests/unit/dialog/common-deprecated.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
define( [
22
"lib/common",
3-
"ui/dialog"
3+
"ui/widgets/dialog"
44
], function( common ) {
55

66
common.testWidget( "dialog", {

tests/unit/dialog/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
define( [
22
"lib/common",
3-
"ui/dialog"
3+
"ui/widgets/dialog"
44
], function( common ) {
55

66
common.testWidget( "dialog", {

tests/unit/dialog/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
define( [
22
"jquery",
3-
"ui/dialog"
3+
"ui/widgets/dialog"
44
], function( $ ) {
55

66
// TODO add teardown callback to remove dialogs

tests/unit/dialog/deprecated.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
define( [
22
"jquery",
3-
"ui/dialog"
3+
"ui/widgets/dialog"
44
], function( $ ) {
55

66
module( "dialog (deprecated): options" );

tests/unit/dialog/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
define( [
22
"jquery",
33
"./helper",
4-
"ui/dialog"
4+
"ui/widgets/dialog"
55
], function( $, testHelper ) {
66

77
module("dialog: events");

tests/unit/dialog/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
define( [
22
"jquery",
33
"lib/helper",
4-
"ui/dialog"
4+
"ui/widgets/dialog"
55
], function( $, helper ) {
66

77
return $.extend( helper, {

tests/unit/dialog/methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
define( [
22
"jquery",
3-
"ui/dialog"
3+
"ui/widgets/dialog"
44
], function( $ ) {
55

66
module("dialog: methods", {

tests/unit/dialog/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
define( [
22
"jquery",
33
"./helper",
4-
"ui/dialog",
4+
"ui/widgets/dialog",
55
"ui/effect-blind",
66
"ui/effect-explode"
77
], function( $, testHelper ) {

ui/dialog.js renamed to ui/widgets/dialog.js

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,19 @@
2222
// AMD. Register as an anonymous module.
2323
define( [
2424
"jquery",
25-
"./core",
26-
"./version",
27-
"./keycode",
28-
"./widget",
29-
"./widgets/button",
30-
"./draggable",
31-
"./focusable",
32-
"./mouse",
33-
"./position",
34-
"./resizable",
35-
"./safe-active-element",
36-
"./safe-blur",
37-
"./tabbable",
38-
"./unique-id"
25+
"./button",
26+
"../mouse",
27+
"../resizable",
28+
"../draggable",
29+
"../focusable",
30+
"../keycode",
31+
"../position",
32+
"../safe-active-element",
33+
"../safe-blur",
34+
"../tabbable",
35+
"../unique-id",
36+
"../version",
37+
"../widget"
3938
], factory );
4039
} else {
4140

0 commit comments

Comments
 (0)