Skip to content

Commit

Permalink
Add logic to work with less-structured, but still valid jqm pages (i.…
Browse files Browse the repository at this point in the history
…e. no data-role="content" div present)
  • Loading branch information
jtsage committed Jun 13, 2012
1 parent 3db179b commit b04651e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/jquery.mobile.simpledialog2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]');
Expand Down

0 comments on commit b04651e

Please sign in to comment.