mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-19 12:01:06 +00:00
changed ajax response injection to avoid filtering-out script elements that are included in the page div. Fixes #145
This commit is contained in:
parent
ebfcc40e39
commit
b15b9153a4
1 changed files with 4 additions and 1 deletions
|
|
@ -275,7 +275,10 @@
|
|||
$.ajax({
|
||||
url: fileUrl,
|
||||
success: function( html ) {
|
||||
var page = jQuery("<div>" + html + "</div>").find('[data-role="page"]');
|
||||
var all = jQuery("<div></div>");
|
||||
//workaround to allow scripts to execute when included in page divs
|
||||
all.get(0).innerHTML = html;
|
||||
var page = all.find('[data-role="page"]');
|
||||
|
||||
if ( page.attr('id') ) {
|
||||
page = wrapNewPage( page );
|
||||
|
|
|
|||
Loading…
Reference in a new issue