Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add logic to work with less-structured, but still valid jqm pages (i.…

…e. no data-role="content" div present)
  • Loading branch information...
commit b04651e1cebcfd68d3ae72cc5c7457f9324a9d27 1 parent 3db179b
@jtsage authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  js/jquery.mobile.simpledialog2.js
View
1  js/jquery.mobile.simpledialog2.js
@@ -75,6 +75,7 @@
if ( typeof $.mobile.sdLastInput !== 'undefined' ) { delete $.mobile.sdLastInput; }
self.internalID = initDate.getTime();
self.displayAnchor = $.mobile.activePage.children('.ui-content').first();
+ if ( self.displayAnchor.length === 0 ) { self.displayAnchor = $.mobile.activePage; }
self.dialogPage = $("<div data-role='dialog' data-theme='" + o.themeDialog + "'><div data-role='header'></div><div data-role='content'></div></div>");
self.sdAllContent = self.dialogPage.find('[data-role=content]');
Please sign in to comment.
Something went wrong with that request. Please try again.