From 23768588b81b53134a11185d6e069910dcaaf40e Mon Sep 17 00:00:00 2001 From: vladimirGI Date: Sat, 9 Feb 2013 20:13:50 -0500 Subject: [PATCH 1/2] Update jquerymobile/jquerymobile.d.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit added missing methods in JQueryMobile interface: showPageLoadingMsg();  hidePageLoadingMsg();  --- jquerymobile/jquerymobile.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jquerymobile/jquerymobile.d.ts b/jquerymobile/jquerymobile.d.ts index 4be7faa9e4..2d6fa744a1 100644 --- a/jquerymobile/jquerymobile.d.ts +++ b/jquerymobile/jquerymobile.d.ts @@ -288,6 +288,8 @@ interface JQueryMobile extends JQueryMobileOptions { options: JQueryMobileOptions; transitionFallbacks; + showPageLoadingMsg(); + hidePageLoadingMsg(); loader; loading; loadPage; @@ -379,4 +381,4 @@ interface JQuery { interface JQueryStatic { mobile: JQueryMobile; -} \ No newline at end of file +} From bfd370ecab3e787320ab95060a0fc4a20ecfda49 Mon Sep 17 00:00:00 2001 From: vladimirGI Date: Sat, 9 Feb 2013 20:16:00 -0500 Subject: [PATCH 2/2] Update jquerymobile/jquerymobile-tests.ts added unit tests for : showPageLoadingMsg() hidePageLoadingMsg() --- jquerymobile/jquerymobile-tests.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jquerymobile/jquerymobile-tests.ts b/jquerymobile/jquerymobile-tests.ts index bedec85bb5..a3d20194a9 100644 --- a/jquerymobile/jquerymobile-tests.ts +++ b/jquerymobile/jquerymobile-tests.ts @@ -25,6 +25,9 @@ function test_api() { var isAbs = $.mobile.path.isAbsoluteUrl("//foo.com/a/file.html"); var dirName = $.mobile.path.get("http://foo.com/a"); $.mobile.silentScroll(100); + + $.mobile.showPageLoadingMsg(); + $.mobile.hidePageLoadingMsg(); } function test_pagesDialogs() { @@ -255,4 +258,4 @@ function test_listview() { function test_misc() { $.mobile.initializePage(); -} \ No newline at end of file +}