Skip to content

Commit

Permalink
Try to add showPageLoadingMsg
Browse files Browse the repository at this point in the history
  • Loading branch information
MagnusEnger committed Jul 31, 2011
1 parent 8aaa5ec commit 3a97a3c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<title>moBibl</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.js"></script>
<script type="text/javascript" src="mobibl.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.js"></script>
</head>
<body>
Expand Down
16 changes: 12 additions & 4 deletions mobibl.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
$(document).ready(function(){

$(document).bind("mobileinit", function(){

$.extend( $.mobile , {
loadingMessage: "Laster inn...",
pageLoadErrorMessage: "Kunne ikke vise side"
});

});


function show_more_results(searchid) {

// TODO Display progress indicator
// Display progress indicator
$.mobile.showPageLoadingMsg()

// FIXME Make one call to getUrlVars
var q = $.getUrlVar('q');
Expand Down Expand Up @@ -40,7 +47,8 @@ function show_more_results(searchid) {
}
});

// TODO Hide progress indicator
// Hide progress indicator
$.mobile.hidePageLoadingMsg()

}

Expand Down

0 comments on commit 3a97a3c

Please sign in to comment.