mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Fixes “infinite scroll” demo by triggering “refresh” on listviews specifically. Should there be a universal “refresh” event? Let us think on this, and discuss.
This commit is contained in:
parent
e880886ad6
commit
bea048062d
1 changed files with 2 additions and 9 deletions
|
|
@ -60,20 +60,13 @@ $.widget( "mobile.fetchlink", $.mobile.widget, {
|
|||
normalizePath( 'img', 'src' );
|
||||
normalizePath( 'a', 'href');
|
||||
|
||||
setTimeout(function() {
|
||||
responseEl
|
||||
.trigger( "fetchlink", { target : targetEl, data: responseEl })
|
||||
.trigger('create' );
|
||||
|
||||
setTimeout(function() {
|
||||
targetEl[ method ]( responseEl.addClass('fade in') );
|
||||
|
||||
$(":jqmData(role='page')").trigger( "create" );
|
||||
|
||||
|
||||
targetEl
|
||||
.listview( "refresh" ) // This should work with trigger( "refresh" ).
|
||||
.removeClass('ui-loading-inline')
|
||||
.height('auto');
|
||||
|
||||
}, 300);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue