mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-29 10:24:45 +00:00
added two events: beforeload and load.
These are triggered on a ui-page before and after mobilize is executed on a newly loaded page. Fixed #75
This commit is contained in:
parent
9be9ab6612
commit
113f09f6c9
1 changed files with 4 additions and 1 deletions
|
|
@ -268,6 +268,8 @@
|
|||
return $el.not('[data-mobilized]').each(function(){
|
||||
|
||||
var $el = $(this);
|
||||
|
||||
$el.trigger("beforeload");
|
||||
|
||||
//some of the form elements currently rely on the presence of ui-page and ui-content
|
||||
// classes so we'll handle page and content roles outside of the main role processing
|
||||
|
|
@ -350,7 +352,8 @@
|
|||
})
|
||||
.find('.ui-btn-text').text(backBtnText);
|
||||
|
||||
$el.attr('data-mobilized', true);
|
||||
$el.attr('data-mobilized', true);
|
||||
$el.trigger("load");
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue