Permalink
Browse files

fix one linting issue and make a todo for that page search

  • Loading branch information...
1 parent f2c5970 commit fc9c9629e7785d567cabb388dd47845df0037d2d @johnbender johnbender committed Aug 31, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/widgets/popup.js
View
4 js/widgets/popup.js
@@ -563,6 +563,8 @@ define( [ "jquery",
https://github.com/jquery/jquery-mobile/issues/4844
https://github.com/jquery/jquery-mobile/issues/4874
*/
+
+ // TODO sort out why this._page isn't working
this.element.closest( ".ui-page" ).addClass( "ui-popup-open" );
}
this._animate({
@@ -708,7 +710,7 @@ define( [ "jquery",
// if the current url has no dialog hash key proceed as normal
// otherwise, if the page is a dialog simply tack on the hash key
- if ( url.indexOf( hashkey ) == -1 && !activePage.is( ".ui-dialog" ) ){
+ if ( url.indexOf( hashkey ) === -1 && !activePage.is( ".ui-dialog" ) ){
url = url + hashkey;
} else {
url = $.mobile.path.parseLocation().hash + hashkey;

0 comments on commit fc9c962

Please sign in to comment.