File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 27
27
function ( ) {
28
28
// bring up the dialog
29
29
select . trigger ( "click" ) ;
30
- ok ( menu . hasClass ( $ . mobile . defaultDialogTransition ) ) ;
30
+ ok ( $ ( "#select-choice-many-1" ) . closest ( ".ui-page" ) . hasClass ( $ . mobile . defaultDialogTransition ) ) ;
31
31
window . history . back ( ) ;
32
32
} ,
33
33
48
48
49
49
function ( ) {
50
50
menu = $ ( "#select-choice-many-menu" ) ;
51
- same ( menu . parents ( '.ui-dialog' ) . length , 1 ) ;
51
+ same ( menu . closest ( '.ui-dialog' ) . length , 1 ) ;
52
52
} ,
53
53
54
54
function ( ) {
55
55
// select and close the dialog
56
- menu . parents ( '.ui-dialog' ) . find ( "span.ui-icon-delete" ) . click ( ) ;
56
+ menu . closest ( '.ui-dialog' ) . dialog ( "close" ) ;
57
57
} ,
58
58
59
59
function ( ) {
63
63
64
64
function ( ) {
65
65
same ( menu . parents ( '.ui-dialog' ) . length , 1 ) ;
66
+ console . log ( menu )
67
+ menu . closest ( '.ui-dialog' ) . dialog ( "close" ) ;
68
+ } ,
69
+ function ( ) {
66
70
start ( ) ;
67
71
}
68
72
] , 1000 ) ;
You can’t perform that action at this time.
0 commit comments