Permalink
Browse files

fixes #62 now with the correct css classes

  • Loading branch information...
1 parent a34a83e commit 9fb69b86eaf8054d0e86fbdba39a8a7c57323288 Tobias Bosch committed Oct 23, 2012
@@ -941,7 +941,6 @@ factory(window.jQuery, window.angular);
.children( ":last-child" )
.addClass( "ui-corner-bottom" );
- headerCloseButton.buttonMarkup();
$el.data("headerCloseButton", headerCloseButton);
return $el;
@@ -32275,7 +32275,6 @@ factory(window.jQuery, window.angular);
.children( ":last-child" )
.addClass( "ui-corner-bottom" );
- headerCloseButton.buttonMarkup();
$el.data("headerCloseButton", headerCloseButton);
return $el;
Oops, something went wrong.
Oops, something went wrong.
@@ -246,7 +246,6 @@
.children( ":last-child" )
.addClass( "ui-corner-bottom" );
- headerCloseButton.buttonMarkup();
$el.data("headerCloseButton", headerCloseButton);
return $el;
@@ -21,28 +21,17 @@
</head>
<body ng-app="ng">
-<div data-role="page" id="page1" data-theme="a" ng-controller="Controller">
+<div data-role="dialog" id="page1" ng-controller="Controller">
<div data-role="header">
- <h1>Hello World</h1>
+ <h1>Hello</h1>
<a href="#page2">Page2</a>
</div>
<div data-role="content">
- <input type="search" ng-model="test">
-
- {{test}}
+ Test
</div>
</div>
-<div id="page2" data-role="dialog">
- <div data-role="header">
- <h1>My header</h1>
- </div>
- <div data-role="content">
- Hello mobile world!
- </div>
-</div>
-
</body>
@@ -14,5 +14,6 @@ describe("dialog", function () {
var closeButton = dialog.find("a");
expect(closeButton.length).toBe(1);
expect(closeButton.hasClass("ui-btn")).toBe(true);
+ expect(closeButton.hasClass("ui-btn-up-a")).toBe(true);
});
});

0 comments on commit 9fb69b8

Please sign in to comment.