jquery/jquery-mobile — Issue #3356: Allow for ad hoc customization of page loading message on calling showPageLoading
Author: cfjedimaster
Created: 2011-12-31 00:42:02+00:00
State: open

You can force a page loading message by calling $.mobile.showPageLoading and $.mobile.hidePageLoading. The UI works great and I'd like to use it for non-page loading events. Like perhaps before I do an Ajax call to load some data to populate the page. The only issue is that you can't customize the message unless you change it globally:

$.mobile.loadingMessage = "Posting Shout...";

If you don't change it back later, than future page load dialogs will have the wrong message. It would be nice if I could do this instead:

$.mobile.showPageLoading("Getting important stuff");